/* ==========================================================================
   SGTE Tour Engine — front-end styles
   Themeable via CSS variables. Override --sgte-* in your theme to rebrand.
   ========================================================================== */

.sgte-tours-grid,
.sgte-single,
.sgte-archive,
.sgte-form-card,
.sgte-destinations-grid,
.sgte-search-form {
	--sgte-bark: #2f2a24;
	--sgte-savanna: #c2762a;     /* warm acacia/terracotta accent */
	--sgte-savanna-dark: #a35f1c;
	--sgte-leaf: #3f6b4a;        /* deep foliage green */
	--sgte-sand: #f6f1e7;        /* paper/sand background */
	--sgte-line: #e4dccb;
	--sgte-muted: #756e62;
	--sgte-radius: 12px;
	--sgte-shadow: 0 6px 24px rgba(47, 42, 36, 0.08);
	color: var(--sgte-bark);
	box-sizing: border-box;
}
.sgte-tours-grid *,
.sgte-single *,
.sgte-archive *,
.sgte-form-card *,
.sgte-destinations-grid * { box-sizing: border-box; }

/* ---------- Buttons ---------- */
.sgte-btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform .12s ease, background .15s ease, color .15s ease;
}
.sgte-btn:hover { transform: translateY(-1px); }
.sgte-btn-primary { background: var(--sgte-savanna); color: #fff; }
.sgte-btn-primary:hover { background: var(--sgte-savanna-dark); color: #fff; }
.sgte-btn-ghost { background: transparent; color: var(--sgte-bark); border-color: var(--sgte-line); }
.sgte-btn-ghost:hover { border-color: var(--sgte-savanna); color: var(--sgte-savanna-dark); }
.sgte-btn-whatsapp { background: #25d366; color: #fff; }
.sgte-btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

/* ---------- Grid ---------- */
.sgte-tours-grid { display: grid; gap: 26px; }
.sgte-cols-1 { grid-template-columns: 1fr; }
.sgte-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sgte-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sgte-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Card ---------- */
.sgte-card {
	background: #fff;
	border: 1px solid var(--sgte-line);
	border-radius: var(--sgte-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s ease, transform .18s ease;
}
.sgte-card:hover { box-shadow: var(--sgte-shadow); transform: translateY(-3px); }
.sgte-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sgte-sand); }
.sgte-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sgte-card:hover .sgte-card-img { transform: scale(1.05); }
.sgte-card-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sgte-sand), #ece3d2); }
.sgte-card-flag,
.sgte-card-sale {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--sgte-savanna);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 4px 10px;
	border-radius: 6px;
}
.sgte-card-sale { left: auto; right: 12px; background: var(--sgte-leaf); }

.sgte-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.sgte-card-dest { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sgte-savanna-dark); font-weight: 700; margin-bottom: 6px; }
.sgte-card-title { font-size: 19px; line-height: 1.25; margin: 0 0 10px; }
.sgte-card-title a { color: inherit; text-decoration: none; }
.sgte-card-title a:hover { color: var(--sgte-savanna-dark); }
.sgte-card-meta { font-size: 13px; color: var(--sgte-muted); margin-bottom: 8px; }
.sgte-card-excerpt { font-size: 14px; color: var(--sgte-muted); line-height: 1.5; margin: 0 0 16px; flex: 1; }
.sgte-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sgte-card-price { display: flex; flex-direction: column; line-height: 1.2; }
.sgte-price-old { font-size: 12px; color: var(--sgte-muted); text-decoration: line-through; }
.sgte-price-now { font-size: 19px; font-weight: 800; color: var(--sgte-bark); }
.sgte-price-suffix { font-size: 11px; color: var(--sgte-muted); }

/* ---------- Search form ---------- */
.sgte-search-form {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr auto;
	gap: 12px;
	align-items: end;
	background: #fff;
	border: 1px solid var(--sgte-line);
	border-radius: var(--sgte-radius);
	padding: 18px;
	box-shadow: var(--sgte-shadow);
}
.sgte-search-field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sgte-muted); margin-bottom: 5px; }
.sgte-search-field input,
.sgte-search-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--sgte-line);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
}
.sgte-search-form .sgte-btn { padding: 12px 22px; }

/* ---------- Destinations ---------- */
.sgte-destinations-grid { display: grid; gap: 18px; }
.sgte-destination-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 150px;
	padding: 18px;
	border-radius: var(--sgte-radius);
	background: linear-gradient(160deg, var(--sgte-leaf), #2c4d36);
	color: #fff;
	text-decoration: none;
	transition: transform .18s ease;
}
.sgte-destination-card:nth-child(even) { background: linear-gradient(160deg, var(--sgte-savanna), var(--sgte-savanna-dark)); }
.sgte-destination-card:hover { transform: translateY(-3px); }
.sgte-destination-name { font-size: 20px; font-weight: 800; color: #fff; }
.sgte-destination-count { font-size: 13px; opacity: .85; }

/* ---------- Single tour ---------- */
.sgte-single-hero { position: relative; }
.sgte-single-hero-img img { width: 100%; height: 460px; object-fit: cover; display: block; }
.sgte-single-hero-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(to top, rgba(31, 27, 22, .78), rgba(31, 27, 22, 0) 60%);
}
.sgte-single-hero-inner { padding: 40px; color: #fff; max-width: 1100px; margin: 0 auto; width: 100%; }
.sgte-single-dest { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 13px; color: #f1d4a8; }
.sgte-single-title { color: #fff; font-size: 40px; line-height: 1.1; margin: 8px 0 14px; }
.sgte-single-quickmeta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }

.sgte-single-layout {
	max-width: 1100px;
	margin: 40px auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	align-items: start;
}
.sgte-section { margin-bottom: 40px; }
.sgte-section h2 {
	font-size: 26px;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--sgte-line);
}
.sgte-itinerary-list { list-style: none; margin: 0; padding: 0; }
.sgte-itinerary-day {
	position: relative;
	padding: 0 0 24px 26px;
	border-left: 2px solid var(--sgte-line);
	margin-left: 8px;
}
.sgte-itinerary-day::before {
	content: "";
	position: absolute;
	left: -8px;
	top: 4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--sgte-savanna);
	border: 3px solid #fff;
}
.sgte-itinerary-day:last-child { border-left-color: transparent; }
.sgte-itinerary-day h3 { margin: 0 0 6px; font-size: 18px; }
.sgte-itinerary-day p { margin: 0; color: var(--sgte-muted); line-height: 1.6; }

.sgte-inclusions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sgte-inclusions-grid ul { list-style: none; margin: 0; padding: 0; }
.sgte-inclusions-grid li { padding: 7px 0 7px 28px; position: relative; line-height: 1.4; }
.sgte-yes::before { content: "✓"; position: absolute; left: 0; color: var(--sgte-leaf); font-weight: 800; }
.sgte-no::before { content: "✕"; position: absolute; left: 0; color: #c0392b; font-weight: 800; }

.sgte-map-embed { border-radius: var(--sgte-radius); overflow: hidden; border: 1px solid var(--sgte-line); }

/* Sidebar */
.sgte-single-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.sgte-price-box {
	background: var(--sgte-sand);
	border: 1px solid var(--sgte-line);
	border-radius: var(--sgte-radius);
	padding: 22px;
}
.sgte-price-box-amount { margin-bottom: 14px; }
.sgte-price-box-amount .sgte-price-now { font-size: 30px; }
.sgte-price-box-meta { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.sgte-price-box-meta li { padding: 6px 0; border-bottom: 1px dashed var(--sgte-line); }
.sgte-price-box-meta li:last-child { border-bottom: 0; }

/* ---------- Forms ---------- */
.sgte-form-card {
	background: #fff;
	border: 1px solid var(--sgte-line);
	border-radius: var(--sgte-radius);
	padding: 22px;
	box-shadow: var(--sgte-shadow);
}
.sgte-form-heading { margin: 0 0 16px; font-size: 20px; }
.sgte-form-row { margin-bottom: 14px; }
.sgte-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sgte-form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.sgte-form-row input,
.sgte-form-row textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--sgte-line);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
}
.sgte-form-row input:focus,
.sgte-form-row textarea:focus { outline: 2px solid var(--sgte-savanna); border-color: var(--sgte-savanna); }
.sgte-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.sgte-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.sgte-form-feedback { margin-top: 14px; font-size: 14px; }
.sgte-form-feedback.sgte-success { color: var(--sgte-leaf); font-weight: 600; }
.sgte-form-feedback.sgte-error { color: #c0392b; font-weight: 600; }

/* ---------- Archive ---------- */
.sgte-archive { max-width: 1100px; margin: 36px auto; padding: 0 20px; }
.sgte-archive-header { margin-bottom: 22px; }
.sgte-archive-title { font-size: 34px; margin: 0 0 6px; }
.sgte-archive-sub { color: var(--sgte-muted); font-size: 16px; margin: 0; }
.sgte-archive-search { margin-bottom: 30px; }
.sgte-pagination { margin-top: 34px; }
.sgte-empty { color: var(--sgte-muted); padding: 30px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.sgte-single-layout { grid-template-columns: 1fr; }
	.sgte-single-sidebar { position: static; }
	.sgte-cols-3, .sgte-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.sgte-search-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.sgte-cols-2, .sgte-cols-3, .sgte-cols-4 { grid-template-columns: 1fr; }
	.sgte-search-form { grid-template-columns: 1fr; }
	.sgte-form-grid { grid-template-columns: 1fr; }
	.sgte-single-title { font-size: 28px; }
	.sgte-single-hero-img img { height: 300px; }
	.sgte-single-hero-inner { padding: 24px; }
	.sgte-inclusions-grid { grid-template-columns: 1fr; }
	.sgte-destinations-grid.sgte-cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.sgte-card, .sgte-card-img, .sgte-btn, .sgte-destination-card { transition: none; }
}
