/* Passion Map V2 Styles */
.passion-map-v2-container {
    margin: 20px 0;
}

.passion-map-v2-container .map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.passion-map-v2-container .map-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.passion-map-v2-container .map-stats {
    font-size: 0.9rem;
    color: #666;
}

.passion-map-v2 {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    position: relative;
}

/* Skeleton Map Loading */
.passion-map-v2.skeleton-map {
    background: linear-gradient(
        90deg,
        #e9ecef 0%,
        #f8f9fa 50%,
        #e9ecef 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.passion-map-v2.skeleton-map::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.passion-map-v2.skeleton-map::after {
    content: '\f279';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.passion-map-v2-empty {
    padding: 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

.map-placeholder-message {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px;
    text-align: center !important;
    width: 100%;
}

.map-placeholder-message i {
    font-size: 2em !important;
    color: #ccc !important;
    margin-bottom: 15px !important;
    display: block !important;
    text-align: center !important;
}

.map-placeholder-message p {
    margin: 0 auto !important;
    font-size: 1.1rem !important;
    color: #666 !important;
    line-height: 1.5 !important;
    max-width: 80% !important;
    width: 80% !important;
    text-align: center !important;
    display: block !important;
}

/* Google Maps Info Window Styling - Enhanced Design with Force Overrides */
.gm-style .gm-style-iw-c {
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 6px 16px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    border: none !important;
    background: white !important;
    overflow: hidden !important;
    max-width: 380px !important;
    min-width: 320px !important;
    width: 380px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
    height: auto !important;
}

/* Force override Google's inline styles */
.gm-style-iw.gm-style-iw-c[style] {
    max-width: 380px !important;
    min-width: 320px !important;
    width: 380px !important;
    max-height: none !important;
}

.gm-style-iw-d[style] {
    max-height: none !important;
    height: auto !important;
}

/* Additional override for stubborn Google Maps inline styles */
div[role="dialog"].gm-style-iw.gm-style-iw-c {
    max-width: 380px !important;
    min-width: 320px !important;
    width: 380px !important;
    max-height: none !important;
    padding-top: 0 !important;
}

div[role="dialog"].gm-style-iw.gm-style-iw-c .gm-style-iw-d {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Override container and ensure proper sizing */
.gm-style-iw-c .map-info-window {
    width: 100% !important;
    max-width: none !important;
    min-width: auto !important;
}

.gm-style .gm-style-iw-t::after {
    background: white !important;
    border-radius: 0 0 16px 16px !important;
}

/* Override Google Maps scrollbar */
.gm-style .gm-style-iw-d::-webkit-scrollbar {
    width: 6px !important;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1) !important;
    border-radius: 3px !important;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3) !important;
    border-radius: 3px !important;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5) !important;
}

/* Close button styling */
.gm-style .gm-style-iw-c button {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    top: 12px !important;
    right: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.gm-style .gm-style-iw-c button:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.gm-style .gm-style-iw-c button img {
    filter: opacity(0.6) !important;
    transition: filter 0.2s ease !important;
}

.gm-style .gm-style-iw-c button:hover img {
    filter: opacity(0.8) !important;
}

.map-info-window {
    padding: 0;
    border-radius: 16px;
    background: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    max-width: 380px !important;
    min-width: 320px !important;
    width: 100% !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.map-info-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 16px 16px 0 0 !important;
}

.map-info-content {
    padding: 24px;
    background: white;
}

.map-info-title {
    margin: 0 0 16px 0 !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
    letter-spacing: -0.025em !important;
    text-decoration: none !important;
}

.map-info-venue {
    margin: 0 0 16px 0 !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #495057 !important;
    font-weight: 500 !important;
}

.map-info-venue .fa-map-marker {
    color: #007cba !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    text-align: center !important;
}

.map-info-venue a {
    color: #007cba !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.map-info-venue a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

.map-info-venue span {
    color: #495057 !important;
    font-weight: 500 !important;
}

.map-info-address {
    margin: 0 0 20px 0 !important;
    font-size: 0.9rem !important;
    color: #6c757d !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    line-height: 1.5 !important;
}

.map-info-address .fa-map-marker {
    color: #adb5bd !important;
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    width: 16px !important;
    text-align: center !important;
}

.map-info-meta {
    margin: 20px 0 !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.map-info-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8f9fa !important;
    padding: 8px 14px !important;
    border-radius: 25px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
    border: 1px solid #e9ecef !important;
    white-space: nowrap !important;
}

.map-info-meta-item .fa {
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
}

.map-info-meta-item .fa-tag {
    color: #28a745 !important;
}

.map-info-meta-item .fa-star {
    color: #ffc107 !important;
}

.map-info-meta-item .fa-clock {
    color: #6c757d !important;
}

.map-info-description {
    margin: 20px 0 !important;
    font-size: 0.95rem !important;
    color: #495057 !important;
    line-height: 1.6 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.map-info-actions {
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f1f3f4 !important;
}

.map-info-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%) !important;
    color: white !important;
    padding: 14px 24px !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.3) !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: center !important;
    letter-spacing: 0.025em !important;
    min-height: 48px !important;
    font-family: inherit !important;
}

.map-info-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 124, 186, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #0084c7 0%, #005f91 100%) !important;
}

.map-info-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.3) !important;
}

.map-info-button .fa {
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
}

.map-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
}

.map-info-content {
    padding: 20px;
    position: relative;
}

.map-info-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.map-info-close:hover {
    color: #333;
}

/* Custom Map Marker Styling */
.passion-map-marker {
    background: #93003f;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.passion-map-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(147, 0, 63, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .passion-map-v2-container .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .passion-map-v2 {
        height: 400px;
    }
    
    /* Mobile optimized info window */
    .gm-style .gm-style-iw-c {
        max-width: 320px !important;
        min-width: 280px !important;
    }
    
    .map-info-window {
        max-width: 320px !important;
        min-width: 280px !important;
    }
    
    .map-info-image {
        height: 180px !important;
    }
    
    .map-info-content {
        padding: 20px !important;
    }
    
    .map-info-title {
        font-size: 1.2rem !important;
        margin-bottom: 14px !important;
    }
    
    .map-info-venue {
        font-size: 0.95rem !important;
        margin-bottom: 14px !important;
    }
    
    .map-info-address {
        font-size: 0.85rem !important;
        margin-bottom: 18px !important;
    }
    
    .map-info-meta {
        gap: 8px !important;
        margin: 18px 0 !important;
    }
    
    .map-info-meta-item {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    .map-info-description {
        font-size: 0.9rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        margin: 18px 0 !important;
    }
    
    .map-info-actions {
        margin-top: 20px !important;
        padding-top: 18px !important;
    }
    
    .map-info-button {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        min-height: 44px !important;
    }
    
    /* Adjust close button for mobile */
    .gm-style .gm-style-iw-c button {
        width: 28px !important;
        height: 28px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .gm-style .gm-style-iw-c {
        max-width: 280px !important;
        min-width: 240px !important;
    }
    
    .map-info-window {
        max-width: 280px !important;
        min-width: 240px !important;
    }
    
    .map-info-image {
        height: 160px !important;
    }
    
    .map-info-content {
        padding: 16px !important;
    }
    
    .map-info-title {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    
    .map-info-venue,
    .map-info-address {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }
    
    .map-info-meta {
        margin: 16px 0 !important;
        gap: 6px !important;
    }
    
    .map-info-meta-item {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .map-info-description {
        font-size: 0.85rem !important;
        margin: 16px 0 !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    
    .map-info-actions {
        margin-top: 18px !important;
        padding-top: 16px !important;
    }
    
    .map-info-button {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        gap: 8px !important;
        min-height: 42px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .map-info-window {
        background: #2a2a2a;
        color: #f0f0f0;
    }
    
    .map-info-window h4 {
        color: #ffffff !important;
    }
    
    .map-info-window p {
        color: #cccccc !important;
    }
}