/**
 * Pascuales Theme - Map Styles
 * Styled Google Maps matching the Chukum aesthetic
 * Uses theme CSS variables from style.css
 */

/* =============================================
   LOCATION SECTION - Enhanced with Map
   ============================================= */

.location-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-chukum-medium);
    position: relative;
}

/* Subtle texture overlay */
.location-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0L60 30L30 60L0 30Z" fill="rgba(139, 115, 85, 0.015)"/></svg>');
    background-size: 60px 60px;
    pointer-events: none;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-xl);
    align-items: start;
    position: relative;
    z-index: 1;
}

.location-text {
    padding-right: var(--space-md);
}

.location-text .section-title {
    margin-bottom: 1.5rem;
}

.location-text .villa-description {
    margin-bottom: var(--space-md);
    color: var(--color-earth);
    line-height: 1.8;
    font-weight: 300;
}

.location-points {
    margin-top: var(--space-md);
}

.location-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-points li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--color-earth);
    font-weight: 300;
}

.location-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-ocean-muted);
    border-radius: 50%;
}

/* =============================================
   MAP CONTAINER
   ============================================= */

.location-map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#pascuales-map {
    width: 100%;
    height: 100%;
}

/* =============================================
   MAP PLACEHOLDER (when no API key)
   ============================================= */

.map-placeholder-styled {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-chukum-light) 0%, var(--color-chukum-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder-styled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(74, 124, 133, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 124, 133, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.map-placeholder-styled .map-pin-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.map-placeholder-styled .map-pin {
    width: 50px;
    height: 50px;
    background: var(--color-ocean-muted);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(74, 124, 133, 0.35);
    animation: map-bounce 2.5s ease-in-out infinite;
}

.map-placeholder-styled .map-pin::after {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--color-white);
    border-radius: 50%;
    transform: rotate(45deg);
}

/* Pulse ring effect */
.map-placeholder-styled .map-pin-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-ocean-muted);
    border-radius: 50%;
    opacity: 0;
    animation: map-pulse 2.5s ease-out infinite;
}

.map-placeholder-styled .location-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text-main);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.map-placeholder-styled .location-coords {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-earth);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.map-placeholder-styled .placeholder-link {
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-ocean-muted);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.map-placeholder-styled .placeholder-link:hover {
    background: var(--color-ocean-deep);
    transform: translateY(-2px);
}

.map-placeholder-styled .placeholder-link i {
    width: 14px;
    height: 14px;
}

@keyframes map-bounce {
    0%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-8px);
    }
}

@keyframes map-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* =============================================
   MAP OVERLAY ELEMENTS
   ============================================= */

.map-overlay-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--color-white);
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 3px solid var(--color-ocean-muted);
}

.map-overlay-badge .location-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.map-overlay-badge .coordinates {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-earth);
    letter-spacing: 0.5px;
}

/* Directions Button */
.directions-link {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-ocean-muted);
    color: var(--color-white);
    padding: 12px 20px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.directions-link:hover {
    background: transparent;
    border-color: var(--color-ocean-muted);
    color: var(--color-ocean-muted);
}

.directions-link i {
    width: 16px;
    height: 16px;
}

/* =============================================
   NEARBY PLACES
   ============================================= */

.nearby-places {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-chukum-dark);
}

.nearby-places h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-wood);
    margin-bottom: 1rem;
}

.nearby-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.nearby-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-chukum-dark);
    font-size: 0.85rem;
    color: var(--color-earth);
    transition: all 0.3s ease;
    font-weight: 300;
}

.nearby-item:hover {
    border-color: var(--color-ocean-muted);
    color: var(--color-ocean-muted);
    transform: translateY(-2px);
}

.nearby-item i {
    width: 16px;
    height: 16px;
    color: var(--color-ocean-muted);
}

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

@media (max-width: 992px) {
    .location-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .location-text {
        padding-right: 0;
    }
    
    .location-map-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .location-section {
        padding: var(--space-lg) 0;
    }
    
    .location-map-container {
        height: 320px;
    }
    
    .map-overlay-badge {
        bottom: 15px;
        left: 15px;
        right: auto;
        padding: 12px 16px;
    }
    
    .directions-link {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.7rem;
    }
    
    .map-placeholder-styled .location-name {
        font-size: 1.3rem;
    }
}
