/* Google Maps Responsive Styles */
.contact-map {
    width: 100%;
    margin-top: 2rem;
}

#map-york,
#map-harrogate {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #map-york,
    #map-harrogate {
        height: 300px;
    }
    
    .map-mobile-controls {
        padding: 0 1rem;
    }
    
    .map-mobile-controls a {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* Map loading state */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    font-size: 16px;
}

/* Mobile-friendly buttons */
.map-mobile-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.map-mobile-controls a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.map-mobile-controls a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Info window customization */
.gm-style-iw-c {
    padding: 0 !important;
}

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

/* Contact grid adjustments */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-map {
        order: 1;
    }
}

/* Review section mobile optimization */
@media (max-width: 768px) {
    .google-reviews-widget {
        padding: 1rem;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .rating-summary {
        justify-content: center;
    }
    
    .review-slide {
        padding: 1rem;
    }
    
    .review-text {
        font-size: 14px;
    }
}

/* Loading skeleton for reviews */
.reviews-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: 200px;
    border-radius: 8px;
}

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

/* Error states */
.google-reviews-widget.error,
.map-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    color: #991b1b;
}

/* Call-to-action buttons mobile */
@media (max-width: 480px) {
    .hero-cta {
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* Touch-friendly tap targets */
@media (hover: none) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .contact-item a {
        display: inline-block;
        padding: 8px 0;
    }
}