/* =============================================================
   Desert Air – Namibia Map  |  map.css  v1.1
   ============================================================= */

/* ---- Map wrapper ---- */
.dam-map-wrapper {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    margin: 24px 0;
}

.dam-map-canvas {
    width: 100%;
    background: #e8e0d4;
}

/* ---- Custom marker: hide Leaflet default background ---- */
.dam-marker-icon {
    background: none !important;
    border: none !important;
}

/* ---- Numbered circle marker ---- */
.dam-number-marker {
    width: 32px;
    height: 32px;
    background: #B8860B;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    border: 2px solid #fff;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    user-select: none;
}

.dam-number-marker:hover {
    background: #96700a;
    transform: scale(1.15);
}

/* ---- Hover tooltip showing location name ---- */
.dam-marker-tooltip {
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.dam-marker-tooltip::before {
    border-top-color: #1a1a1a;
}

/* ---- Popup wrapper ---- */
.dam-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: none;
    min-width: 240px;
    max-width: 280px;
}

.dam-popup-wrap .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: 100% !important;
}

.dam-popup-wrap .leaflet-popup-tip-container {
    margin-top: -1px;
}

.dam-popup-wrap .leaflet-popup-tip {
    background: #fff;
    box-shadow: none;
}

/* ---- Popup inner layout ---- */
.dam-popup {
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

.dam-popup-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.dam-popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dam-popup-body {
    padding: 14px 16px 16px;
    background: #fff;
}

.dam-popup-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
    color: #1a1a1a;
}

.dam-popup-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #555;
    margin: 0 0 12px;
}

/* ---- Action buttons row ---- */
.dam-popup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dam-popup-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: #B8860B;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

.dam-popup-btn:hover,
.dam-popup-btn:focus {
    background: #96700a;
    color: #fff !important;
    text-decoration: none !important;
}


/* ---- Close button ---- */
.dam-popup-wrap .leaflet-popup-close-button {
    color: #fff;
    font-size: 20px;
    line-height: 1;
    width: 26px;
    height: 26px;
    top: 6px;
    right: 8px;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 10;
}

.dam-popup-wrap .leaflet-popup-close-button:hover {
    background: rgba(0,0,0,0.6);
    color: #fff;
}

/* ---- Attribution ---- */
.leaflet-control-attribution {
    font-size: 10px !important;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .dam-map-canvas {
        height: 400px !important;
    }

    .dam-popup-img {
        height: 130px;
    }
}
