:root {
    --teal: #0f5c56;
    --teal-dark: #0a3f3b;
    --sand: #f6f1e7;
    --paper: #ffffff;
    --line: #e2ddd0;
    --text: #24312e;
    --text-muted: #6b7570;
    --clay: #b5502a;
    --clay-dark: #96431f;
    --gold: #d9a441;
    --danger: #c0392b;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 10px rgba(15, 92, 86, 0.08);
    --shadow-card: 0 8px 24px rgba(15, 45, 40, 0.10);
    --font-display: "Big Shoulders Display", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--sand);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 { margin: 0 0 8px; font-family: var(--font-display); color: var(--teal-dark); letter-spacing: 0.2px; }

.page { max-width: 1180px; margin: 0 auto; padding: 0 24px 64px; }

/* ---------- Top bar ---------- */
.site-bar { background: var(--teal-dark); color: #fff; }
.site-bar-inner {
    max-width: 1180px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
    font-family: var(--font-display); font-weight: 700; font-size: 22px;
    color: #fff; text-decoration: none; letter-spacing: 0.3px;
}
.site-logo span { color: var(--gold); }
.site-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: #fff; }

/* ---------- Hero (listing page) ---------- */
.hero {
    position: relative;
    background: var(--teal-dark);
    color: #fff;
    overflow: hidden;
    padding: 56px 24px 80px;
}
.hero-topo {
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(255,255,255,0.035) 39px, transparent 40px);
    -webkit-mask-image: radial-gradient(ellipse 900px 500px at 75% 20%, #000 0%, transparent 70%);
            mask-image: radial-gradient(ellipse 900px 500px at 75% 20%, #000 0%, transparent 70%);
    opacity: 0.9;
}
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.hero-eyebrow {
    font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 2px;
    font-size: 12px; color: var(--gold); margin: 0 0 10px; font-weight: 600;
}
.hero h1 {
    color: #fff; font-size: clamp(36px, 6vw, 62px); line-height: 0.98; font-weight: 800;
    margin: 0 0 16px; max-width: 640px;
}
.hero-sub { color: rgba(255,255,255,0.78); font-size: 16px; max-width: 460px; line-height: 1.55; margin: 0; }
.hero-ridge { position: absolute; bottom: -1px; left: 0; width: 100%; height: 44px; fill: var(--sand); }

/* ---------- Filter panel ---------- */
.filter-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 20px 22px;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 14px; }
.filter-row-bottom { margin-top: 14px; align-items: flex-end; justify-content: space-between; }
.filter-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; min-width: 140px; }
.filter-field-search { flex: 1 1 200px; }
.filter-field-sort { flex: 0 1 220px; }
.filter-field span {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
    font-weight: 700; color: var(--text-muted);
}
.filter-field select,
.filter-field input[type="text"] {
    font-family: var(--font-body);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--sand);
    color: var(--text);
    font-size: 14px;
}
.filter-field select:focus,
.filter-field input:focus { border-color: var(--teal); }
.filter-actions { display: flex; align-items: center; gap: 16px; }

.btn-apply {
    display: inline-block; text-align: center; text-decoration: none;
    background: var(--clay); color: #fff; border: none;
    font-family: var(--font-body); font-weight: 700; font-size: 14px;
    padding: 11px 22px; border-radius: 8px; cursor: pointer;
}
.btn-apply:hover { background: var(--clay-dark); }
.btn-block { width: 100%; margin-top: 14px; }
.btn-text { background: none; border: none; color: var(--teal); font-weight: 600; font-size: 14px; text-decoration: underline; cursor: pointer; }

/* ---------- Results ---------- */
.results-head { margin: 28px 0 16px; }
.results-count { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin: 0; }

.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.tour-card {
    display: flex; flex-direction: column;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; text-decoration: none; color: var(--text);
    box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tour-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.tour-card-media { position: relative; aspect-ratio: 16/10; background: var(--line); overflow: hidden; }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card-noimg {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 13px; background: var(--sand);
}
.tour-card-pill {
    position: absolute; top: 12px; left: 12px;
    background: rgba(10, 63, 59, 0.85); color: #fff;
    font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
    backdrop-filter: blur(2px);
}
.tour-card-pill-gold { left: auto; right: 12px; background: var(--gold); color: var(--teal-dark); }

.tour-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tour-card-body h3 { font-size: 22px; margin: 0; color: var(--teal-dark); }
.tour-card-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin: 0; }
.tour-card-meta .dot { margin: 0 5px; }
.tour-card-foot {
    margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
    display: flex; align-items: center; justify-content: space-between;
}
.tour-card-price { font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--clay); }
.tour-card-price small { font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--text-muted); }
.tour-card-price-muted { color: var(--text-muted); font-size: 13px; }
.tour-card-cta { font-size: 13px; font-weight: 700; color: var(--teal); }

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center; padding: 60px 20px; background: var(--paper);
    border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.empty-state h2 { font-size: 24px; }
.empty-state p { color: var(--text-muted); margin: 0 0 14px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 28px 24px 40px; color: var(--text-muted); font-size: 13px; }

/* ---------- Detail page ---------- */
.detail-hero { position: relative; height: 360px; background: var(--teal-dark); overflow: hidden; }
.detail-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,63,59,0.25) 0%, rgba(10,63,59,0.85) 100%); }
.detail-hero-content { position: absolute; left: 0; right: 0; bottom: 0; max-width: 1180px; margin: 0 auto; padding: 0 24px 26px; color: #fff; }
.detail-eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--gold); margin: 0 0 6px; font-weight: 600; }
.detail-hero-content h1 { color: #fff; font-size: clamp(28px, 5vw, 46px); margin: 0 0 8px; }
.detail-hero-meta { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.85); margin: 0; }
.detail-hero-meta .dot { margin: 0 6px; }

.detail-page { padding-top: 36px; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.detail-section { margin-bottom: 34px; }
.detail-section h2 {
    font-size: 20px; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 4px; margin-bottom: 14px;
}
.detail-prose { line-height: 1.7; color: var(--text); }

.detail-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.detail-checklist li { padding-left: 22px; position: relative; line-height: 1.5; font-size: 14.5px; }
.detail-checklist li::before { content: "▲"; position: absolute; left: 0; top: 1px; font-size: 10px; color: var(--gold); }
.detail-checklist-plus li::before { content: "+"; color: var(--teal); font-weight: 800; font-size: 14px; top: -1px; }
.detail-checklist-minus li::before { content: "\2013"; color: var(--danger); font-weight: 800; font-size: 14px; top: -1px; }

.incl-excl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.incl-head { color: var(--teal); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.excl-head { color: var(--danger); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }

.itinerary-list { list-style: none; margin: 0; padding: 0; }
.itinerary-item {
    display: grid; grid-template-columns: 70px 1fr; gap: 16px;
    padding: 16px 0; border-top: 1px dashed var(--line);
}
.itinerary-item:first-child { border-top: none; }
.itinerary-day-num {
    font-family: var(--font-mono); font-weight: 600; font-size: 13px;
    color: var(--paper); background: var(--teal); border-radius: 8px;
    height: 34px; display: flex; align-items: center; justify-content: center;
}
.itinerary-day-body h3 { font-size: 16px; margin-bottom: 4px; }
.itinerary-day-body p { margin: 0 0 8px; line-height: 1.55; font-size: 14.5px; color: var(--text); }
.itinerary-day-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    font-family: var(--font-mono); font-size: 11px; background: var(--sand);
    border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; color: var(--text-muted);
}
.tag-stay { color: var(--clay); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.detail-sidebar { position: sticky; top: 20px; }
.booking-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card); padding: 22px;
}
.booking-price { font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: var(--clay); margin: 0 0 4px; }
.booking-price small { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); font-weight: 500; }
.booking-price-muted { font-size: 16px; color: var(--text-muted); }
.booking-subhead { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin: 18px 0 10px; }
.departure-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.departure-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; background: var(--sand);
}
.departure-date { font-family: var(--font-mono); font-weight: 600; }
.departure-status { font-weight: 600; color: var(--teal); }
.departure-item-closed { opacity: 0.55; }
.departure-item-closed .departure-status { color: var(--danger); }
.booking-note { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .tour-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
}
@media (max-width: 640px) {
    .tour-grid { grid-template-columns: 1fr; }
    .filter-row { flex-direction: column; }
    .filter-row-bottom { flex-direction: column; align-items: stretch; gap: 12px; }
    .filter-actions { justify-content: space-between; }
    .detail-checklist { grid-template-columns: 1fr; }
    .incl-excl-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 40px 20px 70px; }
}

@media (prefers-reduced-motion: reduce) {
    .tour-card, .gallery-item img { transition: none; }
}
