:root {
    --color-bg: #f7f5f1;
    --color-surface: #ffffff;
    --color-text: #1d2939;
    --color-muted: #667085;
    --color-primary: #0f4c81;
    --color-primary-dark: #0a3457;
    --color-accent: #f5a623;
    --color-border: #e2e2e0;
    --color-error: #b3261e;
    --color-future: #2f6feb;
    --color-current: #1a8f5e;
    --color-past: #8a8a8a;
    --shadow-card: 0 10px 30px rgba(15, 76, 129, 0.08);
    --shadow-card-hover: 0 18px 45px rgba(15, 76, 129, 0.18);
    --radius-lg: 18px;
    --radius-md: 12px;
    --color-header-bg: rgba(255, 255, 255, 0.92);
    --color-header-border: rgba(15, 76, 129, 0.08);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--color-primary-dark);
    letter-spacing: -0.01em;
}

a {
    color: var(--color-primary);
}

.site-header {
    background: var(--color-header-bg);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--color-header-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-nav {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.15;
    text-decoration: none;
    margin-right: auto;
}

.brand-main {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-primary-dark);
}

.brand-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
}

.site-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.site-footer {
    text-align: center;
    color: var(--color-muted);
    padding: 2rem 1.25rem;
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0 0 0.6rem;
}

.install-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.install-app-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.install-app-btn[hidden] {
    display: none;
}

.install-instructions {
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    color: var(--color-muted);
}

.install-instructions[hidden] {
    display: none;
}

.hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem;
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background:
        linear-gradient(180deg, rgba(10, 52, 87, 0.6) 0%, rgba(10, 52, 87, 0.78) 100%),
        url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
}

.hero .eyebrow {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin: 0 0 0.75rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 40ch;
    margin: 0 auto 2rem;
}

.button {
    display: inline-block;
    background: var(--color-accent);
    color: #1d2939;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:after {
    content: " \2192";
}

.button:hover {
    background: #ffb84d;
    transform: translateY(-1px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.button-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.lookup-section, .my-reservations-section {
    background: var(--color-surface);
    border: 1px solid rgba(15, 76, 129, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.lookup-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: end;
}

.lookup-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
}

.lookup-form input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    text-transform: uppercase;
}

.lookup-form button {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.lookup-form button:hover {
    background: var(--color-primary-dark);
}

.error-message {
    color: var(--color-error);
    font-weight: 600;
}

.legend {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.legend li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-future { background: var(--color-future); }
.dot-current { background: var(--color-current); }
.dot-past { background: var(--color-past); }

.reservation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reservation-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(15, 76, 129, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reservation-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.reservation-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.reservation-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.reservation-title {
    font-weight: 600;
}

.reservation-destination, .reservation-dates {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.reservation-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.empty-state {
    color: var(--color-muted);
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
}

.reservation-detail {
    background: var(--color-surface);
    border: 1px solid rgba(15, 76, 129, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
}

.reservation-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.reservation-detail-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reservation-detail-header h1 {
    margin: 0;
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.classification-label {
    color: var(--color-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.reservation-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1rem;
    margin-top: 1.25rem;
}

.reservation-facts dt {
    color: var(--color-muted);
}

.reservation-facts dd {
    margin: 0;
}

.travelers-section {
    margin-top: 1.75rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

.travelers-section h2 {
    font-size: 1.05rem;
    margin: 0 0 0.85rem;
}

.traveler-card {
    border: 1px solid rgba(15, 76, 129, 0.06);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}

.traveler-card:last-child {
    margin-bottom: 0;
}

.traveler-name {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.traveler-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.3rem 1rem;
    font-size: 0.9rem;
}

.traveler-facts dt {
    color: var(--color-muted);
}

.traveler-facts dd {
    margin: 0;
}

.offline-banner {
    background: #fff3cd;
    border: 1px solid #ffe08a;
    color: #7a5b00;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.itinerary-section {
    margin-top: 1.75rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
}

.itinerary-section h2 {
    font-size: 1.05rem;
    margin: 0 0 0.85rem;
}

.itinerary-day {
    border: 1px solid rgba(15, 76, 129, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.itinerary-day:last-child {
    margin-bottom: 0;
}

.itinerary-day summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.itinerary-day summary::-webkit-details-marker {
    display: none;
}

.itinerary-day summary::after {
    content: "\25BE";
    margin-left: auto;
    color: var(--color-muted);
    transition: transform 0.2s ease;
}

.itinerary-day[open] summary::after {
    transform: rotate(180deg);
}

.day-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9rem;
}

.day-location {
    color: var(--color-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.itinerary-day-body {
    padding: 0 1rem 1rem 3.55rem;
}

.day-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
}

.day-description {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0 0 0.85rem;
}

.excursion-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.excursion-card {
    background: var(--color-bg);
    border: 1px dashed rgba(15, 76, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.excursion-card:last-child {
    margin-bottom: 0;
}

.excursion-info { flex: 1; min-width: 180px; }

.excursion-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.excursion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    align-items: center;
}

.excursion-price {
    font-weight: 700;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

.excursion-book-btn {
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.excursion-book-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.pace-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
}

.pace-intensive { background: rgba(217, 83, 79, 0.15); color: #a5342f; }
.pace-sightseeing { background: rgba(47, 111, 235, 0.12); color: var(--color-future); }
.pace-light { background: rgba(26, 143, 94, 0.15); color: var(--color-current); }

.no-excursions {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-style: italic;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #14161a;
        --color-surface: #1c1f24;
        --color-text: #f0f0ef;
        --color-muted: #a2a5ab;
        --color-border: #2c3036;
        --color-primary: #3f9db0;
        --color-primary-dark: #6fc2d4;
        --color-header-bg: rgba(28, 31, 36, 0.92);
        --color-header-border: rgba(255, 255, 255, 0.08);
    }

    h1, h2, h3, h4 {
        color: var(--color-primary-dark);
    }
}
