/**
 * Property247Grok - Mobile-First Custom Styles
 * Varanasi Real Estate Portal
 */

/* =====================================================
   VARIABLES & GENERAL
   ===================================================== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --premium-gold: #ffd700;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   MOBILE-FIRST: BASE STYLES
   ===================================================== */

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    z-index: 1030;
}

.navbar.sticky-top {
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* =====================================================
   MODERN HERO SECTION
   ===================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    /* Clip internal decorative layers so they don't overlap following sections */
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    z-index: 0;
}

.hero-section.modern-hero {
    background-size: cover;
    background-position: center;
    /* Use normal scrolling background to avoid fixed overlay effects */
    background-attachment: scroll;
}

/* Ensure subsequent sections stack above hero and are opaque */
section:not(.hero-section) {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
}

/* Hero Heights */
.hero-full-height {
    min-height: 100vh;
    padding: 0;
}

.hero-medium-height {
    min-height: 70vh;
}

.hero-small-height {
    min-height: 500px;
}

/* Video Background */
.hero-with-video {
    background: transparent;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
}

/* Animated Background Pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes patternMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

/* Floating Elements */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s ease-in-out infinite;
}

.floating-element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content-row {
    min-height: inherit;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content-centered {
    text-align: center;
}

/* Hero Title */
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.hero-title.typing-text {
    min-height: 3rem;
}

.typing-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content-centered .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.hero-content-centered .hero-buttons {
    justify-content: center;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f8f9fa;
    color: #667eea;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Hero Search Box */
.hero-search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-search-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.search-box-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.hero-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-field-group {
    position: relative;
}

.search-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.search-label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.search-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.btn-hero-search {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    margin-top: 10px;
}

.btn-hero-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0b5ed7 0%, var(--primary-color) 100%);
}

/* Hero Statistics */
.hero-stats {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(5px);
}

.scroll-down i {
    margin-top: 10px;
    font-size: 1.5rem;
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Hero Animations */
.hero-fade-in {
    animation: fadeIn 1s ease-in;
}

.hero-slide-up {
    animation: slideUp 1s ease-out;
}

.hero-zoom-in {
    animation: zoomIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Legacy Support */
.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-section .btn {
    font-size: 1rem;
    padding: 12px 24px;
    white-space: nowrap;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.search-box h5 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.search-box .form-select,
.search-box .form-control {
    font-size: 0.9rem;
    padding: 10px 12px;
}

.search-box .btn {
    font-size: 0.9rem;
    padding: 10px;
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.property-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-card-img img {
    transform: scale(1.1);
}

/* Premium Badge */
.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--premium-gold) 0%, #ffed4e 100%);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

.premium-badge i {
    margin-right: 3px;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

/* Property Type Badge */
.property-type-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: var(--danger-color);
    color: white;
}

.favorite-btn.active {
    background: var(--danger-color);
    color: white;
}

/* Property Card Body */
.property-card-body {
    padding: 20px;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.property-location i {
    color: var(--danger-color);
}

.property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.property-feature {
    font-size: 0.875rem;
    color: #555;
}

.property-feature i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Premium Property Card Styling */
.property-card.premium-property {
    border: 2px solid var(--premium-gold);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

/* Agent Cards */
.agent-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.agent-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 30px auto 20px;
    border: 5px solid var(--light-bg);
    object-fit: cover;
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.map-fullscreen {
    height: 600px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Contact Buttons (Mobile Sticky) */
.contact-buttons-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.1);
    z-index: 998;
    display: flex;
    gap: 10px;
}

/* Filter Sidebar (Mobile Collapsible) */
.filter-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

/* Sections */
section {
    position: relative;
    z-index: 1;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    position: relative;
    z-index: 10;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 16px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* =====================================================
   RESPONSIVE: TABLET (768px and up)
   ===================================================== */
@media (min-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: 600px;
    }
    
    .hero-full-height {
        min-height: 100vh;
    }
    
    .hero-medium-height {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.35rem;
    }
    
    .hero-section .btn {
        font-size: 1.1rem;
        padding: 14px 28px;
    }
    
    .hero-search-box {
        padding: 35px;
    }
    
    .search-box {
        padding: 20px;
        margin-top: 0;
    }
    
    .search-box h5 {
        font-size: 1.1rem;
    }
    
    .stat-value {
        font-size: 3.5rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .property-card-img {
        height: 250px;
    }
    
    .contact-buttons-sticky {
        display: none;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-content-centered .hero-buttons {
        justify-content: center;
    }
}

/* =====================================================
   RESPONSIVE: DESKTOP (992px and up)
   ===================================================== */
@media (min-width: 992px) {
    .hero-section {
        padding: 100px 0;
        min-height: 700px;
    }
    
    .hero-full-height {
        min-height: 100vh;
    }
    
    .hero-medium-height {
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section .lead {
        font-size: 1.5rem;
    }
    
    .hero-section .btn {
        font-size: 1.15rem;
        padding: 16px 32px;
    }
    
    .hero-search-box {
        padding: 40px;
    }
    
    .search-box {
        padding: 25px;
    }
    
    .stat-value {
        font-size: 4rem;
    }
    
    .map-container {
        height: 500px;
    }
    
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-search-fullwidth,
    .hero-search-centered {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =====================================================
   MOBILE SPECIFIC IMPROVEMENTS
   ===================================================== */
@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0;
        min-height: 500px;
        overflow: visible;
    }
    
    .hero-full-height {
        min-height: 100vh;
    }
    
    .hero-medium-height {
        min-height: 70vh;
    }
    
    .hero-small-height {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-section .btn,
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        font-size: 1rem;
        padding: 12px 24px;
    }
    
    .hero-search-box {
        padding: 20px;
        margin-top: 30px;
    }
    
    .search-box-title {
        font-size: 1.1rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-down {
        font-size: 0.75rem;
    }
    
    .property-card-img {
        height: 200px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .property-price {
        font-size: 1.25rem;
    }
    
    .agent-photo {
        width: 120px;
        height: 120px;
    }
    
    .blog-card-img {
        height: 180px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .floating-element {
        opacity: 0.3;
    }
    
    .hero-pattern {
        opacity: 0.5;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-premium {
    color: var(--premium-gold);
}

.bg-premium {
    background-color: var(--premium-gold);
}

.shadow-premium {
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3) !important;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Leaflet Map Custom Styles */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.leaflet-popup-content {
    margin: 15px;
}

/* Premium Map Marker */
.premium-marker {
    filter: hue-rotate(45deg) brightness(1.2);
}

/* Compare Properties Table */
.compare-table {
    overflow-x: auto;
}

.compare-table table {
    min-width: 600px;
}

/* Profile Page */
.profile-card {
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

/* Admin Panel Specific */
.admin-sidebar {
    background: var(--dark-bg);
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Page Builder */
.builder-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.builder-block {
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: move;
    transition: all 0.3s ease;
}

.builder-block:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

/* Sticky Sidebar (Property View Page) */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 76px; /* Account for navbar height (~56px) + spacing (20px) */
}

/* Adjust for mobile - disable sticky on small screens */
@media (max-width: 991px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .whatsapp-float, .contact-buttons-sticky {
        display: none !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}
