/**
 * GVR Property Map Styles
 */

.gvr-property-map-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.gvr-property-map {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

/* Map Controls */
.gvr-map-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.gvr-map-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.gvr-map-btn:hover {
    background-color: #f5f5f5;
}

.gvr-map-btn svg {
    width: 20px;
    height: 20px;
    stroke: #5C6670;
}

/* Legend */
.gvr-map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 5;
}

.gvr-map-legend h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #3A4454;
}

.gvr-attractions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gvr-attraction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gvr-attraction-item:hover {
    background-color: #f0fafb;
}

.gvr-attraction-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gvr-attraction-icon.castle::before {
    content: "🏰";
    font-size: 18px;
}

.gvr-attraction-icon.movie::before {
    content: "🎬";
    font-size: 18px;
}

.gvr-attraction-icon.water::before {
    content: "🌊";
    font-size: 18px;
}

.gvr-attraction-icon.airplane::before {
    content: "✈️";
    font-size: 18px;
}

.gvr-attraction-icon.shopping::before {
    content: "🛍️";
    font-size: 18px;
}

.gvr-attraction-icon.grocery::before {
    content: "🛒";
    font-size: 18px;
}

.gvr-attraction-icon.hospital::before {
    content: "🏥";
    font-size: 18px;
}

.gvr-attraction-icon.golf::before {
    content: "⛳";
    font-size: 18px;
}

.gvr-attraction-icon.globe::before {
    content: "🌍";
    font-size: 18px;
}

.gvr-attraction-icon.restaurant::before {
    content: "🍽️";
    font-size: 18px;
}

.gvr-attraction-details {
    flex: 1;
    min-width: 0;
}

.gvr-attraction-details strong {
    display: block;
    font-size: 13px;
    color: #3A4454;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gvr-distance {
    font-size: 11px;
    color: #7C8691;
    margin-top: 2px;
}

/* Info Window */
.gvr-info-window {
    min-width: 200px;
    padding: 8px;
}

.gvr-info-window h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #00A3A3;
}

.gvr-info-window h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #3A4454;
}

.gvr-info-window p {
    margin: 4px 0;
    font-size: 13px;
    color: #5C6670;
}

.gvr-info-window .gvr-category {
    font-size: 11px;
    color: #7C8691;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gvr-info-window .gvr-distance {
    font-weight: 600;
    color: #00A3A3;
}

.gvr-directions-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #00A3A3;
    color: white;
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.gvr-directions-link:hover {
    background-color: #007777;
}

/* Error State */
.gvr-map-error {
    padding: 40px;
    text-align: center;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
}

/* Fullscreen Mode */
.gvr-property-map-container:fullscreen {
    height: 100vh;
}

.gvr-property-map-container:fullscreen .gvr-map-legend {
    bottom: 40px;
    right: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gvr-map-legend {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        max-height: 200px;
    }
    
    .gvr-map-controls {
        flex-direction: row;
    }
    
    .gvr-attraction-item {
        padding: 4px;
    }
    
    .gvr-attraction-details strong {
        font-size: 12px;
    }
    
    .gvr-distance {
        font-size: 10px;
    }
}

/* Loading State */
.gvr-property-map.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gvr-property-map.loading::after {
    content: "Loading map...";
    color: #7C8691;
    font-size: 14px;
}