/* ===================================
   Tourism Trinidad — Island Noir Design System
   Main 3D Explorer Page
   =================================== */

/* ------ Design Tokens (mirrors dark-theme.css) ------ */
/* Aliases only — the palette lives in assets/css/dark-theme.css (loaded first).
   Local names kept for compatibility; values flow from the central tokens. */
:root {
    --bg-card:    var(--bg-elevated);
    --glass-md:   var(--glass-hover);
    --glass-hi:   var(--glass-active);
    --border-hi:  var(--border-bright);
    --text-1:     var(--text-primary);
    --text-2:     var(--text-secondary);
    --text-3:     var(--text-muted);
    --blur-sm:    blur(8px);
    --blur-md:    blur(20px);
    --shadow-glow: 0 0 40px var(--brand-dim);
    --shadow-card: var(--shadow-md);
}

/* ===================================
   RESET & BASE
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-base);
    color: var(--text-1);
    overflow-x: hidden;
    /* Subtle noise texture */
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(220,20,60,0.07) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER — Glassmorphism
   =================================== */

header {
    position: relative;
    z-index: 100;
    padding: 20px 0;
    background: rgba(13, 13, 15, 0.75);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(220, 20, 60, 0.25), var(--shadow-glow);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-content {
    flex: 1;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-1);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

header h1 span.brand-tourism {
    color: var(--brand);
}

.tagline {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-2);
    font-weight: 300;
    letter-spacing: 0.03em;
}

/* ===================================
   HOME 3D WRAPPER
   Full-viewport area (below sticky React Nav)
   =================================== */

.home-3d-wrap {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);  /* 60px = React Nav height */
    min-height: 480px;
    overflow: hidden;
}

/* Hero text overlay — top-left of the canvas area */
.home-hero-overlay {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 50;
    pointer-events: none;
    width: 90%;
    max-width: 700px;
}

.home-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.home-hero-title .brand-tourism {
    color: var(--brand);
}

.home-hero-tagline {
    font-size: 0.92rem;
    color: var(--text-2);
    font-weight: 300;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
    margin: 0;
}

/* ===================================
   3D CANVAS CONTAINER
   =================================== */

#canvas-container {
    width: 100%;
    height: 100%;           /* fills .home-3d-wrap */
    position: absolute;
    top: 0; left: 0;
    cursor: pointer;
    background: transparent;
}

canvas {
    display: block;
    outline: none;
}

/* ===================================
   FILTER CONTROLS — Glass Pills
   =================================== */

.filter-controls {
    position: absolute;
    top: auto;
    bottom: 28px;           /* anchored to bottom of the 3D wrap */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 8px;
    background: rgba(13, 13, 15, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}

.filter-btn {
    background: var(--glass);
    color: var(--text-2);
    border: 1px solid var(--border);
    padding: 7px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--brand-dim);
    border-color: rgba(220, 20, 60, 0.4);
    color: var(--text-1);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 2px 12px rgba(220, 20, 60, 0.45);
}

/* ===================================
   MY VISIT LIST BUTTON
   =================================== */

.visit-list-btn {
    position: relative;
    background: var(--brand);
    color: #ffffff;
    border: none;
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(220, 20, 60, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.visit-list-btn:hover {
    background: #c0102e;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(220, 20, 60, 0.65);
}

.list-icon {
    font-size: 1.2rem;
}

.list-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    min-width: 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.list-count.has-items {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* ===================================
   VISIT LIST SIDEBAR — Dark Glass
   =================================== */

.visit-list-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: rgba(20, 20, 26, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-hi);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    color: var(--text-1);
}

.visit-list-sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 22px 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(220,20,60,0.12) 0%, transparent 100%);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: var(--brand);
    border-radius: 2px;
}

.close-btn {
    background: var(--glass-md);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--brand-dim);
    border-color: var(--brand);
    color: var(--brand);
    transform: rotate(90deg);
}

.visit-list-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 20, 60, 0.35) transparent;
}

.visit-list-content::-webkit-scrollbar {
    width: 4px;
}
.visit-list-content::-webkit-scrollbar-track {
    background: transparent;
}
.visit-list-content::-webkit-scrollbar-thumb {
    background: rgba(220, 20, 60, 0.35);
    border-radius: 4px;
}

.empty-message {
    text-align: center;
    color: var(--text-3);
    padding: 50px 20px;
    font-style: italic;
    font-size: 0.95rem;
}

.visit-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    position: relative;
    transition: background 0.2s;
}

.visit-item:hover {
    background: var(--glass-md);
}

.visit-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-1);
    font-weight: 600;
    padding-right: 28px;
}

.visit-item .island-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-2);
    background: var(--glass-md);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.visit-item.trinidad .island-tag {
    background: var(--brand-dim);
    border-color: rgba(220, 20, 60, 0.3);
    color: #ff7a8a;
}

.remove-item {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--glass-md);
    border: 1px solid var(--border);
    color: var(--text-3);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-item:hover {
    background: var(--brand-dim);
    border-color: var(--brand);
    color: var(--brand);
    transform: scale(1.1);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--glass);
}

.email-btn {
    width: 100%;
    background: var(--brand);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(220, 20, 60, 0.4);
}

.email-btn:hover:not(:disabled) {
    background: #c0102e;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.6);
    transform: translateY(-1px);
}

.email-btn:disabled {
    background: var(--glass-md);
    color: var(--text-3);
    cursor: not-allowed;
    box-shadow: none;
}

/* ===================================
   MODAL — Dark Glass
   =================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-hi);
    margin: auto;
    width: 90%;
    max-width: 680px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(220,20,60,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes slideIn {
    from { transform: translateY(-30px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);        opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--text-2);
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: var(--glass-md);
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--brand-dim);
    border-color: var(--brand);
    color: var(--brand);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* Image overlay gradient for dark transition */
.modal-image-wrap {
    position: relative;
}
.modal-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
}

.modal-info {
    padding: 28px 30px 30px;
}

.modal-info h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.island-badge {
    display: inline-block;
    background: var(--glass-md);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.island-badge.trinidad {
    background: var(--brand-dim);
    border-color: rgba(220, 20, 60, 0.3);
    color: #ff7a8a;
}

.modal-info p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-1);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand);
}

/* ===================================
   EMAIL FORM MODAL — Dark Glass
   =================================== */

.email-modal-content {
    max-width: 480px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-2);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--glass);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.12);
    background: var(--glass-md);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.25s;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(220, 20, 60, 0.4);
}

.btn-primary:hover {
    background: #c0102e;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.6);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--glass-md);
    border: 1px solid var(--border-hi);
    color: var(--text-2);
}

.btn-secondary:hover {
    background: var(--glass-hi);
    color: var(--text-1);
}

.email-status {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    display: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.email-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.email-status.error {
    display: block;
    background: rgba(220, 20, 60, 0.12);
    color: #f87171;
    border: 1px solid rgba(220, 20, 60, 0.25);
}

/* ===================================
   LOADING SCREEN
   =================================== */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    transition: opacity 0.5s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    margin-top: 18px;
    font-size: 1rem;
    color: var(--text-2);
    letter-spacing: 0.05em;
}

/* ===================================
   FOOTER — Island Noir
   =================================== */

footer {
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    padding: 48px 0 36px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%);
    opacity: 0.7;
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.footer-content h3 span {
    color: var(--brand);
}

.footer-tagline {
    color: var(--text-3);
    font-size: 0.85rem;
    margin-bottom: 28px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.video-container {
    position: relative;
    width: 340px;
    height: 192px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(220, 20, 60, 0.25), 0 0 0 1px var(--border);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-copy {
    margin-top: 28px;
    font-size: 0.8rem;
    color: var(--text-3);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .home-hero-title  { font-size: 1.8rem; }
    .home-hero-tagline { font-size: 0.84rem; }

    .home-3d-wrap { height: calc(100vh - 60px); min-height: 400px; }

    .filter-controls {
        bottom: 16px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 7px 12px;
        max-width: 92vw;
    }

    .filter-btn { padding: 6px 14px; font-size: 0.82rem; }

    #canvas-container { height: 100%; }

    .visit-list-sidebar {
        width: 100%;
        right: -100%;
    }

    .header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .vendors-nav-btn {
        flex: 1;
        justify-content: center;
    }

    .visit-list-btn {
        flex: 1;
        justify-content: center;
    }

    .modal-content { width: 95%; max-height: 90vh; overflow-y: auto; }
    .modal-info h2 { font-size: 1.4rem; }
    .modal-info p  { font-size: 0.92rem; }

    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
    }

    .video-container { width: 100%; max-width: 480px; height: auto; aspect-ratio: 16/9; }

    .vendor-modal-inner { width: 95%; padding: 22px 18px; }
}

@media (max-width: 480px) {
    .home-hero-title  { font-size: 1.4rem; }
    .home-hero-overlay { top: 16px; }

    .filter-controls { padding: 6px 10px; gap: 5px; bottom: 12px; }
    .filter-btn { padding: 5px 11px; font-size: 0.78rem; }

    .home-video-section { padding: 36px 0 24px; }

    .vendor-modal-inner { padding: 18px 14px; }
}

/* ===================================
   HOME VIDEO SECTION (YouTube)
   =================================== */

.home-video-section {
    background: var(--bg-raised);
    padding: 60px 0 48px;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.home-video-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--brand) 30%,
        var(--gold) 50%,
        var(--brand) 70%,
        transparent 100%);
    opacity: 0.6;
}

.footer-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-1);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.footer-title .brand-tourism {
    color: var(--brand);
}

/* ===================================
   VENDOR SYSTEM ADDITIONS
   =================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vendors-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: #f0f0f5;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.vendors-nav-btn:hover {
    border-color: rgba(220, 20, 60, 0.5);
    background: var(--brand-dim);
    color: #fff;
    box-shadow: 0 0 16px rgba(220, 20, 60, 0.2);
}

/* Verified badge — used in 3D modal + vendor cards */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #065f46, #10B981);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px 3px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.35);
    vertical-align: middle;
}

/* Vendor modal (injected by vendors-integration.js) */
#vendor-modal {
    display: none;
    position: fixed;
    z-index: 3500;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

#vendor-modal[style*="flex"] {
    display: flex !important;
}

.vendor-modal-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
    width: 90%;
    max-width: 520px;
    padding: 32px;
    position: relative;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vendor-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--glass-md);
    border: 1px solid var(--border);
    color: var(--text-2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
}

.vendor-modal-close:hover {
    background: var(--brand-dim);
    border-color: var(--brand);
    color: var(--brand);
    transform: rotate(90deg);
}

#vendor-modal-logo-wrap {
    margin-bottom: 16px;
}

#vendor-modal-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--glass);
    padding: 4px;
}

#vendor-modal-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

#vendor-modal-verified {
    display: inline-flex;
    margin-bottom: 12px;
}

.vendor-modal-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.vendor-modal-meta span {
    font-size: 0.82rem;
    color: var(--text-2);
    background: var(--glass-md);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
}

#vendor-modal-tagline {
    font-size: 0.95rem;
    color: var(--text-2);
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

#vendor-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand);
    color: #fff;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(220, 20, 60, 0.4);
}

#vendor-modal-link:hover {
    background: #c0102e;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.6);
}

/* ===================================
   LOADING SCREEN
   =================================== */

.loading-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-base);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(220, 20, 60, 0.18);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spinLoader 0.85s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-2);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    font-weight: 400;
}

/* ===================================
   SIDEBAR CONTENT & FOOTER
   =================================== */

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.empty-message {
    color: var(--text-2);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
    padding: 28px 8px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.email-list-btn {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 24px rgba(220, 20, 60, 0.25);
    transition: background 0.18s, box-shadow 0.18s;
}

.email-list-btn:hover:not(:disabled) {
    background: #b01030;
    box-shadow: 0 0 32px rgba(220, 20, 60, 0.4);
}

.email-list-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ===================================
   VISIT ITEM CARDS (inside sidebar)
   =================================== */

.visit-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.visit-item h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-1);
    margin: 0 0 4px;
}

.island-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.visit-item.trinidad .island-tag {
    background: rgba(220, 20, 60, 0.14);
    color: var(--brand);
    border: 1px solid rgba(220, 20, 60, 0.25);
}

.visit-item.tobago .island-tag {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    margin-left: auto;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.remove-item:hover {
    color: var(--brand);
    background: rgba(220, 20, 60, 0.1);
}

/* ===================================
   MODAL — Attraction & Email
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.18s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-content {
    background: #141418;
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.22s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(18px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    background: rgba(13, 13, 15, 0.7);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-2);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: rgba(220, 20, 60, 0.2);
    color: var(--text-1);
}

.modal-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    display: block;
}

.modal-body {
    padding: 22px 24px;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.island-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    background: rgba(220, 20, 60, 0.12);
    color: var(--brand);
    border: 1px solid rgba(220, 20, 60, 0.25);
}

.island-badge.trinidad {
    background: rgba(220, 20, 60, 0.12);
    color: var(--brand);
    border-color: rgba(220, 20, 60, 0.25);
}

.island-badge.tobago {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.2);
}

.modal-description {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.7;
    margin: 12px 0 20px;
}

.visit-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-1);
    font-size: 0.875rem;
    font-weight: 500;
}

.visit-checkbox-label input {
    width: 16px; height: 16px;
    accent-color: var(--brand);
    cursor: pointer;
}

/* ── Email modal specifics ── */

.email-modal-content {
    max-width: 500px;
}

.email-modal-body {
    padding: 28px 24px;
}

.email-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-1);
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-modal-title i { color: var(--brand); }

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-3);
}

.form-input, .form-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-1);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus {
    border-color: rgba(220, 20, 60, 0.5);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.email-status {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.email-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.email-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.btn-cancel:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.1); }

.btn-send {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.25);
    transition: background 0.15s;
}

.btn-send:hover { background: #b01030; }
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===================================
   VIDEO SECTION
   =================================== */

.video-section {
    background: linear-gradient(180deg, var(--bg-base) 0%, #0f1218 100%);
    padding: 32px 24px;
    text-align: center;
}

.video-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}

.video-sub {
    color: var(--text-2);
    font-size: 0.82rem;
    margin: 0 0 16px;
}

.video-wrap {
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 480px) {
    .modal-body { padding: 16px; }
    .email-modal-body { padding: 20px 16px; }
    .form-actions { flex-direction: column-reverse; }
    .btn-send, .btn-cancel { width: 100%; justify-content: center; }
    .home-3d-wrap { height: calc(100svh - 60px); }
    .visit-list-sidebar { width: min(340px, 92vw); }
}
