/**
 * Property Map Section - Airbnb-style Interactive Map
 * 
 * Modern, responsive styling for the homepage map section.
 * Uses BEM naming convention and CSS custom properties.
 */

/* ==========================================================================
   SECTION CONTAINER
   ========================================================================== */

.property-map-section {
    position: relative;
    width: 100%;
    padding: var(--spacing-3xl, 3rem) 0;
    background: var(--color-background, #ffffff);
    overflow: hidden;
}

.property-map-section__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg, 1.5rem);
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

.property-map-section__header {
    text-align: center;
    margin-bottom: var(--spacing-xl, 2rem);
    animation: fadeInUp 0.6s ease-out;
}

.property-map-section__title {
    font-family: var(--font-family-heading, 'Playfair Display', serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary, #1a1a1a);
    margin: 0 0 var(--spacing-sm, 0.5rem);
    line-height: 1.2;
}

.property-map-section__subtitle {
    font-family: var(--font-family-body, 'Poppins', sans-serif);
    font-size: var(--font-size-md, 1rem);
    color: var(--color-text-secondary, #666666);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   FILTER PILLS
   ========================================================================== */

.property-map-section__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm, 0.5rem);
    margin-bottom: var(--spacing-lg, 1.5rem);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.property-map-section__filter-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs, 0.25rem);
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    font-family: var(--font-family-body, 'Poppins', sans-serif);
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 500;
    color: var(--color-text-primary, #1a1a1a);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border, #dee2e6);
    border-radius: var(--radius-full, 9999px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.property-map-section__filter-pill:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent-color, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-map-section__filter-pill--active {
    background: var(--primary-color, #0c2340);
    color: #ffffff;
    border-color: var(--primary-color, #0c2340);
    box-shadow: 0 4px 12px rgba(12, 35, 64, 0.3);
}

.property-map-section__filter-pill--active:hover {
    background: var(--primary-color, #0c2340);
    border-color: var(--primary-color, #0c2340);
}

.property-map-section__filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.property-map-section__filter-icon svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   MAP WRAPPER
   ========================================================================== */

.property-map-section__map-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    border-radius: var(--radius-lg, 1rem);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.property-map-section__map {
    width: 100%;
    height: 100%;
    background: var(--gray-200, #e9ecef);
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */

.property-map-section__loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-background, #ffffff);
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.property-map-section__loading--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.property-map-section__loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200, #e9ecef);
    border-top-color: var(--accent-color, #d4af37);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.property-map-section__loading-text {
    margin-top: var(--spacing-md, 1rem);
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text-secondary, #666666);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.property-map-section__empty {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-background, #ffffff);
    z-index: 10;
    text-align: center;
    padding: var(--spacing-xl, 2rem);
}

.property-map-section__empty svg {
    color: var(--gray-400, #ced4da);
    margin-bottom: var(--spacing-md, 1rem);
}

.property-map-section__empty-title {
    font-family: var(--font-family-heading, 'Playfair Display', serif);
    font-size: var(--font-size-xl, 1.25rem);
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    margin: 0 0 var(--spacing-xs, 0.25rem);
}

.property-map-section__empty-text {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text-secondary, #666666);
    margin: 0;
}

/* ==========================================================================
   PROPERTY COUNT BADGE
   ========================================================================== */

.property-map-section__count {
    position: absolute;
    top: var(--spacing-md, 1rem);
    left: var(--spacing-md, 1rem);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs, 0.25rem);
    padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-full, 9999px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: var(--font-size-sm, 0.875rem);
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out 0.5s both;
}

.property-map-section__count-number {
    font-weight: 700;
    color: var(--primary-color, #0c2340);
}

.property-map-section__count-label {
    color: var(--color-text-secondary, #666666);
}

/* ==========================================================================
   ZOOM CONTROLS
   ========================================================================== */

.property-map-section__zoom-controls {
    position: absolute;
    bottom: var(--spacing-lg, 1.5rem);
    right: var(--spacing-md, 1rem);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 5;
    animation: fadeIn 0.3s ease-out 0.5s both;
}

.property-map-section__zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-primary, #1a1a1a);
}

.property-map-section__zoom-btn:first-child {
    border-radius: var(--radius-md, 0.5rem) var(--radius-md, 0.5rem) 0 0;
}

.property-map-section__zoom-btn:last-child {
    border-radius: 0 0 var(--radius-md, 0.5rem) var(--radius-md, 0.5rem);
}

.property-map-section__zoom-btn:hover {
    background: #ffffff;
    color: var(--accent-color, #d4af37);
}

.property-map-section__zoom-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   PROPERTY POPUP CARD - Modern Full-Image Design
   ========================================================================== */

.property-map-popup {
    width: 320px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent-color, #d4af37);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.15);
    animation: popupSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--font-family-body, 'Poppins', sans-serif);
    transform-origin: center bottom;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    /* Ensure consistent rendering across browsers */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.property-map-popup__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.property-map-popup__link:hover .property-map-popup {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 24px 70px rgba(0, 0, 0, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Full Image Container */
.property-map-popup__image-container {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 10px;
    /* Ensure image fills container properly */
    display: block;
    box-sizing: border-box;
}

.property-map-popup__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    /* Ensure consistent image rendering */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Fix iOS rendering issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.property-map-popup__link:hover .property-map-popup__image {
    transform: scale(1.08);
}

/* Gradient Overlay */
.property-map-popup__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.property-map-popup__link:hover .property-map-popup__overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.65) 65%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* Top Row - Badge & Favorite */
.property-map-popup__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    z-index: 2;
}

.property-map-popup__badge {
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color, #0c2340);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    line-height: 1.2;
}

.property-map-popup__badge--short_term {
    background: #10b981;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.property-map-popup__badge--long_term {
    background: #3b82f6;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.property-map-popup__badge--sale {
    background: var(--accent-color, #d4af37);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.property-map-popup__favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gray-600, #6c757d);
    padding: 0;
}

.property-map-popup__favorite:hover {
    background: #ffffff;
    color: #ef4444;
    transform: scale(1.1);
}

.property-map-popup__favorite:hover svg {
    fill: #ef4444;
}

/* Content Overlay (Bottom) */
.property-map-popup__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 2;
    color: #ffffff;
}

.property-map-popup__header {
    margin-bottom: 8px;
}

.property-map-popup__title {
    font-family: var(--font-family-heading, 'Playfair Display', serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.property-map-popup__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.property-map-popup__location svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* Divider */
.property-map-popup__divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.25) 20%,
        rgba(255, 255, 255, 0.25) 80%,
        transparent
    );
    margin: 8px 0;
}

/* Footer - Details & Price */
.property-map-popup__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.property-map-popup__details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.property-map-popup__detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
}

.property-map-popup__detail svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Price */
.property-map-popup__price-container {
    text-align: right;
    flex-shrink: 0;
}

.property-map-popup__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.property-map-popup__price-suffix {
    display: block;
    font-size: 0.625rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 1px;
    line-height: 1;
}

/* CTA Button (appears on hover) */
.property-map-popup__cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color, #0c2340);
    border: 1px solid rgba(12, 35, 64, 0.1);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.property-map-popup__link:hover .property-map-popup__cta {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.property-map-popup__cta svg {
    transition: transform 0.2s ease;
}

.property-map-popup__cta:hover svg {
    transform: translateX(4px);
}

/* Hide sqm detail if no value */
.property-map-popup__sqm:empty {
    display: none;
}

/* Google Maps InfoWindow overrides */
.gm-style-iw {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 12px !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.gm-style-iw-d {
    overflow: visible !important;
    max-height: none !important;
}

.gm-style-iw-c {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    border: none !important;
}

.gm-style-iw-tc {
    display: none !important;
}

.gm-ui-hover-effect {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    z-index: 100 !important;
    /* Ensure button stays within border */
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.gm-ui-hover-effect > span {
    background-color: var(--primary-color, #0c2340) !important;
    margin: 9px !important;
}

/* ==========================================================================
   PRICE MARKER STYLES (for Google Maps markers)
   ========================================================================== */

.property-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--gray-300, #dee2e6);
    border-radius: var(--radius-full, 9999px);
    font-family: var(--font-family-body, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary, #1a1a1a);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center bottom;
}

.property-map-marker:hover,
.property-map-marker--active {
    background: var(--primary-color, #0c2340);
    color: #ffffff;
    border-color: var(--primary-color, #0c2340);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(12, 35, 64, 0.3);
    z-index: 100 !important;
}

.property-map-marker--short_term:hover,
.property-map-marker--short_term.property-map-marker--active {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.property-map-marker--long_term:hover,
.property-map-marker--long_term.property-map-marker--active {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.property-map-marker--sale:hover,
.property-map-marker--sale.property-map-marker--active {
    background: var(--accent-color, #d4af37);
    border-color: var(--accent-color, #d4af37);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.85);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

[data-theme="dark"] .property-map-section {
    background: var(--color-background, #000000);
}

[data-theme="dark"] .property-map-section__title {
    color: var(--color-text-primary, #ffffff);
}

[data-theme="dark"] .property-map-section__subtitle {
    color: var(--color-text-secondary, #e0e0e0);
}

[data-theme="dark"] .property-map-section__filter-pill {
    background: rgba(30, 30, 30, 0.8);
    border-color: var(--color-border, #2a2a2a);
    color: var(--color-text-primary, #ffffff);
}

[data-theme="dark"] .property-map-section__filter-pill:hover {
    background: rgba(40, 40, 40, 0.95);
    border-color: var(--accent-color, #d4af37);
}

[data-theme="dark"] .property-map-section__filter-pill--active {
    background: var(--accent-color, #d4af37);
    color: #000000;
    border-color: var(--accent-color, #d4af37);
}

[data-theme="dark"] .property-map-section__map-wrapper {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .property-map-section__map {
    background: #1a1a1a;
}

[data-theme="dark"] .property-map-section__loading {
    background: var(--color-background, #000000);
}

[data-theme="dark"] .property-map-section__loading-spinner {
    border-color: var(--color-border, #2a2a2a);
    border-top-color: var(--accent-color, #d4af37);
}

[data-theme="dark"] .property-map-section__loading-text {
    color: var(--color-text-secondary, #e0e0e0);
}

[data-theme="dark"] .property-map-section__empty {
    background: var(--color-background, #000000);
}

[data-theme="dark"] .property-map-section__empty svg {
    color: var(--gray-600, #6c757d);
}

[data-theme="dark"] .property-map-section__empty-title {
    color: var(--color-text-primary, #ffffff);
}

[data-theme="dark"] .property-map-section__empty-text {
    color: var(--color-text-secondary, #e0e0e0);
}

[data-theme="dark"] .property-map-section__count {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .property-map-section__count-number {
    color: var(--accent-color, #d4af37);
}

[data-theme="dark"] .property-map-section__count-label {
    color: var(--color-text-secondary, #e0e0e0);
}

[data-theme="dark"] .property-map-section__zoom-btn {
    background: rgba(30, 30, 30, 0.95);
    color: var(--color-text-primary, #ffffff);
}

[data-theme="dark"] .property-map-section__zoom-btn:hover {
    background: rgba(40, 40, 40, 1);
    color: var(--accent-color, #d4af37);
}

[data-theme="dark"] .property-map-popup {
    background: #1a1a1a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .property-map-popup__title {
    color: var(--color-text-primary, #ffffff);
}

[data-theme="dark"] .property-map-popup__location {
    color: var(--color-text-secondary, #e0e0e0);
}

[data-theme="dark"] .property-map-popup__detail {
    color: var(--color-text-secondary, #e0e0e0);
}

[data-theme="dark"] .property-map-popup__price {
    color: var(--accent-color, #d4af37);
}

[data-theme="dark"] .property-map-marker {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 991.98px) {
    .property-map-section {
        padding: var(--spacing-2xl, 2.5rem) 0;
    }
    
    .property-map-section__map-wrapper {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 767.98px) {
    .property-map-section {
        padding: var(--spacing-xl, 2rem) 0;
    }
    
    .property-map-section__container {
        padding: 0 var(--spacing-md, 1rem);
    }
    
    .property-map-section__filters {
        gap: 6px;
    }
    
    .property-map-section__filter-pill {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .property-map-section__filter-icon {
        display: none;
    }
    
    .property-map-section__map-wrapper {
        height: 55vh;
        min-height: 350px;
        border-radius: var(--radius-md, 0.5rem);
    }
    
    .property-map-popup {
        width: 280px;
    }
    
    .property-map-popup__image-container {
        height: 220px;
    }
    
    .property-map-popup__content {
        padding: 10px;
    }
    
    .property-map-popup__title {
        font-size: 1rem;
    }
    
    .property-map-popup__details {
        gap: 8px;
    }
    
    .property-map-popup__detail {
        font-size: 0.75rem;
    }
    
    .property-map-popup__price {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .property-map-section__map-wrapper {
        height: 50vh;
        min-height: 300px;
    }
    
    .property-map-section__count {
        top: var(--spacing-sm, 0.5rem);
        left: var(--spacing-sm, 0.5rem);
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .property-map-section__zoom-controls {
        bottom: var(--spacing-md, 1rem);
        right: var(--spacing-sm, 0.5rem);
    }
    
    .property-map-section__zoom-btn {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .property-map-section__header,
    .property-map-section__filters,
    .property-map-section__map-wrapper,
    .property-map-section__count,
    .property-map-section__zoom-controls {
        animation: none;
    }
    
    .property-map-section__filter-pill,
    .property-map-marker,
    .property-map-popup__image,
    .property-map-section__zoom-btn {
        transition: none;
    }
    
    .property-map-section__loading-spinner {
        animation: none;
        border-top-color: var(--accent-color, #d4af37);
    }
    
    .property-map-popup {
        animation: none;
    }
}
