/* ============================================================
   Booking Favorite — stylesheet
   ElevenLabs / Stripe / Linear editorial restraint
   ============================================================ */

/* === Tokens ================================================= */
:root {
    --canvas:       #F7F5F0;
    --ink:          #18150F;
    --ink-mid:      #554433;
    --ink-faint:    #706860;
    --hairline:     #E3DFD8;
    --surface:      #FFFFFF;
    --accent:       #A85528;
    --accent-dk:    #8A4420;
    --accent-soft:  #D4A078;

    --ff-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --ff-sans:  'Inter', system-ui, -apple-system, sans-serif;

    --text-hero:    clamp(60px, 8vw, 108px);
    --text-section: clamp(36px, 4.5vw, 68px);
    --text-card:    clamp(20px, 2.2vw, 28px);
    --text-body:    17px;
    --text-sm:      14px;
    --text-xs:      14px;

    --lh-tight:  1.1;
    --lh-head:   1.2;
    --lh-body:   1.65;

    --section-pad: clamp(72px, 9vw, 112px);
    --max-w:       1200px;
    --gutter:      clamp(20px, 5vw, 56px);
    --card-gap:    clamp(32px, 4vw, 56px);

    --ease: cubic-bezier(.25, .46, .45, .94);
}

/* === Reset ================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--ff-sans);
    font-size: var(--text-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }

ul[role="list"] { list-style: none; }

a { color: var(--accent); text-decoration: none; }

/* === Layout ================================================= */
.container {
    margin-inline: auto;
    max-width: var(--max-w);
    padding-inline: var(--gutter);
    width: 100%;
}

/* === Navigation ============================================= */
.site-header {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    left: 0;
    position: sticky;
    right: 0;
    top: 0;
    z-index: 100;
}

.nav {
    align-items: center;
    display: flex;
    height: 64px;
    justify-content: space-between;
}

.nav__logo {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-family: var(--ff-serif);
    font-size: 27px;
    font-weight: 400;
    gap: 10px;
    letter-spacing: 0;
    text-decoration: none;
    transition: opacity 0.2s var(--ease);
}

.nav__logo-mark {
    display: block;
    flex-shrink: 0;
    height: 30px;
    width: 30px;
}

.nav__logo:hover { opacity: 0.6; }

.nav__links {
    align-items: center;
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav__links a {
    color: var(--ink-mid);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.nav__links a:hover { color: var(--ink); }

.nav__cta {
    background: var(--accent);
    border-radius: 9999px;
    color: #fff;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    text-decoration: none;
    transition: background 0.15s;
}

.nav__cta:hover { background: var(--accent-dk); }

.nav__cta-short { display: none; }

.nav__right {
    align-items: center;
    display: flex;
    gap: 32px;
}

.nav__burger {
    align-items: center;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    display: none;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 40px;
}

/* === Hero =================================================== */
.hero {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 65px);
    overflow: hidden;
    position: relative;
}

.hero__inner {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.hero__bg-icons {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero__bg-icon {
    color: #fff3e0;
    position: absolute;
    filter: drop-shadow(1px 1px 0px #55443333);
}

.hero__bg-icon--globe    { bottom: 18%;  font-size: 260px; left: 4%; }
.hero__bg-icon--map      { font-size: 160px; right: 28%; top: 8%; }
.hero__bg-icon--plane    { font-size: 130px; left: 21%; top: 24%;  transform: rotate(-25deg); }
.hero__bg-icon--landmark { bottom: 15%; font-size: 180px; right: 24%; }
.hero__bg-icon--images   { font-size: 110px; right: 14%; top: 50%; }
.hero__bg-icon--ship     { bottom: 25%; font-size: 140px; right: 44%; }

.hero__headline {
    color: var(--ink);
    font-family: var(--ff-serif);
    font-size: var(--text-hero);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
    margin-block: 24px 28px;
}

.hero__headline em {
    color: var(--ink-mid);
    font-style: italic;
}
.hero__headline span {
    color: #ff5b00;
    font-style: italic;
}
.hero__subline {
    color: var(--ink-mid);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 680px;
}

/* === Buttons ================================================ */
.btn {
    background: #ff5b00;
    border: 1px solid #ff5b00;
    border-radius: 9999px;
    color: #fff;
    display: inline-block;
    font-family: var(--ff-sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 12px 28px;
    text-decoration: none;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
    background: #b84306;
    border-color: #b84306;
    color: #fff;
}

/* === Eyebrow / section labels =============================== */
.eyebrow,
.section-label {
    color: var(--accent);
    font-family: var(--ff-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.section-header {
    margin-bottom: clamp(40px, 5vw, 64px);
    max-width: 680px;
}

.section-header h2 {
    color: var(--ink);
    font-family: var(--ff-serif);
    font-size: var(--text-section);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: var(--lh-head);
    margin-block: 16px 20px;
}

.section-sub {
    color: var(--ink-mid);
    font-size: 17px;
    line-height: 1.6;
    max-width: 520px;
}

/* === Why section ============================================ */
.why {
    background: var(--surface);
    border-block: 1px solid var(--hairline);
    padding-block: var(--section-pad);
}

.why__pillars {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 56px;
}

.pillar {
    border-top: 1px solid var(--hairline);
    padding: 32px 40px 32px 0;
}

.pillar:not(:last-child) {
    border-right: 1px solid var(--hairline);
    margin-right: 40px;
}

.pillar__num {
    color: var(--accent-soft);
    display: block;
    font-family: var(--ff-serif);
    font-size: clamp(72px, 10vw, 120px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.pillar h3 {
    color: var(--ink);
    font-family: var(--ff-serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 12px;
}

.pillar p {
    color: var(--ink-mid);
    font-size: 16px;
    line-height: 1.65;
}

/* === Agencies =============================================== */
.agencies {
    padding-block: var(--section-pad);
}

.agencies__list {
    display: block;
}

.agency-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.agency-card:hover {
    background: var(--canvas);
    border-color: #b8aea6;
}

.agency-card__link-wrap {
    color: inherit;
    display: grid;
    gap: clamp(20px, 3vw, 32px);
    grid-template-columns: 180px 1fr;
    padding: clamp(24px, 3vw, 40px);
    text-decoration: none;
}

@media (max-width: 700px) {
    .agency-card__link-wrap { grid-template-columns: 1fr; }
}

.agency-card__portrait img {
    border-radius: 6px;
    display: block;
    width: 100%;
}

.agency-card__meta {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.agency-card__loc-flag {
    border-radius: 2px;
    flex-shrink: 0;
    height: 14px;
    width: auto;
}

.agency-card__location {
    color: var(--ink-faint);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.agency-card__name {
    color: var(--ink);
    font-family: var(--ff-serif);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.agency-card__specialty {
    color: var(--ink-mid);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 560px;
}

.agency-card__quote {
    border-left: 2px solid var(--hairline);
    color: var(--ink-mid);
    font-family: var(--ff-serif);
    font-size: 18px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 28px;
    padding-left: 20px;
}

.agency-card__quote footer {
    color: var(--ink-faint);
    font-size: 14px;
    font-style: normal;
    font-family: var(--ff-sans);
    margin-top: 10px;
}

.agency-card__specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.agency-card__spec-tag {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: 9999px;
    color: var(--ink-faint);
    font-size: 14px;
    font-weight: 500;
    padding: 3px 12px;
    text-transform: capitalize;
}

.agency-card__langs-meta {
    align-items: center;
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.agency-card__langs-meta .fa-language {
    color: var(--ink-faint);
    font-size: 14px;
    margin-right: 2px;
}

.agency-card__lang-flag {
    border-radius: 2px;
    height: 14px;
    width: auto;
}

.agency-card__link {
    color: var(--accent);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.agency-card__link:hover { color: var(--accent-dk); }

.agencies__more {
    color: var(--ink-faint);
    font-size: 15px;
    margin-top: 40px;
    text-align: center;
}

/* === Map ==================================================== */
.map-wrap {
    margin-top: 64px;
}

#agency-map {
    border-radius: 8px;
    box-shadow:0px 0px 20px #00000011;
    height: 450px;
    width: 100%;
}

.maplibregl-popup-content {
    border-radius: 6px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    font-family: var(--ff-sans) !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
}

.map-popup__link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.map-popup__link strong {
    color: var(--ink);
    display: block;
    margin-bottom: 2px;
}

.map-popup__link span {
    color: var(--ink-faint);
}

.map-popup__link:hover strong { color: var(--accent); }

.map-marker {
    background: var(--accent);
    border: 2px solid var(--canvas);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(168, 85, 40, 0.4);
    cursor: pointer;
    height: 20px;
    transition: transform 0.15s var(--ease);
    width: 20px;
}

.map-marker:hover { transform: scale(1.3); }

/* === Pending badge (admin preview) ========================= */
.badge--pending-corner {
    background: #FEF9C3;
    border: 1px solid #FDE047;
    border-radius: 4px;
    color: #854D0E;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 3px 10px;
    position: absolute;
    right: 0;
    text-transform: uppercase;
    top: clamp(40px, 5vw, 64px);
}

/* === Trips ================================================== */
.trips {
    background: var(--surface);
    border-top: 1px solid var(--hairline);
    padding-block: var(--section-pad);
}

.trips__grid {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
    .trips__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
    .trips__grid { grid-template-columns: repeat(5, 1fr); }
}

.trip-card {
    position: relative;
}

.trip-card .badge--pending-corner {
    right: 8px;
    top: 8px;
}

.trip-card__link {
    display: block;
    text-decoration: none;
}

.trip-card__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.img-placeholder--trip {
    align-items: flex-end;
    background: var(--hairline);
    color: var(--ink-faint);
    display: flex;
    font-size: 14px;
    font-weight: 500;
    height: 220px;
    letter-spacing: 0.3px;
    padding: 12px;
    width: 100%;
    transition: opacity 0.2s var(--ease);
}

.trip-card__link:hover .img-placeholder--trip { opacity: 0.85; }

.trip-card__body {
    padding: 16px 4px 20px;
}

.trip-card__name {
    color: var(--ink);
    font-family: var(--ff-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 6px;
}

.trip-card__agency {
    color: var(--ink-faint);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.trip-card__duration {
    color: var(--ink-mid);
    font-size: 14px;
}

/* === Footer ================================================= */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding-block: clamp(56px, 7vw, 80px) 40px;
}

.footer__grid {
    display: grid;
    gap: clamp(32px, 4vw, 64px);
    grid-template-columns: 2fr 1fr 1fr 1fr;
    margin-bottom: 56px;
}

.footer__logo {
    margin-bottom: 14px;
}

.footer__brand p {
    color: var(--ink-mid);
    font-size: 15px;
    line-height: 1.6;
    max-width: 280px;
}

.footer__col h4 {
    color: var(--ink);
    font-family: var(--ff-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__col a {
    color: var(--ink-mid);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer__col a:hover { color: var(--ink); }

.footer__pending-p {
    background: var(--hairline);
    border-radius: 9999px;
    color: var(--ink-faint);
    font-size: 14px;
    font-weight: 500;
    margin-left: 6px;
    padding: 0 6px;
    vertical-align: middle;
}

.footer__bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
}

.footer__bottom p {
    color: var(--ink-faint);
    font-size: 14px;
}

/* === Focus states (accessibility) =========================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* === Responsive ============================================= */
@media (max-width: 768px) {
    .nav__burger { display: flex; }
    .nav__cta-full { display: none; }
    .nav__cta-short { display: inline; }

    .nav__links {
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        border-top: 1px solid var(--hairline);
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        z-index: 99;
    }

    .site-header.is-open .nav__links { display: flex; }

    .nav__links a {
        display: block;
        padding: 12px var(--gutter);
    }
}

@media (max-width: 900px) {
    .why__pillars {
        grid-template-columns: 1fr;
    }
    .pillar:not(:last-child) {
        border-right: none;
        margin-right: 0;
    }
    .pillar { padding-right: 0; }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    :root { --text-hero: clamp(48px, 6.5vw, 80px); }
    .hero__bg-icon--globe    { font-size: 180px; }
    .hero__bg-icon--map      { font-size: 112px; }
    .hero__bg-icon--plane    { font-size: 90px; }
    .hero__bg-icon--landmark { font-size: 126px; }
    .hero__bg-icon--images   { font-size: 77px; }
    .hero__bg-icon--ship     { font-size: 98px; }
}

@media (max-width: 768px) {
    :root { --text-hero: clamp(36px, 6vw, 56px); }
    .hero__subline { font-size: 16px; }
    .hero__bg-icon--globe    { font-size: 120px; }
    .hero__bg-icon--map      { font-size: 80px; }
    .hero__bg-icon--plane    { font-size: 64px; }
    .hero__bg-icon--landmark { font-size: 90px; }
    .hero__bg-icon--images   { font-size: 56px; }
    .hero__bg-icon--ship     { font-size: 70px; }
}

@media (max-width: 480px) {
    :root { --text-hero: clamp(28px, 7vw, 40px); }
    .hero__subline { font-size: 15px; }
    .hero__bg-icon--globe    { font-size: 80px; }
    .hero__bg-icon--map      { font-size: 54px; }
    .hero__bg-icon--plane    { font-size: 44px; }
    .hero__bg-icon--landmark { font-size: 60px; }
    .hero__bg-icon--images   { font-size: 38px; }
    .hero__bg-icon--ship     { font-size: 48px; }
}

@media (max-width: 600px) {
    .nav__logo {
        font-size: 21px;
    }
    .nav__cta {
        padding: 5px 12px;
    }
    .trips__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
}
