/* === FEELMORE TÉRKÉP CSS === */
.feelmore-map-app {
    --fm-dark-green: #3a4a35;
    --fm-dark-green-hover: #4a5a44;
    --fm-pin-green: #2c3a28;
    --fm-tan: #b89968;
    --fm-beige: #f1ead6;
    --fm-beige-light: #f9f4e7;
    --fm-text: #2a2a2a;
    --fm-text-muted: #6b6b6b;
    --fm-border: #e8e0cf;
    --fm-white: #ffffff;
    --fm-accent: #c65d3a;
    --fm-hungary-fill: #d4d8c4;
    --fm-hungary-stroke: #8a9b7a;

    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--fm-text);
}

.feelmore-map-app *,
.feelmore-map-app *::before,
.feelmore-map-app *::after { box-sizing: border-box; }

/* === SZŰRŐK === */
.fm-filters-bar {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    flex-shrink: 0;
}
.fm-filters-bar::-webkit-scrollbar { display: none; }

.fm-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--fm-border);
    background: var(--fm-white);
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--fm-text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.fm-filter-btn:hover { border-color: var(--fm-dark-green); }
.fm-filter-btn.active {
    border-color: var(--fm-dark-green);
    box-shadow: 0 0 0 1px var(--fm-dark-green);
}
.fm-filter-btn svg {
    width: 20px; height: 20px;
    stroke: var(--fm-dark-green);
    fill: none; stroke-width: 1.5;
}

/* === FŐ TARTALOM === */
.fm-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    flex-grow: 1;
    min-height: 0;
}

.fm-map-wrapper {
    position: relative;
    background: var(--fm-beige);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--fm-border);
}
.fm-map {
    width: 100%; height: 100%;
    background: var(--fm-beige);
}

.feelmore-map-app .leaflet-container {
    background: var(--fm-beige) !important;
    font-family: inherit;
}
/* Tile réteget elrejtjük - csak a saját SVG illusztrációnk látszódjon */
.feelmore-map-app .leaflet-tile-pane { opacity: 0; }

/* SVG overlay = az illusztráció */
.fm-map-illustration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 200;
}

/* Zoom kontrollok */
.feelmore-map-app .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin: 16px !important;
}
.feelmore-map-app .leaflet-control-zoom a {
    background: var(--fm-white) !important;
    color: var(--fm-dark-green) !important;
    border: 1px solid var(--fm-border) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    font-weight: 400 !important;
}
.feelmore-map-app .leaflet-control-zoom a:hover {
    background: var(--fm-beige-light) !important;
}
.feelmore-map-app .leaflet-control-zoom-in {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none !important;
}
.feelmore-map-app .leaflet-control-zoom-out {
    border-radius: 0 0 12px 12px !important;
}

/* Jelmagyarázat */
.fm-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--fm-white);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--fm-border);
    font-size: 13px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.fm-legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
}
.fm-legend-pin {
    width: 14px; height: 18px;
    background: var(--fm-pin-green);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}
.fm-legend-pin.tan { background: var(--fm-tan); }

/* === MARKEREK === */
.fm-custom-pin { background: transparent; border: none; }
.fm-pin-shape {
    position: relative;
    width: 36px; height: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}
.fm-pin-shape.fm-pin-small {
    width: 26px; height: 36px;
}
.fm-pin-shape:hover { transform: scale(1.1) translateY(-2px); }
.fm-pin-shape.active { transform: scale(1.15) translateY(-2px); }

.fm-pin-svg {
    width: 36px; height: 50px;
    display: block;
}
.fm-pin-shape.fm-pin-small .fm-pin-svg {
    width: 26px; height: 36px;
}
.fm-pin-icon-wrap {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    color: white;
}
.fm-pin-icon-wrap svg {
    width: 18px; height: 18px;
    stroke: white; fill: none; stroke-width: 2;
}
.fm-pin-shape.fm-pin-small .fm-pin-icon-wrap {
    top: 6px; width: 14px; height: 14px;
}
.fm-pin-shape.fm-pin-small .fm-pin-icon-wrap svg {
    width: 12px; height: 12px;
}

.fm-pin-label {
    position: absolute;
    top: 4px; left: 42px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fm-text);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(241,234,214,0.9), 0 0 8px rgba(241,234,214,0.7);
    pointer-events: none;
}
.fm-pin-shape.fm-pin-small .fm-pin-label {
    top: 2px; left: 32px;
    font-size: 13px;
}
.fm-pin-label small {
    display: block;
    font-size: 11px;
    color: var(--fm-text-muted);
    font-weight: 400;
    margin-top: -2px;
}
.fm-pin-shape.fm-pin-small .fm-pin-label small {
    font-size: 10px;
}

/* === RÉSZLETEK PANEL === */
.fm-details {
    background: var(--fm-white);
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid var(--fm-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}
.fm-details-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--fm-text-muted);
    font-size: 14px;
    height: 100%;
    min-height: 200px;
}
.fm-details h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 38px;
    font-weight: 500;
    margin: 0 0 4px;
    line-height: 1.1;
    color: var(--fm-text);
}
.fm-details h1 span {
    font-weight: 400;
    font-size: 0.7em;
    color: var(--fm-text-muted);
}
.fm-details .fm-divider {
    width: 50px;
    height: 2px;
    background: var(--fm-accent);
    margin: 14px 0 20px;
    border: none;
}
.fm-details .fm-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fm-text-muted);
    margin-bottom: 22px;
}

.fm-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.fm-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--fm-beige-light);
    border-radius: 30px;
    font-size: 14px;
}
.fm-feature-item.fm-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: transparent;
    padding: 0;
}
.fm-feature-item.fm-pair > div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--fm-beige-light);
    border-radius: 30px;
}
.fm-feature-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--fm-dark-green);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}
.fm-feature-item .fm-label { font-weight: 500; color: var(--fm-text); }
.fm-feature-item .fm-sublabel { color: var(--fm-text-muted); font-size: 13px; }

.fm-cta-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--fm-dark-green);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}
.fm-cta-btn:hover { background: var(--fm-dark-green-hover); color: white; }
.fm-cta-btn svg {
    width: 18px; height: 18px;
    stroke: white; fill: none; stroke-width: 2;
}

.fm-details-close { display: none; }

/* === MOBIL === */
@media (max-width: 900px) {
    .fm-main { grid-template-columns: 1fr; }

    .fm-details {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 75vh;
        border-radius: 20px 20px 0 0;
        z-index: 9999;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
        padding-top: 28px;
    }
    .fm-details.open { transform: translateY(0); }
    .fm-details::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
    }
    .fm-details-close {
        display: block;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        font-size: 18px;
        color: var(--fm-text);
        line-height: 1;
    }
    .fm-details h1 { font-size: 30px; }
}
