/* ===========================
   LEAFLET MAP SECTION
   =========================== */

.map-section {
    background: #F0F4FA;
    padding: 20px 0;
}

.sycac-map-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

#sycac-leaflet-map {
    width: 100%;
    height: 680px;
    background: #F0F5FF;
}

/* Hide tile layer — using blank background */
.leaflet-tile-pane { display: none; }
.leaflet-attribution-flag { display: none !important; }

.leaflet-container {
    background: #F0F5FF;
    font-family: inherit;
}

/* ===========================
   REGION STYLES
   =========================== */

.sycac-map-region {
    transition: fill 0.2s, stroke-width 0.2s;
}

.sycac-map-region-syria {
    fill: #DDEEFF;
    stroke: #4A90C4;
    stroke-width: 0.8;
}

.sycac-map-region-turkey {
    fill: #EEF5FF;
    stroke: #4A90C4;
    stroke-width: 0.8;
}

.sycac-map-region-syria:hover,
.sycac-map-region-turkey:hover {
    fill: #C8DFFF;
    stroke-width: 1.2;
    cursor: default;
}

/* ===========================
   PIN MARKERS
   =========================== */

.sycac-map-pin-icon {
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.sycac-map-pin-icon:hover {
    transform: scale(1.35);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* ===========================
   POPUPS
   =========================== */

.sycac-map-popup .leaflet-popup-content-wrapper {
    background: #1A5276;
    color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding: 0;
    overflow: hidden;
}

.sycac-map-popup .leaflet-popup-tip {
    background: #1A5276;
}

.sycac-map-popup .leaflet-popup-content {
    margin: 16px 18px;
    min-width: 140px;
}

.sycac-map-popup-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
    color: #ffffff;
    line-height: 1.3;
}

.sycac-map-popup-address {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.sycac-map-popup-type {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: capitalize;
    margin-bottom: 3px;
}

.sycac-map-popup-desc {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.4;
    margin-top: 4px;
}

.sycac-map-popup-phone {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 5px;
}

.sycac-map-popup-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
}

/* Region tooltip */
.sycac-map-tooltip {
    background: rgba(26, 82, 118, 0.92);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.sycac-map-tooltip::before {
    border-top-color: rgba(26, 82, 118, 0.92);
}

/* ===========================
   LEGEND
   =========================== */

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.map-legend__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.map-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===========================
   STATS BAR
   =========================== */

.map-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

.map-stats__item {
    text-align: center;
}

.map-stats__number {
    font-size: 28px;
    font-weight: 800;
    color: #1D3557;
}

.map-stats__label {
    font-size: 12px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

@media (max-width: 768px) {
    #sycac-leaflet-map { height: 420px; }
    .map-stats { gap: 16px; }
    .map-stats__number { font-size: 22px; }
}

.leaflet-control-zoom { z-index: 1 !important; }

.leaflet-top, .leaflet-bottom { z-index: 1 !important; }

@media (hover: none) { .sycac-map-tooltip { display: none !important; } }

#sycac-map-region-label {
    display: none;
    text-align: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1A5276;
    background: rgba(238, 245, 255, 0.95);
    border-top: 1px solid #C8DFFF;
    border-radius: 0 0 8px 8px;
    min-height: 32px;
    transition: opacity 0.3s;
}

@media (hover: none) {
    #sycac-map-region-label {
        display: block;
    }
}

/* FILTER BAR */
.map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
    justify-content: center;
}

.map-filters select {
    padding: 7px 12px;
    border: 1px solid #C8DFFF;
    border-radius: 4px;
    font-size: 13px;
    color: #1D3557;
    background: #fff;
    cursor: pointer;
    min-width: 140px;
}

.map-filters select:focus {
    outline: none;
    border-color: #3C78B4;
}

#filter-reset {
    padding: 7px 16px;
    background: #3C78B4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

#filter-reset:hover {
    background: #2d5f8f;
}

/* POPUP BUTTON */
.sycac-map-popup-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    border-radius: 4px;
    font-size: 11px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.4);
}

.sycac-map-popup-btn:hover {
    background: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
    .map-filters select { min-width: 100%; }
    #filter-reset { width: 100%; }
}
