/* XDirectory Custom Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --border-radius: 8px;
    --box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease-in-out;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.card {
    border-radius: calc(var(--border-radius) * 1.5);
    box-shadow: var(--box-shadow);
    border: none;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Header Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-section .form-control {
    border-radius: var(--border-radius);
    border: none;
    padding: 0.75rem 1rem;
}

.hero-section .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Category Cards */
.category-card {
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

/* Location Cards */
.location-card {
    transition: var(--transition);
    cursor: pointer;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Minimal Location Card */
.location-card-minimal {
    transition: var(--transition);
    padding: 0.5rem 0;
}

.location-card-minimal:hover {
    transform: translateY(-3px);
}

.location-card-minimal:hover .location-flag-icon {
    transform: scale(1.1);
}

.location-card .card-body {
    padding: 1.5rem 1rem;
}

/* Location Flag Icons - Similar to Category Icons */
.location-flag-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.location-flag-icon i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.location-flag-icon .state-code {
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

.location-card:hover .location-flag-icon {
    transform: scale(1.05);
    transition: var(--transition);
}

/* Smaller text styles for compact cards */
.x-small {
    font-size: 0.75rem;
}

.small {
    font-size: 0.875rem;
}

/* Compact Category Cards */
.category-card-minimal {
    transition: var(--transition);
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
}

.category-card-minimal:hover {
    transform: translateY(-3px);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.category-card-minimal:hover .category-icon {
    transform: scale(1.1);
}

.category-card-minimal .category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.category-card-minimal .category-icon i {
    font-size: 1.5rem;
}

.category-title {
    color: var(--text-color);
    font-weight: 500;
}

.category-count {
    color: var(--text-muted);
}

/* Listing Cards */
.listing-card {
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-3px);
}

.listing-card .card-img-top {
    border-radius: calc(var(--border-radius) * 1.5) calc(var(--border-radius) * 1.5) 0 0;
}

.colorful-placeholder {
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.listing-card .rating .fa-star {
    font-size: 0.875rem;
}

.listing-card .card-body {
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.listing-card .card-text {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.listing-card .card-footer {
    margin-top: auto;
}

.listing-card .card-title {
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Search & Filter Styles */
.search-filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    color: var(--secondary-color);
    margin: 0 2px;
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Listing Detail Page */
.listing-header {
    background: linear-gradient(135deg, var(--light-color) 0%, #f1f5f9 100%);
    padding: 2rem 0;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.listing-gallery img {
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.listing-gallery img:hover {
    transform: scale(1.05);
}

.listing-features {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: var(--success-color);
    margin-right: 0.75rem;
    width: 20px;
}

/* Review Styles */
.review-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.review-rating {
    color: var(--warning-color);
}

.review-form {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Contact Info */
.contact-info {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.contact-info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item i {
    color: var(--primary-color);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    /* background: var(--light-color); */
    border-radius: 50%;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    margin-right: 0.5rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1e293b 100%);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .search-filters {
        padding: 1rem;
    }
    
    .listing-card .card-body {
        padding: 1rem;
    }
    
    .contact-info {
        margin-bottom: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-floating > label {
    color: var(--secondary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Footer Styles */
footer .hover-primary:hover {
    color: var(--primary-color) !important;
    transition: var(--transition);
}

footer .social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    transition: var(--transition);
}

/* ============================================
   LISTING DETAIL PAGE STYLES
   ============================================ */

/* Logo Styles */
.listing-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: var(--box-shadow);
}

/* Featured Image Placeholder */
.featured-image-placeholder {
    background-color: var(--light-color);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image-detail {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Gallery Section */
.gallery-section {
    animation: slideUp 0.5s ease-in-out;
}

/* Carousel */
.carousel {
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.carousel-inner {
    border-radius: var(--border-radius);
}

.gallery-carousel-image {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    filter: brightness(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Features Section */
.features-section {
    animation: slideUp 0.6s ease-in-out;
}

.feature-item {
    padding: 12px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.feature-item:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
}

.feature-item i {
    font-size: 1.1rem;
}

/* Related Listings Thumbnail */
.related-listing-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--light-color);
}

.related-listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-listing-thumbnail:hover .related-listing-image {
    transform: scale(1.1);
}

.related-listing-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.related-listing-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    font-size: 2rem;
}

/* ============================================
   HOMEPAGE CARD STYLES
   ============================================ */

/* Featured Card Image Container */
.featured-card-image {
    position: relative;
    overflow: hidden;
    background-color: var(--light-color);
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-card-image:hover img {
    transform: scale(1.05);
}

/* Logo Badge on Featured Cards */
.logo-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.3s ease-in-out;
}

.logo-badge img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

/* Logo Badge on Latest Cards */
.logo-badge-small {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.logo-badge-small img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

/* Latest Card Image Container */
.latest-card-image {
    position: relative;
    overflow: hidden;
    background-color: var(--light-color);
}

.latest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.latest-card-image:hover img {
    transform: scale(1.05);
}

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

@media (max-width: 768px) {
    /* Smaller logo on mobile */
    .listing-logo {
        width: 60px;
        height: 60px;
    }

    /* Stack gallery thumbnails vertically on small screens */
    .gallery-thumbnails {
        flex-wrap: wrap;
    }

    .gallery-thumb {
        width: 70px;
        height: 70px;
    }

    /* Adjust featured image height on mobile */
    .featured-card-image {
        height: 160px;
    }

    .logo-badge {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .logo-badge-small {
        width: 38px;
        height: 38px;
        border-width: 2px;
    }

    /* Features in single column on mobile */
    .features-section .row > div {
        flex: 0 0 100%;
    }

    /* Related listings full width on mobile */
    .related-listing-thumbnail {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .listing-logo {
        width: 50px;
        height: 50px;
    }

    .gallery-carousel-image {
        max-height: 300px;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .logo-badge {
        width: 40px;
        height: 40px;
    }

    .logo-badge-small {
        width: 32px;
        height: 32px;
    }

    .featured-card-image {
        height: 140px;
    }

    .latest-card-image {
        height: 120px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb,
    footer,
    .btn,
    .review-form {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    /* Hide gallery controls on print */
    .carousel-control-prev,
    .carousel-control-next,
    .gallery-thumbnails {
        display: none !important;
    }

    /* Print gallery as grid */
    .gallery-carousel-image {
        page-break-inside: avoid;
    }
}

/* ═════════════════════════════════════════════════════════════════════ */
/* LISTING MAP STYLES - Frontend Listing Detail Pages                   */
/* ═════════════════════════════════════════════════════════════════════ */

/* Listing Map Container */
#listingMap {
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: #f8fafc;
    position: relative;
    z-index: 1;
}

/* Responsive map sizing */
@media (max-width: 768px) {
    #listingMap {
        height: 350px;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    #listingMap {
        height: 300px;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* Map section wrapper */
.listing-map-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
}

.listing-map-section-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.listing-map-section-header i {
    color: #2563eb;
    font-size: 1.25rem;
}

.listing-map-section-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.listing-map-section-body {
    padding: 0;
    position: relative;
}

/* Map header info */
.listing-map-info {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.listing-map-info i {
    color: #2563eb;
    min-width: 20px;
}

.listing-map-info-text {
    flex: 1;
}

.listing-map-info-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-map-info-value {
    display: block;
    color: #0f172a;
    font-weight: 500;
}

/* Map popup styling */
.listing-map-popup {
    font-size: 0.95rem;
    line-height: 1.5;
}

.listing-map-popup .fw-bold {
    color: #2563eb;
}

.listing-map-popup .text-muted {
    color: #64748b;
}

.listing-map-popup .text-secondary {
    color: #94a3b8;
}

/* Leaflet popup overrides for listing maps */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

.leaflet-popup-tip {
    background: white;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0.75rem 0.5rem;
}

/* Map controls styling */
.leaflet-control-zoom {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background: white;
    border: 1px solid #e2e8f0;
    color: #2563eb;
    font-weight: bold;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    transition: all 0.2s ease;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background: #f0f4f8;
    color: #1d4ed8;
}

.leaflet-control-attribution {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
}

.leaflet-control-attribution a {
    color: #2563eb;
    text-decoration: none;
}

.leaflet-control-attribution a:hover {
    text-decoration: underline;
}

/* Map marker styling */
.leaflet-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.2s ease;
}

.leaflet-marker-icon:hover {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transform: scale(1.1);
}

/* Additional location info card */
.listing-location-info {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #2563eb;
}

.listing-location-info-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listing-location-info-title i {
    color: #2563eb;
}

.listing-coordinates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
}

.coordinate-item {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
}

.coordinate-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.coordinate-value {
    display: block;
    font-family: 'Courier New', monospace;
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive listing coordinates */
@media (max-width: 768px) {
    .listing-coordinates {
        grid-template-columns: 1fr;
    }
}

/* Address display in map section */
.listing-map-address {
    padding: 1rem 1.25rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.listing-map-address-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.listing-map-address-value {
    color: #0f172a;
    line-height: 1.6;
}

/* Map loading state */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.95rem;
}

.map-loading::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.75rem;
    border: 2px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Map error state */
.map-error {
    padding: 2rem;
    background: #fef2f2;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    color: #991b1b;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 300px;
}

.map-error i {
    font-size: 2rem;
    opacity: 0.7;
}

/* Map section divider */
.map-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
    margin: 2rem 0;
}

/* Google Maps Embed Styles */
.google-maps-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.666%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: #f0f0f0;
}

.google-maps-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* Fixed height fallback for smaller screens */
@media (max-width: 768px) {
    .google-maps-embed-container {
        padding-bottom: 75%;
        height: auto;
        min-height: 300px;
    }
}

/* Tablet sizes */
@media (min-width: 769px) and (max-width: 1024px) {
    .google-maps-embed-container {
        padding-bottom: 70%;
    }
}

/* Desktop sizes */
@media (min-width: 1025px) {
    .google-maps-embed-container {
        padding-bottom: 65%;
        min-height: 400px;
    }
}

/* Ensure map is accessible and responsive */
.google-maps-embed iframe {
    display: block;
}

/* Improve map loading state */
.google-maps-embed-container.loading {
    background-color: #f3f4f6;
}

/* Loading animation */
@keyframes pulse-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.google-maps-embed-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse-loading 1s linear infinite;
}

/* Geo-Location Search Z-Index Fix */
.geo-search-wrapper {
    position: relative !important;
    z-index: 10000 !important;
}

.geo-search-suggestions {
    position: absolute !important;
    top: 100% !important;
    z-index: 99999 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.hero-section .geo-search-suggestions,
.geo-search-wrapper .geo-search-suggestions,
.geo-search-suggestions.show {
    z-index: 99999 !important;
}

/* Ensure stats cards stay below search suggestions */
.hero-section .row:has(.bg-white.bg-opacity-10) {
    position: relative;
    z-index: 1;
}

.hero-section .shadow,
.hero-section .shadow-sm,
.hero-section .shadow-lg {
    z-index: 1 !important;
}

/* States Grid - Hide/Show */
.state-item-hidden {
    display: none !important;
}

