:root {
    /* ── Brand ── */
    --color-amber: #F59E0B;
    --color-amber-light: #FEF3C7;
    --color-amber-dark: #D97706;
    --color-dark: #1F2937;
    --color-light: #F8F6F4;
    --color-light-grey: #e5e5e5;
    --color-text: #1F2937;
    --color-text-secondary: #4B5563;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;
    --color-white: #ffffff;
    --color-surface: #F9FAFB;
    --color-border: #E5E7EB;
    --color-green: #10B981;
    --color-blue: #3B82F6;
    --color-red: #EF4444;
    --color-star: #F59E0B;
    --color-star-empty: #D1D5DB;

    /* ── Type Colors (matching app) ── */
    --type-brewery: #57534E;
    --type-brewery-bg: #D6D3D1;
    --type-brewery-border: #57534E;
    --type-brewery-badge-bg: #D6D3D1;
    --type-brewery-badge-text: #44403C;

    --type-brewpub: #9F1239;
    --type-brewpub-bg: #FFF1F2;
    --type-brewpub-border: #9F1239;
    --type-brewpub-badge-bg: #FFF1F2;
    --type-brewpub-badge-text: #881337;

    --type-store: #15803D;
    --type-store-bg: #DCFCE7;
    --type-store-border: #15803D;
    --type-store-badge-bg: #DCFCE7;
    --type-store-badge-text: #14532D;

    --type-taproom: #CA8A04;
    --type-taproom-bg: #FEFCE8;
    --type-taproom-border: #CA8A04;
    --type-taproom-badge-bg: #FEFCE8;
    --type-taproom-badge-text: #A16207;

    /* ── Typography ── */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.25s var(--ease-out-expo);
    --text-xs: 0.7rem;
    --text-sm: 0.8rem;
    --text-base: 0.9rem;
    --text-lg: 1.05rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.6rem;
    --text-3xl: 2rem;

    --panel-bg: rgba(255, 255, 255, 0.92);
    --panel-bg-warm: #FBF8F4;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page Centering */
.login-page body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #e5e5e5;
    overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.is-hidden {
    display: none !important;
}

.material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

/* ──────────────────────── */
/* 2. LAYOUT PRINCIPAL     */
/* ──────────────────────── */
#app {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#btn-locate-me {
    position: fixed;
    bottom: 105px;
    right: 14px;
    width: 48px;
    height: 48px;
    background: var(--color-amber);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: grid;
    place-items: center;
    z-index: 20;
    transition: all 0.3s;
}

#btn-locate-me:hover {
    transform: scale(1.05);
}

#btn-locate-me .material-symbols-outlined {
    color: var(--color-white);
    font-size: 24px;
    transition: opacity 0.3s;
}

#btn-locate-me.is-loading .material-symbols-outlined {
    opacity: 0;
}

#btn-locate-me.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* MARKER STYLES */
.user-marker {
    width: 20px;
    height: 20px;
    background-color: var(--color-blue);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    box-sizing: content-box;
}

.user-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-blue);
    opacity: 0.5;
    animation: userPulse 2s infinite;
}

@keyframes userPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

#backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

#backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* TOAST */
#toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
    align-items: center;
}

.toast {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 12px 20px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: var(--color-red);
}

/* HEADER */
.app-header {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: var(--color-amber);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
    z-index: 20;
    color: var(--color-white);
    height: 54px;
}

.header-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-logo h1 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Header Logo Image */
.header-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-left: auto;
    /* Push to right if in flex container */
    display: block;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-amber-dark);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 36px;
}

.header-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.header-actions .btn:active {
    transform: scale(0.9);
    transition: transform 0.1s;
}

.header-actions .btn.is-active {
    background: var(--color-dark);
    color: var(--color-white);
}

@media (max-width: 480px) {
    .header-subtitle { display: none; }
    .app-header { height: 48px; padding: 6px 14px; }
}

/* LOGOUT BUTTON EXTRA STYLE */
.btn-logout {
    color: var(--color-red) !important;
}

/* PANELS BASE */
.panel {
    position: fixed;
    background: var(--panel-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, visibility 0.3s;
    z-index: 30;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 12px;
    flex-shrink: 0;
}

.panel-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
}

.panel-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: block;
}

.btn-close-panel {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.btn-close-panel:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: rotate(90deg) scale(1.05);
}

.panel-content {
    padding: 0 24px 24px;
    overflow-y: auto;
}

.panel-handle {
    width: 36px;
    height: 4px;
    /*background: var(--color-light-grey);
    border-radius: var(--radius-full);*/
    margin: 8px auto;
    flex-shrink: 0;
}

/* SEARCH / FILTERS PANEL */
#filters-panel {
    top: 25%;
    left: 50%;
    width: 85%;
    max-width: 320px;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    transform: translate(-50%, -10px);
    opacity: 0;
    visibility: hidden;
    background: var(--panel-bg-warm);
}

#filters-panel.is-open {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.search-bar {
    position: relative;
    margin-bottom: 8px;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 20px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-light-grey);
    font-size: 16px;
    background: var(--color-white);
    transition: var(--transition);
    color: var(--color-dark);
    font-weight: 500;
}

.search-input-wrapper input:focus {
    border-color: var(--color-amber);
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}

.search-helper {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    margin-left: 4px;
}

/* Autocomplete */
#search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 50;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--color-light-grey);
    border-top: none;
    display: none;
    margin-top: 2px;
}

#search-autocomplete.is-visible {
    display: block;
}

.autocomplete-item {
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.autocomplete-item:hover {
    background-color: #fff7ed;
    color: var(--color-amber-dark);
}

.filter-group {
    margin: 20px 0;
}

.filter-group-title {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-light-grey);
    background: var(--color-white);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-filter.is-active {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: transparent;
}

.filter-actions {
    margin-top: 4px;
    text-align: center;
}

.btn-clear {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 8px 16px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-clear:hover {
    opacity: 1;
    color: var(--color-red);
}

/* LIST PANEL */
#list-panel {
    bottom: 0;
    left: 0;
    right: 0;
    height: 85vh;
    transform: translateY(105%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

#list-panel.is-open {
    transform: translateY(0);
}

#list-panel-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.place-card {
    padding: 16px;
    margin-bottom: 8px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.place-card:active {
    transform: scale(0.98);
}

.place-card.is-active {
    border-color: var(--color-amber);
    background: #fffbeb;
}

.card-type {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.card-type[data-type="brewery"] {
    color: var(--color-dark);
}

.card-type[data-type="brewpub"] {
    color: var(--color-amber-dark);
}

.card-type[data-type="store"] {
    color: var(--color-blue);
}

.card-type[data-type="taproom"] {
    color: var(--color-green);
}

.card-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--color-text);
}

.card-location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ════════════════════════════════════════════════════════════════════════════════ */
/* DETAIL MODAL - NEW CENTERED POPUP DESIGN                                         */
/* ════════════════════════════════════════════════════════════════════════════════ */

/* Modal Overlay (Backdrop with Blur) */
/* ─────────────────────────────────────────────────── */
/* DETAIL MODAL — BOTTOM SHEET (2026 UX)              */
/* ─────────────────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

@supports not (backdrop-filter: blur(8px)) {
    .modal-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Bottom Sheet Container (mobile-first) */
.detail-modal {
    background: var(--color-white);
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
    will-change: transform;
}

.modal-overlay.is-visible .detail-modal {
    transform: translateY(0);
}

/* Drag Handle */
.drag-handle {
    display: flex;
    justify-content: center;
    padding: 8px 0 0;
    flex-shrink: 0;
    cursor: grab;
    -webkit-tap-highlight-color: transparent;
}

.drag-handle::before {
    content: '';
    width: 32px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    transition: background 0.2s;
}

.drag-handle:active::before {
    background: #9ca3af;
}

/* Sticky Header */
.modal-header-sticky {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px 10px;
    background: var(--color-white);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.detail-modal-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 50px);
}

/* Close Button */
.btn-close-modal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-close-modal:hover {
    background: #e5e7eb;
    color: var(--color-dark);
}

.btn-close-modal:active {
    transform: scale(0.92);
}

.btn-close-modal .material-symbols-outlined {
    font-size: 20px;
}

/* Back button (detail modal) */
.btn-back-modal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-back-modal:hover { background: #e5e7eb; }
.btn-back-modal:active { transform: scale(0.92); }
.btn-back-modal .material-symbols-outlined { font-size: 20px; }

/* Scrollable Body */
.detail-modal-body {
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.detail-modal-body::-webkit-scrollbar {
    display: none;
}

/* Desktop: sidebar lateral (Google Maps / Airbnb pattern) */
@media (min-width: 768px) {
    .modal-overlay {
        align-items: stretch;
        justify-content: flex-end;
        padding: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        pointer-events: none;
    }

    .modal-overlay.is-visible {
        pointer-events: auto;
    }

    .detail-modal {
        width: min(420px, 85vw);
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
        transform: translateX(100%);
        pointer-events: auto;
    }

    /* Sidebar: tot dins un sol scroll */
    .detail-modal {
        overflow-y: auto;
        overflow-x: hidden;
        /* D) Scrollbar visible i estilitzada en desktop */
        scrollbar-width: thin;
        scrollbar-color: #d1d5db transparent;
    }
    .detail-modal::-webkit-scrollbar {
        width: 6px;
    }
    .detail-modal::-webkit-scrollbar-track {
        background: transparent;
    }
    .detail-modal::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
    }
    .detail-modal::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

    .detail-modal-body {
        flex: none;
        overflow: visible;
    }

    /* A) Gradient fade inferior — indica mes contingut */
    .detail-modal::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.9));
        pointer-events: none;
        display: block;
        flex-shrink: 0;
    }

    .modal-overlay.is-visible .detail-modal {
        transform: translateX(0);
    }

    .drag-handle {
        display: none;
    }

    .modal-header-sticky {
        padding: 20px 24px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .detail-modal-title {
        font-size: 1.5rem;
    }

    .detail-modal-body {
        padding: 20px 24px;
        gap: 18px;
    }

    /* Desktop: description full, no clamp */
    .desc-text.is-collapsed {
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
    .desc-toggle {
        display: none;
    }

    /* Desktop/Tablet: CTA inline dins el scroll, no fixat */
    .detail-footer-cta {
        position: static;
        flex-shrink: 0;
        border-top: none;
        box-shadow: none;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        padding: 4px 24px 24px;
    }

    /* Desktop: photos larger */
    .photos-carousel .photo-item {
        width: 140px;
        height: 140px;
    }

    /* Desktop: review cards wider */
    .review-card-h {
        flex: 0 0 320px;
        -webkit-line-clamp: 6;
        line-clamp: 6;
    }
    .review-card-h .review-text {
        -webkit-line-clamp: 6;
        line-clamp: 6;
    }
}

/* Tablet portrait: sidebar mes estret */
@media (min-width: 768px) and (max-width: 1023px) {
    .detail-modal {
        width: min(380px, 85vw);
    }
}

/* Tablet landscape + desktop petit */
@media (min-width: 1024px) and (max-width: 1279px) {
    .detail-modal {
        width: min(400px, 85vw);
    }
}

/* Desktop gran: sidebar mes ample */
@media (min-width: 1280px) {
    .detail-modal {
        width: 440px;
    }
}

/* ─────────────────────────────────────────────────── */
/* COLLAPSIBLE DESCRIPTION                             */
/* ─────────────────────────────────────────────────── */

.desc-wrapper {
    position: relative;
}

.desc-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text);
    margin: 0;
}

.desc-text.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc-text:not(.is-collapsed) {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.desc-toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 8px 0;
    min-height: 44px;
    background: none;
    border: none;
    color: var(--color-amber-dark);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.desc-toggle:hover {
    color: var(--color-amber);
}

/* ─────────────────────────────────────────────────── */
/* SECTION DIVIDER (Subtle)                            */
/* ─────────────────────────────────────────────────── */

.section-divider-subtle {
    height: 1px;
    background: linear-gradient(to right, transparent 5%, rgba(0, 0, 0, 0.04) 50%, transparent 95%);
    margin: 2px 0;
}

/* ─────────────────────────────────────────────────── */
/* HORIZONTAL SCROLLING SECTIONS (Photos & Reviews)   */
/* ─────────────────────────────────────────────────── */

/* Photos Carousel Container */
.photos-carousel-wrapper {
    position: relative;
    margin: 0 -20px;
    /* Bleed out of padding */
    padding: 0 20px;
}

.photos-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.photos-carousel::-webkit-scrollbar {
    display: none;
}

.photos-carousel .photo-item {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    background: #f3f4f6;
}

.photos-carousel .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.3s;
}

.photos-carousel .photo-item:hover img {
    transform: scale(1.06);
}

.photos-carousel .photo-item:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* Fade edge */
.photos-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 4px;
    width: 50px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.95));
    pointer-events: none;
}

/* Reviews Carousel */
.reviews-carousel-wrapper {
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
}

.reviews-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.reviews-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 4px;
    width: 50px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.95));
    pointer-events: none;
}

.review-card-h {
    flex: 0 0 280px;
    min-width: 260px;
    max-width: 320px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 14px 16px;
    scroll-snap-align: start;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.15s ease;
}

.review-card-h:active {
    transform: scale(0.98);
}

.review-card-h .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card-h .review-user {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-dark);
}

.review-card-h .review-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.review-card-h .review-stars {
    color: var(--color-amber);
    font-size: 0.75rem;
    display: flex;
    gap: 1px;
}

.review-card-h .review-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─────────────────────────────────────────────────── */
/* COMPACT REVIEWS HEADER                              */
/* ─────────────────────────────────────────────────── */

.reviews-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.reviews-summary-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.reviews-summary-inline .star-icon {
    color: var(--color-amber);
    font-size: 18px;
}

.reviews-summary-inline .avg-rating {
    font-weight: 700;
    color: var(--color-dark);
}

.reviews-summary-inline .total-count {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.reviews-actions-compact {
    display: flex;
    gap: 8px;
}

.btn-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-action-pill.primary {
    background: var(--color-amber-light);
    color: var(--color-amber-dark);
}

.btn-action-pill.primary:hover {
    background: var(--color-amber);
    color: var(--color-white);
}

.btn-action-pill.secondary {
    background: #f3f4f6;
    color: var(--color-text-muted);
}

.btn-action-pill.secondary:hover {
    background: #e5e7eb;
    color: var(--color-dark);
}

.btn-action-pill .material-symbols-outlined {
    font-size: 14px;
}

/* ─────────────────────────────────────────────────── */
/* LIGHTBOX FOR PHOTOS                                 */
/* ─────────────────────────────────────────────────── */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
}

.lightbox-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-image {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    margin-top: 16px;
    text-align: center;
    color: white;
}

.lightbox-caption .photo-author {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.lightbox-caption .photo-comment {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 400px;
}

/* ─────────────────────────────────────────────────── */
/* RESPONSIVE ADJUSTMENTS FOR SMALL SCREENS           */
/* ─────────────────────────────────────────────────── */

@media (max-height: 700px) {
    .detail-modal {
        max-height: 95vh;
    }

    .modal-header-sticky {
        padding: 12px 16px;
    }

    .detail-modal-title {
        font-size: 1rem;
    }

    .detail-modal-body {
        padding: 14px;
        gap: 12px;
    }

    .photos-carousel .photo-item {
        width: 90px;
        height: 72px;
    }

    .review-card-h {
        flex: 0 0 240px;
        min-width: 220px;
        padding: 12px;
    }

    .btn-action-pill {
        padding: 5px 10px;
        font-size: 0.68rem;
    }
}

/* Desktop: Larger modal */
@media (min-width: 768px) {
    .detail-modal {
        width: min(90vw, 600px);
    }

    .photos-carousel .photo-item {
        width: 140px;
        height: 110px;
    }

    .review-card-h {
        flex: 0 0 300px;
    }
}

/* ─────────────────────────────────────────────────── */
/* COMPACT INLINE ACTIONS (2025 UX)                    */
/* ─────────────────────────────────────────────────── */

/* Group: address + action buttons */
.location-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 4px;
}

@media (min-width: 768px) {
    .location-actions-group {
        gap: 14px;
        padding-bottom: 6px;
    }
}

/* Fila de botons d'accio — 1 fila unificada */
.actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* En mobil: Valora/Foto amagats (estan al footer sticky) */
.action-chip.cta-desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .action-chip.cta-desktop-only {
        display: inline-flex;
    }
    .actions-row .action-chip {
        flex: 1;
        justify-content: center;
    }
}

/* Compat legacy */
.actions-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid #e5e7eb;
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.action-chip .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-text-muted);
}

.action-chip:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.action-chip:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Truca = accio primaria (filled tonal) */
.action-chip.primary {
    background: var(--color-amber-light);
    border-color: var(--color-amber);
    color: var(--color-amber-dark);
}

.action-chip.primary .material-symbols-outlined {
    color: var(--color-amber-dark);
}

.action-chip.primary:hover {
    background: var(--color-amber);
    color: white;
}

.action-chip.primary:hover .material-symbols-outlined {
    color: white;
}

/* Accio secundaria discreta */
.action-chip.secondary {
    border-color: transparent;
    background: #f3f4f6;
    color: #6b7280;
}

.action-chip.secondary .material-symbols-outlined {
    color: #9ca3af;
}

.action-chip.secondary:hover {
    background: #e5e7eb;
    color: var(--color-text);
}

.action-chip.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────── */
/* IMPROVED TAGS (Separated with dots)                 */
/* ─────────────────────────────────────────────────── */

.tags-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
    margin-bottom: 4px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Tags — paleta calida unificada */
.tag-chip.brewery {
    background: #fef3c7;
    color: #92400e;
}

.tag-chip.brewpub {
    background: #ffedd5;
    color: #9a3412;
}

.tag-chip.store {
    background: #fef9c3;
    color: #854d0e;
}

.tag-chip.taproom {
    background: #ecfccb;
    color: #3f6212;
}

.tag-separator {
    color: #d1d5db;
    font-size: 0.5rem;
}

/* ─────────────────────────────────────────────────── */
/* ADDRESS CARD COMPACT                                */
/* ─────────────────────────────────────────────────── */

.address-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.address-row:hover {
    background: #f3f4f6;
}

.address-row .material-symbols-outlined {
    color: var(--color-amber);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.address-info {
    flex: 1;
    min-width: 0;
}

.address-main {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
}

.address-sub {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ─────────────────────────────────────────────────── */
/* DESCRIPTION COMPACT                                 */
/* ─────────────────────────────────────────────────── */

.desc-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─────────────────────────────────────────────────── */
/* SECTION WITH HEADER (Photos / Reviews)              */
/* ─────────────────────────────────────────────────── */

.section-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #f3f4f6;
    color: var(--color-text-muted);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.section-action:hover {
    background: var(--color-amber-light);
    color: var(--color-amber-dark);
}

.section-action .material-symbols-outlined {
    font-size: 14px;
}

/* ─────────────────────────────────────────────────── */
/* iPHONE SE & SMALL SCREENS (375x667)                 */
/* ─────────────────────────────────────────────────── */

@media (max-width: 380px) {
    .detail-modal {
        max-height: 95vh;
    }

    .modal-header-sticky {
        padding: 6px 14px 10px;
    }

    .detail-modal-title {
        font-size: 1.05rem;
    }

    .detail-modal-body {
        padding: 0 14px 14px;
        gap: 12px;
    }

    .action-chip {
        height: 32px;
        padding: 0 10px;
        font-size: 0.75rem;
    }

    .tag-chip {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .photos-carousel .photo-item {
        width: 100px;
        height: 100px;
        border-radius: 12px;
    }

    .review-card-h {
        flex: 0 0 240px;
        min-width: 220px;
        padding: 12px;
    }

    .review-card-h .review-text {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .btn-action-pill {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
}

/* Very short screens */
@media (max-height: 600px) {
    .detail-modal {
        max-height: 97vh;
    }

    .detail-modal-body {
        gap: 10px;
    }
}

/* Detail Actions */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

/* Main Action Button */
.btn-action-main {
    width: 100%;
    background: var(--color-amber);
    color: var(--color-white);
    padding: 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
    text-decoration: none;
}

.btn-action-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

/* Secondary Actions Container */
.action-group-secondary {
    display: flex;
    gap: 12px;
}

.btn-action-secondary {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--color-light-grey);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-action-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.btn-action-secondary .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-text-muted);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--color-dark);
    border: 1px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-icon.primary {
    background: var(--color-amber);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

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

.btn-icon .material-symbols-outlined {
    font-size: 24px;
}

/* INFO PANEL */
#info-panel {
    top: 50%;
    left: 50%;
    width: 85%;
    max-width: 500px;
    max-height: 80vh;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    background: var(--panel-bg-warm);
}

#info-panel.is-open {
    opacity: 1;
    visibility: visible;
}

#info-panel .panel-header {
    padding-bottom: 0;
}

.info-block {
    margin-bottom: 12px;
}

.info-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.info-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
}

.info-contact {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-dark);
    color: var(--color-white);
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-top: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-footer {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    opacity: 0.7;
}

/* Login Page Specifics (from index_nou.php) */
.bg-blur {
    position: absolute;
    inset: -20px;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(251, 191, 36, 0.25), transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(245, 158, 11, 0.18), transparent 55%),
        radial-gradient(ellipse 90% 50% at 50% 50%, rgba(252, 211, 77, 0.1), transparent 70%),
        linear-gradient(160deg, #FFF7ED 0%, #FFFBEB 40%, #F5F3FF 100%);
    filter: blur(2px) brightness(1);
    z-index: 1;
    transform: scale(1.1);
}

.login-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 44px 36px;
    width: 90%;
    max-width: 400px;
    border-radius: 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Login Logo */
.login-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin-bottom: 18px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

/* Login heading */
.login-card h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #92400E 0%, #D97706 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card p {
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 28px;
    line-height: 1.5;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 16px;
    padding-right: 48px;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    color: var(--color-dark);
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.input-group input:focus {
    border-color: rgba(245, 158, 11, 0.4);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08), 0 4px 12px rgba(245, 158, 11, 0.12);
}

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    padding: 4px;
    border-radius: 50%;
}

.toggle-pass:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-dark);
}

.login-card button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.login-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}

.login-card button:hover::after {
    left: 120%;
}

.login-card button:active {
    transform: scale(0.98);
}

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

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

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* SUGGEST MODAL - PREMIUM REDESIGN */
#suggest-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

#suggest-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #FAF8F5;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

#suggest-modal.is-visible .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    background: #FAF8F5;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

.btn-close-modal {
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.btn-close-modal:hover {
    background: var(--color-dark);
    color: var(--color-white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0 24px 24px;
    overflow-y: auto;
}

.modal-body p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: #f9fafb;
    color: var(--color-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-amber);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

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

.btn-submit {
    width: 100%;
    background: var(--color-amber);
    color: white;
    padding: 0;
    height: 52px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family);
    letter-spacing: -0.01em;
    transition: background 0.2s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}

.btn-submit:hover {
    background: var(--color-amber-dark);
}

.btn-submit:active {
    transform: scale(0.97);
}

.btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    background: #d1d5db;
    color: #9ca3af;
}

.btn-submit .material-symbols-outlined {
    font-size: 20px;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    #suggest-modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        transform: translateY(100%);
    }

    #suggest-modal.is-visible .modal-content {
        transform: translateY(0);
    }

    .modal-header {
        padding: 20px 20px 10px;
    }

    .modal-body {
        padding: 0 20px 30px;
    }
}

/* Cluster Marker */
.cluster-marker-container {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: -24px;
}

.cluster-marker-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.cluster-marker-container span {
    position: relative;
    z-index: 2;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.cluster-marker-container:hover {
    transform: scale(1.1);
    z-index: 10000;
}

/* REVIEWS SECTION */
.reviews-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reviews-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    color: var(--color-amber-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.reviews-summary .material-symbols-outlined {
    font-size: 18px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.review-card {
    background: #f9fafb;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid #f3f4f6;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.review-user {
    font-weight: 600;
    color: var(--color-dark);
}

.review-date {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.review-stars {
    color: var(--color-amber);
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
}

.review-stars .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: 'FILL' 1;
}

.review-text {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.4;
}

.btn-write-review {
    width: 100%;
    padding: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}

.btn-write-review:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* REVIEW FORM */
.review-form-container {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    margin-top: 16px;
    animation: slideUp 0.3s ease;
}

.review-form-container.is-hidden {
    display: none;
}

.rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    flex-direction: row-reverse;
    /* For CSS hover magic */
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s;
}

.rating-input label .material-symbols-outlined {
    font-size: 28px;
    font-variation-settings: 'FILL' 1;
}

.rating-input input:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
    color: var(--color-amber);
}

.review-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-cancel {
    flex: 1;
    padding: 10px;
    background: #f3f4f6;
    color: var(--color-text);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-submit-review {
    flex: 2;
    padding: 10px;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.detail-card-info {
    margin-top: 12px;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .reviews-list {
        max-height: 200px;
        overflow-y: auto;
        /* Force scrollbar visibility */
        scrollbar-width: thin;
        scrollbar-color: var(--color-amber) transparent;
    }

    .reviews-list::-webkit-scrollbar {
        width: 6px;
        display: block;
        /* Force display */
    }

    .reviews-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .reviews-list::-webkit-scrollbar-thumb {
        background-color: var(--color-amber);
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    #reviews-container {
        max-height: 300px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--color-amber) transparent;
        padding-right: 8px;
    }

    #reviews-container::-webkit-scrollbar {
        width: 6px;
        display: block;
    }

    #reviews-container::-webkit-scrollbar-track {
        background: transparent;
    }

    #reviews-container::-webkit-scrollbar-thumb {
        background-color: var(--color-amber);
        border-radius: 20px;
    }

    .reviews-list {
        max-height: none;
        overflow-y: visible;
    }
}

/* UI/UX OVERHAUL APPENDED STYLES */

/* DESKTOP DETAIL PANEL */
@media (min-width: 768px) {
    #detail-panel {
        width: 500px !important;
        /* Wider panel */
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    }

    #detail-panel .panel-handle {
        display: none !important;
    }
}

/* Detail Actions Grid */
.detail-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

/* Remove old flex actions constraint if needed, or override */
.detail-actions {
    display: none !important;
    /* Hide old container if it still exists or conflicts */
}

/* Section Divider */
.section-divider {
    height: 1px;
    background-color: #f3f4f6;
    margin: 24px 0;
}

/* New Labeled Action Buttons */
.action-btn-labeled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px 0;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 80px;
    cursor: pointer;
}

.action-btn-labeled:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.action-btn-labeled .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-dark);
}

.action-btn-labeled span:not(.material-symbols-outlined) {
    font-size: 0.75rem;
    font-weight: 600;
}

.action-btn-labeled.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f9fafb;
}

/* Improved Address Card */
.detail-address-card {
    background: #f9fafb;
    padding: 16px;
    border-radius: var(--radius-md);
    display: block;
    /* Ensure full width clickable */
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.detail-address-card:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.detail-address-inner {
    display: flex;
    gap: 12px;
    align-items: center;
}

.detail-address-content {
    flex: 1;
}

.detail-address-text {
    font-size: 1rem !important;
    /* Explicit override */
    color: var(--color-text);
    font-weight: 600 !important;
    line-height: 1.4;
    margin-bottom: 4px;
}

.detail-region {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Reviews Header & Chip */
.reviews-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fffbeb;
    color: var(--color-amber-dark);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.rating-chip:hover {
    background: #fcd34d;
}

.rating-chip.is-hidden {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-state p {
    color: #6b7280;
    font-size: 0.95rem;
}

.btn-write-review {
    width: 100%;
    padding: 12px;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
    border: none;
    max-width: 250px;
    cursor: pointer;
}

.btn-write-review:hover {
    background: black;
    transform: translateY(-2px);
}

/* Reviews List Cleanup */
.reviews-list {
    gap: 0 !important;
}

.review-card {
    background: transparent !important;
    padding: 16px 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.review-card:last-child {
    border-bottom: none !important;
}

.review-header {
    align-items: baseline !important;
}

/* Review Form Styling */
.range-helper-text {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

/* Star Rating Large */
.star-rating-lg {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
    flex-direction: row-reverse;
    /* For hover effect logic */
}

.star-rating-lg input {
    display: none;
}

.star-rating-lg label {
    cursor: pointer;
}

.star-rating-lg label .material-symbols-outlined {
    font-size: 36px;
    color: #e5e7eb;
    transition: color 0.1s;
    font-variation-settings: 'FILL' 0;
}

.star-rating-lg input:checked~label .material-symbols-outlined {
    color: #F59E0B;
    font-variation-settings: 'FILL' 1;
}

.star-rating-lg label:hover .material-symbols-outlined,
.star-rating-lg label:hover~label .material-symbols-outlined {
    color: #F59E0B;
    font-variation-settings: 'FILL' 1;
}

/* Sticky Footer on Mobile */
.sticky-footer-mobile {
    margin-top: 24px;
}

@media (max-width: 767px) {
    .sticky-footer-mobile {
        position: sticky;
        bottom: 16px;
        z-index: 20;
        background: #fff;
        /* Ensure bg to cover content */
        padding: 10px;
        border-top: 1px solid #f3f4f6;
        margin-left: -24px;
        /* Counteract panel margin */
        margin-right: -24px;
        width: calc(100% + 48px);
    }
}

/* COMPACTNESS & CTA VISIBILITY UPDATES */

/* Reduce margins for compactness */
.section-divider {
    margin: 12px 0 !important;
}

.detail-actions-grid {
    margin-top: 8px !important;
    gap: 8px !important;
}

/* Mobile optimizations for action buttons */
@media (max-width: 640px) {
    .action-btn-labeled {
        min-height: 56px !important;
        padding: 8px 0 !important;
        gap: 4px !important;
    }

    .action-btn-labeled .material-symbols-outlined {
        font-size: 20px !important;
    }

    .action-btn-labeled span:not(.material-symbols-outlined) {
        font-size: 0.7rem !important;
    }

    .detail-actions-grid {
        margin: 10px 0;
        gap: 8px;
    }

    .section-divider {
        margin: 8px 0 !important;
    }
}

/* ──────────────────────── */
/* PHASE 6: BOTTOM SHEET    */
/* ──────────────────────── */

/* Handle Structure */
.panel-handle-container {
    height: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: grab;
    touch-action: none;
    /* Critical for custom drag */
    background: var(--color-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 20;
}

.panel-handle-bar {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

/* Ensure panel transition for smooth snap */
#detail-panel {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Default transition, JS removes it while dragging */
}

#detail-panel.is-dragging {
    transition: none !important;
}

/* Ensure body doesn't bounce on iOS when panel is open */
body.panel-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* New Hero CTA Button for Reviews */
.btn-cta-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: #fffbeb;
    color: var(--color-amber-dark);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.btn-cta-hero:hover {
    transform: translateY(-1px);
    background: #fcd34d;
    color: #451a03;
}

.btn-cta-hero .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: 'FILL' 1;
}

/* Unified Review Button Style */
.btn-submit-review {
    width: 100%;
    padding: 12px;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-submit-review:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Ensure incident button styling is covered by .action-btn-labeled logic */
/* (It already is, as we use the same class) */
/* Photo Upload & Gallery */
.photo-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.photo-preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #f3f4f6;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
}

.btn-action-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.btn-action-secondary {
    flex: 1;
    padding: 12px;
    background: #ffffff;
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn-action-secondary:hover {
    background: #f3f4f6;
}

/* ──────────────────────── */
/* 2025 MOBILE UX UPGRADES  */
/* ──────────────────────── */

/* 1. Horizontal Scroll Gallery */
.gallery-flex-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 4px 16px 0;
    /* padding-right cue */
    margin: 16px 0;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
}

.gallery-flex-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.gallery-flex-item {
    flex: 0 0 110px;
    /* Fixed width */
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    background: #f3f4f6;
}

.gallery-flex-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-flex-item:active img {
    transform: scale(0.96);
}

/* 2. Sticky Action Bar */
.sticky-footer-mobile {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    margin: 0 -24px -32px -24px;
    /* Counteract parent padding to stretch full width */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
    display: flex;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.btn-sticky-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-sticky-secondary {
    background: var(--color-white);
    color: var(--color-dark);
    border: 1px solid #e5e7eb;
}

/* 3. Lightbox Caption */
.lightbox-caption-panel {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 16px;
    border-radius: 16px;
    color: white;
    text-align: center;
    z-index: 10002;
    pointer-events: none;
}

.lightbox-caption-author {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-amber);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.lightbox-caption-text {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 4. Portrait Lock Overlay */
.landscape-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-dark);
    z-index: 99999;
    color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
}

.landscape-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--color-amber);
    animation: rotatePhone 2s infinite;
}

@keyframes rotatePhone {
    0% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(90deg);
    }
}

@media screen and (orientation: landscape) and (max-width: 900px) and (pointer: coarse) {
    .landscape-warning {
        display: flex;
    }
}

/* ──────────────────────── */
/* PHASE 2 UX REFINEMENTS   */
/* ──────────────────────── */

/* A. Scroll Hint / Tracker */
.scroll-tracker {
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 8px 0 16px 0;
    position: relative;
    overflow: hidden;
    display: none;
    /* JS will show if overflow exists */
}

.scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--color-amber);
    border-radius: 2px;
    width: 20%;
    /* JS will update this */
    transition: left 0.1s linear;
}

/* B. Reviews Header Actions */
.reviews-title-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.reviews-actions-mini {
    display: flex;
    gap: 8px;
}

.btn-mini-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-mini-primary {
    background: var(--color-amber-light);
    color: var(--color-amber-dark);
}

.btn-mini-secondary {
    background: #f3f4f6;
    color: var(--color-text-muted);
}

/* C. Horizontal Reviews */
.reviews-flex-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 16px 16px 0;
    /* Extra right padding */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-flex-container::-webkit-scrollbar {
    display: none;
}

.review-card-horizontal {
    flex: 0 0 85vw;
    min-width: 280px;
    max-width: 400px;
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    scroll-snap-align: start;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Height handled by min-height inline or let it grow */
    position: relative;
    /* Ensure it doesn't get cut off weirdly */
}

@media (min-width: 768px) {
    .review-card-horizontal {
        flex: 0 0 320px;
    }
}

.review-card-horizontal .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.review-card-horizontal .review-user {
    font-weight: 700;
    color: var(--color-dark);
}

.review-card-horizontal .review-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.review-card-horizontal .review-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Truncate after 4 lines */
    line-clamp: 4;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    /* Hint that it's clickable */
}

/* 4. Cleanup Visuals */
.section-divider {
    display: none !important;
    /* Hide old separators */
}

/*  */
/* POPUPS SECUNDARIS I MILLORES                         */
/*  */

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

.secondary-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.secondary-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.secondary-modal-overlay.is-visible .secondary-modal {
    transform: scale(1);
}

.secondary-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.secondary-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
}

.secondary-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    overscroll-behavior: contain;
}

/* Secondary Photos Grid */
.photos-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.grid-photo-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
}

.grid-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.grid-photo-item:hover img {
    transform: scale(1.05);
}

/* Secondary Reviews List */
.reviews-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card-full {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
}

.review-full-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-full-author {
    font-weight: 600;
    color: var(--color-dark);
}

.review-full-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.review-full-rating {
    display: flex;
    gap: 2px;
}

.review-full-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
}


/* UI REFINEMENTS (POPUP) */

.section-divider-subtle {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    margin: 16px 0;
    width: 100%;
}

/* Updated Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    /* ~16px */
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    text-decoration: none;
    padding: 6px 8px;
    /* Bigger touch area */
    margin-left: -8px;
    /* Align visual text with margin */
    border-radius: 8px;
    transition: background 0.2s;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;

    /* FIX CLICKABILITY */
    position: relative;
    z-index: 10;
}

.section-action-link:hover,
.section-action-link:active {
    background: #f3f4f6;
    color: var(--color-brand);
}

.section-action-link .material-symbols-outlined {
    font-size: 20px;
    /* Reduced form 24px */
    color: var(--color-text-muted);
}

.section-action-link:hover .material-symbols-outlined {
    color: var(--color-brand);
}

/* Secondary chevron specific style */
.section-action-link .chevron-indicator {
    font-size: 18px !important;
    color: #9ca3af;
    margin-top: 1px;
    /* Optical alignment */
}

/* Reviews Summary Inline (Stars inside header) */
.reviews-summary-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 6px;
    background: #fffbeb;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #b45309;
}

.reviews-summary-inline .star-icon {
    font-size: 14px;
    font-variation-settings: 'FILL' 1;
    color: #f59e0b;
}

/* PHOTOS SECTION LAYOUT FIX */
.photos-section {
    display: flex;
    flex-direction: column;
}

.photos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: 8px 0;
}

.photos-header:hover {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.photos-strip {
    display: block;
    width: 100%;
    margin-top: 10px;
}


/* Z-INDEX STACKING FIX */
#detail-modal-overlay {
    z-index: 1000;
}

#secondary-modal-overlay {
    z-index: 1100;
}

.lightbox-overlay {
    z-index: 9999 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}


/* SPACING OPTIMIZATIONS (8pt Grid) */
.actions-inline {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    /* 12px between buttons and desc */
    flex-wrap: wrap;
}

.section-divider-subtle {
    margin: 8px 0 !important;
    /* Compact divider: 8+1+8 = 17px total */
}

.photos-strip {
    margin-top: 0 !important;
    /* Connect header to carousel */
}

.photos-header {
    padding-bottom: 8px;
    /* Ensure visual connection */
    margin-bottom: 0;
}

.section-block {
    margin-bottom: 16px;
    /* Hierarchy */
}


/* FORM VIEW REDESIGN (iOS Style) */
/* ─────────────────────────────────────────────────── */
/* FORM VIEWS — Valora / Foto / Incidencia (2026 UX)  */
/* ─────────────────────────────────────────────────── */

.view-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.view-header-sticky {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 10;
}

.view-header-center {
    text-align: center;
    flex-grow: 1;
}

.view-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.view-subtitle {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-btn-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.view-btn-icon:hover {
    background: #f3f4f6;
}

.view-btn-icon:active {
    transform: scale(0.9);
    transition: transform 0.1s;
}

.view-content-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.view-content-scroll::-webkit-scrollbar {
    display: none;
}

.view-footer-sticky {
    flex-shrink: 0;
    padding: 14px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

/* MODERN INPUTS (2026) */
.form-input-modern {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #f9fafb;
    color: var(--color-text);
}

.form-input-modern:focus {
    border-color: var(--color-amber);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.form-input-modern::placeholder {
    color: #9ca3af;
}

/* PHOTO UPLOAD CARD (2026) */
.upload-card {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fafafa;
    -webkit-tap-highlight-color: transparent;
}

.upload-card:hover {
    border-color: var(--color-amber);
    background: #fffbeb;
    transform: translateY(-1px);
}

.upload-card:active {
    transform: scale(0.98);
    border-color: var(--color-amber-dark);
    transition: transform 0.1s;
}

/* PREVIEW GRID (2026) */
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.preview-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
    transition: transform 0.15s ease;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px !important;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.preview-remove:hover {
    background: rgba(239, 68, 68, 0.85);
}

.preview-remove:active {
    transform: scale(0.85);
}

/* STAR RATING LARGE (2026) */
.star-rating-xl {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-direction: row-reverse;
    padding: 12px 0;
}

.star-rating-xl input {
    display: none;
}

.star-rating-xl label {
    font-size: 40px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.star-rating-xl label:hover {
    transform: scale(1.15);
}

.star-rating-xl label:active {
    transform: scale(0.9);
    transition: transform 0.08s;
}

.star-rating-xl label:hover,
.star-rating-xl label:hover~label,
.star-rating-xl input:checked~label {
    color: var(--color-amber);
    font-variation-settings: 'FILL' 1;
}


/* Subview: amagar drag handle (el header compartit gestiona back/close) */
#detail-modal-overlay.has-subview .drag-handle {
    display: none;
}

/* PHOTOS FORM UX */
.photo-counter {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 8px;
    font-weight: 500;
}

/* REVIEWS FORM UX */
.rating-status-text {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: var(--color-amber);
    min-height: 20px;
    /* Prevent jump */
}


/* EMPTY STATES */
.empty-state-section {
    padding: 24px 16px;
    background: #f9fafb;
    border-radius: 12px;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.empty-state-icon {
    font-size: 24px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.empty-state-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}


/* FILTERS MODAL REDESIGN 2025 */
.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    /* Fix focusable hidden elements */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.filter-modal-card {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.filter-modal-overlay.is-visible .filter-modal-card {
    transform: scale(1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.btn-close-filter {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: background 0.2s;
}

.btn-close-filter:hover {
    background: #e5e7eb;
}

.filter-search {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    /* Context */
}

.filter-search .search-icon {
    position: static !important;
    /* Override legacy absolute */
    transform: none !important;
    margin: 0 !important;
    font-size: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.filter-search:focus-within {
    border-color: #f59e0b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.filter-search input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: #374151;
    outline: none;
}

.filter-group-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-types-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-filter-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter-modern:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-filter-modern.is-active {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.btn-filter-modern .material-symbols-outlined {
    font-size: 20px;
    color: #9ca3af;
}

.btn-filter-modern.is-active .material-symbols-outlined {
    color: #f59e0b;
    font-variation-settings: 'FILL' 1;
}

.btn-ghost-clean {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s;
    padding: 8px;
}

.btn-ghost-clean:hover {
    color: #6b7280;
    text-decoration-color: #d1d5db;
}

/* MODERN SUGGEST MODAL (Consolidated) */
.modern-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    /* Dynamic viewport height for mobile bars */
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin: 0;
    padding: 0;
}

.modern-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modern-modal-card {
    background: #fff;
    width: 90%;
    max-width: 440px;
    max-height: calc(100dvh - 40px);
    /* Leave 20px margins top/bottom */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
    /* For sticky */
    margin: auto;
    /* Ensure flex centering works perfectly */
}

.modern-modal-overlay.is-visible .modern-modal-card {
    transform: scale(1);
}

.modern-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    flex-shrink: 0;
}

.modern-modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.modern-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.modern-modal-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.section-divider-modal {
    height: 4px;
    width: 40px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 12px 0 0 0;
}

.modern-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}

.modern-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fff;
    flex-shrink: 0;
}

/* Form Inputs Refinement */
.form-group-modern {
    margin-bottom: 16px;
}

.form-label-small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input-clean {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #f9fafb;
    transition: all 0.2s;
}

.form-input-clean:focus {
    background: #fff;
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-submit-sticky {
    width: 100%;
    background: #f59e0b;
    color: #fff;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn-submit-sticky:hover {
    background: #d97706;
}

.btn-submit-sticky:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* QUI SOM MODAL STYLES */
.info-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0;
}

.info-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: #9ca3af;
    /* Lighter gray as requested */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 20px;
}

/* Footer discrete */
.info-footer-text {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 24px;
}


/*  */
/* TOAST NOTIFICATIONS (Z-INDEX FIX)                   */
/*  */

#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    /* Super high z-index to be above modals */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Let clicks pass through container */
    width: max-content;
    max-width: 90vw;
}

.toast {
    background: var(--color-white);
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    /* Re-enable clicks on toast */
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 280px;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.error {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FEE2E2;
}

.toast.success {
    background: #ECFDF5;
    color: #065F46;
    border-color: #D1FAE5;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.error .toast-icon {
    color: #EF4444;
}

.toast.success .toast-icon {
    color: #10B981;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: currentColor;
    opacity: 0.6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: opacity 0.2s, background 0.2s;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}


/* UNIFIED SUBMIT BUTTON (PILL SHAPE 2025) */
.btn-submit {
    width: 100%;
    height: 56px;
    border-radius: 999px;
    background: #f59e0b;
    /* Brand Orange */
    color: #fff;
    font-weight: 700;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2), 0 2px 4px -1px rgba(245, 158, 11, 0.1);
}

.btn-submit:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3), 0 4px 6px -2px rgba(245, 158, 11, 0.1);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}


/* UNIFIED FORM VIEW STYLES (2025) */
.form-label-view {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.view-section-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 24px 0;
}

.view-btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #374151;
}

.view-btn-icon:hover {
    background: #f3f4f6;
}


/* SMART DESCRIPTION TOGGLE (2025) */
.desc-wrapper {
    margin: 12px 0;
}

.desc-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
    transition: max-height 0.3s ease-out;
}

.desc-text.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc-toggle {
    display: none;
    /* Hidden until JS detects truncation */
    background: none;
    border: none;
    color: var(--color-amber);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 0;
    cursor: pointer;
    margin-top: 4px;
    text-align: left;
    width: fit-content;
}

.desc-toggle:hover {
    color: var(--color-amber-dark);
    text-decoration: underline;
}


/* SIMPLIFIED SEE MORE TOGGLE (IDs) */
#place-description.is-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#see-more-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-amber);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 0;
    cursor: pointer;
    margin-top: 4px;
}

#see-more-toggle:hover {
    color: var(--color-amber-dark);
    text-decoration: underline;
}


/* EXPLICIT TOGGLE WRAPPING FIX */
#place-description {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    /* Preserve formatting but wrap */
    max-width: 100%;
}

/* COOKIE MODAL STYLE (CENTERED - GLASS 2025) */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.cookie-modal-card {
    width: 100%;
    max-width: 480px;
    /* Desktop width */
    background: rgba(255, 255, 255, 0.96);
    /* High opacity glass */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    animation: popInModal 0.4s var(--spring);
    margin: 20px;
    /* Safe margin on mobile */
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popInModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Typography */
.cookie-title-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cookie-text-large {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
}

.cookie-links-row {
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 24px;
}

.cookie-links-row a {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.cookie-links-row a:hover {
    color: #111827;
}

/* Actions */
.cookie-buttons-container {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* Button Styles */
.btn-cookie-primary {
    flex: 1;
    height: 44px;
    background: #f59e0b;
    /* Brand Amber */
    color: #fff;
    border: none;
    border-radius: 99px;
    /* Pill */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
}

.btn-cookie-primary:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-cookie-outline {
    flex: 1;
    height: 44px;
    background: transparent;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.btn-cookie-ghost {
    flex: 1;
    height: 44px;
    background: transparent;
    color: #6b7280;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.btn-cookie-ghost:hover {
    color: #374151;
}

/* Mobile Layout */
@media (max-width: 600px) {
    .cookie-buttons-container {
        flex-direction: column;
        gap: 12px;
    }

    .btn-cookie-primary {
        order: 1;
    }

    .btn-cookie-outline {
        order: 2;
    }

    .btn-cookie-ghost {
        order: 3;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        margin-top: 4px;
    }
}


/* PREFERENCES MODAL TOGGLES */
.cookie-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-option-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

.cookie-option-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    display: inline-block;
    height: 24px;
    width: 44px;
    position: relative;
}

.toggle-switch input {
    display: none;
}

.slider {
    background-color: #e5e7eb;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 2px;
    content: "";
    height: 20px;
    left: 2px;
    position: absolute;
    transition: .4s;
    width: 20px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: #f59e0b;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Placeholder for blocked map (Premium 2025) */
.map-placeholder {
    width: 100%;
    height: 100%;
    /* Light gray base with subtle grid/dot pattern mimicking a map */
    background-color: #F9FAFB;
    background-image: radial-gradient(#E5E7EB 2px, transparent 2px);
    background-size: 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    padding: 24px;
    animation: fadeInPlaceholder 0.5s ease-out;
}

@keyframes fadeInPlaceholder {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.map-placeholder-card {
    /* Frosted Glass High-End */
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 24px;

    padding: 40px 32px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: slideUpCard 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.map-placeholder-icon {
    font-size: 56px;
    /* Larger icon */
    color: #9CA3AF;
    margin-bottom: 8px;
    background: #F3F4F6;
    padding: 16px;
    border-radius: 50%;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder-title {
    font-size: 1.5rem;
    /* H2 size */
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.5px;
}

.map-placeholder-text {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

.map-placeholder-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
    align-items: center;
}

.map-placeholder-small {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-top: 8px;
}

/* ─────────────────────────────────────────────────── */
/* SKELETON LOADING (2026 UX)                          */
/* ─────────────────────────────────────────────────── */

.skeleton {
    background: linear-gradient(90deg, #F5F3F0 25%, #EDE8E3 50%, #F5F3F0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-photos {
    display: flex;
    gap: 8px;
    overflow: hidden;
}

.skeleton-photo {
    flex: 0 0 130px;
    height: 130px;
    border-radius: 14px;
}

.skeleton-reviews {
    display: flex;
    gap: 10px;
    overflow: hidden;
}

.skeleton-review {
    flex: 0 0 280px;
    height: 120px;
    border-radius: 14px;
}

/* ─────────────────────────────────────────────────── */
/* CTA STICKY FOOTER (Valora)                          */
/* ─────────────────────────────────────────────────── */

.detail-footer-cta {
    flex-shrink: 0;
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid #F0EDE8;
    display: flex;
    gap: 10px;
}

.btn-cta-valora {
    flex: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-cta-valora:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.btn-cta-valora:active {
    transform: scale(0.97);
}

.btn-cta-valora .material-symbols-outlined {
    font-size: 20px;
}

.btn-cta-penja {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    padding: 0 18px;
    background: white;
    color: var(--color-text);
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-cta-penja:hover {
    border-color: var(--color-amber);
    color: var(--color-amber);
    transform: translateY(-1px);
}

.btn-cta-penja:active {
    transform: scale(0.97);
}

.btn-cta-penja .material-symbols-outlined {
    font-size: 18px;
}

@media (min-width: 768px) {
    .detail-footer-cta {
        padding: 14px 20px;
    }
}

/* ─────────────────────────────────────────────────── */
/* ADDRESS ROW active state                            */
/* ─────────────────────────────────────────────────── */

.address-row:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Section action active */
.section-action:active {
    transform: scale(0.94);
    transition: transform 0.1s;
}

/* Footer CTA amagat en desktop (els botons ja son inline a la fila) */
@media (min-width: 768px) {
    .detail-footer-cta {
        display: none !important;
    }
}

/* Hide close button on mobile — swipe down is enough */
@media (max-width: 767px) {
    .btn-close-modal {
        display: none;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .detail-modal,
    .modal-overlay,
    .skeleton,
    .photos-carousel,
    .reviews-carousel {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   APP-STYLE REDESIGN (Fases 1-4)
   ═══════════════════════════════════════════════════════════════ */

/* ── SEARCH BAR (pill on map) ── */
.map-search-bar {
    position: fixed;
    top: max(env(safe-area-inset-top, 12px), 12px);
    left: 12px;
    right: 12px;
    height: 50px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    box-shadow: 0 0.5px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 20;
    transition: opacity 0.2s, box-shadow 0.3s;
}
.map-search-bar:focus-within {
    box-shadow: 0 4px 28px rgba(245, 158, 11, 0.15), 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.map-search-bar .search-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.map-search-bar .search-divider {
    width: 1px;
    height: 20px;
    background: var(--color-border);
    opacity: 0.4;
    flex-shrink: 0;
}

.map-search-bar .search-icon-inline {
    font-size: 20px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.map-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-family);
    color: var(--color-text);
    min-width: 0;
}

.map-search-bar input::placeholder {
    color: var(--color-text-light);
}

.map-search-bar .btn-search-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.map-search-bar .btn-search-action:hover {
    color: var(--color-amber);
}

.map-search-bar .btn-search-action .material-symbols-outlined {
    font-size: 22px;
}

/* Search dropdown */
.search-dropdown {
    position: fixed;
    top: calc(max(env(safe-area-inset-top, 12px), 12px) + 56px);
    left: 12px;
    right: 12px;
    background: var(--panel-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 21;
    max-height: 60vh;
    overflow-y: auto;
    display: none;
}

.search-dropdown.visible {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
}

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

.search-dropdown-item:hover,
.search-dropdown-item:active {
    background: rgba(245, 158, 11, 0.06);
}

.search-dropdown-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-dropdown-icon .material-symbols-outlined {
    font-size: 20px;
}

.search-dropdown-text {
    flex: 1;
    min-width: 0;
}

.search-dropdown-text .name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-text .sub {
    font-size: 13px;
    color: var(--color-text-muted);
}

.search-dropdown-arrow {
    font-size: 14px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

/* ── FILTER CHIPS (horizontal scroll on map) ── */
.map-filter-chips {
    position: fixed;
    top: calc(max(env(safe-area-inset-top, 12px), 12px) + 58px);
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    z-index: 20;
    padding: 4px 0;
}

.map-filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-family);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.04);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.filter-chip:active {
    transform: scale(0.96);
}

.filter-chip .material-symbols-outlined {
    font-size: 18px;
}

/* Per-type chip styles */
.filter-chip[data-type="brewery"] {
    border-color: rgba(120, 53, 15, 0.2);
    color: var(--type-brewery);
}
.filter-chip[data-type="brewery"].active {
    background: rgba(120, 53, 15, 0.12);
    border-color: rgba(120, 53, 15, 0.35);
    color: var(--type-brewery-badge-text);
}

.filter-chip[data-type="brewpub"] {
    border-color: rgba(185, 28, 28, 0.2);
    color: var(--type-brewpub);
}
.filter-chip[data-type="brewpub"].active {
    background: rgba(185, 28, 28, 0.12);
    border-color: rgba(185, 28, 28, 0.35);
    color: var(--type-brewpub-badge-text);
}

.filter-chip[data-type="store"] {
    border-color: rgba(21, 128, 61, 0.2);
    color: var(--type-store);
}
.filter-chip[data-type="store"].active {
    background: rgba(21, 128, 61, 0.12);
    border-color: rgba(21, 128, 61, 0.35);
    color: var(--type-store-badge-text);
}

.filter-chip[data-type="taproom"] {
    border-color: rgba(180, 83, 9, 0.2);
    color: var(--type-taproom);
}
.filter-chip[data-type="taproom"].active {
    background: rgba(180, 83, 9, 0.12);
    border-color: rgba(180, 83, 9, 0.35);
    color: var(--type-taproom-badge-text);
}

/* ── LOCATE ME BUTTON (app-style) ── */
.btn-locate-me {
    position: fixed;
    bottom: 105px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-amber);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: transform 0.2s;
}

.btn-locate-me:active {
    transform: scale(0.92);
}

.btn-locate-me .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-white);
}

/* Locate button transition for preview panel */
.btn-locate-me {
    transition: bottom 0.35s cubic-bezier(0.32, 0.72, 0, 1), transform 0.2s;
}

/* ── TYPE TAG BADGES (matching app) ── */
.type-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.type-tag.brewery {
    background: var(--type-brewery-badge-bg);
    color: var(--type-brewery-badge-text);
}
.type-tag.brewpub {
    background: var(--type-brewpub-badge-bg);
    color: var(--type-brewpub-badge-text);
}
.type-tag.store {
    background: var(--type-store-badge-bg);
    color: var(--type-store-badge-text);
}
.type-tag.taproom {
    background: var(--type-taproom-badge-bg);
    color: var(--type-taproom-badge-text);
}

/* ── CUSTOM MAP MARKERS ── */
.custom-marker {
    cursor: pointer;
    transition: transform 0.15s ease;
    position: relative;
    transform-origin: center bottom;
}

.custom-marker img {
    width: 28px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.custom-marker.selected img {
    width: 44px;
    filter:
        drop-shadow(0 4px 6px rgba(0, 0, 0, 0.28))
        drop-shadow(0 0 12px rgba(245, 158, 11, 0.85));
}

.custom-marker.selected::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid #F59E0B;
    background: rgba(245, 158, 11, 0.14);
    animation: markerPulse 1.5s ease-out infinite;
    pointer-events: none;
}

.custom-marker.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.85);
    animation: markerPulseSoft 1.5s ease-out infinite 0.35s;
    pointer-events: none;
}

@keyframes markerPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.55);
        opacity: 0;
    }
}

.custom-marker.selected {
    z-index: 3;
    animation: markerPop 0.26s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes markerPulseSoft {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.75);
        opacity: 0;
    }
}

@keyframes markerPop {
    0% { transform: scale(0.88); }
    65% { transform: scale(1.18); }
    100% { transform: scale(1.1); }
}

.custom-marker:hover {
    transform: scale(1.1);
}

.custom-marker.selected:hover {
    transform: scale(1.15);
}

/* Cluster markers */
.cluster-marker-app {
    cursor: pointer;
    transition: transform 0.15s;
}

.cluster-marker-app img {
    width: 32px;
    height: 32px;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

.cluster-marker-app:hover {
    transform: scale(1.08);
}

/* ── PLACE PREVIEW PANEL (2026 design) ── */
.place-preview-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    z-index: 25;
    transform: translateY(105%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 65vh;
    overflow: hidden;
    overscroll-behavior: contain;
}

.place-preview-sheet.visible {
    transform: translateY(0);
}

.preview-handle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
    z-index: 3;
}

.preview-handle-bar {
    width: 36px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.6);
}

/* Hero photo at top */
.preview-hero {
    position: relative;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #F59E0B22, #D9770633);
    overflow: hidden;
}

.preview-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, white);
    z-index: 1;
}

.preview-hero-badge {
    position: absolute;
    top: 36px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 4px;
}

.preview-hero-badge .type-tag {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* No photo state */
.preview-hero-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: var(--color-text-light);
}

.preview-hero-empty .material-symbols-outlined {
    font-size: 32px;
    opacity: 0.5;
}

.preview-body {
    padding: 0 20px 20px;
    margin-top: -8px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    max-height: calc(65vh - 140px);
}

.preview-header {
    margin-bottom: 8px;
}

.preview-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.preview-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.preview-rating .star-filled {
    color: var(--color-star);
    font-size: 14px;
}

.preview-rating .star-empty {
    color: var(--color-star-empty);
    font-size: 14px;
}

.preview-rating .rating-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    margin-left: 2px;
}

.preview-rating .rating-count {
    font-size: 11px;
    color: var(--color-text-muted);
}

.preview-address {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-address .material-symbols-outlined {
    font-size: 14px;
    color: var(--color-amber);
    flex-shrink: 0;
}

.preview-desc {
    font-size: 13px;
    line-height: 18px;
    color: var(--color-text-secondary);
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-ctas {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.preview-cta {
    flex: 1;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.15s;
}

.preview-cta:active { opacity: 0.8; }

.preview-cta .material-symbols-outlined { font-size: 18px; }

.preview-cta.secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.preview-cta.primary {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    font-weight: 700;
}
.preview-cta.primary:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}

/* Map blur when preview/detail is open */
/* Map dim overlay when panels are open */
#map.map-blurred {
    filter: blur(2px) brightness(0.95);
    transition: filter 0.4s ease;
}
#map { transition: filter 0.4s ease; }

/* Fallback: overlay for browsers where filter on map doesn't work */
.map-dim-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.map-dim-overlay.active {
    opacity: 1;
}

/* Desktop: preview card on the right side */
@media (min-width: 768px) {
    .place-preview-sheet {
        left: auto;
        right: 16px;
        bottom: 16px;
        width: 380px;
        border-radius: var(--radius-xl);
        max-height: 75vh;
        transform: translateX(110%) scale(0.95);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    }
    .place-preview-sheet.visible {
        transform: translateX(0) scale(1);
    }
    .preview-hero { height: 180px; }
    .preview-body { max-height: calc(75vh - 180px); }
    .place-preview-sheet {
        box-shadow: -8px 0 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    }
}

/* ── PLACE CARD V2 (app-style with color bar) ── */
.place-card-v2 {
    display: flex;
    border-radius: var(--radius-lg);
    background: white;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.place-card-v2:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.place-card-v2:active {
    transform: scale(0.98);
}

.card-v2-bar {
    width: 4px;
    flex-shrink: 0;
}

.card-v2-content {
    flex: 1;
    padding: 12px 14px 12px 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-v2-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.card-v2-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.card-v2-chevron {
    font-size: 20px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.card-v2-location {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-v2-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.card-v2-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.card-v2-tags .type-tag {
    font-size: 10px;
    padding: 2px 7px;
}

.card-v2-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.card-v2-rating-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
}

.card-v2-rating-count {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT / INFO MODAL (app-style)
   ═══════════════════════════════════════════════════════════════ */

.about-modal {
    max-width: 460px;
    position: relative;
}

.about-modal .modern-modal-header {
    display: none;
}

.about-modal .modern-modal-body {
    padding: 16px;
    gap: 8px;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
}

/* Close button floating over about card */
.about-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.about-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.about-close-btn .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-text-muted);
}

/* Hero */
.about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 20px;
    background: white;
    border-radius: var(--radius-xl);
    gap: 4px;
}

.about-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.about-app-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.about-tagline {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-mission {
    font-size: 13px;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 20px;
    padding: 0 24px;
    margin-top: 12px;
}

.about-version {
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 8px;
}

/* Stats row inside hero */
.about-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    width: 100%;
    justify-content: center;
}

.about-stat {
    flex: 1;
    text-align: center;
}

.about-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-amber);
    letter-spacing: -0.5px;
}

.about-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.about-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
}

/* Section titles */
.about-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 16px 4px 6px;
}

/* Sections (grouped rows) */
.about-section {
    background: white;
    border-radius: 14px;
    overflow: hidden;
}

/* Row items */
.about-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    border-bottom: 0.5px solid var(--color-border);
    transition: background 0.15s;
}

.about-row.last {
    border-bottom: none;
}

.about-row:hover {
    background: rgba(245, 158, 11, 0.04);
}

.about-row:active {
    background: rgba(245, 158, 11, 0.08);
}

.about-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-row-icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--color-amber);
}

/* Amber variant (default) */
.about-row-icon-amber {
    background: rgba(245, 158, 11, 0.1);
}

.about-row-icon-amber .material-symbols-outlined {
    color: var(--color-amber);
}

.about-row-content {
    flex: 1;
    min-width: 0;
}

.about-row-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

.about-row-sub {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 1px;
}

.about-row-arrow {
    font-size: 18px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

/* About text */
.about-text {
    font-size: 13px;
    line-height: 20px;
    color: var(--color-text);
    margin: 0;
}

/* Social buttons */
.about-social-row {
    display: flex;
    gap: 10px;
}

.about-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: opacity 0.15s;
}

.about-social-btn:active { opacity: 0.8; }

.about-web-btn {
    border: 1.5px solid var(--color-amber);
    background: transparent;
    color: var(--color-amber);
}

.about-ig-btn {
    background: linear-gradient(135deg, #B075D1, #D98CB5, #EE8A9E, #F5B088, #FDD49B);
    color: white;
    border: none;
}

/* Tip Jar card */
.about-tip-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.about-tip-icon {
    width: 52px;
    height: 52px;
    border-radius: 26px;
    background: var(--color-amber-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.about-tip-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.about-tip-body {
    font-size: 13px;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 20px;
    padding: 0 8px;
    margin: 0;
}

.about-tip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 14px;
    padding: 0 24px;
    margin-top: 8px;
    background: var(--color-amber);
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}

.about-tip-btn:active { opacity: 0.8; }

/* Credits */
.about-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 8px;
    gap: 4px;
    font-size: 11px;
    color: var(--color-text-light);
}

.about-credits a {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-amber);
    text-decoration: none;
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   DETAIL MODAL REDESIGN (2026)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   DETAIL SCREEN — 2026 CELESTIAL
   ═══════════════════════════════════════════════════════════════ */

@keyframes dsSlideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes dsScaleIn { from { opacity:0; transform:scale(0.96); } to { opacity:1; transform:scale(1); } }

/* Hero */

/* ── Hero ── */
.ds-hero {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    scroll-snap-type: x mandatory;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    animation: none !important;
    border-bottom: none;
    outline: none;
    scroll-behavior: smooth;
}
.ds-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.ds-hero::-webkit-scrollbar { display: none; }

.ds-hero img {
    min-width: 100%;
    height: 115%;
    object-fit: cover;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.1s linear;
}

.ds-hero-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, #FEF3C7 0%, #FBBF24 30%, #D97706 70%, #92400E 100%);
    background-size: 200% 200%;
    animation: dsHeroEmptyShimmer 8s ease-in-out infinite;
}
@keyframes dsHeroEmptyShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.detail-hero-counter {
    position: absolute;
    bottom: 12px;
    left: 16px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* ── Identity ── */
.ds-identity {
    padding: 20px 20px 0;
    position: relative;
}

.ds-type-bar {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.ds-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1F2937;
    margin: 0 0 10px;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.ds-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ds-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.ds-rating { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.ds-star { font-size: 16px; color: #D1D5DB; transition: color 0.2s; }
.ds-star-on { color: #F59E0B; }
.ds-rating-num { font-size: 14px; font-weight: 800; color: #1F2937; margin-left: 4px; }
.ds-rating-count { font-size: 12px; color: #9CA3AF; margin-left: 2px; }

/* ── Quick Actions (Google Maps style circles) ── */
.ds-quick-actions {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ds-quick-actions::-webkit-scrollbar { display: none; }

.ds-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 64px;
    padding: 4px 8px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

.ds-quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s, background 0.2s;
}

.ds-quick-icon .material-symbols-outlined { font-size: 22px; color: #92400E; }

.ds-quick-amber { background: linear-gradient(135deg, #FBBF24, #F59E0B); border-color: rgba(245,158,11,0.3); box-shadow: 0 4px 12px rgba(245,158,11,0.25); }
.ds-quick-amber .material-symbols-outlined { color: white; }

.ds-quick-btn:hover .ds-quick-icon { transform: scale(1.1); box-shadow: 0 6px 16px rgba(245,158,11,0.12); background: rgba(245,158,11,0.13); }
.ds-quick-btn:active .ds-quick-icon { transform: scale(0.92); }

.ds-quick-btn span:last-child {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
}

/* ── Address ── */
.ds-address {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 20px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(245,158,11,0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.ds-address:hover {
    background: rgba(255,255,255,0.75);
    border-color: rgba(245,158,11,0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245,158,11,0.06);
}

.ds-address-pin { font-size: 22px; flex-shrink: 0; }
.ds-address-text { flex: 1; min-width: 0; }
.ds-address-main { font-size: 14px; font-weight: 500; color: #1F2937; }
.ds-address-sub { font-size: 12px; color: #9CA3AF; margin-top: 1px; }
.ds-address-arrow { font-size: 18px; color: #D1D5DB; flex-shrink: 0; transition: transform 0.2s; }
.ds-address:hover .ds-address-arrow { transform: translateX(2px); color: #F59E0B; }

/* ── Sections ── */
.ds-section {
    padding: 0 20px;
    margin-top: 8px;
}

.ds-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.ds-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* ── Description ── */
.ds-desc {
    font-size: 14px;
    line-height: 23px;
    color: #4B5563;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s;
}

.ds-desc.expanded {
    -webkit-line-clamp: unset;
}

.ds-desc-toggle {
    background: none;
    border: none;
    color: #D97706;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0 0;
    font-family: var(--font-family);
    transition: color 0.15s;
}

.ds-desc-toggle:hover { color: #B45309; }

/* ── Report ── */
/* ── Contribute CTA Section ── */
.ds-contribute {
    margin: 8px 0;
    padding: 16px 18px;
    background: rgba(255,255,255,0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.04);
}
.ds-contribute-title {
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.ds-contribute-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ds-contribute-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    font-family: var(--font-family);
    text-align: left;
    transition: all 0.25s var(--ease-out-expo);
    -webkit-tap-highlight-color: transparent;
}
.ds-contribute-btn .material-symbols-outlined {
    font-size: 24px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.ds-contribute-review .material-symbols-outlined {
    background: rgba(245,158,11,0.1);
    color: #D97706;
}
.ds-contribute-photo .material-symbols-outlined {
    background: rgba(59,130,246,0.1);
    color: #3B82F6;
}
.ds-contribute-btn strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
}
.ds-contribute-btn small {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 400;
    margin-top: 2px;
}
.ds-contribute-btn:hover {
    border-color: rgba(245,158,11,0.2);
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ds-contribute-btn:active {
    transform: scale(0.98);
    box-shadow: none;
}

.ds-report-btn {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
    color: #9CA3AF;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-family);
    transition: all 0.15s;
    border-radius: 10px;
}
.ds-report-btn:hover { color: #D97706; background: rgba(245,158,11,0.04); }

/* Content spacing */
.ds-main { padding-bottom: 20px; }

/* ── Section cards (elevated look) ── */
.ds-section {
    background: rgba(255,255,255,0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 16px 20px;
    margin: 8px 12px;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Override previous ds-section padding */
.ds-identity { padding: 20px 20px 0; }
.ds-quick-actions { padding: 12px 16px; }
.ds-address { margin: 0 12px; }

/* ── Review avatar ── */
.ds-review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* ── Detail sections: all visible by default ── */
.ds-reveal { opacity: 1; }

/* ── Filter chip count badge ── */
.chip-count {
    background: rgba(0, 0, 0, 0.07);
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 2px;
}
.filter-chip.active .chip-count {
    background: rgba(0, 0, 0, 0.1);
}

/* ── Map badge (locals count) ── */
.map-badge {
    position: fixed;
    bottom: 100px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.3s;
}
.map-badge .material-symbols-outlined { font-size: 14px; color: #F59E0B; }

/* ── Nearby Carousel ── */
.nearby-carousel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 19;
    padding: 8px 0 14px;
    background: linear-gradient(transparent, rgba(255,255,255,0.6) 40%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    transform: translateY(0);
}

.nearby-carousel.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.nearby-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 12px;
    scroll-snap-type: x proximity;
}
.nearby-scroll::-webkit-scrollbar { display: none; }

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.nearby-card {
    animation: cardSlideIn 0.4s var(--spring) both;
    flex-shrink: 0;
    width: 180px;
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nearby-card:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); }
.nearby-card:active { transform: scale(0.97); }

.nearby-card-bar {
    height: 4px;
    border-radius: 4px 4px 0 0;
}

.nearby-card-body {
    padding: 12px 14px;
}

.nearby-card-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nearby-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.nearby-card-dist {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 3px;
}

.nearby-card-dist .material-symbols-outlined { font-size: 13px; }

.nearby-card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #1F2937;
}

.nearby-card-rating .material-symbols-outlined { font-size: 13px; color: #F59E0B; }

.nearby-card-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.nearby-card-tags .type-tag {
    font-size: 9px;
    padding: 1px 6px;
}

/* ═══════════════════════════════════════════════════════════════
   INFO PAGE — 2026 PREMIUM REDESIGN
   Aurora gradients · Bento grid · Glass cards · Micro-animations
   ═══════════════════════════════════════════════════════════════ */

@keyframes infoFadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes infoSlideUp { from { opacity:0; transform:translate(-50%,-48%) scale(0.96); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }
@keyframes auroraShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes floatIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulseGlow { 0%,100% { opacity:0.4; } 50% { opacity:0.7; } }

.info-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 10, 5, 0.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
}

.info-overlay.is-open {
    display: block;
    animation: infoFadeIn 0.2s ease;
}

.info-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 94%;
    max-width: 480px;
    max-height: calc(100dvh - 32px);
    background: #FFFFFF;
    border-radius: 24px;
    overflow: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    animation: infoSlideUp 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.info-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.info-close:hover { background: white; transform: scale(1.1); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.info-close:active { transform: scale(0.9); }
.info-close .material-symbols-outlined { font-size: 18px; color: #374151; }

.info-scroll {
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.info-scroll::-webkit-scrollbar { display: none; }

/* ── HERO ── */
.info-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
}

.info-aurora {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A, #FBBF24, #F59E0B, #FEF3C7);
    background-size: 300% 300%;
    animation: auroraShift 8s ease infinite;
    opacity: 0.45;
}

.info-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 16px;
}

.info-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.info-hero-name {
    font-size: 24px;
    font-weight: 800;
    color: #1F2937;
    letter-spacing: -0.5px;
}

.info-hero-tagline {
    font-size: 10px;
    font-weight: 600;
    color: #92400E;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.6;
}

.info-hero-mission {
    font-size: 12px;
    color: #4B5563;
    text-align: center;
    line-height: 18px;
    padding: 0 4px;
    margin: 8px 0 0;
}

/* Stats inline */
.info-stats {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
}

.info-stat { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.info-stat-num { font-size: 20px; font-weight: 800; color: #D97706; }
.info-stat-label { font-size: 10px; color: #9CA3AF; font-weight: 500; }
.info-stat-sep { width: 1px; height: 22px; background: #E5E7EB; }

/* ── Info v2 compact styles ── */

/* Row link (contribueix items) */
.info-row-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
    color: #1F2937;
    font-size: 13px;
    transition: background 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.info-row-link:hover { background: rgba(245,158,11,0.04); }
.info-row-link:active { background: rgba(245,158,11,0.08); }
.info-row-link b { font-weight: 600; display: block; }
.info-row-link small { font-size: 11px; }

/* Social button v2 */
.info-social-btn-v2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: white;
    transition: transform 0.15s;
}
.info-social-btn-v2:hover { transform: translateY(-1px); }
.info-social-btn-v2:active { transform: scale(0.97); }

/* Store button v2 */
.info-store-btn-v2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 10px;
    background: #1F2937;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s;
}
.info-store-btn-v2:hover { transform: translateY(-1px); }
.info-store-btn-v2:active { transform: scale(0.97); }

/* Legal chip v2 */
.info-chip-v2 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 10px;
    background: white;
    border: 1px solid #E5E7EB;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.info-chip-v2 .material-symbols-outlined { font-size: 14px; color: #D97706; }
.info-chip-v2:hover { border-color: #F59E0B; color: #D97706; }
.info-chip-v2:active { transform: scale(0.96); }

/* Legacy - keep for compatibility */

.info-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 16px 16px 8px;
}

/* Action rows */
.info-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.12s;
    -webkit-tap-highlight-color: transparent;
}

.info-action-row-last { border-bottom: none; }
.info-action-row:hover { background: rgba(245, 158, 11, 0.04); }
.info-action-row:active { background: rgba(245, 158, 11, 0.08); }

.info-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.info-action-row:hover .info-action-icon { transform: scale(1.06); }
.info-action-icon .material-symbols-outlined { font-size: 20px; color: #F59E0B; }
.info-action-icon-red { background: rgba(239, 68, 68, 0.08); }
.info-action-icon-red .material-symbols-outlined { color: #EF4444; }

.info-action-text { flex: 1; min-width: 0; }
.info-action-label { font-size: 15px; font-weight: 500; color: #1F2937; }
.info-action-sub { font-size: 11px; color: #6B7280; margin-top: 1px; }

.info-action-arrow {
    font-size: 18px;
    color: #D1D5DB;
    flex-shrink: 0;
    transition: transform 0.15s, color 0.15s;
}

.info-action-row:hover .info-action-arrow { transform: translateX(2px); color: #F59E0B; }

/* About text */
.info-about-text { font-size: 13px; line-height: 21px; color: #374151; margin: 0; }
.info-about-text-muted { color: #6B7280; margin-top: 8px; }

/* ── SOCIAL GRID ── */
.info-social-grid {
    display: flex;
    gap: 10px;
    animation: floatIn 0.5s ease 0.3s both;
}

.info-social-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-social-card:hover { transform: translateY(-2px); }
.info-social-card:active { transform: scale(0.97); }

.info-social-web {
    background: white;
    border: 1.5px solid #F59E0B;
    color: #D97706;
}

.info-social-web:hover { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15); }

.info-social-ig {
    background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #F77737, #FCAF45);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(193, 53, 132, 0.2);
}

.info-social-ig:hover { box-shadow: 0 8px 24px rgba(193, 53, 132, 0.3); }

/* Social card content styled inline */

/* ── DOWNLOAD CARD ── */
.info-download-card {
    padding: 20px;
    animation: floatIn 0.5s ease 0.35s both;
}

.info-download-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.info-download-title { font-size: 16px; font-weight: 700; color: #1F2937; }
.info-download-sub { font-size: 12px; color: #6B7280; margin-top: 2px; }

.info-store-row { display: flex; gap: 8px; }

.info-store-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 14px;
    color: white;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.info-store-btn:hover { transform: translateY(-2px); }
.info-store-btn:active { transform: scale(0.97); }
.info-store-apple { background: #000; }
.info-store-apple:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.info-store-google { background: #1F2937; }
.info-store-google:hover { box-shadow: 0 4px 16px rgba(31,41,55,0.2); }
.info-store-btn .material-symbols-outlined { font-size: 22px; }

/* ── TIP JAR ── */
.info-tip-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: white;
    animation: floatIn 0.5s ease 0.4s both;
}

.info-tip-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
    animation: pulseGlow 3s ease infinite;
    pointer-events: none;
}

.info-tip-content {
    position: relative;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.info-tip-emoji { font-size: 40px; margin-bottom: 4px; }
.info-tip-title { font-size: 20px; font-weight: 800; color: #1F2937; letter-spacing: -0.3px; }
.info-tip-body { font-size: 13px; color: #6B7280; line-height: 20px; margin: 0; padding: 0 8px; }

.info-tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 16px;
    padding: 0 28px;
    margin-top: 12px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B, #D97706);
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-tip-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 28px rgba(245, 158, 11, 0.4); }
.info-tip-btn:active { transform: scale(0.97); }

/* ── LEGAL: Pill chips row ── */
.info-legal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 8px 0;
    animation: floatIn 0.5s ease 0.45s both;
}

.info-legal-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #E5E7EB;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.info-legal-chip .material-symbols-outlined { font-size: 16px; color: #D97706; }
.info-legal-chip:hover { background: white; border-color: #F59E0B; color: #D97706; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(245,158,11,0.1); }
.info-legal-chip:active { transform: scale(0.96); }

/* ── CREDITS ── */
.info-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px 12px;
    gap: 3px;
    font-size: 11px;
    color: #A8A29E;
}

.info-credits a {
    color: #D97706;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

.info-credits a:hover { color: #F59E0B; }

/* App Download section */
.about-app-download {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-app-download-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-store-btns {
    display: flex;
    gap: 8px;
}

.about-store-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 12px;
    background: var(--color-text);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.about-store-btn:active { opacity: 0.8; }

/* ── Info Contact Form v2 (Premium Redesign) ── */

/* Form view container */
#info-form-view {
    padding: 0 !important;
}

/* Form header with icon */
.info-form-header {
    position: relative;
    padding: 24px 20px 16px;
    text-align: center;
    overflow: hidden;
}
.info-form-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(251,191,36,0.08) 0%, rgba(245,158,11,0.04) 100%);
    border-radius: 0 0 24px 24px;
    pointer-events: none;
}
.info-form-hero-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #F59E0B, #D97706);
}
.info-form-hero-icon .material-symbols-outlined {
    font-size: 26px;
    color: white !important;
}
.info-form-hero-icon[class*="type-report"] { background: linear-gradient(135deg, #EF4444, #DC2626) !important; }
.info-form-hero-icon[class*="type-contact"] { background: linear-gradient(135deg, #92400E, #78350F) !important; }

.info-form-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #1F2937;
    margin: 0 0 2px;
    letter-spacing: -0.02em;
}
.info-form-header p {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}
.info-form-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s;
    z-index: 2;
}
.info-form-close:hover { transform: scale(1.08); background: rgba(255,255,255,1); }
.info-form-close .material-symbols-outlined { font-size: 18px; color: #6B7280; }

/* Form body */
.info-form-body {
    padding: 4px 20px 20px;
}

/* Section labels */
.info-form-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 16px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-form-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #E5E7EB, transparent);
}

/* Input group card */
.info-form-card {
    background: #FAFAFA;
    border: 1px solid #F0EDE8;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 12px;
}

/* Individual field inside card */
.info-form-field {
    position: relative;
    padding: 0;
}
.info-form-field + .info-form-field {
    border-top: 1px solid #F0EDE8;
}
.info-form-field label {
    position: absolute;
    top: 10px;
    left: 14px;
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: 0.3px;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}
.info-form-field input,
.info-form-field textarea {
    width: 100%;
    padding: 26px 14px 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: #1F2937;
    outline: none;
    border-radius: 14px;
    transition: background 0.2s;
}
.info-form-field input::placeholder,
.info-form-field textarea::placeholder {
    color: #C4C4C4;
}
.info-form-field input:focus,
.info-form-field textarea:focus {
    background: rgba(251,191,36,0.04);
}
.info-form-field:has(input:focus) label,
.info-form-field:has(textarea:focus) label {
    color: #D97706;
}
.info-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Character counter & hint */
.info-form-meta {
    display: flex;
    justify-content: space-between;
    padding: 0 14px 8px;
    font-size: 10px;
    color: #C4C4C4;
}
.info-form-meta .hint { color: #D97706; font-weight: 500; }

/* Submit button */
.info-form-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(245,158,11,0.25);
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}
.info-form-submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.info-form-submit-btn:not(:disabled):hover::before {
    left: 100%;
}
.info-form-submit-btn:disabled {
    opacity: 0.35;
    box-shadow: none;
    cursor: default;
}
.info-form-submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.35);
}
.info-form-submit-btn:not(:disabled):active {
    transform: translateY(0) scale(0.98);
}

/* Report variant button */
.info-form-submit-btn.type-report {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 4px 14px rgba(239,68,68,0.25);
}
.info-form-submit-btn.type-report:not(:disabled):hover {
    box-shadow: 0 6px 20px rgba(239,68,68,0.35);
}

/* Contact variant button */
.info-form-submit-btn.type-contact {
    background: linear-gradient(135deg, #92400E, #78350F);
    box-shadow: 0 4px 14px rgba(146,64,14,0.25);
}
.info-form-submit-btn.type-contact:not(:disabled):hover {
    box-shadow: 0 6px 20px rgba(146,64,14,0.35);
}

/* Hide app promo banner when any modal/overlay is open (via .banner-hidden class set by JS) */
#app-promo-banner {
    transition: opacity 0.3s ease;
}
#app-promo-banner.banner-hidden {
    opacity: 0 !important;
    pointer-events: none;
}
