/* ============================================================
   Caminhos de Alagoas — Theme CSS (Premium Edition)
   ============================================================ */

/* Brand fonts */
/* Fraunces — modern serif with personality, imported via Google Fonts in HTML.
   Carilliantine kept for tiny decorative script accents only.
   Skyscapers REMOVED — replaced by Fraunces for better readability. */
@font-face {
    font-family: 'Carilliantine';
    src: url('../fonts/Carilliantine.otf') format('opentype');
    font-weight: normal;
    font-display: swap;
}

:root {
    /* Paleta principal */
    --horizonte: #3A6B8A;
    --horizonte-dark: #2D5470;
    --horizonte-light: #5A8FB2;
    --terracota: #C96B4A;
    --terracota-dark: #A85437;
    --terracota-light: #E28D6E;
    --maresia: #7A9D6E;
    --maresia-dark: #5E7E55;
    --maresia-light: #A3C297;
    --areia: #F4E4C1;
    --areia-light: #FAF1DE;
    --areia-dark: #D4B584;
    --sepia: #3E2E1F;
    --sand: #FDF8EF;

    /* Aliases (legacy names used in views) */
    --azul-profundo: #2D5470;
    --azul-profundo-dark: #1E3A52;

    /* Backgrounds */
    --bg-page: #FDF8EF;
    --bg-card: #FFFFFF;
    --bg-surface: #F8F2E5;
    --bg-accent: #F4E4C1;
    --bg-dark: #2D3E4F;

    /* Texto */
    --text-primary: #2D3E4F;
    --text-secondary: #5A6B7A;
    --text-muted: #8A96A3;
    --text-on-dark: #FFFFFF;
    --text-on-accent: #FFFFFF;

    /* Borders */
    --border-default: #E8DFC8;
    --border-strong: #C7BCA0;

    /* Shadow layers */
    --shadow-sm: 0 1px 2px rgba(46, 62, 79, 0.05);
    --shadow-md: 0 4px 12px rgba(46, 62, 79, 0.08), 0 2px 4px rgba(46, 62, 79, 0.04);
    --shadow-lg: 0 12px 32px rgba(46, 62, 79, 0.10), 0 4px 8px rgba(46, 62, 79, 0.06);
    --shadow-xl: 0 24px 48px rgba(46, 62, 79, 0.14), 0 8px 16px rgba(46, 62, 79, 0.08);

    /* Typography */
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-brand: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-script: 'Carilliantine', 'Playfair Display', cursive;

    /* Theme helpers (compat Tailwind arbitrary values) */
    --t-accent: #C96B4A;
    --t-accent-rgb: 201, 107, 74;
    --t-card: #FFFFFF;
    --t-border: #E8DFC8;
    --t-text-primary: #2D3E4F;
    --t-text-secondary: #5A6B7A;
    --t-text-muted: #8A96A3;
    --t-input-bg: #FFFFFF;
    --t-input-border: #E8DFC8;
    --t-sidebar-bg: #F8F2E5;
    --t-sidebar-text: #5A6B7A;
    --t-sidebar-active: rgba(201, 107, 74, 0.12);
    --t-text-on-accent: #FFFFFF;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}
.font-display { font-family: var(--font-display); letter-spacing: -0.01em; }
.font-body { font-family: var(--font-body); }

/* ============================================================
   COMPONENTS — public site
   ============================================================ */

/* Navbar */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}
.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 200ms;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--terracota);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 300ms;
}
.nav-link:hover { color: var(--terracota); }
.nav-link:hover::after { transform: scaleX(1); }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(201, 107, 74, 0.35);
    transition: all 250ms;
    cursor: pointer;
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 107, 74, 0.45);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 250ms;
    cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--horizonte);
    color: var(--horizonte);
    font-weight: 600;
    border-radius: 12px;
    transition: all 250ms;
}
.btn-outline:hover {
    background: var(--horizonte);
    color: #fff;
}

/* Ensure icon clicks are handled by the parent clickable control.
   Without this, some SVG nodes can swallow/re-route hit testing on certain browsers. */
button svg,
button i[data-lucide],
a.admin-btn svg,
a.admin-btn i[data-lucide],
.btn-primary svg,
.btn-primary i[data-lucide],
.btn-secondary svg,
.btn-secondary i[data-lucide],
.btn-outline svg,
.btn-outline i[data-lucide],
.gallery-editor-remove svg,
.gallery-editor-remove i[data-lucide],
.heart-btn svg,
.heart-btn i[data-lucide],
.quick-view-btn svg,
.quick-view-btn i[data-lucide],
.slider-arrow svg,
.slider-arrow i[data-lucide] {
    pointer-events: none;
}

/* Cards */
.card-lift {
    transition: all 350ms cubic-bezier(.4,0,.2,1);
    border-radius: 20px;
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.roteiro-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: all 350ms cubic-bezier(.4,0,.2,1);
}
.roteiro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.roteiro-card .img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--horizonte-light), var(--maresia-light));
}
.roteiro-card .img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 600ms;
}
.roteiro-card:hover .img-wrap img { transform: scale(1.08); }
.roteiro-card .badge-featured {
    position: absolute;
    top: 14px; left: 14px;
    padding: 6px 14px;
    background: var(--terracota);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(201,107,74,0.4);
}

/* Hero */
.hero-gradient {
    background: linear-gradient(135deg, rgba(58,107,138,0.85) 0%, rgba(30,58,82,0.75) 50%, rgba(201,107,74,0.6) 100%);
}
.hero-dotted::before {
    content:'';
    position:absolute;
    inset:0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

/* Section titles */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--sepia);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.section-title .ornament {
    display: inline-block;
    color: var(--terracota);
    font-style: italic;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto 48px;
}

/* Stats */
.stat-box {
    text-align: center;
    padding: 32px 20px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    transition: all 300ms;
}
.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--terracota);
    box-shadow: var(--shadow-lg);
}
.stat-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(58,107,138,0.1), rgba(201,107,74,0.1));
    color: var(--horizonte);
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--terracota);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    padding: 24px 22px;
    position: relative;
    box-shadow: var(--shadow-md);
    min-width: 0;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px; left: 24px;
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--terracota);
    opacity: 0.25;
    line-height: 1;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 999px;
    object-fit: cover;
    overflow: hidden;
}
.testimonial-card .flex.items-center.gap-3 { align-items: center; gap: 10px; }
.testimonial-card .flex.items-center.gap-3 > div:nth-child(2) { min-width: 0; flex: 1 1 auto; }
.testimonial-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.35em;
    font-size: 14px;
    line-height: 1.15;
}
.testimonial-location {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.1;
}
.testimonial-stars {
    flex: 0 0 auto;
    align-self: center;
}
.testimonial-see-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--horizonte), var(--horizonte-dark));
    border: 1px solid rgba(58,107,138,0.18);
    box-shadow: 0 12px 28px -18px rgba(58,107,138,0.7);
    font-weight: 700;
    transition: all 220ms ease;
}
.testimonial-see-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -18px rgba(58,107,138,0.85);
}

/* Footer */
.footer-dark {
    background: linear-gradient(180deg, #1E3A52 0%, #152937 100%);
    color: rgba(255,255,255,0.75);
}
.footer-dark a { color: rgba(255,255,255,0.65); transition: color 200ms; }
.footer-dark a:hover { color: #fff; }

/* ============================================================
   COMPONENTS — admin
   ============================================================ */
.admin-sidebar {
    background: linear-gradient(180deg, #1E3A52 0%, #152937 100%);
    color: rgba(255,255,255,0.9);
}
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    transition: all 200ms;
    margin-bottom: 2px;
}
.admin-sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.admin-sidebar-link.active {
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(201,107,74,0.4);
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.admin-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 20px 24px;
    transition: all 250ms;
}
.admin-stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-default);
    background: #fff;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 200ms;
    outline: none;
}
.admin-input:focus {
    border-color: var(--horizonte);
    box-shadow: 0 0 0 3px rgba(58,107,138,0.12);
}

.admin-label {
    display: block;
    margin-bottom: 6px;
    color: var(--sepia);
    font-size: 13px;
    font-weight: 700;
}

.admin-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.admin-help-panel {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(58,107,138,0.16);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(58,107,138,0.08), rgba(244,228,193,0.24));
    color: var(--text-secondary);
    box-shadow: 0 10px 24px -22px rgba(58,107,138,0.35);
}
.admin-help-panel .admin-help-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #fff;
    color: var(--horizonte);
    border: 1px solid rgba(58,107,138,0.14);
}
.admin-help-panel h2 {
    margin: 0 0 4px;
    color: var(--sepia);
    font-size: 14px;
    font-weight: 800;
}
.admin-help-panel p { margin: 0; font-size: 13px; line-height: 1.45; }
.admin-help-panel ul { margin: 8px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.55; }
.admin-help-panel li + li { margin-top: 2px; }

.lang-option {
    border-radius: 10px;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.lang-option.is-active,
.lang-option[aria-current="true"] {
    background: rgba(201,107,74,0.10) !important;
    color: var(--terracota-dark) !important;
    font-weight: 800;
}
.lang-option.is-active img { box-shadow: 0 0 0 2px rgba(201,107,74,0.25); }

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 200ms;
    cursor: pointer;
    border: none;
}
.admin-btn-primary {
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(201,107,74,0.3);
}
.admin-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201,107,74,0.4);
}
.admin-btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}
.admin-btn-secondary:hover {
    background: var(--border-default);
}
.admin-btn-danger {
    background: #EF4444;
    color: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table thead th {
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-default);
}
.admin-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-default);
    color: var(--text-primary);
    font-size: 14px;
}
.admin-table tbody tr:hover td { background: var(--bg-surface); }

/* Admin tables — mobile: stack em cards com data-label */
@media (max-width: 767px) {
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
    .admin-table tbody tr {
        background: var(--bg-card);
        border: 1px solid var(--border-default);
        border-radius: 14px;
        margin-bottom: 14px;
        padding: 8px 4px;
        box-shadow: 0 1px 2px rgba(58,56,53,0.04);
    }
    .admin-table tbody td {
        border-bottom: 1px dashed var(--border-default);
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .admin-table tbody td:last-child { border-bottom: 0; }
    .admin-table tbody td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
        flex-shrink: 0;
    }
    .admin-table tbody td:not([data-label])::before { display: none; }
    .admin-table tbody td[data-label]::before { min-width: 80px; }
    .admin-table tbody td.actions-cell { justify-content: flex-end; padding-top: 12px; }
    .admin-table tbody td.actions-cell::before { display: none; }
    .admin-table tbody td.actions-cell > div { flex-wrap: wrap; gap: 6px; }
    .admin-table tbody tr:hover td { background: transparent; }
}

/* Admin filters bar — mobile stack */
@media (max-width: 639px) {
    .admin-btn { padding: 10px 14px; font-size: 13px; }
    .admin-btn .w-4 { width: 14px; height: 14px; }
    .admin-card { border-radius: 14px; }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-success { background: rgba(122,157,110,0.15); color: #5E7E55; }
.badge-warning { background: rgba(245,158,11,0.15); color: #D97706; }
.badge-danger  { background: rgba(239,68,68,0.15); color: #DC2626; }
.badge-info    { background: rgba(58,107,138,0.15); color: var(--horizonte); }
.badge-muted   { background: rgba(138,150,163,0.15); color: var(--text-muted); }

/* Toasts */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--horizonte);
    min-width: 280px;
    animation: toastIn 300ms ease-out;
}
.toast-success { border-left-color: var(--maresia); }
.toast-error { border-left-color: #EF4444; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utilities */
.fade-in-up { animation: fadeInUp 600ms ease-out both; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

.glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
}

.glass-dark {
    background: rgba(30,58,82,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Image placeholder */
.img-placeholder {
    background: linear-gradient(135deg, var(--horizonte-light), var(--terracota-light), var(--maresia-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-display);
    font-size: 2rem;
    font-style: italic;
}

/* Page preloader — minimal: spinning seal + thin progress bar */
.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #FBF6EC;
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility .45s ease;
}

.page-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-preloader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.page-preloader-ring { display: none; }
.page-preloader-label { display: none; }

.page-preloader-seal {
    width: 96px;
    height: 96px;
    object-fit: contain;
    animation: pagePreloaderSpin 1.6s linear infinite;
    filter: drop-shadow(0 8px 18px rgba(58,107,138,.18));
}

.page-preloader-bar {
    width: 220px;
    height: 3px;
    border-radius: 999px;
    background: rgba(58,107,138,.12);
    overflow: hidden;
    position: relative;
}

.page-preloader-bar > span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--horizonte), var(--terracota));
    transition: width .25s ease;
    box-shadow: 0 0 12px rgba(58,107,138,.35);
}

@keyframes pagePreloaderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .page-preloader-seal { animation: none; }
}

/* ============================================================
   PREMIUM — brand / hero / effects
   ============================================================ */
.font-brand { font-family: var(--font-brand); letter-spacing: 0.02em; }
.font-script { font-family: var(--font-script); }

/* Navbar logo swap (transparent→scrolled) */
[data-navbar] .logo-light { opacity: 1; }
[data-navbar] .logo-dark  { opacity: 0; position: absolute; inset: 0; }
[data-navbar].nav-scrolled .logo-light { opacity: 0; }
[data-navbar].nav-scrolled .logo-dark  { opacity: 1; }
[data-navbar] .nav-logo-wrap { position: relative; display: inline-block; }
[data-navbar] .nav-logo-wrap img { height: 38px; width: auto; transition: opacity 300ms; }
[data-navbar] .nav-link-tr { color: rgba(255,255,255,0.92); text-shadow: 0 1px 8px rgba(0,0,0,0.2); }
[data-navbar].nav-scrolled .nav-link-tr { color: var(--sepia); text-shadow: none; }

/* ============================================================
   HERO — premium cinematic
   ============================================================ */
.hero-premium {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: heroZoom 18s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes heroZoom {
    from { transform: scale(1.08) translateY(0); }
    to   { transform: scale(1.18) translateY(-2%); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(0,0,0,0.75) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(201,107,74,0.45) 0%, transparent 60%),
        linear-gradient(180deg, rgba(20,30,45,0.85) 0%, rgba(20,30,45,0.45) 45%, rgba(20,30,45,0.95) 100%);
}
.hero-overlay::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.4;
    mix-blend-mode: overlay;
}
.hero-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.hero-fade-bottom {
    position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-page) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Floating decorative icons */
.float-icon {
    position: absolute;
    opacity: 0.55;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.35));
    pointer-events: none;
    animation: floatSlow 8s ease-in-out infinite;
    will-change: transform;
}
.float-icon.f2 { animation: floatSlow2 10s ease-in-out infinite; }
.float-icon.f3 { animation: floatSlow3 12s ease-in-out infinite; }
@keyframes floatSlow  { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(8px,-18px) rotate(3deg); } }
@keyframes floatSlow2 { 0%,100% { transform: translate(0,0) rotate(5deg);  } 50% { transform: translate(-12px,-22px) rotate(-4deg); } }
@keyframes floatSlow3 { 0%,100% { transform: translate(0,0) rotate(-6deg); } 50% { transform: translate(14px,14px) rotate(7deg); } }

/* Rotating seal */
.seal-rotate { animation: sealSpin 40s linear infinite; transform-origin: center; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
/* Keyframe that preserves translateY(-50%) so the seal stays vertically centered. */
@keyframes sealSpinY {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}
.seal-reverse { animation: sealSpinR 50s linear infinite; transform-origin: center; }
@keyframes sealSpinR { to { transform: rotate(-360deg); } }

/* Section watermark seals — scatter across page, subtle decorative rotating (home pages, FASTER than hero) */
.seal-watermark {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    animation: sealSpin 25s linear infinite;
    transform-origin: center;
    mix-blend-mode: multiply;
}
.seal-watermark.dark { mix-blend-mode: screen; }
.seal-watermark.sm { width: 90px; height: 90px; opacity: 0.12; }
.seal-watermark.md { width: 160px; height: 160px; opacity: 0.10; }
.seal-watermark.lg { width: 240px; height: 240px; opacity: 0.08; }
.seal-watermark.xl { width: 360px; height: 360px; opacity: 0.06; }
.seal-watermark.reverse { animation-direction: reverse; animation-duration: 30s; }

/* Seal badge used inline next to titles */
.seal-inline {
    display: inline-block;
    width: 44px; height: 44px;
    vertical-align: middle;
    animation: sealSpin 25s linear infinite;
    transform-origin: center;
}

/* Hero CTA buttons premium */
.btn-hero-primary {
    position: relative;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #E28D6E 0%, #C96B4A 55%, #A85437 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 14px;
    box-shadow:
        0 10px 30px rgba(201,107,74,0.45),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 300ms cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    isolation: isolate;
}
.btn-hero-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.25) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 700ms;
}
.btn-hero-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 42px rgba(201,107,74,0.55), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-hero-primary:hover::before { transform: translateX(100%); }

.btn-hero-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-weight: 600;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 250ms;
}
.btn-hero-ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* Glass (refined) */
.glass-premium {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ============================================================
   CARD IMAGE SLIDER
   ============================================================ */
.slider-wrap { position: relative; overflow: hidden; }
.slider-wrap .slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 900ms ease, transform 6s ease;
    background-size: cover; background-position: center;
}
.slider-wrap .slide.active { opacity: 1; transform: scale(1.04); }
.slider-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 3;
}
.slider-dots .dot {
    width: 6px; height: 6px; border-radius: 999px;
    background: rgba(255,255,255,0.5);
    transition: all 250ms;
}
.slider-dots .dot.active { background: #fff; width: 18px; }

/* ============================================================
   PREMIUM CARD ENHANCEMENTS
   ============================================================ */
.card-premium {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 2px 4px rgba(46,62,79,0.04), 0 12px 32px rgba(46,62,79,0.06);
    transition: transform 500ms cubic-bezier(.22,.9,.25,1), box-shadow 500ms;
    border: 1px solid rgba(232,223,200,0.6);
}
.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(46,62,79,0.10), 0 28px 64px rgba(46,62,79,0.18);
}
.card-premium .ribbon {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    box-shadow: 0 6px 18px rgba(201,107,74,0.45);
}
.card-premium .heart-btn {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    width: 36px; height: 36px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 200ms;
}
.card-premium .heart-btn:hover { color: var(--terracota); transform: scale(1.1); }
.card-premium .heart-btn.active { color: #DC2626; background: #fff; }
.card-premium .heart-btn.active svg { fill: #DC2626; stroke: #DC2626; }
/* Generic heart-btn (not only inside .card-premium) */
.heart-btn { position: absolute; top: 14px; right: 14px; z-index: 4; width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); color: var(--text-muted); cursor: pointer; border: none; transition: all 200ms; }
.heart-btn:hover { color: #DC2626; transform: scale(1.1); background: #fff; }
.heart-btn.active { color: #DC2626; background: #fff; }
.heart-btn.active svg { fill: #DC2626; stroke: #DC2626; }
.heart-btn[data-busy="1"] { opacity: 0.7; pointer-events: none; }

.quick-view-btn {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,0.36);
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: var(--sepia);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(15,23,42,0.18);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}
.roteiro-card:hover .quick-view-btn,
.card-premium:hover .quick-view-btn,
.quick-view-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}
.quick-view-btn:hover { background: var(--terracota); color: #fff; }

@media (max-width: 767px) {
    .quick-view-btn { opacity: 1; transform: none; min-height: 34px; padding: 0 11px; font-size: 11px; }
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-badge {
    position: absolute;
    top: -6px; right: -8px;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--terracota);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(201,107,74,0.5);
}
.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 420px;
    background: var(--bg-card);
    box-shadow: -20px 0 60px rgba(0,0,0,0.25);
    z-index: 100;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 400ms cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-backdrop {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(20,30,45,0.5);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   PREMIUM ANIMATIONS
   ============================================================ */
@keyframes glowPulse {
    0%,100% { box-shadow: 0 4px 14px rgba(201,107,74,0.35); }
    50% { box-shadow: 0 8px 28px rgba(201,107,74,0.65), 0 0 0 4px rgba(201,107,74,0.12); }
}
.animate-glow { animation: glowPulse 2.5s ease-in-out infinite; }

@keyframes shimmerTxt {
    to { background-position: 200% center; }
}
.text-shimmer {
    background: linear-gradient(90deg, var(--terracota) 0%, #E28D6E 30%, #FFE0CC 50%, #E28D6E 70%, var(--terracota) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmerTxt 4s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-track {
    display: flex; gap: 48px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

/* Reveal stagger presets */
[data-reveal] { opacity: 0; }
[data-reveal].fade-in-up { opacity: 1; }

/* Scroll-linked hero opacity helper set via JS via --scroll-prog */
.hero-progress-overlay {
    position: absolute; inset: 0;
    background: rgba(20,30,45,1);
    opacity: calc(var(--scroll-prog, 0) * 0.55);
    pointer-events: none;
    transition: opacity 60ms;
}

/* Tiny chip */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(58,107,138,0.08);
    color: var(--horizonte);
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.chip-terra { background: rgba(201,107,74,0.1); color: var(--terracota); }

/* Counter fancy */
.counter-num {
    font-family: var(--font-brand);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--horizonte) 0%, var(--terracota) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Mini cart item */
.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: var(--bg-surface);
    transition: background 200ms;
}
.cart-item:hover { background: var(--bg-accent); }
.cart-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }

/* Responsive fixes */
@media (max-width: 640px) {
    .hero-premium { min-height: 90vh; }
    .btn-hero-primary, .btn-hero-ghost { padding: 14px 22px; font-size: 14px; }
    .section-title { font-size: 2rem !important; }
    .card-premium { border-radius: 18px; }
    .cart-drawer { max-width: 100%; }
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
    .hero-bg, .float-icon, .seal-rotate, .marquee-track, .animate-glow, .text-shimmer { animation: none !important; }
    * { transition-duration: 0.01ms !important; }
}


/* ============================================================
   PREMIUM HOME SECTIONS (v2)
   ============================================================ */

.trust-strip-section { padding: 22px 0; overflow: hidden; }
.trust-viewport { overflow: hidden; }
.trust-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 22px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.trust-item.is-duplicate { display: none; }
.trust-track [data-reveal] { opacity: 1; }

@media (max-width: 767px) {
    .trust-strip-section { padding: 16px 0; }
    .trust-viewport {
        padding-left: 16px;
        padding-right: 0;
        overflow: hidden;
    }
    .trust-track {
        display: flex;
        width: max-content;
        gap: 12px;
        animation: trust-marquee 18s linear infinite;
        will-change: transform;
    }
    .trust-item,
    .trust-item.is-duplicate {
        display: flex;
        width: min(74vw, 272px);
        flex: 0 0 min(74vw, 272px);
        padding: 0 4px;
        white-space: nowrap;
    }
    .trust-track:hover { animation-play-state: paused; }
}
@keyframes trust-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--trust-cycle, 1216px))); }
}

@media (max-width: 1180px) and (min-width: 768px) {
    .trust-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .testimonial-card { padding: 22px 18px; }
    .testimonial-avatar { width: 40px; height: 40px; min-width: 40px; }
    .testimonial-stars svg { width: 13px; height: 13px; }
}

.pillar-card {
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    padding: 28px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
}
.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,107,74,0), rgba(201,107,74,0.05));
    opacity: 0;
    transition: opacity 300ms;
    pointer-events: none;
}
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px -20px rgba(76,46,37,0.25);
    border-color: var(--terracota-light);
}
.pillar-card:hover::before { opacity: 1; }
.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.25);
    transition: transform 300ms;
}
.pillar-card:hover .pillar-icon { transform: rotate(-6deg) scale(1.08); }

@media (max-width: 767px) {
    body:has(.mobile-book-bar) .floating-whatsapp {
        bottom: calc(94px + env(safe-area-inset-bottom));
        z-index: 70;
    }
    body:has(.checkout-page) .floating-whatsapp {
        display: none;
    }
}

.step-card {
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    padding: 36px 28px 28px;
    text-align: center;
    position: relative;
    transition: all 300ms ease;
    z-index: 2;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -20px rgba(76,46,37,0.25);
    border-color: var(--terracota);
}
.step-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 25px -8px rgba(201,107,74,0.55);
}
.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(201,107,74,0.08);
    color: var(--terracota);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 20px;
    transition: all 300ms;
}
.step-card:hover .step-icon {
    background: var(--terracota);
    color: #fff;
    transform: scale(1.08);
}
.timeline-line {
    position: absolute;
    top: 50%;
    left: 12%;
    right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--terracota) 0, var(--terracota) 8px, transparent 8px, transparent 16px);
    opacity: 0.35;
    z-index: 1;
}

.counter-num {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 400ms, transform 400ms;
}
.counter-num.in-view { opacity: 1; transform: translateY(0); }

body.has-solid-nav { padding-top: 0; }

.stat-box { transition: transform 300ms, box-shadow 300ms; }
.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -15px rgba(76,46,37,0.2);
}


/* ============================================================
   PREMIUM ACCOUNT AREA (v3)
   ============================================================ */

/* Enhanced account hero banner */
.account-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 36px 36px 32px;
    background: linear-gradient(135deg, #2D5470 0%, #1E3A52 50%, #3A6B8A 100%);
    color: #fff;
    box-shadow: 0 24px 60px -24px rgba(46,62,79,0.4);
}
.account-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(201,107,74,0.25) 0%, transparent 50%);
    pointer-events: none;
}
.account-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 28px;
    border: 3px solid rgba(255,255,255,0.25);
    box-shadow: 0 12px 30px -8px rgba(201,107,74,0.6);
    flex-shrink: 0;
}
.account-hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin-bottom: 6px;
}
.account-hero-name {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.account-hero-email { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 6px; }
.account-hero-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 200ms;
}
.account-hero-logout:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* Sidebar (account) */
.account-sidebar {
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 6px 20px -10px rgba(46,62,79,0.12);
    position: sticky;
    top: 96px;
}
.account-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 200ms;
    position: relative;
}
.account-sidebar-link:hover {
    background: var(--areia-light);
    color: var(--sepia);
}
.account-sidebar-link.active {
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(201,107,74,0.6);
}
.account-sidebar-link.active::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* Stat cards — premium consistent */
.stat-card-premium {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 22px;
    padding: 24px;
    overflow: hidden;
    transition: all 300ms;
}
.stat-card-premium::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 160px; height: 160px;
    background: var(--tint, rgba(201,107,74,0.08));
    border-radius: 999px;
    pointer-events: none;
}
.stat-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -20px rgba(46,62,79,0.25);
    border-color: var(--accent, var(--terracota));
}
.stat-card-premium .stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}
.stat-card-premium .stat-icon-box {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--accent, var(--terracota));
    box-shadow: 0 8px 18px -6px var(--accent-shadow, rgba(201,107,74,0.5));
}
.stat-card-premium .stat-label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}
.stat-card-premium .stat-value {
    position: relative;
    z-index: 2;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--sepia);
}
.stat-card-premium .stat-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}
.stat-card-premium .stat-seal {
    position: absolute;
    top: -12px; right: -12px;
    width: 70px; height: 70px;
    opacity: 0.22;
    pointer-events: none;
    animation: seal-spin 40s linear infinite;
}
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* Inputs premium */
.form-field {
    display: block;
    margin-bottom: 16px;
}
.form-field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-input,
.input-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    transition: all 200ms;
    outline: none;
    font-family: inherit;
}
.form-input:hover,
.input-field:hover { border-color: var(--border-strong); }
.form-input:focus,
.input-field:focus {
    border-color: var(--terracota);
    box-shadow: 0 0 0 4px rgba(201,107,74,0.12);
    background: #fff;
}
.form-input::placeholder,
.input-field::placeholder { color: var(--text-muted); }
textarea.form-input,
textarea.input-field { resize: vertical; min-height: 96px; }
.form-input-group {
    position: relative;
}
.form-input-group .form-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.form-input-group .form-input-icon ~ .form-input,
.form-input-group .form-input-icon ~ .input-field { padding-left: 44px; }

/* Upload zone (drag-drop) */
.upload-zone {
    position: relative;
    border: 2px dashed var(--border-strong);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    background: linear-gradient(180deg, var(--areia-light) 0%, #fff 100%);
    cursor: pointer;
    transition: all 200ms;
    overflow: hidden;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--terracota);
    background: linear-gradient(180deg, rgba(201,107,74,0.05) 0%, #fff 100%);
    transform: translateY(-1px);
}
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.upload-zone-icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px -8px rgba(201,107,74,0.5);
}
.upload-zone-title { font-weight: 700; color: var(--sepia); margin-bottom: 4px; font-size: 14px; }
.upload-zone-hint { font-size: 12px; color: var(--text-muted); }
.upload-zone-preview {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}
.upload-zone-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
}
.upload-zone-preview-item img {
    width: 100%; height: 100%; object-fit: cover;
}
.upload-zone-preview-item .remove-btn {
    position: absolute;
    top: 5px; right: 5px;
    width: 28px; height: 28px;
    border-radius: 999px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 7;
    pointer-events: auto;
    touch-action: manipulation;
}
.upload-zone-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--terracota), var(--maresia));
    transition: width 200ms;
    z-index: 1;
}

/* Glass card refine */
.glass-card {
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 22px;
    box-shadow: 0 6px 20px -10px rgba(46,62,79,0.1);
}

/* AJAX loading spinner */
.ajax-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 999px;
    animation: spin 700ms linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loading { opacity: 0.7; pointer-events: none; }
.btn-loading .btn-content { opacity: 0; }
.btn-content { display: inline-flex; align-items: center; gap: 8px; }
.btn-primary > .btn-content i, .btn-primary > .btn-content svg,
.btn-secondary > .btn-content i, .btn-secondary > .btn-content svg { display: inline-block; flex-shrink: 0; }

/* Data table (account) */
.booking-row {
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 18px;
    padding: 20px;
    transition: all 200ms;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.booking-row:hover {
    border-color: var(--terracota-light);
    box-shadow: 0 8px 24px -12px rgba(46,62,79,0.15);
    transform: translateX(2px);
}
@media (min-width: 768px) {
    .booking-row { flex-direction: row; align-items: center; }
}
.booking-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px -8px rgba(201,107,74,0.5);
    flex-shrink: 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state-icon {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: var(--areia-light);
    color: var(--terracota);
    display: flex; align-items: center; justify-content: center;
}
.empty-state-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--sepia); margin-bottom: 6px; }
.empty-state-desc { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }

/* Favorites card */
.fav-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    overflow: hidden;
    transition: all 250ms;
}
.fav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -20px rgba(46,62,79,0.25);
    border-color: var(--terracota);
}
.fav-card-image {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--areia-light);
    position: relative;
}
.fav-card-unheart {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    border: none;
    color: var(--terracota);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 200ms;
}
.fav-card-unheart:hover { background: #fff; transform: scale(1.1); }

/* Tag/Pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pill-primary { background: rgba(201,107,74,0.12); color: var(--terracota-dark); }
.pill-info { background: rgba(58,107,138,0.12); color: var(--horizonte); }
.pill-success { background: rgba(122,157,110,0.15); color: var(--maresia-dark); }
.pill-warning { background: rgba(245,158,11,0.15); color: #B45309; }
.pill-danger { background: rgba(239,68,68,0.12); color: #B91C1C; }

/* Textarea auto-grow */
.auto-grow { overflow: hidden; }


/* ============================================================
   PAGINACAO (admin list)
   ============================================================ */
.pagination-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-default);
    margin-top: 32px;
    border-radius: 18px;
    box-shadow: 0 10px 30px -22px rgba(46,62,79,0.25);
}
.pagination-info { font-size: 13px; color: var(--text-secondary); display: flex; gap: 4px; align-items: center; }
.pagination-info strong { color: var(--sepia); font-weight: 700; }
.pagination-per-form { display: flex; }
.pagination-per-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.pagination-per-select {
    padding: 6px 10px; padding-right: 28px; border-radius: 8px;
    border: 1px solid var(--border-default); background: var(--bg-card); color: var(--sepia);
    font-size: 13px; font-weight: 600; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 011.08 1.04l-4.25 4.4a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
    appearance: none; -webkit-appearance: none;
}
.pagination-per-select:focus { outline: none; border-color: var(--terracota); box-shadow: 0 0 0 3px rgba(201,107,74,0.15); }
.pagination-nav { display: inline-flex; gap: 4px; align-items: center; }
.pagination-btn {
    min-width: 36px; height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--border-default);
    background: var(--bg-card); color: var(--text-secondary);
    font-size: 13px; font-weight: 600;
    transition: all 160ms ease;
}
.pagination-btn:hover:not(.is-disabled):not(.is-active) {
    background: var(--areia-light); color: var(--sepia);
    transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pagination-btn.is-active {
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    border-color: var(--terracota-dark); color: #fff;
    box-shadow: 0 2px 8px rgba(201,107,74,0.35);
}
.pagination-btn.is-disabled { opacity: 0.4; pointer-events: none; }
.pagination-dots { padding: 0 6px; color: var(--text-muted); font-weight: 700; }

/* ============================================================
   ACOES EM LINHA (admin list) — botoes visiveis com texto + icone
   ============================================================ */
.action-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
    border: 1px solid var(--border-default);
    background: var(--bg-card); color: var(--text-secondary);
    transition: all 160ms ease;
    white-space: nowrap;
    position: relative; z-index: 1;
}
.action-chip:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.action-chip.chip-edit {
    border-color: rgba(58,107,138,0.3); color: var(--horizonte);
    background: rgba(58,107,138,0.05);
}
.action-chip.chip-edit:hover { background: rgba(58,107,138,0.12); color: var(--horizonte); }
.action-chip.chip-view {
    border-color: rgba(94,126,85,0.3); color: var(--maresia-dark);
    background: rgba(94,126,85,0.05);
}
.action-chip.chip-view:hover { background: rgba(94,126,85,0.12); }
.action-chip.chip-danger {
    border-color: rgba(220,38,38,0.3); color: #DC2626;
    background: rgba(220,38,38,0.05);
}
.action-chip.chip-danger:hover { background: rgba(220,38,38,0.12); color: #B91C1C; }
.action-chip.chip-success {
    border-color: rgba(5,150,105,0.3); color: #059669;
    background: rgba(5,150,105,0.05);
}
.action-chip.chip-success:hover { background: rgba(5,150,105,0.12); color: #047857; }
.action-chip.chip-warning {
    border-color: rgba(217,119,6,0.3); color: #D97706;
    background: rgba(217,119,6,0.05);
}
.action-chip.chip-warning:hover { background: rgba(217,119,6,0.12); color: #B45309; }
.actions-cell { position: relative; }
.actions-cell > div { position: relative; z-index: 1; }

/* ============================================================
   GALERIA PREMIUM (roteiro/pacote detail)
   ============================================================ */
.gallery-lightbox-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    animation: gallery-fade-in 220ms ease;
}
.gallery-lightbox-backdrop[hidden] { display: none !important; }
@keyframes gallery-fade-in { from { opacity:0 } to { opacity:1 } }
.gallery-lightbox-close {
    position: absolute; top: 20px; right: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 160ms ease;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.gallery-lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 160ms ease;
}
.gallery-lightbox-arrow:hover { background: rgba(255,255,255,0.2); }
.gallery-lightbox-arrow.prev { left: 20px; }
.gallery-lightbox-arrow.next { right: 20px; }
.gallery-lightbox-image { max-width: 92vw; max-height: 86vh; border-radius: 12px; object-fit: contain; box-shadow: 0 40px 80px rgba(0,0,0,0.6); }
.gallery-lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.5); color: #fff;
    padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    backdrop-filter: blur(8px);
}
.gallery-lightbox-thumbs {
    position: absolute;
    left: 50%;
    bottom: 74px;
    transform: translateX(-50%);
    width: min(86vw, 720px);
    display: flex;
    gap: 8px;
    justify-content: center;
    overflow-x: auto;
    padding: 4px 2px;
}
.gallery-lightbox-thumb {
    width: 64px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: .65;
    flex: 0 0 auto;
    transition: all 160ms ease;
}
.gallery-lightbox-thumb.active {
    border-color: #fff;
    opacity: 1;
}
.gallery-lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero gallery (detail page) */
.hero-gallery-grid {
    display: grid; gap: 8px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 2/1;
    border-radius: 20px; overflow: hidden;
}
.hero-gallery-grid > * { cursor: pointer; transition: all 300ms ease; position: relative; overflow: hidden; background: var(--bg-surface); }
.hero-gallery-grid > button { border: 0; padding: 0; text-align: left; display: block; width: 100%; height: 100%; }
.hero-gallery-grid > *:first-child { grid-row: span 2; }
.hero-gallery-grid > * img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.hero-gallery-grid > *:hover img { transform: scale(1.05); }
.hero-gallery-more {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5); color: #fff;
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
    font-weight: 700; font-size: 15px;
    backdrop-filter: blur(2px);
}
@media (max-width: 768px) {
    .hero-gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; }
    .hero-gallery-grid > *:not(:first-child) { display: none; }
    .hero-gallery-grid > *:first-child { grid-row: auto; aspect-ratio: 16/10; }
}

/* ============================================================
   CARD CAROUSEL (slider-wrap em cards do site)
   ============================================================ */
.slider-wrap { position: relative; overflow: hidden; background: var(--bg-surface); }
.slider-wrap .slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 500ms ease;
    pointer-events: none;
}
.slider-wrap .slide.active { opacity: 1; }
.slider-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: inline-flex; gap: 6px; padding: 6px 10px;
    background: rgba(0,0,0,0.35); border-radius: 999px;
    backdrop-filter: blur(8px);
    z-index: 2;
}
.slider-dots .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: all 220ms ease;
    cursor: pointer;
}
.slider-dots .dot.active { background: #fff; width: 20px; border-radius: 999px; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.9); color: var(--sepia);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 220ms ease;
    z-index: 2; border: none;
}
.slider-wrap:hover .slider-arrow { opacity: 1; }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
@media (hover: none) { .slider-arrow { opacity: 1; } }

/* ============================================================
   GALERIA EDITOR (admin) — preview grid com remove
   ============================================================ */
.gallery-editor-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.gallery-editor-item {
    position: relative; aspect-ratio: 1/1;
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
}
.gallery-editor-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-editor-remove {
    position: absolute; top: 6px; right: 6px;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(220,38,38,0.92); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    z-index: 5;
    pointer-events: auto;
    touch-action: manipulation;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 160ms ease;
}
.gallery-editor-remove:hover { background: #DC2626; transform: scale(1.08); }
.gallery-editor-badge {
    position: absolute; bottom: 6px; left: 6px;
    padding: 3px 8px; border-radius: 999px;
    background: rgba(0,0,0,0.65); color: #fff;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

/* ============================================================
   LOGO NO ADMIN — usar imagem em vez de iniciais
   ============================================================ */
.admin-brand-mark {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    padding: 4px; flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}
.admin-brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }


/* ============================================================
   PHASE 4 PREMIUM: Slider arrows + dividers + responsive
   ============================================================ */

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.96);
    color: var(--sepia);
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; z-index: 4;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    opacity: 0; transition: opacity .22s ease, transform .22s ease, background .22s ease;
}
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.slider-wrap:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--terracota); color: #fff; transform: translateY(-50%) scale(1.08); }
@media (hover: none) {
    .slider-arrow { opacity: 0.92; }
}

/* Section divider — TWO rotating seals glued to viewport edges. Uses 100% + overflow:hidden on ancestors to avoid horizontal scrollbar. More exposed than hidden. Speed is FASTER than hero (hero = 40s, divider = 22s). */
.section-divider-seal {
    position: relative;
    height: 0;
    width: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
    margin: 24px 0 8px;
}
.section-divider-seal::before,
.section-divider-seal::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 120px; height: 120px;
    background: var(--seal-img) center/contain no-repeat;
    transform: translateY(-50%) rotate(0deg);
    opacity: 0.22;
    filter: drop-shadow(0 6px 18px rgba(30,58,82,0.15));
    animation: sealSpinY 22s linear infinite;
}
/* Show MORE of the seal than hidden (~70% visible vs 30% past the edge) */
.section-divider-seal::before { left: -36px; }
.section-divider-seal::after  { right: -36px; animation-direction: reverse; }
@media (min-width: 768px) {
    .section-divider-seal { margin: 40px 0 16px; }
    .section-divider-seal::before, .section-divider-seal::after { width: 160px; height: 160px; }
    .section-divider-seal::before { left: -48px; }
    .section-divider-seal::after  { right: -48px; }
}
@media (min-width: 1280px) {
    .section-divider-seal { margin: 56px 0 24px; }
    .section-divider-seal::before, .section-divider-seal::after { width: 200px; height: 200px; }
    .section-divider-seal::before { left: -60px; }
    .section-divider-seal::after  { right: -60px; }
}
/* On very small screens, shrink seals and push them more past the edge so mobile menu is not affected */
@media (max-width: 640px) {
    .section-divider-seal::before, .section-divider-seal::after { width: 80px; height: 80px; opacity: 0.16; }
    .section-divider-seal::before { left: -30px; }
    .section-divider-seal::after  { right: -30px; }
}

/* Premium Ver Reembolso button (used in suas viagens) */
.btn-refund {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 10px;
    font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, #F7E6D9, #F2D8C6);
    color: var(--terracota-dark);
    border: 1px solid rgba(201,107,74,0.3);
    box-shadow: 0 2px 8px rgba(201,107,74,0.12);
    transition: all .2s ease;
    text-decoration: none;
}
.btn-refund:hover {
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff; border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201,107,74,0.35);
}

/* Refund request premium form */
.refund-form-premium {
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(247,235,221,0.4));
    border-radius: 20px;
    border: 1px solid var(--border-default);
}
.refund-form-premium .form-input {
    min-height: 48px;
    border-radius: 12px;
    font-size: 14px;
}
.refund-form-premium textarea.form-input { min-height: 140px; }
.refund-submit {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
    border: none; cursor: pointer;
    box-shadow: 0 6px 20px rgba(201,107,74,0.35);
    transition: all .2s;
}
.refund-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(201,107,74,0.45); }

/* Account — responsive premium: tudo vertical 100% width, nada horizontal */
@media (max-width: 1023px) {
    /* Stack the [sidebar | content] grid into a single column */
    .account-grid, .account-layout, [data-account-grid] { display: block !important; }
    .account-sidebar {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 16px;
        padding: 12px !important;
    }
    .account-sidebar nav,
    .account-sidebar > div,
    .account-sidebar [class*="flex-col"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    .account-sidebar .sidebar-link,
    .account-sidebar .account-sidebar-link,
    .account-sidebar a {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 12px 16px !important;
    }
}
@media (max-width: 767px) {
    .account-hero { padding: 22px 18px !important; border-radius: 20px !important; }
    .account-hero h1, .account-hero-name { font-size: 22px !important; line-height: 1.2; }
    .account-hero .account-hero-avatar, .account-hero-avatar { width: 60px !important; height: 60px !important; font-size: 20px !important; }
    .account-hero .account-hero-actions, .account-hero [class*="flex"]:has(> .account-hero-logout) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 16px;
    }
    .account-hero .account-hero-actions > *, .account-hero-logout {
        width: 100% !important;
        justify-content: center !important;
        font-size: 13px !important;
        padding: 10px 16px !important;
    }
    .stat-card-premium { padding: 18px !important; }
    .stat-card-premium .stat-value { font-size: 22px !important; }
    .stat-card-premium .stat-icon-box { width: 40px !important; height: 40px !important; }
    .fav-card-image { aspect-ratio: 16/10 !important; }
    /* Force any inner grid to single column on mobile */
    .account-content [class*="grid-cols-2"],
    .account-content [class*="grid-cols-3"],
    .account-content [class*="grid-cols-4"],
    .account-content [class*="md:grid-cols"] {
        grid-template-columns: 1fr !important;
    }
    /* Forms: full-width, no overflow */
    .account-content .form-input, .account-content .admin-input {
        width: 100% !important;
        font-size: 16px !important; /* prevent iOS zoom */
    }
    .glass-card { padding: 18px !important; border-radius: 18px !important; }
    /* Buttons full-width on mobile */
    .account-content .btn-primary, .account-content .btn-secondary {
        width: 100% !important;
        padding: 14px 18px !important;
    }
    /* Tables that overflow: convert to cards */
    .account-content .data-table { display: block; overflow-x: auto; }
}

/* Address autocomplete states */
.cep-loading { opacity: 0.6; pointer-events: none; }
.cep-error { border-color: #EF4444 !important; }

/* ============================================================
   PHASE 6: Premium filter bar (passeios + pacotes)
   ============================================================ */
.filter-premium {
    background: linear-gradient(135deg, #fff 0%, var(--areia-light) 100%);
    border: 1px solid var(--border-default);
    border-radius: 22px;
    padding: 18px 22px;
    box-shadow: 0 8px 32px -16px rgba(46,62,79,0.18);
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.filter-premium.filter-single-row {
    grid-template-columns: minmax(180px, 1.25fr) repeat(5, minmax(104px, .75fr)) minmax(118px, auto);
    gap: 10px;
}
.filter-premium.filter-with-date {
    grid-template-columns: minmax(210px, 1.35fr) repeat(4, minmax(118px, .85fr)) minmax(118px, auto);
}
@media (max-width: 1023px) {
    .filter-premium { grid-template-columns: 1fr 1fr; }
    .filter-premium.filter-single-row,
    .filter-premium.filter-with-date { grid-template-columns: 1fr 1fr; }
    .filter-premium > .filter-search { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
    .filter-premium { grid-template-columns: 1fr; padding: 16px; }
    .filter-premium.filter-single-row,
    .filter-premium.filter-with-date { grid-template-columns: 1fr; }
}
.filter-premium .filter-label {
    display: block;
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    font-weight: 700; color: var(--text-muted);
    margin-bottom: 6px;
}
.filter-premium .filter-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: #fff;
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 180ms, box-shadow 180ms;
}
.filter-premium .filter-input:focus {
    outline: none;
    border-color: var(--terracota);
    box-shadow: 0 0 0 4px rgba(201,107,74,0.12);
}
.filter-premium .filter-search { position: relative; }
.filter-premium .filter-search .filter-input { padding-left: 42px; }
.filter-premium .filter-search-icon {
    position: absolute; left: 14px; bottom: 14px;
    width: 18px; height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}
.filter-premium .filter-submit {
    height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--terracota), var(--terracota-dark));
    color: #fff;
    font-weight: 700; font-size: 13px;
    letter-spacing: 0.04em;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 6px 18px -6px rgba(201,107,74,0.45);
    transition: transform 160ms, box-shadow 160ms;
}
.filter-premium .filter-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(201,107,74,0.55); }
.filter-premium .filter-reset {
    height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600; font-size: 13px;
    border: 1.5px solid var(--border-default);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.filter-premium .filter-reset:hover { background: var(--bg-surface); color: var(--sepia); }

/* Generic premium datepicker used by every native date input after JS enhancement */
.premium-date-field { position: relative; width: 100%; }
.premium-date-native { position: absolute !important; inset: 0; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.premium-date-trigger {
    position: relative;
    width: 100%; height: 46px; padding: 0 34px 0 14px;
    border: 1.5px solid var(--border-default); border-radius: 12px;
    background: #fff; color: var(--text-primary);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 14px; font-weight: 600; text-align: left;
    white-space: nowrap;
    transition: border-color 180ms, box-shadow 180ms, background 180ms;
}
.premium-date-trigger:hover,
.premium-date-field.is-open .premium-date-trigger { border-color: var(--terracota); box-shadow: 0 0 0 4px rgba(201,107,74,0.12); }
.premium-date-trigger .date-placeholder { color: var(--text-muted); font-weight: 500; }
.premium-date-trigger span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.premium-date-trigger i,
.premium-date-trigger svg { position: absolute; right: 10px; width: 17px; height: 17px; color: var(--terracota); pointer-events: none; flex-shrink: 0; }
.premium-date-popover {
    position: fixed; top: 0; left: 0; z-index: 9997;
    width: min(320px, calc(100vw - 32px)); padding: 14px;
    border-radius: 18px; border: 1px solid var(--border-default);
    background: #fff; box-shadow: 0 24px 60px -28px rgba(30,58,82,0.45);
}
.premium-date-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.premium-date-title { font-family: 'Fraunces', serif; font-weight: 800; color: var(--sepia); font-size: 15px; text-transform: capitalize; flex: 1; text-align: center; white-space: nowrap; }
.premium-date-nav { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-secondary); background: var(--bg-surface); transition: all 160ms; }
.premium-date-nav.is-year { background: rgba(58,107,138,0.08); color: var(--horizonte); }
.premium-date-nav:hover { color: var(--terracota); background: rgba(201,107,74,0.1); }
.premium-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.premium-date-dow { text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 5px 0; }
.premium-date-day { aspect-ratio: 1/1; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--sepia); border: 1px solid transparent; transition: all 140ms; }
.premium-date-day:hover:not(:disabled) { background: rgba(201,107,74,0.1); border-color: rgba(201,107,74,0.25); color: var(--terracota); }
.premium-date-day.is-muted { visibility: hidden; pointer-events: none; }
.premium-date-day.is-today { border-color: rgba(58,107,138,0.35); color: var(--horizonte); }
.premium-date-day.is-selected { background: var(--terracota); border-color: var(--terracota-dark); color: #fff; box-shadow: 0 8px 18px -10px rgba(201,107,74,.8); }
.premium-date-day:disabled { color: #CBD5E1; cursor: not-allowed; background: #F8FAFC; }
.premium-date-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.premium-date-action { font-size: 12px; font-weight: 700; color: var(--horizonte); padding: 8px 10px; border-radius: 10px; }
.premium-date-action:hover { background: rgba(58,107,138,0.08); }

/* === Calendario datepicker - mobile modal & layout fix === */
body.premium-date-locked { overflow: hidden !important; touch-action: none !important; }
@media (max-width: 640px) {
  .premium-date-popover {
    position: fixed !important;
    top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important;
    transform: translate(-50%, -50%);
    width: min(360px, calc(100vw - 24px)) !important;
    max-height: 92vh; overflow-y: auto;
    z-index: 10010 !important;
    padding: 16px;
    box-shadow: 0 30px 80px -20px rgba(15,23,42,.55), 0 0 0 9999px rgba(15,23,42,.55);
    animation: premiumDatePop .22s cubic-bezier(.2,.8,.25,1);
  }
  .premium-date-popover.is-mobile-modal { display: block; }
  .premium-date-head { gap: 4px; margin-bottom: 12px; }
  .premium-date-nav { width: 36px; height: 36px; border-radius: 10px; }
  .premium-date-nav.is-year { width: 32px; height: 36px; }
  .premium-date-nav.is-year svg, .premium-date-nav.is-year i { width: 15px; height: 15px; }
  .premium-date-title { font-size: 14px; padding: 0 2px; }
  .premium-date-grid { gap: 4px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .premium-date-day { font-size: 14px; min-width: 0; }
  .premium-date-dow { font-size: 10px; padding: 4px 0; }
}
@keyframes premiumDatePop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }


/* Detail gallery slider */
.detail-gallery-section { padding: 28px 0 12px; }
.detail-content-section { padding-top: 34px; padding-bottom: 64px; }
.detail-slider { position: relative; overflow: hidden; border-radius: 22px; background: var(--bg-surface); box-shadow: 0 22px 60px -34px rgba(30,58,82,0.45); }
.detail-slider-main { aspect-ratio: 16/8; min-height: 340px; }
.detail-slider-main[data-gallery-open] { cursor: zoom-in; }
.itinerary-toggle[aria-expanded="true"] .itinerary-chevron { transform: rotate(180deg); }
.detail-slider .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 420ms ease, transform 700ms ease; transform: scale(1.02); }
.detail-slider .slide.active { opacity: 1; transform: scale(1); }
.detail-slider::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(180deg, transparent, rgba(30,58,82,.28)); pointer-events: none; }
.detail-slider .slider-arrow { opacity: 1; width: 44px; height: 44px; background: rgba(255,255,255,.92); box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); }
.detail-slider .slider-arrow.prev { left: 16px; }
.detail-slider .slider-arrow.next { right: 16px; }
.slider-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(86px, 120px); gap: 10px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: thin; }
.slider-thumbs .thumb { position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .72; transition: all 180ms; background: var(--bg-surface); flex-shrink: 0; }
.slider-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-thumbs .thumb.active { border-color: var(--terracota); opacity: 1; box-shadow: 0 8px 20px -14px rgba(201,107,74,.9); }
.slider-thumbs .thumb:hover { opacity: 1; transform: translateY(-1px); }

.review-card { min-height: 286px; display: flex; flex-direction: column; }
.review-card-title,
.review-card-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card-title { -webkit-line-clamp: 2; min-height: 2.5em; }
.review-card-content { -webkit-line-clamp: 4; min-height: 6.1em; }
.review-read-more {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 800;
    color: var(--horizonte);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(58,107,138,0.08);
    transition: background 180ms ease, transform 180ms ease;
}
.review-read-more:hover { background: rgba(58,107,138,0.14); transform: translateY(-1px); }
.review-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,58,82,0.55);
    backdrop-filter: blur(8px);
}
.review-modal-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(82vh, 760px);
    overflow: auto;
    border-radius: 18px;
    padding: 28px;
    background: var(--bg-card);
    box-shadow: 0 28px 90px -34px rgba(30,58,82,.65);
}
.review-modal-panel-wide { width: min(860px, 100%); }
.review-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sepia);
    background: var(--bg-surface);
    transition: transform 180ms ease, background 180ms ease;
}
.review-modal-close:hover { transform: scale(1.04); background: var(--areia-light); }
.review-modal-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.review-modal-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.review-all-list { display: grid; gap: 12px; }
.review-all-item { padding: 16px; border: 1px solid var(--border-default); border-radius: 14px; background: var(--bg-surface); }
.quick-view-backdrop { background: rgba(28, 32, 39, 0.68); backdrop-filter: blur(10px); }
.quick-view-panel {
    width: min(940px, 100%);
    max-height: min(720px, calc(100vh - 24px));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: 0 30px 90px rgba(15,23,42,0.34);
}
.quick-view-media { position: relative; min-height: 420px; background: linear-gradient(135deg,var(--horizonte-light),var(--maresia-light)); overflow: hidden; }
.quick-view-image { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.quick-view-placeholder { height: 100%; min-height: 420px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-brand); font-size: 78px; background: linear-gradient(135deg,var(--horizonte),var(--terracota)); }
.quick-view-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: var(--sepia); box-shadow: 0 12px 28px rgba(15,23,42,.22); }
.quick-view-arrow.prev { left: 14px; }
.quick-view-arrow.next { right: 14px; }
.quick-view-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 7px; }
.quick-view-dots button { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.58); transition: transform 160ms ease, background 160ms ease; }
.quick-view-dots button.active { transform: scale(1.45); background: #fff; }
.quick-view-body { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px; overflow-y: auto; }
.quick-view-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--sepia); background: var(--bg-surface); }
.quick-view-eyebrow { width: max-content; max-width: calc(100% - 52px); padding: 6px 10px; border-radius: 999px; background: rgba(201,107,74,.1); color: var(--terracota); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.quick-view-title { padding-right: 42px; font-family: var(--font-brand); font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1; color: var(--sepia); }
.quick-view-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.quick-view-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.quick-view-detail { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--bg-surface); color: var(--horizonte); }
.quick-view-detail span { display: block; margin-bottom: 2px; color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quick-view-detail strong { display: block; color: var(--sepia); font-size: 13px; line-height: 1.25; }
.quick-view-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border-default); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quick-view-price-label { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quick-view-price { font-family: var(--font-brand); font-size: 1.7rem; line-height: 1; color: var(--terracota); }
.quick-view-actions { display: flex; align-items: center; gap: 8px; }
.quick-view-link,
.quick-view-reserve { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.quick-view-link { color: var(--horizonte); background: rgba(58,107,138,.08); }
.quick-view-reserve { color: #fff; background: var(--terracota); }
.detail-hero-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.detail-hero-kicker > a,
.detail-hero-kicker > span,
.detail-hero-kicker .detail-hero-badge { margin-bottom: 0 !important; }
@media (max-width: 767px) {
    .detail-hero {
        min-height: 410px !important;
        height: auto !important;
    }
    .detail-hero .detail-hero-content {
        box-sizing: border-box;
        min-height: 410px;
        align-items: flex-start !important;
        padding-top: calc(176px + env(safe-area-inset-top)) !important;
        padding-bottom: 16px !important;
    }
    .detail-hero-kicker { flex-wrap: nowrap; align-items: center; max-width: 100%; }
    .detail-hero-kicker > a { flex: 0 0 auto; }
    .detail-hero-kicker > span {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        max-width: calc(100% - 142px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .detail-hero h1 {
        font-size: 2rem !important;
        line-height: 1.08 !important;
        overflow-wrap: anywhere;
    }
    .detail-hero .max-w-7xl {
        padding-left: 18px;
        padding-right: 18px;
    }
    .quick-view-panel { grid-template-columns: 1fr; max-height: calc(100vh - 16px); border-radius: 16px; }
    .quick-view-media,
    .quick-view-image,
    .quick-view-placeholder { min-height: 240px; height: 240px; }
    .quick-view-body { padding: 22px 18px 18px; gap: 12px; }
    .quick-view-title { font-size: 1.75rem; padding-right: 36px; }
    .quick-view-details { grid-template-columns: 1fr; }
    .quick-view-footer { align-items: stretch; flex-direction: column; gap: 12px; }
    .quick-view-actions { width: 100%; }
    .quick-view-link,
    .quick-view-reserve { flex: 1; padding: 0 10px; }
    .detail-gallery-section { padding: 18px 0 6px; }
    .detail-content-section {
        padding-top: 24px;
        padding-bottom: 44px;
        overflow-x: hidden;
    }
    .detail-content-section > .max-w-7xl {
        padding-left: 18px;
        padding-right: 18px;
    }
    .detail-content-section > .max-w-7xl > .grid > * {
        min-width: 0;
    }
    .detail-content-section .admin-card {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .detail-slider { border-radius: 16px; }
    .detail-slider-main { aspect-ratio: 16/11; min-height: 0; }
    .detail-slider .slider-arrow { width: 38px; height: 38px; }
    .slider-thumbs { grid-auto-columns: minmax(72px, 88px); gap: 8px; padding-top: 10px; }
    .review-card { min-height: 260px; }
    .review-modal-backdrop { padding: 12px; align-items: flex-end; }
    .review-modal-panel { max-height: 86vh; border-radius: 18px 18px 0 0; padding: 24px 18px 20px; }
    .review-modal-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Slider arrows visibility tweak \u2014 always visible on touch, hover-only on desktop */
.slider-wrap { position: relative; }
.slider-wrap .slider-arrow { z-index: 4; }
@media (hover: hover) and (pointer: fine) {
    .slider-wrap:hover .slider-arrow { opacity: 1; }
    .slider-arrow { opacity: 0.92; }
}

.admin-sticky-actions {
    z-index: 40;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .admin-card.p-6 { padding: 1.15rem; }
    .upload-zone { padding: 20px; }
    .upload-zone-preview { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
    .gallery-editor-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
    .admin-sticky-actions {
        left: 0;
        right: 0;
        border-top: 1px solid var(--border-default);
        border-radius: 12px 12px 0 0;
    }
}

@media (min-width: 1280px) {
    .admin-sticky-actions {
        border-top: 1px solid rgba(0,0,0,0.03);
    }
}

/* ============================================================
   PREMIUM OFF-CANVAS MENU DRAWER (right side, full height)
   ============================================================ */
.menu-drawer-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(20,30,45,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}
.menu-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.menu-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 420px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--areia-light) 100%);
    box-shadow: -24px 0 80px rgba(30,58,82,0.25);
    z-index: 91;
    transform: translateX(100%);
    transition: transform 420ms cubic-bezier(.22,.9,.25,1);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.menu-drawer.open { transform: translateX(0); }
.menu-drawer[aria-hidden="true"] { }

.menu-drawer-inner {
    display: flex; flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.menu-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(62,46,31,0.08);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}
.menu-drawer-close {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,107,74,0.08);
    color: var(--terracota-dark);
    border: 1px solid rgba(201,107,74,0.15);
    transition: all 200ms ease;
}
.menu-drawer-close:hover {
    background: var(--terracota); color: #fff; border-color: transparent;
    transform: rotate(90deg);
}

.menu-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 24px;
    display: flex; flex-direction: column; gap: 4px;
}
.menu-drawer-section-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terracota);
    padding: 16px 12px 8px;
    position: relative;
}
.menu-drawer-section-title::after {
    content: ''; display: block;
    height: 1px; width: 30px;
    background: linear-gradient(90deg, var(--terracota), transparent);
    margin-top: 6px;
}
.menu-drawer-section-title:first-child { padding-top: 4px; }

.menu-drawer-link {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sepia);
    transition: all 220ms ease;
    position: relative;
    overflow: hidden;
}
.menu-drawer-link::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--terracota);
    transform: translateX(-4px);
    transition: transform 220ms ease;
    border-radius: 0 3px 3px 0;
}
.menu-drawer-link:hover {
    background: rgba(201,107,74,0.08);
    color: var(--terracota-dark);
    transform: translateX(4px);
}
.menu-drawer-link:hover::before { transform: translateX(0); }
.menu-drawer-link i { color: var(--horizonte); flex-shrink: 0; }
.menu-drawer-link:hover i { color: var(--terracota); }

.menu-drawer-prefs {
    display: flex; flex-direction: column; gap: 8px;
    padding: 4px 0;
}
.menu-drawer-pref { }
.menu-drawer-pref-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(62,46,31,0.1);
    font-size: 14px; font-weight: 600;
    color: var(--sepia);
    transition: all 200ms ease;
}
.menu-drawer-pref-btn > span { display: inline-flex; align-items: center; gap: 8px; }
.menu-drawer-pref-btn:hover { border-color: var(--terracota); background: #fff; }
.menu-drawer-pref-btn i { transition: transform 220ms ease; }
.menu-drawer-pref-btn i.rotate-180 { transform: rotate(180deg); }
.menu-drawer-pref-list {
    margin-top: 6px;
    background: #fff;
    border: 1px solid rgba(62,46,31,0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30,58,82,0.1);
}
.menu-drawer-pref-list a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 160ms ease;
}
.menu-drawer-pref-list a:hover { background: var(--areia-light); color: var(--terracota-dark); }

.menu-drawer-footer {
    padding: 18px 22px 22px;
    border-top: 1px solid rgba(62,46,31,0.08);
    background: rgba(255,255,255,0.6);
    flex-shrink: 0;
    display: flex; flex-direction: column; gap: 14px;
}
.menu-drawer-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-dark) 100%);
    box-shadow: 0 10px 28px rgba(201,107,74,0.4);
    transition: all 220ms ease;
    letter-spacing: 0.01em;
}
.menu-drawer-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,107,74,0.55); }
.menu-drawer-socials {
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.menu-drawer-socials a {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(58,107,138,0.08);
    color: var(--horizonte);
    border: 1px solid rgba(58,107,138,0.15);
    transition: all 220ms ease;
}
.menu-drawer-socials a:hover {
    background: var(--horizonte); color: #fff; border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58,107,138,0.35);
}
.menu-drawer-copy {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Hide mobile-menu-button duplication if present */
#mobile-menu { display: none !important; }

/* ============================================================
   GLOBAL: prevent horizontal overflow from rotating seals
   Needed because .section-divider-seal pseudos extend past viewport edges.
   Mobile menu + drawer depend on body width = 100%.
   ============================================================ */
html, body { overflow-x: clip; max-width: 100vw; }
@supports not (overflow-x: clip) {
    html, body { overflow-x: hidden; }
}

/* ============================================================
   FIX: card hover transform shifts the .heart-btn vertically mid-click
   on PC (not on mobile — no hover), causing mousedown/mouseup on different
   coordinates and browser discarding the click. Solution: deepen shadow
   instead of translating the card.
   ============================================================ */
.card-premium:hover {
    transform: none !important;
    box-shadow: 0 16px 36px rgba(46,62,79,0.14), 0 36px 80px rgba(46,62,79,0.18);
    border-color: rgba(201,107,74,0.28);
}
.roteiro-card:hover,
.card-lift:hover,
.pacote-card:hover {
    transform: none !important;
    box-shadow: 0 16px 36px rgba(46,62,79,0.14), 0 36px 80px rgba(46,62,79,0.18) !important;
}
/* Ensure heart is above every overlay and has its own compositing layer */
.heart-btn { z-index: 5 !important; will-change: auto; }
.heart-btn svg { pointer-events: none; }

/* ============================================================
   ADMIN SIDEBAR: hidden overflow by default, scroll on hover only
   ============================================================ */
.admin-sidebar {
    overflow: hidden !important;
    transition: none;
}
.admin-sidebar nav {
    overflow-y: hidden !important;
    transition: overflow-y 150ms;
}
.admin-sidebar:hover nav,
.admin-sidebar nav:hover,
.admin-sidebar nav:focus-within {
    overflow-y: auto !important;
}
/* Slim scrollbar for sidebar */
.admin-sidebar nav::-webkit-scrollbar { width: 6px; }
.admin-sidebar nav::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.admin-sidebar nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* ============================================================
   AVAILABILITY CALENDAR (roteiro-detail)
   ============================================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.calendar-cell {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1.5px solid transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 150ms, border-color 150ms, color 150ms;
    position: relative;
    padding: 4px;
}
.calendar-cell.empty { visibility: hidden; cursor: default; }
.calendar-cell.past { color: #CBD5E1; cursor: not-allowed; background: transparent; }
.calendar-cell .cal-day { font-size: 14px; font-weight: 700; line-height: 1; }
.calendar-cell .cal-price {
    font-size: 9px; font-weight: 700; margin-top: 3px; letter-spacing: 0.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.calendar-cell.available {
    background: rgba(111,143,79,0.12);
    border-color: rgba(111,143,79,0.3);
    color: var(--maresia-dark);
}
.calendar-cell.available:hover {
    background: rgba(111,143,79,0.25);
    border-color: var(--maresia);
}
.calendar-cell.low {
    background: rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.35);
    color: #B45309;
}
.calendar-cell.low:hover { background: rgba(245,158,11,0.22); border-color: #F59E0B; }
.calendar-cell.blocked {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
    text-decoration: line-through;
}
.calendar-cell.blocked:hover { background: #F3F4F6; }
.calendar-cell.selected {
    background: var(--terracota) !important;
    border-color: var(--terracota-dark) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(201,107,74,0.35);
}
.calendar-cell.selected .cal-price { color: rgba(255,255,255,0.9); }
@media (max-width: 640px) {
    .calendar-cell .cal-price { display: none; }
    .calendar-cell { font-size: 13px; padding: 2px; }
}
@media (max-width: 480px) {
  .calendar-cell { font-size: 11px !important; padding: 1px !important; min-height: 38px !important; }
  .calendar-cell .cal-day { font-size: 12px !important; }
  .calendar-grid { gap: 3px !important; }
}

/* ============================================================
   AVAILABILITY CALENDAR (roteiro-detail)
   ============================================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.calendar-cell {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1.5px solid transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 150ms, border-color 150ms, color 150ms;
    position: relative;
    padding: 4px;
}
.calendar-cell.empty { visibility: hidden; cursor: default; }
.calendar-cell.past { color: #CBD5E1; cursor: not-allowed; background: transparent; }
.calendar-cell .cal-day { font-size: 14px; font-weight: 700; line-height: 1; }
.calendar-cell .cal-price {
    font-size: 9px; font-weight: 700; margin-top: 3px; letter-spacing: 0.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.calendar-cell.available {
    background: rgba(111,143,79,0.12);
    border-color: rgba(111,143,79,0.3);
    color: var(--maresia-dark);
}
.calendar-cell.available:hover {
    background: rgba(111,143,79,0.25);
    border-color: var(--maresia);
}
.calendar-cell.low {
    background: rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.35);
    color: #B45309;
}
.calendar-cell.low:hover { background: rgba(245,158,11,0.22); border-color: #F59E0B; }
.calendar-cell.blocked {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
    text-decoration: line-through;
}
.calendar-cell.blocked:hover { background: #F3F4F6; }
.calendar-cell.selected {
    background: var(--terracota) !important;
    border-color: var(--terracota-dark) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(201,107,74,0.35);
}
.calendar-cell.selected .cal-price { color: rgba(255,255,255,0.9); }
@media (max-width: 640px) {
    .calendar-cell .cal-price { display: none; }
    .calendar-cell { font-size: 13px; padding: 2px; }
}
@media (max-width: 480px) {
  .calendar-cell { font-size: 11px !important; padding: 1px !important; min-height: 38px !important; }
  .calendar-cell .cal-day { font-size: 12px !important; }
  .calendar-grid { gap: 3px !important; }
}

/* ============================================================
   PRODUCTION MOBILE/PERF PATCH 2026-05
   ============================================================ */
html.is-overlay-locked,
body.is-overlay-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}
.cart-drawer {
    height: 100dvh;
    background: var(--bg-card, #fff);
    overscroll-behavior: contain;
}
.cart-drawer.open { transform: translateX(0); }
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
#cart-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.slider-wrap .slide[data-bg]:not([style]) {
    background-image: linear-gradient(135deg, rgba(58,107,138,.28), rgba(201,107,74,.24));
    background-size: cover;
    background-position: center;
}
@media (max-width: 640px) {
    .menu-drawer { max-width: min(92vw, 360px); }
    .menu-drawer-inner { overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
    .menu-drawer-header { padding: 12px 16px !important; min-height: 60px; }
    .menu-drawer-header img { max-height: 36px; width: auto; }
    .menu-drawer-nav { flex: 0 0 auto !important; overflow: visible !important; padding: 10px 16px 0 !important; }
    .menu-drawer-section-title { margin-top: 12px !important; margin-bottom: 6px !important; padding: 0 !important; font-size: 10px !important; }
    .menu-drawer-section-title:first-child { margin-top: 2px !important; }
    .menu-drawer-link { min-height: 38px !important; padding: 8px 10px !important; border-radius: 11px !important; font-size: 13px !important; gap: 9px !important; }
    .menu-drawer-prefs { gap: 6px !important; padding: 2px 0 0 !important; }
    .menu-drawer-pref-btn { padding: 9px 10px !important; border-radius: 11px !important; font-size: 13px !important; }
    .menu-drawer-pref-list a { padding: 8px 10px !important; font-size: 12px !important; }
    .menu-drawer-footer { padding: 10px 16px 16px !important; border-top: 0 !important; background: transparent !important; gap: 8px !important; flex-shrink: 1 !important; }
    .menu-drawer-cta { padding: 10px 14px !important; border-radius: 12px !important; font-size: 13px !important; box-shadow: 0 8px 20px rgba(201,107,74,.28) !important; }
    .menu-drawer-socials { gap: 8px !important; }
    .menu-drawer-socials a { width: 34px !important; height: 34px !important; border-radius: 10px !important; }
    .menu-drawer-copy { display: none !important; }
}
@media (max-width: 480px) {
    .cart-drawer { max-width: 100vw !important; width: 100vw !important; }
    .cart-item { grid-template-columns: 58px 1fr auto; gap: 10px; padding: 10px; }
    .cart-item img { width: 58px; height: 58px; }
}
