/* =================================================================
   AppUltra • Módulo de Turismo
   Design system: editorial travel magazine × warm minimalism
   Typography: Fraunces (display serif) + Inter Tight (body)
   Mobile-first. Responsivo até desktop.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01','cv11';
    min-height: 100vh;
    min-height: 100dvh;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
    /* As variáveis de cor são injetadas via <style> pelo PHP.
       Se por algum motivo não vierem, usamos estes fallbacks. */
    --primary:        #0B1F3A;
    --primary-soft:   #1B3358;
    --secondary:      #E8B86D;
    --secondary-soft: #F4D9A6;
    --accent:         #D4572A;
    --bg:             #FAF7F2;
    --surface:        #FFFFFF;
    --text:           #0B1F3A;
    --text-muted:     #6B6255;
    --border:         #E5DED0;
    --success:        #2F7D5B;
    --danger:         #B4452B;

    --font-display: 'Fraunces', 'DM Serif Display', Georgia, serif;
    --font-body:    'Inter Tight', 'Figtree', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 24px;
    --radius-xl: 36px;

    --shadow-sm:  0 1px 2px rgba(11,31,58,.06);
    --shadow:     0 8px 28px -12px rgba(11,31,58,.18);
    --shadow-lg:  0 22px 60px -20px rgba(11,31,58,.28);

    --ease:     cubic-bezier(.4,0,.2,1);
    --ease-out: cubic-bezier(.16,1,.3,1);

    --h-top: 64px;       /* topbar mobile */
    --h-bot: 72px;       /* bottombar mobile */
    --maxw:  1200px;
}

/* ---------- Typography ---------- */
h1,h2,h3,h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary);
}
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--text); }
.muted { color: var(--text-muted); }
.eyebrow {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--accent);
}

/* ---------- Layout base ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }

/* ---------- Top bar (mobile + desktop) ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 247, 242, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.topbar-inner {
    height: var(--h-top);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -.02em;
    color: var(--primary);
    font-weight: 500;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(6px);
}
.nav-desktop { display: none; gap: 2rem; }
.nav-desktop a {
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: .4rem 0;
    transition: color .2s var(--ease);
}
.nav-desktop a::after {
    content:''; position:absolute; left:0; bottom:-2px;
    width:0; height:2px; background: var(--accent);
    transition: width .3s var(--ease-out);
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a:hover::after { width: 100%; }
.topbar-actions { display:flex; gap:.5rem; align-items:center; }

.menu-btn {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    transition: background .2s var(--ease);
}
.menu-btn:hover { background: color-mix(in srgb, var(--border) 60%, transparent); }

@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
    .menu-btn { display: none; }
}

/* ---------- Mobile drawer ---------- */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(11,31,58,.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(86%, 360px);
    background: var(--surface);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease-out);
    box-shadow: var(--shadow-lg);
}
.drawer[data-open="true"] .drawer-panel { transform: translateX(0); }
.drawer-panel a {
    padding: .9rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: background .2s var(--ease), border-color .2s var(--ease);
}
.drawer-panel a:hover { background: var(--bg); border-color: var(--border); }
.drawer-panel a.active { background: var(--primary); color: var(--surface); }
.drawer-header { display:flex; justify-content:space-between; align-items:center; margin-bottom: 1rem; }

/* ---------- Bottom navigation (mobile only, logged area) ---------- */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border);
    padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom, 0));
    height: calc(var(--h-bot) + env(safe-area-inset-bottom, 0));
    display: flex;
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    font-size: .7rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: .25rem;
    border-radius: 12px;
    position: relative;
}
.bottom-nav a svg { stroke-width: 1.75; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active::before {
    content:''; position:absolute; top:-.5rem; left:50%;
    width:28px; height:3px; border-radius:2px;
    background: var(--accent);
    transform: translateX(-50%);
}
.has-bottom-nav { padding-bottom: calc(var(--h-bot) + 2rem); }
@media (min-width: 1024px) {
    .bottom-nav { display: none; }
    .has-bottom-nav { padding-bottom: 2rem; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: .95rem;
    transition: transform .2s var(--ease-out), box-shadow .2s var(--ease), background .2s var(--ease);
    will-change: transform;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    background: var(--primary);
    color: var(--surface);
    box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:hover { background: var(--primary-soft); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn-accent {
    background: var(--accent);
    color: var(--surface);
    box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--primary); }
.btn-gold {
    background: var(--secondary);
    color: var(--primary);
}
.btn-gold:hover { background: var(--secondary-soft); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 2rem 0 3rem;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
/* no mobile, a imagem aparece depois do texto */
.hero-content { order: 1; }
.hero-visual  { order: 2; }
@media (min-width: 960px) {
    .hero { padding: 4rem 0 5rem; }
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
    /* no desktop o texto fica à esquerda e a imagem à direita (ordem natural) */
    .hero-content { order: initial; }
    .hero-visual  { order: initial; }
}
.hero-content .eyebrow { margin-bottom: 1.25rem; }
.hero h1 {
    margin-bottom: 1.25rem;
}
.hero h1 em {
    font-style: italic;
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--accent);
    position: relative;
}
.hero-sub {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 48ch;
    margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-visual {
    position: relative;
    aspect-ratio: 4/5;
    max-height: 60vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
@media (max-width: 959px) {
    /* no mobile, limita altura pra imagem não dominar a tela */
    .hero-visual { aspect-ratio: 16/10; max-height: 50vh; }
}
.hero-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--ease-out);
}
.hero-visual:hover img { transform: scale(1.05); }
.hero-visual::after {
    content:''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,31,58,.35), transparent 50%);
    pointer-events: none;
}
.hero-badge {
    position: absolute;
    bottom: 1.25rem; left: 1.25rem;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    padding: .85rem 1.1rem;
    border-radius: 14px;
    display: flex; align-items: center; gap: .85rem;
    box-shadow: var(--shadow);
    z-index: 2;
}
.hero-badge-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); }
    50%     { box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 10%, transparent); }
}
.hero-badge-text { font-size: .85rem; font-weight: 500; }
.hero-badge-text small { display:block; color: var(--text-muted); font-size: .72rem; }

/* Decorative numbered stats row */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
}
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
}
.stat-label { font-size: .75rem; color: var(--text-muted); margin-top: .3rem; }

/* ---------- Search widget ---------- */
.search-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}
@media (min-width: 768px) {
    .search-widget { padding: 1.75rem; }
}
.search-tabs {
    display: flex;
    gap: .25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar { display:none; }
.search-tab {
    padding: .6rem 1rem;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.search-tab[data-active] {
    color: var(--primary);
    border-bottom-color: var(--accent);
}
.search-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .search-grid { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
.field label {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    font-size: .95rem;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* ---------- Section header ---------- */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.section-head .title { max-width: 32ch; }
.section-head .title h2 { margin-top: .5rem; }
.section-head-right { color: var(--text-muted); font-size: .9rem; }

/* ---------- Package cards ---------- */
.pkg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .pkg-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }
.pkg-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
    display: flex; flex-direction: column;
}
.pkg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--secondary) 50%, var(--border));
}
.pkg-media {
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.pkg-media img { width:100%; height:100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.pkg-card:hover .pkg-media img { transform: scale(1.06); }
.pkg-tag {
    position: absolute;
    top: .9rem; left: .9rem;
    padding: .3rem .65rem;
    background: var(--surface);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary);
    border: 1px solid color-mix(in srgb, var(--secondary) 40%, transparent);
}
.pkg-body { padding: 1.25rem 1.25rem .5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.pkg-body h3 { font-size: 1.3rem; }
.pkg-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-muted); }
.pkg-highlights { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.pkg-highlight {
    font-size: .72rem;
    padding: .2rem .55rem;
    background: var(--bg);
    border-radius: 999px;
    color: var(--text-muted);
}
.pkg-footer {
    margin-top: auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px dashed var(--border);
}
.pkg-price { min-width: 0; }
.pkg-price small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); display:block; }
.pkg-price strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
}
.pkg-footer .btn { flex-shrink: 0; }

/* ---------- Destinations strip ---------- */
.dest-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 1rem;
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.dest-strip::-webkit-scrollbar { display:none; }
@media (min-width: 640px) { .dest-strip { grid-auto-columns: 40%; } }
@media (min-width: 1024px) { .dest-strip { grid-auto-columns: 22%; } }
.dest-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--shadow);
}
.dest-card img {
    width:100%; height:100%; object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.dest-card:hover img { transform: scale(1.08); }
.dest-card::after {
    content:''; position:absolute; inset:0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
}
.dest-info {
    position: absolute;
    bottom: 1rem; left: 1rem; right: 1rem;
    color: #fff;
    z-index: 2;
}
.dest-info small { display:block; opacity: .85; font-size: .75rem; letter-spacing: .04em; }
.dest-info h4 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: .15rem 0 .4rem;
}
.dest-info span { font-size: .78rem; opacity: .9; }

/* ---------- Values / institutional ---------- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color .3s var(--ease), transform .3s var(--ease-out);
}
.value-card:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    transform: translateY(-2px);
}
.value-icon {
    font-size: 1.9rem;
    display: inline-block;
    margin-bottom: .9rem;
}
.value-card h4 { margin-bottom: .4rem; }
.value-card p { color: var(--text-muted); font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}
.testimonial::before {
    content: '“';
    position: absolute;
    top: -.5rem; left: 1.25rem;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: color-mix(in srgb, var(--secondary) 70%, transparent);
    z-index: 0;
}
.testimonial p { position: relative; z-index: 1; font-size: .98rem; line-height: 1.6; }
.stars { color: var(--secondary); letter-spacing: .15em; font-size: .9rem; }
.testimonial-author {
    display: flex; gap: .85rem; align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.testimonial-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { font-weight: 600; font-size: .92rem; }
.testimonial-author small { display: block; color: var(--text-muted); font-size: .78rem; }

/* ---------- Footer ---------- */
.footer {
    background: var(--primary);
    color: color-mix(in srgb, var(--surface) 85%, transparent);
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
}
.footer h4 { color: var(--secondary); font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer a { display:block; padding: .3rem 0; font-size: .9rem; transition: color .2s var(--ease); }
.footer a:hover { color: var(--secondary); }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid color-mix(in srgb, var(--surface) 15%, transparent);
    display: flex; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap;
    font-size: .82rem;
    opacity: .75;
}

.footer-brand .footer-tagline { font-size: .92rem; line-height: 1.55; opacity: .78; margin-bottom: 1rem; max-width: 34ch; }
.footer-col ul, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { padding: .3rem 0; font-size: .9rem; display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact a { display: inline; padding: 0; }
.footer-certs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ---------- Chips ---------- */
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    background: var(--secondary-soft);
    color: var(--primary);
    white-space: nowrap;
}
.chip-outline {
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--surface) 25%, transparent);
    color: color-mix(in srgb, var(--surface) 90%, transparent);
}
.chip-accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.chip-success { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.chip-danger { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.chip-muted { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text-muted); }

/* ---------- Badges ---------- */
.badge-dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
}
.badge-dot.pending { background: var(--secondary); }
.badge-dot.danger { background: var(--danger); }

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}
.empty-state .empty-ico { font-size: 2.5rem; margin-bottom: .75rem; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin-bottom: .5rem; }
.empty-state p { max-width: 40ch; margin: 0 auto 1.25rem; }

/* ---------- Document list ---------- */
.doc-list { display: flex; flex-direction: column; gap: .5rem; }
.doc-row {
    display: flex; align-items: center; gap: .85rem;
    padding: .85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.doc-row:hover { border-color: var(--accent); transform: translateX(2px); }
.doc-row .doc-ico {
    width: 38px; height: 38px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--secondary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.doc-row strong { font-size: .95rem; font-weight: 600; }
.doc-row small { display: block; color: var(--text-muted); font-size: .78rem; }

/* ---------- Service timeline ---------- */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px;
    width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding: .25rem 0 1.25rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -1.5rem; top: .55rem;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
}
.timeline-item .t-time { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.timeline-item .t-title { font-weight: 600; font-size: .98rem; margin-top: .15rem; }
.timeline-item .t-meta { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; display: flex; gap: .5rem; align-items: center; }

/* ---------- Invoice list ---------- */
.invoice-row {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: .5rem;
}
.invoice-row .inv-info { flex: 1; min-width: 0; }
.invoice-row .inv-info strong { display: block; font-size: .95rem; font-weight: 600; }
.invoice-row .inv-info small { color: var(--text-muted); font-size: .78rem; }
.invoice-row .inv-amount { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; text-align: right; }

/* ---------- Quick contacts (agent) ---------- */
.contact-row {
    display: flex; align-items: center; gap: .85rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    transition: background .2s var(--ease);
}
.contact-row:hover { background: var(--secondary-soft); }
.contact-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.contact-row .c-info { flex: 1; min-width: 0; }
.contact-row .c-info strong { display: block; font-size: .92rem; font-weight: 600; }
.contact-row .c-info small { color: var(--text-muted); font-size: .78rem; }
.contact-row .c-actions { display: flex; gap: .35rem; }
.icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--secondary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    transition: transform .15s var(--ease), background .2s var(--ease);
    text-decoration: none;
}
.icon-btn:hover { transform: scale(1.08); background: var(--secondary); }
.icon-btn.wa { background: #25D36622; color: #128C4B; }
.icon-btn.wa:hover { background: #25D366; color: white; }

/* ---------- Two-column agent layout ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 2fr 1fr; } }

/* ---------- Chat (quote/support) ---------- */
.chat-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Altura fixa igual à viewport (menos topbar). Usa svh/dvh no iOS para
       respeitar a barra inferior do Safari, com fallback pra vh. */
    height: calc(100vh - var(--h-top));
    height: calc(100svh - var(--h-top));
    display: flex; flex-direction: column;
    overflow: hidden; /* evita que o conteúdo interno empurre a página */
}
.chat-header {
    display: flex; align-items: center; gap: 1rem;
    padding: .85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: .75rem 0 .5rem;
    flex-shrink: 0;
}
.chat-avatar {
    width: 44px; height: 44px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.chat-header h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.chat-header small { color: var(--success); font-size: .78rem; display: inline-flex; gap: .4rem; align-items: center; }
.chat-header small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }

/* Barra de progresso fica logo abaixo do header, sem tomar espaço */
.chat-shell .chat-progress { flex-shrink: 0; margin-bottom: .5rem; }

.chat-messages {
    flex: 1 1 auto;
    min-height: 0;             /* essencial p/ permitir overflow em flexbox */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: .5rem 0 1rem;
    scroll-behavior: smooth;
}
.msg { max-width: 88%; padding: .85rem 1.1rem; border-radius: 16px; line-height: 1.45; animation: msgIn .4s var(--ease-out) backwards; }
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.msg-agent {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top-left-radius: 4px;
    align-self: flex-start;
}
.msg-user {
    background: var(--primary);
    color: var(--surface);
    border-top-right-radius: 4px;
    align-self: flex-end;
}
.msg-typing { align-self: flex-start; display: inline-flex; gap: .3rem; padding: .9rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; border-top-left-radius: 4px; }
.msg-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); animation: dot 1.2s infinite; }
.msg-typing span:nth-child(2) { animation-delay: .2s; }
.msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes dot {
    0%,80%,100% { transform: scale(.6); opacity: .4; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-input-area {
    flex-shrink: 0;
    padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.chat-input-area .options {
    display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem;
}
.chat-input-area .options-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
}
.opt-btn {
    padding: .85rem 1rem;
    border: 1.5px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    font-weight: 500;
    text-align: left;
    font-size: .93rem;
    transition: all .2s var(--ease);
}
.opt-btn:hover {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, var(--surface));
}
.opt-btn[data-selected="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--surface);
}
.chat-text-row {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: .4rem .4rem .4rem 1rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.chat-text-row:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 8%, transparent);
}
.chat-text-row input, .chat-text-row textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: .6rem 0;
    resize: none;
    font-size: .95rem;
}
.chat-text-row input:focus, .chat-text-row textarea:focus { outline: none; }
.send-btn {
    width: 42px; height: 42px;
    background: var(--primary);
    color: var(--surface);
    border-radius: 50%;
    display: grid; place-items: center;
    transition: transform .2s var(--ease-out);
    flex-shrink: 0;
}
.send-btn:hover { transform: scale(1.08); }
.send-btn:disabled { opacity: .5; cursor: not-allowed; }
.chat-progress {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.chat-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    transition: width .4s var(--ease-out);
}

/* ---------- Auth pages ---------- */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .auth-wrap { grid-template-columns: 1fr 1.1fr; }
}
.auth-hero {
    display: none;
    position: relative;
    background: var(--primary);
    color: var(--surface);
    overflow: hidden;
}
@media (min-width: 1024px) { .auth-hero { display: block; } }
.auth-hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .45;
    mix-blend-mode: luminosity;
}
.auth-hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-hero h1 { color: var(--surface); font-size: 3rem; max-width: 15ch; }
.auth-hero h1 em { color: var(--secondary); font-style: italic; font-weight: 300; }
.auth-form {
    padding: 2rem 1.5rem;
    display: flex; flex-direction: column; justify-content: center;
    min-height: 100vh;
}
.auth-form-inner { max-width: 420px; margin: 0 auto; width: 100%; }
.auth-form-inner h2 { margin-bottom: .5rem; font-weight: 400; }
.auth-form-inner p.intro { color: var(--text-muted); margin-bottom: 2rem; }
.auth-form-inner .field + .field { margin-top: 1rem; }
.auth-error {
    padding: .75rem 1rem;
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    color: var(--danger);
    border-radius: 10px;
    font-size: .88rem;
    margin-bottom: 1rem;
}
.auth-hint {
    margin-top: 1.5rem; padding: 1rem;
    background: var(--bg); border: 1px dashed var(--border); border-radius: 12px;
    font-size: .85rem; color: var(--text-muted);
}
.auth-hint code { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }

/* ---------- Logged: dashboard hero (traveler) ---------- */
.page-head {
    padding: 2rem 0 1rem;
}
.greeting { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 400; }
.greeting em { font-style: italic; color: var(--accent); }
.greeting-sub { color: var(--text-muted); margin-top: .35rem; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.stat-card .label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.stat-card .value { font-family: var(--font-display); font-size: 1.8rem; margin-top: .4rem; }
.stat-card .delta { font-size: .8rem; margin-top: .3rem; }
.stat-card .delta.up   { color: var(--success); }
.stat-card .delta.down { color: var(--danger); }

/* ---------- Trip cards (logged) ---------- */
.trip-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease);
}
.trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trip-cover {
    aspect-ratio: 16/7;
    position: relative;
    overflow: hidden;
}
.trip-cover img { width:100%; height:100%; object-fit:cover; }
.trip-cover::after {
    content:''; position:absolute; inset:0;
    background: linear-gradient(to top, rgba(11,31,58,.7), transparent 65%);
}
.trip-cover-content {
    position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
    color: #fff; z-index: 1;
}
.trip-status {
    display: inline-block;
    padding: .2rem .6rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    margin-bottom: .4rem;
}
.trip-status.confirmed { background: var(--success); }
.trip-status.in_progress { background: var(--accent); }
.trip-status.completed { background: rgba(255,255,255,.2); }

.trip-card h3 { color: #fff; font-size: 1.3rem; }
.trip-dates { font-size: .85rem; opacity: .9; margin-top: .2rem; }
.trip-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.trip-progress {
    background: var(--bg); height: 6px; border-radius: 3px; overflow: hidden;
}
.trip-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    border-radius: 3px;
}
.trip-finance {
    display: flex; justify-content: space-between; font-size: .85rem;
}
.trip-finance strong { font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- Countdown ---------- */
.countdown {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
    color: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.countdown::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, color-mix(in srgb, var(--secondary) 40%, transparent) 0%, transparent 70%);
}
.countdown .eyebrow { color: var(--secondary); }
.countdown .eyebrow::before { background: var(--secondary); }
.countdown h3 { color: #fff; font-size: 1.4rem; margin: .5rem 0 1rem; }
.countdown-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
    margin-top: 1rem;
}
.countdown-cell {
    background: rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .8rem .5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}
.countdown-cell strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
    display: block;
    color: var(--secondary);
}
.countdown-cell small {
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
}

/* ---------- Agent dashboard specifics ---------- */
.agent-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .agent-grid { grid-template-columns: 2fr 1fr; } }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.panel h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 1rem; }

.traveler-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem;
    border-radius: 12px;
    transition: background .2s var(--ease);
    cursor: pointer;
}
.traveler-row:hover { background: var(--bg); }
.traveler-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.traveler-row .t-name { font-weight: 500; }
.traveler-row .t-sub { font-size: .78rem; color: var(--text-muted); }
.traveler-row .t-right { margin-left: auto; display: flex; gap: .4rem; }
.tag-tier {
    padding: .15rem .55rem;
    font-size: .7rem; font-weight: 600; letter-spacing: .05em;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.tag-tier.gold { background: color-mix(in srgb, var(--secondary) 20%, transparent); color: #7a5a0e; border-color: color-mix(in srgb, var(--secondary) 40%, transparent); }
.tag-tier.platinum { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.tag-tier.silver { background: #e8eaed; color: #5a6069; border-color: #c8cdd2; }

.birthday-list { display: flex; flex-direction: column; gap: .5rem; }
.birthday-item {
    display:flex; gap:.8rem; align-items:center;
    padding: .7rem .8rem;
    background: color-mix(in srgb, var(--secondary) 10%, transparent);
    border-left: 3px solid var(--secondary);
    border-radius: 8px;
    font-size: .88rem;
}
.birthday-item .date { margin-left: auto; font-weight: 600; color: var(--accent); }

/* Mode banner when agent impersonates traveler */
.impersonate-banner {
    background: var(--accent);
    color: #fff;
    padding: .7rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
    font-size: .87rem;
    flex-wrap: wrap;
}
.impersonate-banner a { text-decoration: underline; font-weight: 600; }

/* ---------- Tabs ---------- */
.tabs {
    display: flex; gap: .25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display:none; }
.tabs button {
    padding: .75rem 1.15rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tabs button.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}
.tabs button:hover:not(.active) { color: var(--text); }

/* ---------- Toast ---------- */
.toast-zone {
    position: fixed;
    top: calc(var(--h-top) + 1rem);
    right: 1rem; left: 1rem;
    z-index: 300;
    display: flex; flex-direction: column; gap: .5rem;
    pointer-events: none;
}
@media (min-width: 640px) { .toast-zone { left: auto; max-width: 360px; } }
.toast {
    pointer-events: auto;
    background: var(--primary);
    color: var(--surface);
    padding: .85rem 1.15rem;
    border-radius: 14px;
    font-size: .9rem;
    display: flex; gap: .75rem; align-items: flex-start;
    box-shadow: var(--shadow-lg);
    animation: toastIn .35s var(--ease-out);
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Forms (general) ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Utils ---------- */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.text-center { text-align: center; }
.text-sm { font-size: .88rem; }
.text-xs { font-size: .78rem; }

/* ---------- Skeleton loaders ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--border) 0%, color-mix(in srgb, var(--border) 50%, var(--bg)) 50%, var(--border) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Page fade-in ---------- */
main { animation: pageIn .5s var(--ease-out); }
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scrollbar minimalismo ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
