/* --- VARIABLES & RESET --- */
:root {
    --app-width: 450px;
    --primary: #0f172a;
    --primary-dark: #0b1220;
    --electric: #0052FF;
    --electric-hover: #0041cc;
    --gold: #D4AF37;
    --gold-bright: #FFD700;
    --gold-text: #B48E2D;
    --cream: #FAF8F2;
    --white: #ffffff;
    --success: #27ae60;
    --danger: #e74c3c;
    --text-dark: #1a1a1a;

    /* Neutral Scale (semantic grays) */
    --neutral-900: #1a1a1a;
    --neutral-700: #404040;
    --neutral-500: #737373;
    --neutral-300: #d4d4d4;
    --neutral-200: #e5e5e5;
    --neutral-100: #f5f5f5;

    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

button {
    min-height: 44px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Prevent pinch-zoom gestures on iOS/touch devices */
    touch-action: pan-x pan-y;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #111;
    /* Use dynamic viewport height to fix mobile address bar glitches */
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    /* Disable Pull-to-Refresh and Lateral Rubber-banding */
    overscroll-behavior: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    color: var(--text-dark);
}

html.map-active,
body.map-active {
    overflow: hidden !important;
}

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.splash-logo {
    font-weight: 700;
    letter-spacing: -0.8px;
    font-size: 1.35rem;
    color: var(--gold);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.splash-logo-img {
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

.splash-logo span {
    color: var(--gold);
}

#app {
    width: 100%;
    max-width: var(--app-width);
    margin: 0 auto;
    height: 100%;
    background: var(--cream);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Clips any content trying to go sideways */
}

/* --- HEADER --- */
header {
    padding: calc(15px + var(--safe-top)) 20px 15px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-width);
}

.logo {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo span {
    color: var(--gold-text);
}

.btn-back {
    border: none;
    background: none;
    color: var(--primary);
    cursor: pointer;
    display: none;
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-direction: row;
}

.btn-back i {
    font-size: 1.2rem;
}

/* --- PREMIUM HEADER VARIATIONS --- */

/* Variation A: Centered logo with text below */
.header-premium.header-centered .header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-premium.header-centered .header-brand:hover {
    opacity: 0.8;
}

.header-premium.header-centered .brand-icon {
    height: 28px;
    width: auto;
}

.header-premium.header-centered .brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Variation B: Left-aligned text with icon */
.header-premium.header-left {
    justify-content: flex-start;
    gap: 16px;
}

.header-premium.header-left .header-brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex: 1;
}

.header-premium.header-left .header-brand-left:hover {
    opacity: 0.8;
}

.header-premium.header-left .brand-icon-small {
    height: 32px;
    width: auto;
}

.header-premium.header-left .brand-text-left {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 0.08em;
}

.header-premium.header-left .btn-back {
    margin-left: auto;
}

/* --- LEFT-ALIGNED HEADER WITH LOGO + TEXT --- */
.header-with-text {
    justify-content: space-between;
}

.header-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-brand-row:hover {
    opacity: 0.8;
}

.header-logo-small {
    height: 32px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.header-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.header-text-highlight {
    color: #D4AF37;
    font-weight: 700;
}

/* --- LAYOUT --- */
#main-container {
    flex: 1;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    isolation: isolate;
}

#main-container.ticket-mode {
    padding-top: 0;
    padding-bottom: 0;
}

.view {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.98);
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: var(--header-h, 70px);
    left: 0;
    right: 0;
    bottom: 80px;
    background: var(--cream);
    padding: 12px;
    /* Ensure views strictly cannot scroll horizontally */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    /* Keeps scroll inside the div */
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
}

#main-container.ticket-mode .view {
    top: 0;
    bottom: 0;
}

#main-container.detail-view #view-detail {
    bottom: 0;
}

.view.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

@media (hover: none) and (pointer: coarse) {

    #view-map.view,
    #view-ticket.view {
        overflow-y: hidden;
        overscroll-behavior-y: none;
    }
}

#bottom-nav .nav-item,
.p-card,
button,
.btn-floating,
.q-cat-item,
.chip,
.map-filter-chip,
.map-card-preview-btn,
.btn-fav,
.p-thumb,
.p-info,
.info-item {
    touch-action: manipulation;
}

#view-detail.view {
    padding: 0;
}

#view-ticket.view {
    padding: 0;
}

#view-home.view {
    padding-bottom: 120px;
}

@media (hover: none) and (pointer: coarse) and (max-width: 480px) {
    #view-home.view {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow-y: hidden;
        bottom: auto;
        height: calc(100% - var(--header-h, 70px) - 80px);
        padding: 8px 22px 12px;
        gap: 6px;
    }

    #view-home.view .hero-section {
        padding: 10px 12px;
        margin-bottom: 0;
    }

    #view-home.view .hero-logo {
        width: 36px;
        margin-bottom: 4px;
    }

    #view-home.view .hero-brand-name {
        font-size: 1.2rem;
        line-height: 1.1;
        margin: 0;
    }

    #view-home.view .hero-microcopy {
        font-size: 0.75rem;
        margin: 0;
    }

    #view-home.view .demo-badge {
        padding: 6px 12px;
    }

    #view-home.view .demo-label {
        font-size: 0.7rem;
    }

    #view-home.view .demo-status {
        font-size: 0.8rem;
    }

    #view-home.view .home-section-title {
        margin: 2px 0 6px;
        font-size: 0.95rem;
    }

    #view-home.view .experience-cards {
        gap: 6px;
        margin-bottom: 0;
    }

    #view-home.view .exp-card {
        padding: 12px;
        aspect-ratio: 1 / 0.8;
        gap: 3px;
        min-height: 0;
    }

    #view-home.view .exp-card__icon {
        font-size: 1.35rem;
        margin-bottom: 0;
    }

    #view-home.view .exp-card__title {
        font-size: 0.85rem;
    }

    #view-home.view .exp-card__desc {
        font-size: 0.65rem;
    }
}

@media (hover: none) and (pointer: coarse) and (max-width: 360px),
 (hover: none) and (pointer: coarse) and (max-height: 700px) {
    #view-home.view {
        padding: 6px 26px 10px;
        gap: 5px;
    }

    #view-home.view .hero-section {
        padding: 8px 10px;
    }

    #view-home.view .hero-logo {
        width: 32px;
    }

    #view-home.view .hero-brand-name {
        font-size: 1.1rem;
    }

    #view-home.view .home-section-title {
        font-size: 0.9rem;
        margin: 2px 0 5px;
    }

    #view-home.view .exp-card {
        padding: 10px;
    }

    #view-home.view .exp-card__icon {
        font-size: 1.25rem;
    }
}

#view-home .chips-container,
#view-home .chip:not(.q-icon),
#view-home .search-input {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    width: 0 !important;
    pointer-events: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography improvements */
h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.home-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 8px 0 8px;
    text-align: center;
}

/* --- QUICK CATEGORIES (HOME) --- */
#view-home .chips-container,
#view-home .search-input,
#view-home .chip {
    display: none !important;
}

.quick-cats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    visibility: visible !important;
    opacity: 1 !important;
}

.q-cat-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    visibility: visible !important;
}

.q-cat-item span {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 8px;
    color: var(--neutral-700);
    display: block;
}

.q-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    visibility: visible !important;
}

.q-icon i {
    display: inline-block !important;
    font-size: 1.5rem;
}

.q-icon.action {
    background: var(--electric);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.20);
}

.q-icon.action i {
    color: white;
}

.q-cat-item:active .q-icon {
    transform: none;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.04);
}

.p-card:active,
.q-cat-item:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s;
}

/* --- EXPERIENCE CARDS (Premium 2x2 layout) --- */
.experience-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.exp-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    aspect-ratio: 1 / 0.75;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.exp-card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.exp-card__icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.exp-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.exp-card__desc {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--neutral-500);
    margin: 0;
    line-height: 1.2;
}

.exp-card--action {
    border: 2px solid var(--electric);
    background: rgba(0, 82, 255, 0.03);
}

.exp-card--action .exp-card__icon {
    color: var(--electric);
}


/* --- HERO SECTION (Brand-First, Couple-Centric) --- */
.hero-section {
    background: linear-gradient(135deg, #FFE69A 0%, #FFB84D 100%);
    border-radius: 16px;
    padding: 12px 16px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: 0 10px 30px rgba(255, 182, 77, 0.15);
}

.hero-logo {
    width: 48px;
    height: auto;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.demo-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.demo-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-status {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* --- COMPONENTS --- */
.card-gold {
    --rx: 0deg;
    --ry: 0deg;
    --gx: 50%;
    --gy: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    will-change: transform;
    /* breathing animation removed */
}

.card-gold.is-tilting {
    animation-play-state: running;
    transition: none;
}

.card-gold:not(.is-tilting) {
    transition: transform 0.35s ease;
}

.card-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.12) 18%, transparent 55%);
    mix-blend-mode: overlay;
    opacity: 0.9;
    pointer-events: none;
    transform: translateZ(1px);
}

.card-gold-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.card-gold .gold-left {
    flex: 1;
    min-width: 0;
}

.card-gold .gold-text {
    color: var(--primary);
    font-weight: 700;
}

.card-gold .status-badge {
    margin-left: auto;
}

.card-gold::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.2;
}

/* golden-breath animation removed - too distracting */

/* status-badge (gold shield) removed - felt like mobile game achievement */

/* live-gradient (rotating conic background) removed - unused and distracting */

/* heartbeat-border animation removed - too much visual noise */

/* Banner Active */
.active-banner {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 18px 50px rgba(39, 174, 96, 0.16);
    cursor: pointer;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pulsing-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.35);
    animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Partners */
.p-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.p-card:active {
    transform: scale(0.98);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.p-card.removing {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.9) translateY(20px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, filter 0.4s ease-in-out;
    pointer-events: none;
}

.p-card.closed-today {
    opacity: 0.72;
}

.closed-today-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(231, 76, 60, 0.92);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 7px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    z-index: 12;
}

.p-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.p-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.p-fav-star {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    padding: 12px;
}

.p-fav-star:hover {
    transform: scale(1.1);
}

.p-fav-star.active {
    color: var(--electric);
}

.p-fav-star:active {
    transform: scale(0.9);
}

.p-info {
    padding: 16px;
}

.p-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--primary);
    line-height: 1.3;
}

.p-offer {
    color: var(--success);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Inputs & Chips */
.search-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--neutral-200);
    background: white;
    margin-bottom: 14px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    position: relative;
    z-index: 2;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.open-today-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    padding: 12px 16px;
    margin-left: 12px;
    margin-right: 12px;
    margin-top: 10px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.open-today-toggle:active {
    transform: scale(0.99);
}

.open-today-toggle.active {
    border-color: rgba(39, 174, 96, 0.35);
    background: rgba(39, 174, 96, 0.06);
}

.open-today-toggle-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.open-today-toggle-control {
    position: relative;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.open-today-toggle-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.open-today-toggle-switch {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16);
    transition: background 0.2s;
}

.open-today-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s;
    will-change: transform;
}

.open-today-toggle-input:checked+.open-today-toggle-switch {
    background: var(--success);
}

.open-today-toggle-input:checked+.open-today-toggle-switch::after {
    transform: translateX(22px);
}

.open-today-toggle-input:focus+.open-today-toggle-switch {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ai-analysis badge and animations removed - unexplained feature */
.chips-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
    padding-left: 12px;
    padding-right: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.view#view-explore .chips-container {
    margin-top: 12px;
    padding-top: 0;
    padding-bottom: 16px;
    overflow-y: visible;
}

.chips-container::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-700);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 12px;
}

.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chip:active {
    transform: scale(0.95);
}

/* Profile */
.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.profile-badge {
    background: white;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid #e5e5e5;
}

.profile-name-editable {
    cursor: pointer;
}

.profile-section-heading {
    margin: 24px 0 12px;
    color: var(--neutral-700);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-section-heading:first-of-type {
    margin-top: 0;
}

.legal-links-container {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.legal-link {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--neutral-200);
}

.legal-link:last-child {
    border-bottom: none;
}

.legal-link__icon {
    opacity: 0.5;
}

#profile-admin-btn {
    display: none;
}

.admin-trash-btn {
    padding: 12px;
    color: var(--danger);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(231, 76, 60, 0.08);
    border-radius: 14px;
    cursor: pointer;
}

.admin-trash-btn:active {
    transform: scale(0.96);
}

#address-suggestions {
    z-index: 20000 !important;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

#address-suggestions:empty {
    display: none;
}

/* Detail & Footer */
#view-detail {
    padding: 0 !important;
    margin-top: 0 !important;
    z-index: 1000;
}

#main-container.detail-view {
    padding-top: 0;
}

#detail-content {
    padding: 0;
    padding-bottom: 140px;
    margin-top: 0;
}

.gallery-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 0;
}

.gallery-scroller::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    min-width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.gallery-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px 4px 16px;
    background: transparent;
}

.gallery-dots-container .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold);
    opacity: 0.9;
    cursor: pointer;
}

.gallery-dots-container .dot.active {
    background: #b8860b;
    opacity: 1;
}

.detail-content-inner {
    padding: 16px;
    padding-bottom: 160px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.detail-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.2px;
    text-transform: none;
}

.detail-reservation-badge {
    display: inline-flex;
    align-items: center;
    color: #7a120c;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.28);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2px;
    text-transform: none;
}

.detail-reservation-badge.is-recommended {
    color: #856404;
    background: #fff3cd;
    border-color: #ffeeba;
}

.detail-header h2 {
    margin: 4px 0 0 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.btn-fav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--neutral-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
    padding: 12px;
}

.btn-fav.active {
    color: var(--electric);
    border-color: var(--electric);
    background: rgba(0, 82, 255, 0.06);
}

/* --- DETAIL VIEW NEW COMPONENTS --- */
.info-box {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    color: var(--primary);
}

.info-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.info-item span {
    flex: 1;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

.btn-see-on-map {
    margin-top: 8px;
    padding: 12px 16px !important;
    background: rgba(0, 122, 255, 0.1);
    border: 2px solid var(--primary) !important;
    border-radius: 12px;
    font-weight: 600 !important;
}

.btn-see-on-map:hover {
    background: var(--primary);
    color: white !important;
}

.btn-see-on-map:hover span {
    color: white !important;
}

.btn-see-on-map i {
    color: var(--primary) !important;
}

.btn-see-on-map:hover i {
    color: white !important;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #856404;
}

.closed-today-banner {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.28);
    color: rgba(120, 18, 12, 0.92);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.warning-box i {
    font-size: 1.2rem;
    color: #ff9800;
}

.warning-box span {
    font-weight: 700;
    font-size: 0.9rem;
}

.offer-section {
    background: #f4fff4;
    border: 1px dashed var(--success);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.offer-header {
    margin-bottom: 12px;
}

.offer-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(39, 174, 96, 0.2);
}

.offer-detail:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.offer-detail i {
    color: var(--success);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.offer-detail span {
    font-size: 0.9rem;
    color: var(--neutral-700);
    line-height: 1.5;
}

.how-to-use-box {
    background: #f5f5f5;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.how-to-use-box i {
    color: var(--gold-text);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.how-to-use-box strong {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.how-to-use-box p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--neutral-700);
    line-height: 1.5;
}

/* --- MAP PREVIEW CARD --- */
.map-card-preview {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    will-change: transform, opacity;
}

.map-card-preview-actions {
    display: flex;
    justify-content: flex-end;
}

.map-card-preview-btn {
    appearance: none;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.map-card-preview-btn:active {
    transform: scale(0.98);
}

.map-card-preview.hidden {
    transform: translateX(-50%) translateY(120%);
    pointer-events: none;
    opacity: 0;
}

.map-card-preview.active {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    opacity: 1;
}

.map-card-preview.closed-venue {
    filter: grayscale(100%);
}

.map-card-preview.closed-venue.active {
    opacity: 0.9;
}

.map-preview-closed-badge {
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.28);
    color: rgba(120, 18, 12, 0.92);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.2px;
}

.map-card-preview-thumb {
    width: 120px;
    min-width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.map-card-preview-info {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-card-preview-cat {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.map-card-preview-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.map-card-preview-offer {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-card-preview-offer i {
    font-size: 0.875rem;
}

/* --- ON-MAP FILTERS --- */
.map-filters-container {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    transform: none;
    z-index: 1000;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    pointer-events: none;
    background: transparent;
}

/* Ensure filters are contained within map view and don't overlap header */
#view-map #leaflet-map {
    position: relative;
    overflow: hidden;
}

#view-map #leaflet-map .map-filters-container {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    transform: none;
    z-index: 1000;
    pointer-events: none;
}

#view-map #leaflet-map .map-filters-container .chips-container {
    pointer-events: none;
}

#view-map #leaflet-map .map-filters-container .chip {
    pointer-events: auto;
}

.map-filter-chip {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 12px;
    min-height: 44px;
}

.map-filter-chip:hover {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.map-filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
}

/* --- COLORED MARKERS --- */
.custom-marker {
    background: transparent !important;
    border: none !important;
    pointer-events: auto !important;
    cursor: pointer;
}

.custom-marker * {
    pointer-events: auto !important;
}

.marker-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-label {
    display: none;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
    white-space: nowrap;
}

#leaflet-map.show-marker-labels .marker-label {
    display: block;
}

.custom-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* ACTIVE Pin - Make it obvious */
.leaflet-marker-icon.active-pin .custom-pin,
.custom-pin.active-pin {
    transform: rotate(-45deg) scale(2.0) translateY(-10px) !important;
    z-index: 9999 !important;
    filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.20));
    background-color: var(--primary) !important;
    border: 3px solid white !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12) !important;
    width: 40px !important;
    height: 40px !important;
}

.marker-closed .custom-pin {
    filter: grayscale(100%);
    opacity: 0.7;
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-width);
    margin: 0;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom)) 20px;
    background: linear-gradient(to top, var(--cream) 70%, rgba(250, 248, 242, 0.95) 85%, transparent);
    z-index: 90;
    display: none;
    pointer-events: none;
    box-sizing: border-box;
}

.sticky-footer.visible {
    display: block;
    animation: slideUp 0.3s ease-out;
    transform: translateX(-50%) translateY(0);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.btn-floating {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    pointer-events: auto;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-floating:active {
    transform: scale(0.98);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Primary CTA Button - Electric Blue (not gold) */
.btn-primary,
.btn-gold {
    background: var(--electric);
    color: white;
    border: none;
}

.btn-primary i,
.btn-gold i {
    color: white;
}

.btn-primary:hover,
.btn-gold:hover {
    background: var(--electric-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 34px rgba(0, 82, 255, 0.25);
}

.btn-disabled {
    background: #e0e0e0;
    color: var(--neutral-500);
    cursor: not-allowed;
    box-shadow: none;
}

.cancel {
    background: #f5f5f5;
    color: var(--neutral-700);
    box-shadow: none;
}

.cancel:hover {
    background: var(--neutral-200);
}

#admin-form fieldset {
    border: 0;
    padding: 14px;
    margin: 0 0 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.06);
    min-width: 0;
}

#admin-form legend {
    padding: 0 10px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 820px) {
    .admin-layout {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

.admin-panel {
    min-width: 0;
}

.admin-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
}

.admin-title {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.admin-field {
    margin-bottom: 14px;
}

.admin-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.85);
    font-size: 0.82rem;
}

.admin-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-day-btn {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(15, 23, 42, 0.92);
    border-radius: 14px;
    padding: 10px 12px;
    min-height: 44px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
}

.admin-day-btn:active {
    transform: scale(0.98);
}

.admin-day-btn.active,
.admin-day-btn[aria-pressed="true"] {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.admin-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-input:focus {
    border-color: rgba(15, 23, 42, 0.35);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.14);
}

.admin-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-actions .btn-floating {
    flex: 1;
}

#admin-live-preview {
    padding: 4px;
}

#admin-live-preview .p-card {
    cursor: default;
}

#admin-live-preview .p-card * {
    pointer-events: none;
}

/* Ticket */
#view-ticket {
    padding: 0 !important;
}

.ticket-close-btn {
    position: absolute;
    top: calc(14px + var(--safe-top));
    right: 16px;
    z-index: 60;
    border: 0;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary);
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.ticket-close-btn:active {
    transform: scale(0.98);
}

.ticket-container {
    text-align: center;
    padding: 24px 20px;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 85px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ticket-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(15px + var(--safe-top)) 20px 15px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 60;
}

.ticket-back-btn {
    border: none;
    background: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.ticket-back-btn i {
    font-size: 1.2rem;
}

.ticket-logo {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    cursor: pointer;
    user-select: none;
}

.ticket-logo span {
    color: var(--gold-text);
}

.ticket-container .secure-card-active {
    margin-top: 64px;
}

.secure-card-active {
    border-radius: 22px;
    padding: 22px;
    color: white;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.12);
    width: 100%;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ticket-now {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.7;
    letter-spacing: 0.6px;
}

.ticket-timer {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 3.8rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    margin: 10px 0 10px;
    line-height: 1.05;
}

.ticket-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    margin-top: 12px;
}

.ticket-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(1);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.95), rgba(255, 215, 0, 0.45));
}

.secure-sub {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
}

.timer-box {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 24px 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.qr-frame {
    padding: 16px;
    background: white;
    border: 3px solid var(--success);
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    transform: rotate(-30deg) scale(1.5);
    max-width: 450px;
    margin: 0 auto;
}

.wm-text {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 28px;
}

/* --- VIEW OVERLAY TRANSITIONS --- */
.view-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-width);
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block !important;
    z-index: 1000;
    background: var(--cream);
}

.view-overlay.active {
    transform: translateX(-50%);
}

.view-overlay:not(.active) {
    transform: translateX(-50%) translateX(100%);
}

/* --- TICKET OVERLAY --- */
#view-ticket {
    z-index: 1000;
}

/* --- DETAIL FOOTER --- */
.sticky-footer {
    z-index: 1000;
}

/* Nav Floating Island */
#bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    right: auto;
    width: 94%;
    max-width: calc(var(--app-width) - 20px);
    transform: translateX(-50%);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    height: 70px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom)) 10px;
    z-index: 400;
}

/* Sliding Bubble Indicator */
#nav-indicator {
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 32px;
    background-color: rgba(0, 82, 255, 0.15);
    border-radius: 16px;
    z-index: 0;
    pointer-events: none;
    will-change: left, width, transform;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    left: 0;
}

/* Scale active icon */
.nav-item i {
    transition: transform 0.18s ease;
}

.nav-item.is-pressing:not(.active) i {
    transform: scale(0.9);
}

#bottom-nav .nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--electric) !important;
    transform: translateY(-2px);
}

.nav-item.active i {
    color: var(--electric) !important;
}

#bottom-nav .nav-item.active i {
    color: var(--electric) !important;
}

#bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
    font-size: 0.875rem;
    font-weight: 600;
    flex: 1;
    min-width: auto;
    min-height: 44px;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1;
    background: transparent;
    position: relative;
}

#nav-indicator.is-pressed {
    transform: translateY(-50%) scale(1.15);
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.modal-overlay {
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--app-width);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: white;
    width: 85%;
    max-width: 320px;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    transform: scale(0.9);
    transition: 0.3s;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.16);
}

.modal-overlay.open .modal-box {
    transform: scale(1);
}

.toast {
    position: fixed;
    top: calc(54px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(15, 23, 42, 0.92);
    color: white;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 40px);
}

.toast {
    max-width: calc(var(--app-width) - 40px);
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast .toast-action {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: transparent;
    color: white;
    font-weight: 700;
    letter-spacing: 0.6px;
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.toast .toast-action:active {
    transform: scale(0.98);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--neutral-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.25;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

#view-map {
    padding: 0 !important;
    margin: 0 !important;
    position: fixed !important;
    top: var(--header-h, 70px) !important;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-width);
    bottom: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    z-index: 1;
    margin-top: -1px !important;
    padding-top: 1px !important;
}

#leaflet-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    position: relative;
    z-index: 1;
    display: none;
}

.leaflet-control-container {
    z-index: 500 !important;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 500 !important;
}

#view-map .leaflet-top {
    top: 90px !important;
    z-index: 500 !important;
}

#view-map .leaflet-top.leaflet-left {
    left: auto !important;
    right: 20px !important;
}

#view-map .leaflet-control-zoom {
    margin-top: 0 !important;
    border: 0 !important;
}

#view-map .leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(10px);
    color: var(--primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    width: 44px;
    height: 44px;
    line-height: 42px;
    border-radius: 14px !important;
}

#view-map .leaflet-control-zoom a+a {
    margin-top: 10px;
}


.map-nearby-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(20px + 70px + 14px + env(safe-area-inset-bottom));
    z-index: 1200;
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.96);
    color: rgba(15, 23, 42, 0.92);
    border-radius: 999px;
    padding: 12px 16px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    width: calc(100% - 40px);
    max-width: 360px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform;
}

.map-nearby-btn:active {
    transform: translateX(-50%) scale(0.98);
}

.map-nearby-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(18px);
}

.admin-shifts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.92);
    min-height: 44px;
}

.admin-check input {
    width: 18px;
    height: 18px;
}

#iubenda-cs-banner {
    z-index: 2147483647 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#iubenda-cs-banner[style*="display:none"],
#iubenda-cs-banner[style*="display: none"] {
    display: none !important;
    pointer-events: none !important;
}

#iubenda-cs-banner .iubenda-cs-container,
.iubenda-cs-container,
#iubenda-cs-banner .iubenda-banner-content,
.iubenda-banner-content {
    width: 90% !important;
    max-width: var(--app-width) !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    background: #fff !important;
    overflow: hidden !important;
}

.iubenda-cs-btn-primary {
    background-color: var(--primary) !important;
    border-radius: 12px !important;
    height: 44px !important;
    font-weight: 700 !important;
}

#view-map.active #leaflet-map {
    display: block;
}

#view-favorites #leaflet-map,
#view-profile #leaflet-map,
#view-explore #leaflet-map,
#view-home #leaflet-map {
    display: none !important;
}


/* --- LOADING STATES --- */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--primary);
}

.loading-spinner i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* --- DISTANCE BADGE --- */
.p-distance-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}


/* --- MAP POPUP STYLING --- */
.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}

.map-popup {
    padding: 15px;
    min-width: 200px;
}

.map-popup h4 {
    margin: 0 0 8px 0;
    color: var(--primary);
    font-size: 1rem;
}

.map-popup-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.map-popup-btn:hover {
    background: var(--primary-dark);
}

.user-location-marker {
    color: var(--primary);
    font-size: 24px;
    text-align: center;
    line-height: 30px;
}

/* --- TOAST VARIANTS --- */
.toast-success {
    background: rgba(39, 174, 96, 0.9) !important;
}

.toast-error {
    background: rgba(231, 76, 60, 0.9) !important;
}

/* --- ACCESSIBILITY --- */
.btn-back:focus,
.btn-fav:focus,
.chip:focus,
.nav-item:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.p-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* --- PERFORMANCE OPTIMIZATIONS --- */
.gallery-item,
.p-thumb {
    image-rendering: -webkit-optimize-contrast;
    will-change: transform;
}

.p-card {
    will-change: transform;
}

/* --- RESPONSIVE IMPROVEMENTS --- */
@media (max-width: 375px) {
    .timer-box {
        font-size: 2.5rem;
    }

    .gallery-item {
        height: 220px;
    }
}

/* --- SHARE BUTTON --- */
.btn-fav:not(.active) {
    border: 1px solid var(--neutral-200);
}

#iubenda-cs-banner:not([style*="display: block"]) {
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
}

/ *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =           L U X U R Y   H O M E   S C R E E N   R E D E S I G N           S y s t e m   S e r i f   T y p o g r a p h y   +   B o u t i q u e   U X           = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * /         / *   H e r o   S e c t i o n   -   L u x u r y   B o u t i q u e   S t y l e   * /     . h e r o - l u x u r y    {
                 d i s p l a y :    f l e x ;
                 f l e x - d i r e c t i o n :    c o l u m n ;
                 a l i g n - i t e m s :    c e n t e r ;
                 g a p :    1 2 p x ;
         
}

         . h e r o - b r a n d - n a m e    {
                 f o n t - f a m i l y :    u i - s e r i f ,    ' N e w   Y o r k '  ,    ' B a s k e r v i l l e '  ,    ' G e o r g i a '  ,    s e r i f ;
                 f o n t - w e i g h t :    7 0 0 ;
                 f o n t - s i z e :    1 . 7 5 r e m ;
                 c o l o r :    v a r ( - - p r i m a r y ) ;
                 l e t t e r - s p a c i n g :    - 0 . 0 2 e m ;
                 m a r g i n :    0 ;
                 t e x t - a l i g n :    c e n t e r ;
                 l i n e - h e i g h t :    1 . 2 ;
         
}

         . h e r o - m i c r o c o p y    {
                 f o n t - s i z e :    0 . 8 5 r e m ;
                 c o l o r :    v a r ( - - n e u t r a l - 5 0 0 ) ;
                 m a r g i n :    0 ;
                 t e x t - a l i g n :    c e n t e r ;
                 f o n t - s t y l e :    i t a l i c ;
                 m a x - w i d t h :    2 8 0 p x ;
         
}

         / *   S e c t i o n   T i t l e   * /     . h o m e - s e c t i o n - t i t l e    {
                 f o n t - s i z e :    1 . 1 r e m ;
                 f o n t - w e i g h t :    6 0 0 ;
                 c o l o r :    v a r ( - - n e u t r a l - 9 0 0 ) ;
                 m a r g i n :    2 4 p x   0   1 6 p x ;
                 t e x t - a l i g n :    c e n t e r ;
                 l e t t e r - s p a c i n g :    - 0 . 0 1 e m ;
         
}

         / *   E x p e r i e n c e   C a r d s   -   P r e m i u m   S t y l i n g   * /     . e x p - c a r d    {
                 p o s i t i o n :    r e l a t i v e ;
                 b a c k g r o u n d :    w h i t e ;
                 b o r d e r - r a d i u s :    1 6 p x ;
                 p a d d i n g :    2 4 p x ;
                 d i s p l a y :    f l e x ;
                 f l e x - d i r e c t i o n :    c o l u m n ;
                 a l i g n - i t e m s :    c e n t e r ;
                 g a p :    1 2 p x ;
                 c u r s o r :    p o i n t e r ;
                 t r a n s i t i o n :    a l l   0 . 3 s   e a s e ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - n e u t r a l - 2 0 0 ) ;
                 b o x - s h a d o w :    0   1 p x   3 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 0 5 ) ;
         
}

         . e x p - c a r d : h o v e r    {
                 t r a n s f o r m :    t r a n s l a t e Y ( - 2 p x ) ;
                 b o x - s h a d o w :    0   4 p x   1 2 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 1 ) ;
                 b o r d e r - c o l o r :    v a r ( - - n e u t r a l - 3 0 0 ) ;
         
}

         / *   P r i m a r y   C a r d   ( C o n s i g l i a t o )   * /     . e x p - c a r d - - p r i m a r y    {
                 b o r d e r :    2 p x   s o l i d   v a r ( - - p r i m a r y ) ;
                 b a c k g r o u n d :    l i n e a r - g r a d i e n t ( 1 3 5 d e g ,    r g b a ( 1 5 ,    2 3 ,    4 2 ,    0 . 0 2 )   0 % ,    r g b a ( 1 5 ,    2 3 ,    4 2 ,    0 . 0 1 )   1 0 0 % ) ;
         
}

         . e x p - c a r d - - p r i m a r y : h o v e r    {
                 b o r d e r - c o l o r :    v a r ( - - p r i m a r y ) ;
                 b o x - s h a d o w :    0   4 p x   1 6 p x   r g b a ( 1 5 ,    2 3 ,    4 2 ,    0 . 1 5 ) ;
         
}

         . e x p - c a r d _ _ b a d g e    {
                 p o s i t i o n :    a b s o l u t e ;
                 t o p :    1 2 p x ;
                 r i g h t :    1 2 p x ;
                 b a c k g r o u n d :    v a r ( - - p r i m a r y ) ;
                 c o l o r :    w h i t e ;
                 f o n t - s i z e :    0 . 6 5 r e m ;
                 f o n t - w e i g h t :    6 0 0 ;
                 p a d d i n g :    4 p x   1 0 p x ;
                 b o r d e r - r a d i u s :    1 2 p x ;
                 t e x t - t r a n s f o r m :    u p p e r c a s e ;
                 l e t t e r - s p a c i n g :    0 . 0 3 e m ;
         
}

         . e x p - c a r d _ _ i c o n    {
                 f o n t - s i z e :    2 r e m ;
                 c o l o r :    v a r ( - - p r i m a r y ) ;
                 m a r g i n - b o t t o m :    4 p x ;
         
}

         . e x p - c a r d _ _ t i t l e    {
                 f o n t - s i z e :    1 . 1 r e m ;
                 f o n t - w e i g h t :    6 0 0 ;
                 c o l o r :    v a r ( - - n e u t r a l - 9 0 0 ) ;
                 m a r g i n :    0 ;
                 l e t t e r - s p a c i n g :    - 0 . 0 1 e m ;
         
}

         . e x p - c a r d _ _ d e s c    {
                 f o n t - s i z e :    0 . 8 5 r e m ;
                 c o l o r :    v a r ( - - n e u t r a l - 5 0 0 ) ;
                 m a r g i n :    0 ;
                 t e x t - a l i g n :    c e n t e r ;
                 l i n e - h e i g h t :    1 . 4 ;
         
}

         / *   A c t i o n   C a r d   ( M a p )   * /     . e x p - c a r d - - a c t i o n    {
                 b a c k g r o u n d :    l i n e a r - g r a d i e n t ( 1 3 5 d e g ,    v a r ( - - n e u t r a l - 1 0 0 )   0 % ,    w h i t e   1 0 0 % ) ;
         
}

         . e x p - c a r d - - a c t i o n   . e x p - c a r d _ _ i c o n    {
                 c o l o r :    v a r ( - - e l e c t r i c ) ;
         
}

         / *   E x p e r i e n c e   C a r d s   G r i d   * /     . e x p e r i e n c e - c a r d s    {
                 d i s p l a y :    g r i d ;
                 g r i d - t e m p l a t e - c o l u m n s :    r e p e a t ( 2 ,    1 f r ) ;
                 g a p :    1 6 p x ;
                 p a d d i n g :    0   2 0 p x   2 4 p x ;
         
}

         / *   D e m o   B a d g e   R e f i n e m e n t s   * /     . d e m o - b a d g e    {
                 m a r g i n - t o p :    8 p x ;
         
}

     