/**
 * Mapbox Interaktív Térkép - CSS
 * Layout: Teljes szélességű térkép overlay kártyával
 */

/* ========================================
   1. FŐ WRAPPER - 100% SZÉLES
   ======================================== */

.bcmapbox-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* ========================================
   1.5. KATEGÓRIA SZŰRŐK
   ======================================== */

.bcmapbox-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 45px;
    padding: 0;
    border-style: solid;
    border-width: 1px 0px 1px 0px;
    border-color: #E2E0DF;
    justify-content: center;
}

.bcmapbox-filter-btn {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #7A8560;
    font-family: "Montserrat", Sans-serif;
    text-transform: uppercase;
    background-color: transparent;
    padding: 0px 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 0px;
}

.bcmapbox-filter-btn:hover {
    color: #34576D;
        background-color: transparent;
}

.bcmapbox-filter-btn.bcmapbox-filter-active {
    color: #34576D;
    background-color: transparent;
    border-bottom: 1px solid #34576D;
    padding-bottom: 2px;
}

/* ========================================
   2. TÉRKÉP CONTAINER
   ======================================== */

.bcmapbox-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.bcmapbox-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background-color: #f5f5f5;
    position: relative;
}

/* Loading státusz */
.bcmapbox-container::before {
    content: attr(data-loading);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #0E554F;
    z-index: 1;
    pointer-events: none;
}

.bcmapbox-container.bcmapbox-loaded::before {
    display: none;
}

/* ========================================
   3. OVERLAY KÁRTYA - ABSZOLÚT POZÍCIÓ
   ======================================== */

.bcmapbox-card {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    width: 320px;
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
        height: 490px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Üres állapot placeholder */
.bcmapbox-card-placeholder {
    padding: 40px 30px;
    text-align: center;
    display: none;
}

.bcmapbox-card.bcmapbox-card-empty .bcmapbox-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.bcmapbox-card-placeholder span {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

/* Kártya tartalom elrejtése üres állapotban */
.bcmapbox-card.bcmapbox-card-empty .bcmapbox-card-image,
.bcmapbox-card.bcmapbox-card-empty .bcmapbox-card-content {
    display: none;
}

/* Kártya kép */
.bcmapbox-card-image {
    width: 100%;
    height: 235px;
    overflow: hidden;
    flex-shrink: 0;
}

.bcmapbox-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bcmapbox-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 290px;
}

.bcmapbox-card-title {
    font-family: "Montserrat", sans-serif;
    color: #0E554F;
    margin: 0 0 12px 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: 1.12px;
    text-transform: uppercase;
}

.bcmapbox-card-description {
    font-family: "Montserrat", sans-serif;
    color: #0E554F;
    margin: 0 0 18px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.bcmapbox-card-link {
    font-family: "Montserrat", sans-serif;
    color: #0E554F;
    transition: color 0.3s ease;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.96px;
    text-transform: uppercase;
}

.bcmapbox-card-link svg {
    margin-left: 15px;
}

.bcmapbox-card-link:hover {
    color: #FA8282;
}



/* ========================================
   4. EGYEDI MARKER
   ======================================== */

.bcmapbox-marker {
    width: 30px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cpath fill='%230E554F' d='M12 0C5.4 0 0 5.4 0 12c0 9 12 24 12 24s12-15 12-24c0-6.6-5.4-12-12-12zm0 16c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* Kategória alapú marker (gyémánt alakú) */
.bcmapbox-marker.bcmapbox-marker-category {
    width: 22px;
    height: 16px;
    background-position: center;
}

.bcmapbox-marker:hover {
    transform: scale(1.15);
    transition: transform 0.2s ease;
}

/* Aktív marker */
.bcmapbox-marker.bcmapbox-marker-active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cpath fill='%23FA8282' d='M12 0C5.4 0 0 5.4 0 12c0 9 12 24 12 24s12-15 12-24c0-6.6-5.4-12-12-12zm0 16c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z'/%3E%3C/svg%3E");
    transform: scale(1.15);
}

/* ========================================
   5. NAVIGÁCIÓS KONTROLLOK
   ======================================== */

.bcmapbox-map .mapboxgl-ctrl-group {
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bcmapbox-map .mapboxgl-ctrl-group button {
    width: 36px;
    height: 36px;
    border-radius: 0;
}

.bcmapbox-map .mapboxgl-ctrl-group button:hover {
    background-color: #f5f5f5;
}

/* Fullscreen gomb */
.bcmapbox-map .mapboxgl-ctrl-fullscreen {
    background-color: #fff;
}

/* ========================================
   6. HIBA ÜZENET
   ======================================== */

.bcmapbox-error {
    padding: 20px;
    background-color: #fff3f3;
    border: 1px solid #FA8282;
    color: #d32f2f;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    text-align: center;
}

/* ========================================
   7. RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .bcmapbox-card {
        width: 300px;
        left: 20px;
    }
    
    .bcmapbox-card-image {
        height: 150px;
    }
    
    .bcmapbox-card-content {
        padding: 18px 20px 20px;
    }
    
    .bcmapbox-card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .bcmapbox-card-description {
        font-size: 12px;
        margin-bottom: 15px;
    }
}

/* ========================================
   8. RESPONSIVE - MOBIL
   ======================================== */

@media (max-width: 768px) {
    .bcmapbox-filters {
         gap: 35px;
    }
    
      .bcmapbox-filter-btn {
        font-size: 11px;
        padding: 0px 0px;
    }
    
    .bcmapbox-map {
        height: var(--mobile-height, 400px) !important;
        min-height: auto;
    }
    
    .bcmapbox-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: calc(100% - 50px);
        margin: -60px auto 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        border-top: none;
        z-index: 10;
            height: 400px;
    }
    
    .bcmapbox-card-image {
        height: 180px;
    }
    
    .bcmapbox-card-content {
        padding: 20px;
    }
    
    .bcmapbox-card-title {
        font-size: 15px;
    }
    
    .bcmapbox-card-description {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }
    
    .bcmapbox-card-button {
        font-size: 10px;
        padding: 8px 18px;
    }
    
    .bcmapbox-card-link {
        font-size: 11px;
    }
    
    .bcmapbox-marker {
        width: 26px;
        height: 35px;
    }
    
    .bcmapbox-marker.bcmapbox-marker-active {
        transform: scale(1.2);
    }
}
