/**
 * GuideXpress Tour Map Styles
 */

.gx-tour-map {
    width: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Custom numbered marker */
.gx-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #F5C652;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    line-height: 1;
}

.gx-marker-icon:hover {
    transform: scale(1.1);
    transition: transform 0.15s ease;
}

/* Popup styling */
.gx-tour-map .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.gx-tour-map .leaflet-popup-content {
    margin: 12px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gx-poi-popup {
    max-width: 280px;
}

.gx-poi-popup__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.gx-poi-popup__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #F5C652;
    border-radius: 50%;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.gx-poi-popup__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.gx-poi-popup__excerpt {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gx-tour-map {
        min-height: 250px;
        border-radius: 0;
    }

    .gx-poi-popup {
        max-width: 220px;
    }

    .gx-poi-popup__title {
        font-size: 14px;
    }

    .gx-poi-popup__excerpt {
        font-size: 12px;
    }
}

/* Zoom controls styling */
.gx-tour-map .leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.gx-tour-map .leaflet-control-zoom a,
.gx-tour-map .leaflet-control-zoom a.leaflet-control-zoom-in,
.gx-tour-map .leaflet-control-zoom a.leaflet-control-zoom-out {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    line-height: 1 !important;
    font-size: 18px;
    font-weight: 600;
    color: #2C53EC;
    background: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.gx-tour-map .leaflet-control-zoom a:hover {
    background: #2C53EC !important;
    color: #fff;
}

.gx-tour-map .leaflet-control-zoom a.leaflet-disabled {
    background: #f5f5f5 !important;
    color: #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Fix Leaflet default icon path issues */
.leaflet-default-icon-path {
    background-image: url(https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png);
}
