/* ==========================================================================
   Frontend Custom Stylesheet
   ========================================================================== */

/* Typography & Base Reset */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #0f172a;
}

body, button, input, select, textarea, p, span, a, label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.025em;
}

.font-black {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 600;
}

section h1, .hero-title, section .text-4xl, section .text-5xl {
    text-transform: none;
}

/* Header Sticky States */
header.sticky, header[class*="sticky"] {
    background-color: #ffffff;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

header.sticky.is-scrolled, header[class*="sticky"].is-scrolled, header.header-white-scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

/* Hero Typography Depth & Shadows */
.hero-title-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-title-accent {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-shadow {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-badge-glow {
    box-shadow: 0 4px 15px rgba(246, 147, 29, 0.35);
}

/* Boutique Theme Accent Utilities */
.boutique-accent {
    color: #c5a880;
}

.boutique-bg-accent {
    background-color: #c5a880;
}

/* Modern Leaflet Popup Design */
.leaflet-popup-content-wrapper {
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 260px !important;
}

.leaflet-popup-close-button {
    top: 10px !important;
    right: 10px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 99;
    font-size: 16px !important;
}

/* Leaflet Map Popup Card */
.map-popup-card {
    font-family: 'Inter', sans-serif;
    width: 220px;
    padding: 4px;
}

.map-popup-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
}

.map-popup-tag {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f6931d;
    display: block;
    margin-bottom: 4px;
}

.map-popup-tag-red {
    color: #dc2626;
}

.map-popup-tag-blue {
    color: #2563eb;
}

.map-popup-tag-gold {
    color: #c5a880;
}

.map-popup-title {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.map-popup-link {
    text-decoration: none;
    color: #0f172a;
}

.map-popup-link:hover {
    color: #f6931d;
}

.map-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 6px;
    margin-top: 6px;
}

.map-popup-price {
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
}

.map-popup-surface {
    font-size: 9px;
    color: #64748b;
}

/* Performance and touch smooth scroll */
.gpu-layer {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.touch-scroll {
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars cross-browser */
.scrollbar-none, .no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
.scrollbar-none::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Detail Page & Print Media Rules */
.price-display {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

#leaflet-map, #map-canvas, #frontend-panorama-viewer {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

@media print {
    header, footer, form, button, #leaflet-map, #lightbox-modal { display: none !important; }
    body { background: white !important; color: black !important; }
}
