/**
 * Muge Gallery - Minimal Harita Stilleri
 *
 * Leaflet.js harita entegrasyonu - minimal tasarım.
 *
 * @package Muge_Gallery
 */

/* ==========================================================================
   Harita Container
   ========================================================================== */
.muge-map-wrapper {
    position: relative;
    overflow: hidden;
}

.muge-map {
    width: 100%;
    background: #f5f5f5;
}

.muge-map:not(.muge-full-map):not(.muge-mini-map) {
    height: 500px;
}

/* ==========================================================================
   Harita Legendi - Minimal
   ========================================================================== */
.muge-map-legend {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    font-size: 10px;
    color: #888;
    z-index: 1000;
    letter-spacing: 0.5px;
}

.muge-map-count::before {
    display: none;
}

/* ==========================================================================
   Özel Pin Stilleri - Minimal
   ========================================================================== */
.muge-map-pin {
    position: relative;
}

.muge-pin-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.muge-pin-marker:hover {
    transform: scale(1.1);
    z-index: 1000 !important;
}

/* ==========================================================================
   Popup Stilleri - Minimal
   ========================================================================== */
.muge-map-popup {
    min-width: 220px;
}

.leaflet-popup-content-wrapper {
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0;
    width: 220px !important;
}

.muge-popup-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.muge-popup-content {
    padding: 12px;
}

.muge-popup-title {
    font-size: 11px;
    font-weight: 400;
    margin: 0 0 6px;
    color: #222;
}

.muge-popup-location {
    font-size: 10px;
    color: #888;
    margin: 0 0 4px;
}

.muge-popup-location::before {
    display: none;
}

.muge-popup-date {
    font-size: 10px;
    color: #aaa;
    margin: 0 0 10px;
}

.muge-popup-link {
    display: inline-block;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #222;
    color: #222;
    text-decoration: none;
    font-size: 10px;
    transition: all 0.2s ease;
}

.muge-popup-link:hover {
    background: #222;
    color: #fff;
}

.leaflet-popup-tip {
    background: #fff;
}

/* ==========================================================================
   Kümeleme (Cluster) - Minimal
   ========================================================================== */
.marker-cluster {
    background: rgba(34, 34, 34, 0.2);
    border-radius: 50%;
}

.marker-cluster div {
    width: 32px;
    height: 32px;
    margin-left: 5px;
    margin-top: 5px;
    background: rgba(34, 34, 34, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 400;
    font-size: 11px;
}

.marker-cluster-small {
    background: rgba(34, 34, 34, 0.15);
}

.marker-cluster-small div {
    background: rgba(34, 34, 34, 0.7);
}

.marker-cluster-medium {
    background: rgba(34, 34, 34, 0.25);
}

.marker-cluster-medium div {
    background: rgba(34, 34, 34, 0.8);
}

.marker-cluster-large {
    background: rgba(34, 34, 34, 0.35);
}

.marker-cluster-large div {
    background: rgba(34, 34, 34, 0.9);
}

/* ==========================================================================
   Mini Harita - Minimal
   ========================================================================== */
.muge-mini-map {
    height: 180px;
    overflow: hidden;
}

.muge-mini-map-preview {
    margin-top: 12px;
    height: 140px;
    overflow: hidden;
    border: 1px solid #eee;
}

.muge-mini-map-preview p {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    color: #aaa;
    font-size: 11px;
    background: #fafafa;
}

/* ==========================================================================
   Harita Kontrolleri - Minimal
   ========================================================================== */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 14px !important;
    color: #666 !important;
    background: #fff !important;
    border: none !important;
}

.leaflet-control-zoom a:hover {
    background: #f5f5f5 !important;
    color: #222 !important;
}

.leaflet-control-zoom-in {
    border-radius: 2px 2px 0 0 !important;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 2px 2px !important;
}

.leaflet-control-fullscreen {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-fullscreen a {
    background: #fff !important;
    border-radius: 2px !important;
}

/* ==========================================================================
   Harita Sayfası
   ========================================================================== */
.muge-map-page .muge-container {
    max-width: none;
    padding: 0;
}

/* ==========================================================================
   Loading State
   ========================================================================== */
.muge-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    color: #aaa;
}

.muge-map-loading::after {
    content: 'Loading...';
    font-size: 11px;
    letter-spacing: 1px;
}

/* ==========================================================================
   Leaflet Özelleştirmeleri
   ========================================================================== */
.leaflet-container {
    font-family: inherit;
}

.leaflet-bar {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border: none;
}

.leaflet-bar a {
    border-bottom: 1px solid #f0f0f0;
}

.leaflet-bar a:last-child {
    border-bottom: none;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    font-size: 9px;
    color: #aaa;
}

.leaflet-control-attribution a {
    color: #888;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .muge-map:not(.muge-full-map):not(.muge-mini-map) {
        height: 350px;
    }

    .leaflet-popup-content {
        width: 180px !important;
    }

    .muge-popup-image {
        height: 110px;
    }

    .muge-popup-content {
        padding: 10px;
    }

    .muge-pin-marker {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .muge-map:not(.muge-full-map):not(.muge-mini-map) {
        height: 280px;
    }

    .leaflet-popup-content {
        width: 160px !important;
    }

    .muge-popup-image {
        height: 90px;
    }
}
