/* ============================================
   HAVENLYTICS MAP STYLES - PRODUCTION READY
   Version: 2.2.1
   Uses CSS Variables from :root
   ============================================ */

/* ============================================
   1. BASE MAP CONTAINER STYLES
   ============================================ */
.hvnly-map-view {
    width: 100%;
    height: 550px;
    position: relative;
    background: var(--hvnly-color-gray-100, #f8f9fa);
}

.hvnly-map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#hvnly-properties-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Ensure map container has proper dimensions */
.hvnly-map-view .hvnly-properties-map,
#hvnly-properties-map {
    height: 550px !important;
    min-height: 550px !important;
    width: 100% !important;
    display: block !important;
}

.hvnly-map-view .hvnly-map-container {
    position: relative;
    height: 550px !important;
    min-height: 550px !important;
    width: 100%;
}

/* ============================================
   2. RESPONSIVE MAP HEIGHT
   ============================================ */
@media (max-width: 1024px) {
    .hvnly-map-view,
    .hvnly-map-view .hvnly-properties-map,
    #hvnly-properties-map {
        height: 500px !important;
        min-height: 500px !important;
    }
}

@media (max-width: 768px) {
    .hvnly-map-view,
    .hvnly-map-view .hvnly-properties-map,
    #hvnly-properties-map {
        height: 400px !important;
        min-height: 400px !important;
    }
}

@media (max-width: 480px) {
    .hvnly-map-view,
    .hvnly-map-view .hvnly-properties-map,
    #hvnly-properties-map {
        height: 350px !important;
        min-height: 350px !important;
    }
}

/* ============================================
   3. LEAFLET OVERRIDES
   ============================================ */
.hvnly-map-view .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.hvnly-map-view .leaflet-pane {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.hvnly-map-view .leaflet-control-container {
    position: absolute !important;
    z-index: 1000 !important;
}

.leaflet-container {
    height: 100%;
    width: 100%;
    min-height: 550px;
}

/* ============================================
   4. CUSTOM MARKER STYLES (Leaflet & Google)
   ============================================ */
.custom-leaflet-marker,
.custom-google-marker {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

.custom-marker-pin {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin {
    position: absolute;
    width: 36px;
    height: 36px;
    background: var(--hvnly-brand-primary, #6C60FE);
    border-radius: 50% 50% 50% 0;
    border: 3px solid var(--hvnly-color-white, #ffffff);
    box-shadow: var(--hvnly-shadow-card, 0 4px 12px rgba(0, 0, 0, 0.15));
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--hvnly-transition-time, 0.3s ease);
    cursor: pointer;
}

/* Home/House Icon inside marker */
.marker-pin::before {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--hvnly-color-white, #ffffff);
    font-size: 16px;
    transform: rotate(45deg);
    z-index: 2;
    position: relative;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.1);
    background: var(--hvnly-button-bg-hover, #5944f0);
    box-shadow: 0 6px 16px rgba(108, 96, 254, 0.3);
}

.marker-pin:hover::before {
    transform: rotate(45deg) scale(1.05);
}

.marker-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(4px);
}

/* ============================================
   5. GOOGLE MAPS SPECIFIC MARKER FIXES
   ============================================ */
/* Fix for Google Maps container overflow */
.gm-style .custom-google-marker {
    overflow: visible !important;
    min-width: 50px;
    min-height: 60px;
}

.gm-style .custom-google-marker .custom-marker-pin {
    transform: translateY(-10px);
    overflow: visible !important;
}

.gm-style .custom-google-marker .marker-pin {
    position: relative;
    width: 36px;
    height: 36px;
    background: var(--hvnly-brand-primary, #6C60FE);
    border-radius: 50% 50% 50% 0;
    border: 3px solid var(--hvnly-color-white, #ffffff);
    box-shadow: var(--hvnly-shadow-card, 0 4px 12px rgba(0, 0, 0, 0.15));
    transform: rotate(-45deg);
    transition: all var(--hvnly-transition-time, 0.3s ease);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.gm-style .custom-google-marker .marker-pin::before {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--hvnly-color-white, #ffffff);
    font-size: 16px;
    transform: rotate(45deg);
    z-index: 2;
    position: relative;
}

.gm-style .custom-google-marker .marker-shadow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(4px);
}

/* ============================================
   6. MARKER CLUSTER STYLES
   ============================================ */
.hvnly-map-view .marker-cluster {
    background: var(--hvnly-brand-primary, #6C60FE) !important;
    border: 3px solid var(--hvnly-color-white, #ffffff) !important;
    border-radius: 50% !important;
    color: var(--hvnly-color-white, #ffffff) !important;
    font-weight: var(--hvnly-font-weight-bold, 700) !important;
    text-align: center !important;
    position: relative !important;
    animation: pulse 2s infinite !important;
}

.hvnly-map-view .marker-cluster div {
    background: var(--hvnly-brand-primary, #6C60FE) !important;
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hvnly-map-view .marker-cluster span {
    position: relative !important;
    z-index: 2 !important;
}

.hvnly-map-view .marker-cluster-small {
    background-color: rgba(108, 96, 254, 0.8) !important;
}

.hvnly-map-view .marker-cluster-medium {
    background-color: rgba(108, 96, 254, 0.9) !important;
}

.hvnly-map-view .marker-cluster-large {
    background-color: var(--hvnly-brand-primary, #6C60FE) !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 96, 254, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 96, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 96, 254, 0);
    }
}

/* ============================================
   7. POPUP STYLES (Consistent for Google & Leaflet)
   ============================================ */

/* ----- Leaflet Popup Container ----- */
.hvnly-property-popup .leaflet-popup-content-wrapper {
    background: var(--hvnly-color-white, #ffffff) !important;
    border-radius: var(--hvnly-border-radius-lg, 12px) !important;
    box-shadow: var(--hvnly-shadow-card, 0 8px 24px rgba(0, 0, 0, 0.15)) !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: none !important;
}

.hvnly-property-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 300px !important;
    line-height: 1.5 !important;
}

.hvnly-property-popup .leaflet-popup-tip {
    background: var(--hvnly-color-white, #ffffff) !important;
    box-shadow: var(--hvnly-shadow-card, 0 8px 24px rgba(0, 0, 0, 0.15)) !important;
}

.hvnly-property-popup .leaflet-popup-close-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    color: var(--hvnly-color-white, #ffffff) !important;
    font-size: 18px !important;
    line-height: 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all var(--hvnly-transition-time, 0.2s ease) !important;
}

.hvnly-property-popup .leaflet-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* ----- Google Maps Popup Container ----- */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: var(--hvnly-border-radius-lg, 12px) !important;
    box-shadow: var(--hvnly-shadow-card, 0 8px 24px rgba(0, 0, 0, 0.15)) !important;
    max-width: 300px !important;
    overflow: hidden !important;    height: auto !important;
    max-height: initial !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: 460px !important;
}

.gm-style .gm-ui-hover-effect {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    background: var(--hvnly-color-white, #ffffff) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
}

.gm-style .gm-ui-hover-effect span {
    margin: 0 !important;
    padding: 0px !important;
    width: 18px !important;
    height: 18px !important;
    margin-left: 5px !important;
}

.gm-style .gm-ui-hover-effect:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

.gm-ui-hover-effect > span {
    background-color: var(--hvnly-brand-error, #f90000) !important;
}

.gm-style .gm-style-iw {
    font-weight: inherit !important;
    font-size: unset !important;
}

/* ----- Popup Content Styles (Shared) ----- */
.hvnly-property-popup-content {
    padding: 0 !important;
    background: var(--hvnly-color-white, #ffffff) !important;
    border-radius: var(--hvnly-border-radius-lg, 12px) !important;
    overflow: hidden !important;
}

.hvnly-property-popup-content .hvnly-popup-details {
    text-align: left;
}

.hvnly-popup-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    background: var(--hvnly-color-gray-100, #f8f9fa);
}

.hvnly-popup-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform var(--hvnly-transition-time, 0.3s ease);
}

.hvnly-popup-image:hover img {
    transform: scale(var(--hvnly-image-hover-scale, 1.05));
}

.hvnly-popup-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hvnly-brand-primary, #6C60FE), var(--hvnly-brand-secondary, #764ba2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hvnly-color-white, #ffffff);
    font-size: 2rem;
}

.hvnly-popup-details {
    padding: 16px;
}

.hvnly-popup-title {
    font-size: var(--hvnly-font-size-md, 1.1rem) !important;
    font-weight: var(--hvnly-font-weight-bold, 700) !important;
    color: var(--hvnly-text-primary, #1E1E2F) !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hvnly-popup-price {
    font-size: var(--hvnly-font-size-price, 1.2rem) !important;
    font-weight: var(--hvnly-font-weight-bold, 700) !important;
    color: var(--hvnly-price-color, #6C60FE) !important;
    margin: 0 0 8px 0 !important;
}

.hvnly-popup-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--hvnly-font-size-meta, 0.875rem) !important;
    color: var(--hvnly-text-secondary, #555555) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.4;
}

.hvnly-popup-address i {
    color: var(--hvnly-brand-primary, #6C60FE);
    margin-top: 2px;
    flex-shrink: 0;
}

.hvnly-popup-address span {
    word-break: break-word;
}

.hvnly-popup-features {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px 0 !important;
    flex-wrap: wrap;
}

.hvnly-popup-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--hvnly-font-size-meta, 0.875rem);
    color: var(--hvnly-text-secondary, #555555);
}

.hvnly-popup-feature i {
    color: var(--hvnly-brand-primary, #6C60FE);
    font-size: 0.9rem;
}

.hvnly-popup-actions {
    margin-top: 12px !important;
}

.hvnly-popup-view-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: var(--hvnly-button-padding, 10px 16px) !important;
    background: var(--hvnly-button-bg, #6C60FE) !important;
    color: var(--hvnly-button-color, #ffffff) !important;
    text-decoration: none !important;
    border-radius: var(--hvnly-button-radius, 8px) !important;
    font-size: var(--hvnly-font-size-label, 0.9rem) !important;
    font-weight: var(--hvnly-font-weight-medium, 500);
    transition: all var(--hvnly-transition-time, 0.3s ease) !important;
    border: none;
    cursor: pointer;
}

.hvnly-popup-view-btn:hover {
    background: var(--hvnly-button-bg-hover, #5944f0) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 96, 254, 0.3);
}

/* ----- Google Maps Popup Scrollbar ----- */
.gm-style-iw-d::-webkit-scrollbar {
    width: 4px;
}

.gm-style-iw-d::-webkit-scrollbar-track {
    background: var(--hvnly-color-gray-200, #f1f1f1);
}

.gm-style-iw-d::-webkit-scrollbar-thumb {
    background: var(--hvnly-color-gray-500, #888);
    border-radius: 4px;
}

.gm-style-iw-d::-webkit-scrollbar-thumb:hover {
    background: var(--hvnly-color-gray-800, #555);
}

.gm-style-iw-chr {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    overflow: visible;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 1 !important;
}

.gm-style .gm-style-iw-tc {
    display: none;
}

/* ============================================
   8. MAP CONTROLS STYLES
   ============================================ */
.hvnly-map-fullscreen-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    background: var(--hvnly-color-white, #ffffff) !important;
    border: 1px solid var(--hvnly-border-color, #e0e0e0) !important;
    border-radius: var(--hvnly-border-radius-md, 8px) !important;
    width: 40px !important;
    height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--hvnly-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all var(--hvnly-transition-time, 0.3s ease);
}

.hvnly-map-fullscreen-btn:hover {
    background: var(--hvnly-brand-primary, #6C60FE) !important;
    border-color: var(--hvnly-brand-primary, #6C60FE) !important;
}

.hvnly-map-fullscreen-btn:hover i {
    color: var(--hvnly-color-white, #ffffff) !important;
}

.hvnly-map-fullscreen-btn i {
    font-size: 18px !important;
    color: var(--hvnly-text-primary, #333333);
    transition: color var(--hvnly-transition-time, 0.3s ease);
}

/* Leaflet Zoom Control Positioning */
.leaflet-control-zoom {
    margin-top: 10px !important;
    margin-right: 10px !important;
}

.leaflet-control-custom {
    background: var(--hvnly-color-white, #ffffff) !important;
    border-radius: var(--hvnly-border-radius-md, 8px) !important;
    border: 1px solid var(--hvnly-border-color, #e0e0e0) !important;
    margin-top: 10px !important;
    margin-right: 10px !important;
}

.custom-fullscreen-button {
    display: block !important;
    background-color: var(--hvnly-color-white, #ffffff) !important;
    border: none !important;
    border-radius: var(--hvnly-border-radius-md, 8px) !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    color: var(--hvnly-text-primary, #333333) !important;
    text-decoration: none !important;
}

.custom-fullscreen-button:hover {
    background-color: var(--hvnly-brand-primary, #6C60FE) !important;
    color: var(--hvnly-color-white, #ffffff) !important;
}

/* ============================================
   9. LOADING & ERROR STATES
   ============================================ */

/* ----- Professional Loading Animation ----- */
.hvnly-map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.hvnly-map-loader {
    text-align: center;
    padding: 32px 48px;
    background: var(--hvnly-color-white, #ffffff);
    border-radius: var(--hvnly-border-radius-lg, 16px);
    box-shadow: var(--hvnly-shadow-card, 0 20px 40px rgba(0, 0, 0, 0.1));
    min-width: 320px;
    position: relative;
    overflow: hidden;
}

.hvnly-map-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--hvnly-brand-primary, #6C60FE) 0%, 
        var(--hvnly-brand-secondary, #764ba2) 50%, 
        var(--hvnly-brand-primary, #6C60FE) 100%);
    animation: loaderGradient 2s ease infinite;
    background-size: 200% 100%;
}

@keyframes loaderGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Animation Container */
.hvnly-map-loader-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulse Ring Background */
.hvnly-map-loader-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(108, 96, 254, 0.1);
    border-radius: 50%;
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    80%, 100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Map Pin Icon with Bounce */
.hvnly-map-loader-pin {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--hvnly-brand-primary, #6C60FE), var(--hvnly-brand-secondary, #764ba2));
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pinBounce 1s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(108, 96, 254, 0.3);
}

.hvnly-map-loader-pin i {
    font-size: 30px;
    color: var(--hvnly-color-white, #ffffff);
    transform: rotate(45deg);
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes pinBounce {
    0%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-8px);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: rotate(45deg) scale(1);
    }
    50% {
        transform: rotate(45deg) scale(1.1);
    }
}

/* Ripple Effects */
.hvnly-map-loader-ripple {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--hvnly-brand-primary, #6C60FE);
    border-radius: 50%;
    opacity: 0;
    animation: rippleExpand 2s ease-out infinite;
}

.ripple-delay-1 {
    animation-delay: 0.5s;
}

.ripple-delay-2 {
    animation-delay: 1s;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Loading Text */
.hvnly-map-loader-text {
    margin-bottom: 20px;
}

.hvnly-map-loader-title {
    display: block;
    font-size: 18px;
    font-weight: var(--hvnly-font-weight-semibold, 600);
    color: var(--hvnly-text-primary, #1E1E2F);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.hvnly-map-loader-subtitle {
    display: block;
    font-size: 13px;
    color: var(--hvnly-text-secondary, #666);
    letter-spacing: -0.2px;
}

/* Animated Ellipsis */
.hvnly-map-loader-subtitle::after {
    content: '';
    display: inline-block;
    width: 20px;
    text-align: left;
    animation: ellipsis 1.5s steps(4, end) infinite;
}

@keyframes ellipsis {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Progress Bar */
.hvnly-map-loader-progress {
    width: 100%;
    height: 3px;
    background: var(--hvnly-color-gray-200, #e0e0e0);
    border-radius: 3px;
    overflow: hidden;
}

.hvnly-map-loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--hvnly-brand-primary, #6C60FE), var(--hvnly-brand-secondary, #764ba2));
    border-radius: 3px;
    animation: progressBar 2s ease-in-out infinite;
}

@keyframes progressBar {
    0% {
        width: 0%;
        opacity: 0.5;
    }
    50% {
        width: 70%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0.5;
    }
}

/* Responsive Loading Adjustments */
@media (max-width: 768px) {
    .hvnly-map-loader {
        padding: 24px 32px;
        min-width: 280px;
    }
    
    .hvnly-map-loader-animation {
        width: 60px;
        height: 60px;
    }
    
    .hvnly-map-loader-pin {
        width: 36px;
        height: 36px;
    }
    
    .hvnly-map-loader-pin i {
        font-size: 20px;
    }
    
    .hvnly-map-loader-title {
        font-size: 16px;
    }
    
    .hvnly-map-loader-subtitle {
        font-size: 12px;
    }
}

/* ----- Error State ----- */
.hvnly-map-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 30px;
    background: var(--hvnly-color-white, #ffffff);
    border-radius: var(--hvnly-border-radius-lg, 12px);
    box-shadow: var(--hvnly-shadow-card, 0 4px 20px rgba(0, 0, 0, 0.1));
    max-width: 400px;
    z-index: 100;
}

.hvnly-map-error-icon {
    font-size: 48px;
    color: var(--hvnly-brand-error, #ff4757);
    margin-bottom: 15px;
}

.hvnly-map-error h3 {
    margin: 0 0 10px 0;
    color: var(--hvnly-text-primary, #333);
    font-size: 18px;
}

.hvnly-map-error p {
    margin: 0 0 20px 0;
    color: var(--hvnly-text-secondary, #666);
    font-size: 14px;
}

.hvnly-retry-map-btn {
    padding: 10px 24px;
    background: var(--hvnly-brand-primary, #6C60FE);
    color: var(--hvnly-color-white, #ffffff);
    border: none;
    border-radius: var(--hvnly-border-radius-md, 8px);
    cursor: pointer;
    font-size: 14px;
    transition: all var(--hvnly-transition-time, 0.3s ease);
}

.hvnly-retry-map-btn:hover {
    background: var(--hvnly-button-bg-hover, #5944f0);
    transform: translateY(-2px);
}

/* ============================================
   10. MAP NOTICE STYLES
   ============================================ */
.hvnly-map-notice {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    padding: 12px 16px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: var(--hvnly-border-radius-md, 8px);
    font-size: 13px;
    color: var(--hvnly-text-primary, #333);
    box-shadow: var(--hvnly-shadow-card, 0 2px 8px rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.hvnly-map-notice-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.hvnly-map-notice-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.hvnly-map-notice-error {
    background: #ffebee;
    border-left-color: var(--hvnly-brand-error, #f44336);
}

/* ============================================
   11. LAYOUT ADJUSTMENTS
   ============================================ */
.hvnly-property--grid--listings {
    display: flex;
    flex-direction: column;
}

.hvnly-map-view {
    order: 1;
}

#hvnly-property-pagination,
#hvnly-load-more {
    order: 2;
}

/* Ensure Google Map container has proper height */
.hvnly-map-view .hvnly-properties-map,
#hvnly-properties-map {
    height: 550px !important;
    min-height: 550px !important;
    width: 100% !important;
    display: block !important;
}

.hvnly-map-view .hvnly-map-container {
    position: relative;
    height: 550px !important;
    min-height: 550px !important;
    width: 100%;
}

/* For responsive mobile */
@media (max-width: 768px) {

    .hvnly-map-view .hvnly-properties-map,
    #hvnly-properties-map {
        height: 350px !important;
        min-height: 350px !important;
    }
}


/* ======================
   LAPTOP (992px - 1199px)
   Professional Desktop Layout
   ====================== */
@media (min-width: 992px) and (max-width: 1199px) {
   
}

/* ======================
   DESKTOP (1200px - 1439px)
   Enterprise Desktop Experience
   ====================== */
@media (min-width: 1140px) and (max-width: 1299px) {
   
.hvnly-map-view {

    height: 500px !important;

}
.hvnly-map-view .hvnly-map-container {
    
    height: 500px !important;
    min-height: 500px !important;
    
}
.hvnly-map-view .hvnly-properties-map, #hvnly-properties-map {
    height: 500px !important;
    min-height: 500px !important;
   
}
}





/* Map Notice Styles */
.hvnly-map-notice {
    animation: slideDown 0.3s ease-out;
}

.hvnly-map-notice-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.hvnly-map-notice-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.hvnly-map-notice-error {
    background: #ffebee;
    border-left-color: #f44336;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Leaflet Map Container Height - Ensure visibility */
.leaflet-container {
    height: 100%;
    width: 100%;
    min-height: 550px;
}