/* CSS Variables for consistent styling */
:root {
    /* Ultrathink Premium Palette - Refined */
    --color-primary: #0A3D4A; /* Deep Teal - Richer & Darker */
    --color-secondary: #5F9EA0; /* Cadet Blue */
    --color-accent: #E29578; /* Warm Sand */
    --color-surface: #F0F4F8; /* Cooler White */

    --gradient-ocean: linear-gradient(135deg, #0A3D4A 0%, #2C8C92 100%);
    --gradient-sunset: linear-gradient(135deg, #E29578 0%, #FFCDB2 100%);
    --gradient-glass: linear-gradient(125deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));

    --glass-bg: rgba(255, 255, 255, 0.75); /* More opaque for better contrast */
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.1);
    --glass-blur: blur(25px);

    --text-primary: #152026; /* Darker for better readibility */
    --text-secondary: #4A5D66;
    --text-light: #8CA3AD;

    --border-radius-sm: 12px;
    --border-radius: 24px;
    --border-radius-lg: 40px;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Body styling with background gradient and font */
body {
    font-family: var(--font-body);
    background: var(--color-surface);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.7; /* Increased line height */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    line-height: 1.1; /* Tighter headings */
}

/* Noise Overlay for Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998; /* Just below loading screen */
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Subtle Background Gradient Mesh */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, rgba(0, 109, 119, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(131, 197, 190, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(226, 149, 120, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 109, 119, 0.05) 0px, transparent 50%);
    filter: blur(40px);
    opacity: 0.8;
}

/* Loading Screen styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-animation {
    text-align: center;
    color: var(--color-primary);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 109, 119, 0.1);
    border-left-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-subtext {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Desktop Layout (Default) --- */

/* Sidebar Container (replaces .header) */
.sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 380px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border-right: 1px solid var(--glass-border);
    padding: 3rem; /* More breathing room */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 20px 0 50px rgba(0,0,0,0.08); /* Stronger shadow */
    transform: translateX(0);
    transition: transform 0.3s ease;
}

/* Hide scrollbar for cleaner look */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.05);
    border-radius: 2px;
}

/* Sidebar Header (Title & Stats) */
.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header h1 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sidebar-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.header-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* Info Panel / Legend (Sibling of Header inside Sidebar) */
.info-panel {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border: none;
    margin-top: auto; /* Push to bottom of sidebar */
    position: relative;
}

.info-panel h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hide description in sidebar as it duplicates header p */
.info-panel p {
    display: none;
}

.legend {
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    background: white;
    border: 1px solid transparent;
}

.legend-item:hover, .legend-item.active {
    background: white;
    border-color: var(--color-secondary);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.legend-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.legend-icon.popular { background: #f093fb; }
.legend-icon.serene { background: #4facfe; }
.legend-icon.adventure { background: #fa709a; }

.legend-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Interactive Beach List in Sidebar */
.beach-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.beach-list-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.beach-list-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.beach-list-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.beach-list-item .item-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 1rem;
    background: var(--text-light);
}

.beach-list-item.popular .item-icon { background: #f093fb; }
.beach-list-item.serene .item-icon { background: #4facfe; }
.beach-list-item.adventure .item-icon { background: #fa709a; }

.item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.item-type {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: capitalize;
    opacity: 0.7;
}

/* Map Container styling - Full Screen */
.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1; /* Behind header */
    padding-left: 380px; /* Offset for sidebar */
}

#map {
    height: 100%;
    width: 100%;
}

/* --- Popup Styling (Desktop) --- */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6); /* Match border */
}

.beach-popup {
    font-family: var(--font-body);
    min-width: 280px;
}

.popup-header {
    background: var(--gradient-ocean);
    color: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0; /* Rounded top corners */
}

.popup-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0;
}

.popup-content {
    padding: 1.5rem;
}

.popup-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.beach-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: var(--color-surface);
    color: var(--color-primary);
    border-radius: 20px;
    font-weight: 600;
}

.beach-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

.action-btn {
    background: rgba(0, 109, 119, 0.1);
    color: var(--color-primary);
    border: 1px solid transparent;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.action-btn:hover {
    background: rgba(0, 109, 119, 0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

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

/* --- Markers --- */
.custom-marker {
    /* Reset default transform logic to handle inside pin */
    transition: z-index 0s;
}

.pin-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pin {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: 1;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

@keyframes popupSlideIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-marker:hover .pin,
.custom-marker.hover-highlight .pin {
    transform: rotate(-45deg) scale(1.2) translateY(-5px) !important;
    z-index: 1000 !important;
}

.custom-marker.hover-highlight {
    z-index: 1000 !important;
}

/* Accessibility: Visually hidden text for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus states for keyboard navigation */
.feature-tag:focus,
.legend-item:focus,
.beach-card:focus {
    outline: 2px solid var(--primary-gradient);
    outline-offset: 2px;
}

/* Animation delays for staggered loading */
.map-container { animation-delay: 0.9s; }
.info-panel { animation-delay: 1.2s; }

/* --- New Features & Mobile Layout --- */
/* --- Mobile Layout Hyper-Optimization --- */
@media (max-width: 768px) {

    /* Sidebar Wrapper becomes invisible pass-through */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        pointer-events: none; /* Let map clicks through */
        padding: 0;
        display: block; /* Ensure it renders */
    }

    /* Header becomes a floating pill */
    .sidebar-header {
        pointer-events: auto; /* Re-enable clicks */
        width: auto;
        min-width: 260px;
        max-width: 90%;
        height: auto;
        position: absolute;
        top: 24px; /* Slightly lower for better safe area clearance */
        left: 50%;
        transform: translateX(-50%); /* Center perfectly */
        right: auto;

        /* Glass Pill Style - Ultrathink Polish */
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-radius: 100px; /* Fully rounded */
        padding: 0.7rem 1.4rem;
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12); /* Smoother shadow */

        /* Layout */
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 0;
        z-index: 2000; /* Ensure above everything */
    }

    .sidebar-header h1 {
        font-size: 1.1rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-header p, .header-stats {
        display: none; /* Hide extra details on mobile initial view */
    }

    #beach-list-container {
        display: none; /* Hide beach list on mobile */
    }

    .map-container {
        padding-left: 0;
    }

    /* Move Info Panel/Legend to Bottom Sheet */
    .info-panel {
        pointer-events: auto; /* Re-enable clicks */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 85vh; /* Slightly taller */
        margin-top: 0;

        /* Bottom Sheet Style */
        background: rgba(255, 255, 255, 0.85); /* Slightly more transparent */
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border-radius: 32px 32px 0 0; /* More rounded */
        border-top: 1px solid rgba(255, 255, 255, 0.5); /* Highlight top edge */
        padding: 1.8rem;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.1); /* Softer, spread out shadow */
        z-index: 1001;

        /* Interactions */
        overflow-y: auto;
        transform: translateY(calc(100% - 90px)); /* Peek mode */
        transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1); /* Apple-esque Spring */
    }

    .sheet-handle {
        width: 32px;
        height: 4px;
        background: #E2E8F0;
        border-radius: 2px;
        margin: 0 auto 12px auto;
    }

    .info-panel.has-selection h3,
    .info-panel.has-selection .generic-intro {
        display: none;
    }

    /* Bottom Sheet Handle */
    .info-panel::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: #CBD5E0;
        border-radius: 3px;
    }

    .info-panel.expanded {
        transform: translateY(0);
    }

    .info-panel h3 {
        margin-top: 0.5rem;
    }

    .info-panel p {
        display: block; /* Show text in bottom sheet */
        margin-bottom: 1rem;
    }

    /* Adjust legend items for horizontal scroll on mobile */
    .legend {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
        gap: 1rem;
    }

    .legend-item {
        flex-shrink: 0;
        margin-bottom: 0;
        width: auto;
    }
}


/* Photo Gallery Modal */
.photo-gallery-modal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}


.photo-gallery-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: var(--border-radius-lg);
    position: relative;
}


.close-gallery {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}


.close-gallery:hover,
.close-gallery:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.gallery-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}


.gallery-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}


.gallery-figure {
    margin: 0;
    break-inside: avoid;
    background: #fff;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}


.gallery-caption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 0 0.5rem;
}


/* Add Memory Modal */
.memory-modal {
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}


.memory-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    position: relative;
}


.close-memory-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}


.close-memory-modal:hover,
.close-memory-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


#add-memory-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


#add-memory-form input[type="file"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
}


#add-memory-form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    resize: vertical;
}


#add-memory-form button {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}


#add-memory-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}


.geolocation-error {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    /* Glassmorphism Redefinition */
    background: rgba(226, 149, 120, 0.85); /* Slightly transparent */
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 100px; /* Full capsule */
    z-index: 3000;
    box-shadow:
        0 10px 40px rgba(226, 149, 120, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    text-align: center;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    white-space: nowrap;
    animation: slideDownSpring 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* Add an icon before the text via CSS for pure polish */
.geolocation-error::before {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}


@media (max-width: 768px) {
    .geolocation-error {
        top: 100px;
        width: auto;
        max-width: 90%;
        white-space: normal;
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }
}


/* Search Bar */
.search-container {
    margin-bottom: 1.5rem;
    position: relative;
}


.search-bar {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}


.search-bar:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--color-primary);
}


.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
}


/* Itinerary Section */
.itinerary-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}


.itinerary-empty {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.3);
    border-radius: var(--border-radius-sm);
}


/* Weather Widget */
.weather-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    margin-top: 0.5rem;
    width: fit-content;
}


/* Hero Image in Popup */
.popup-hero-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}


/* Popup Sections */
.popup-section {
    margin-top: 1rem;
}


.popup-section h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-family: var(--font-body);
}


.popup-section p, .popup-section ul {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}


.popup-section ul {
    list-style-type: none;
    padding: 0;
}


.popup-section li {
    margin-bottom: 0.2rem;
    padding-left: 1rem;
    position: relative;
}


.popup-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}
