.sleek-map-wrapper {
    position: relative;
    height: 400px;         /* Keeps a fixed vertical height */
    max-width: 600px;      /* Restricts the width so it stays a clean rectangle */
    margin: 20px auto;     /* Centers the block on your page with some breathing room */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    font-family: var(--f-body);
    background: var(--paper);
}

.custom-mapbox { 
    width: 100%; 
    height: 400px; 
    z-index: 1;
    position: relative;
}

/* Floating UI Card inside the compact view */
.map-navigation-card {
    position: absolute;
    bottom: 16px;          /* Tucked slightly closer to the edges for the smaller box */
    left: 16px;
    z-index: 1001;
    background: rgba(251, 248, 241, 0.94);
    background-image: var(--pattern-light);
    background-size: 60px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px;         /* Slightly tighter padding for spatial balance */
    border-radius: 12px;
    width: 230px;          /* Narrowed down slightly to fit the 600px width canvas */
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(22, 36, 29, 0.08);
}

.map-navigation-card h3 {
    margin: 0 0 4px 0;
    font-family: var(--f-display);
    font-size: 16px;
    color: var(--ink);
}

.map-navigation-card p {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Action Button */
.directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--emerald);
    color: var(--paper);
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--emerald-deep);
    transition: all 0.2s ease;
}

.directions-btn:hover {
    background: var(--emerald-bright);
    color: var(--white);
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px var(--sage);
}

.directions-btn:active { 
    transform: scale(0.98); 
}

/* Parking Actions Cluster */
.parking-actions {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 140px;
}

.parking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(251, 248, 241, 0.94);
    background-image: var(--pattern-light);
    background-size: 60px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ink);
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(22, 36, 29, 0.08);
    transition: all 0.2s ease;
}

.parking-btn svg {
    flex-shrink: 0;
    color: var(--gold);
}

.parking-btn:hover {
    background: var(--sage);
    border-color: var(--emerald);
    color: var(--emerald-deep);
}

.parking-btn:hover svg {
    color: var(--gold-bright);
}

.parking-btn:active {
    transform: scale(0.98);
}

/* Leaflet Zoom Control Overrides */
.leaflet-control-zoom { 
    border: 1px solid var(--line) !important; 
    box-shadow: none !important; 
}

.leaflet-control-zoom a {
    background: var(--paper) !important;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--line) !important;
}

/* =========================================================
   MOBILE — dar haritada kartların çakışmasını önle
   Telefonda harita tek sütunda tam genişlik alsa bile, adres kartı
   (sol-alt) ile otopark kümesi (sağ-alt) alt kenarda yan yana sığmıyor
   ve taşıyordu. Otopark kümesini boştaki SOL-ÜST köşeye alıyoruz (zoom
   kontrolü sağ-üstte olduğu için orası serbest), adres kartını da harita
   genişliğine göre esnetiyoruz. Böylece kartlar farklı köşelerde durup
   asla üst üste binmiyor.
   ========================================================= */
@media (max-width: 480px){
    .map-navigation-card{
        width: auto;
        max-width: min(230px, calc(100% - 24px));
        left: 12px;
        bottom: 12px;
        padding: 13px;
    }
    .map-navigation-card h3{ font-size: 15px; }
    .map-navigation-card p{ font-size: 11.5px; margin-bottom: 10px; }

    .parking-actions{
        top: 12px;
        bottom: auto;
        left: 12px;
        right: auto;
        width: auto;
        max-width: calc(100% - 24px);
    }
    .parking-btn{
        padding: 8px 10px;
        font-size: 11px;
    }
}