/* Universal Programmatic City Guide - Shared Layout & Presentation Styles */

/* Base Smooth Scrolling & Document Preferences */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 144px; /* 80px top bar + 64px nav bar */
}

/* Custom Scrollbar Styles */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f8fafc;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dark Mode Scrollbar Overrides */
.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #090d16;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1e293b;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Leaflet Container Overrides */
.leaflet-container {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc !important;
}
.dark .leaflet-container {
    background-color: #090d16 !important;
}

/* Custom Map Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #0f172a;
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.dark .leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: #f8fafc;
    border: 1px solid rgba(51, 65, 85, 0.8);
}
.leaflet-popup-content {
    margin: 10px 14px;
    font-size: 0.875rem;
    line-height: 1.4;
}
.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
}
.dark .leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95);
}

/* Space body content correctly below the fixed 80px Top bar */
body {
    padding-top: 80px; 
}

/* Custom transitions for Theme Switch & Interaction */
* {
    transition-property: background-color, border-color, text-decoration-color, fill, stroke, transform, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 250ms;
}

/* Budget breakdown bar animation speed */
.budget-bar-segment {
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Visual Utility Classes (Wow Factor) */
.glass-nav {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}
.dark .glass-nav {
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.premium-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.dark .premium-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(30, 41, 59, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}
.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: #cbd5e1;
}
.dark .premium-card:hover {
    border-color: #475569;
    box-shadow: 0 25px 30px -10px rgba(0, 0, 0, 0.4), 0 10px 15px -5px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism Cards */
.premium-glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.dark .premium-glass-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}
.premium-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 255, 255, 1);
}
.dark .premium-glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.5);
}

/* Super crisp images with zoom effect */
.zoom-container {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}
.zoom-img {
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.zoom-container:hover .zoom-img {
    transform: scale(1.06);
}

/* Gradient accents and overlays */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #1d4ed8 0%, #a21caf 100%);
}
.dark .text-gradient {
    background-image: linear-gradient(135deg, #60a5fa 0%, #f472b6 100%);
}

.gradient-rose-gold {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #e11d48 0%, #f59e0b 100%);
}

/* Floating Share Widget */
@media (min-width: 1024px) {
    .floating-share-sidebar {
        position: fixed;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 40;
    }
}

/* Custom interactive hover state for tags */
.tag-interactive {
    transition: all 200ms ease;
}
.tag-interactive:hover {
    background-color: rgba(225, 29, 72, 0.12);
    color: #e11d48;
    border-color: rgba(225, 29, 72, 0.3);
}
.dark .tag-interactive:hover {
    background-color: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.4);
}

/* Premium native CSS text-shadows for ultra-crisp text on bright images */
.text-shadow-sm {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.6);
}
.text-shadow-md {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7), 0 4px 15px rgba(0, 0, 0, 0.5);
}
.text-shadow-lg {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.75), 0 8px 30px rgba(0, 0, 0, 0.6);
}

