/* ============================================================
   BROZ Hospodári — frontend (v1.3)
   Aesthetic: warm editorial — forest green + cream + heraldic gold.
   Scoped under .bh-* so it doesn't bleed into the host theme.
   ============================================================ */

:root {
    /* Palette */
    --bh-c-leaf:        #2d5f3f;
    --bh-c-leaf-deep:   #1f4530;
    --bh-c-leaf-soft:   #5a8e6b;
    --bh-c-leaf-tint:   #e8f0ea;

    --bh-c-gold:        #b8893b;
    --bh-c-gold-deep:   #8a6313;
    --bh-c-gold-soft:   #d9b96a;
    --bh-c-gold-tint:   #faf3df;

    --bh-c-ink:         #1c1f1d;
    --bh-c-ink-soft:    #5a5f5c;
    --bh-c-ink-faint:   #898d8a;

    --bh-c-cream:       #fafaf6;
    --bh-c-cream-warm:  #f4f0e6;
    --bh-c-line:        #e0ddd5;
    --bh-c-line-soft:   #ede9df;

    --bh-c-bg:          #ffffff;

    /* Typography — Lora for editorial headings; theme body font kept. */
    --bh-ff-serif:      "Lora", Georgia, "Times New Roman", serif;
    --bh-ff-body:       inherit;

    /* Geometry */
    --bh-radius:        10px;
    --bh-radius-lg:     16px;
    --bh-shadow-sm:     0 1px 2px rgba(28,31,29,.06);
    --bh-shadow:        0 2px 6px rgba(28,31,29,.06), 0 8px 24px rgba(28,31,29,.08);
    --bh-shadow-lg:     0 6px 16px rgba(28,31,29,.10), 0 20px 50px rgba(28,31,29,.12);
}

/* ============================================================
   Buttons & chips — used by both list/popup/single
   ============================================================ */

.bh-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 999px;
    font-family: var(--bh-ff-body); font-size: 14px; font-weight: 600;
    text-decoration: none; line-height: 1.2; cursor: pointer; border: 1.5px solid transparent;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.bh-btn:hover { transform: translateY(-1px); }
.bh-btn:focus-visible { outline: 2px solid var(--bh-c-leaf); outline-offset: 2px; }
.bh-btn--primary { background: var(--bh-c-leaf); color: #fff; border-color: var(--bh-c-leaf); }
.bh-btn--primary:hover { background: var(--bh-c-leaf-deep); border-color: var(--bh-c-leaf-deep); color: #fff; }
.bh-btn--ghost { background: transparent; color: var(--bh-c-leaf); border-color: var(--bh-c-leaf-soft); }
.bh-btn--ghost:hover { background: var(--bh-c-leaf-tint); border-color: var(--bh-c-leaf); color: var(--bh-c-leaf-deep); }
.bh-btn--sm { padding: 7px 12px; font-size: 13px; }

.bh-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 11px;
    background: var(--bh-c-leaf-tint); color: var(--bh-c-leaf-deep);
    border-radius: 999px; font-size: 12px; font-weight: 600;
    letter-spacing: 0.02em; text-decoration: none;
    transition: background .15s, color .15s;
    line-height: 1.3;
}
.bh-chip:hover { background: var(--bh-c-leaf); color: #fff; }
.bh-chip--loc { background: var(--bh-c-cream-warm); color: var(--bh-c-gold-deep); }
.bh-chip--loc:hover { background: var(--bh-c-gold); color: #fff; }
.bh-chip--small { font-size: 11px; padding: 3px 9px; }
.bh-chip--icon { padding-left: 7px; }
.bh-chip--icon .bh-catico { flex-shrink: 0; }

.bh-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    white-space: nowrap; line-height: 1;
}
.bh-badge--award {
    background: linear-gradient(135deg, var(--bh-c-gold-soft), var(--bh-c-gold));
    color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08) inset;
}

/* ============================================================
   FILTER (hlavná stránka)
   ============================================================ */

.bh-filter {
    background: var(--bh-c-cream);
    border: 1px solid var(--bh-c-line);
    border-radius: var(--bh-radius-lg);
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: var(--bh-shadow-sm);
}
.bh-filter__row {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
}
.bh-filter__group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bh-filter__group--search { flex: 1 1 240px; }
.bh-filter__group--loc    { flex: 1 1 200px; max-width: 280px; }
.bh-filter__group--toggle { flex: 0 0 auto; padding-bottom: 8px; }

.bh-filter__label {
    font-family: var(--bh-ff-serif); font-size: 12px; font-weight: 600;
    color: var(--bh-c-ink-soft); letter-spacing: 0.06em;
    text-transform: uppercase; margin: 0;
}

.bh-filter__input-wrap { position: relative; }
.bh-filter__input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--bh-c-leaf); pointer-events: none; z-index: 1;
}
.bh-filter__input,
.bh-filter__select {
    /* Explicit reset against theme button/input styles — !important to win
       specificity wars with themes that target generic `input` or `.input`.
       impacto-patronus theme uses !important on padding/border, so we must too. */
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    margin: 0;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: var(--bh-ff-body) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: var(--bh-c-ink) !important;
    background: #fff;
    padding: 12px 14px 12px 46px !important;
    border: 1.5px solid var(--bh-c-line) !important;
    border-radius: 12px !important;
    min-height: 48px !important;
    width: 100%;
    transition: border-color .18s, box-shadow .18s;
}
.bh-filter__input::placeholder {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    color: var(--bh-c-ink-faint);
    opacity: 1;
}
.bh-filter__input:focus,
.bh-filter__select:focus {
    outline: none;
    border-color: var(--bh-c-leaf) !important;
    box-shadow: 0 0 0 4px rgba(45,95,63,.14) !important;
}
.bh-filter__select {
    padding-right: 42px !important; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a5f5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: #fff;
}

/* Toggle switch */
.bh-filter__toggle {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    font-size: 14px; font-family: var(--bh-ff-body); color: var(--bh-c-ink);
    user-select: none; padding: 4px 0;
}
.bh-filter__toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.bh-filter__toggle-track {
    position: relative; display: inline-block;
    width: 42px; height: 24px; background: var(--bh-c-line);
    border-radius: 999px; transition: background .2s;
}
.bh-filter__toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; background: #fff;
    border-radius: 50%; transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.bh-filter__toggle:has(input:checked) .bh-filter__toggle-track {
    background: var(--bh-c-gold);
}
.bh-filter__toggle:has(input:checked) .bh-filter__toggle-thumb {
    transform: translateX(18px);
}
.bh-filter__toggle-label {
    font-weight: 500; color: var(--bh-c-ink-soft);
}

/* Reset button — discrete, far right */
.bh-filter__reset {
    /* Explicit reset against theme button styles — impacto-patronus theme
       uses !important on .btn-style selectors, so we must too. */
    appearance: none; -webkit-appearance: none;
    margin: 0 0 0 auto;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: var(--bh-ff-body) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 16px !important;
    min-height: 48px !important;
    background: transparent !important;
    color: var(--bh-c-ink-soft) !important;
    border: 1.5px solid var(--bh-c-line) !important;
    border-radius: 12px !important;
    cursor: pointer; line-height: 1.2;
    transition: background .15s, color .15s, border-color .15s;
}
.bh-filter__reset:hover {
    background: #fff !important;
    color: var(--bh-c-ink) !important;
    border-color: var(--bh-c-leaf-soft) !important;
}
.bh-filter__reset svg { color: var(--bh-c-ink-faint); }

/* Category chips section */
.bh-filter__cats {
    margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--bh-c-line-soft);
    display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.bh-filter__catshead {
    flex: 0 0 auto;
    font-family: var(--bh-ff-serif); font-size: 12px; font-weight: 600;
    color: var(--bh-c-ink-soft); letter-spacing: 0.06em;
    text-transform: uppercase; padding-top: 9px;
}
.bh-filter__chips {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-wrap: wrap; gap: 7px;
}

.bh-filter__chip {
    /* Hard reset — block any theme button/label styles from interfering.
       impacto-patronus theme uses !important on .btn-* selectors. */
    appearance: none; -webkit-appearance: none;
    margin: 0;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
    font-family: var(--bh-ff-body) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    /* Layout */
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px !important;
    background: #fff !important;
    color: var(--bh-c-ink) !important;
    border: 1.5px solid var(--bh-c-line) !important;
    border-radius: 999px !important;
    cursor: pointer;
    transition: all .15s; user-select: none;
    min-height: 36px !important;
}
.bh-filter__chip input {
    position: absolute; opacity: 0; pointer-events: none;
    width: 0; height: 0; margin: 0;
}
.bh-filter__chip .bh-catico { color: var(--bh-c-leaf); flex-shrink: 0; }
.bh-filter__chip-text { white-space: nowrap; }
.bh-filter__chip:hover {
    border-color: var(--bh-c-leaf-soft);
    color: var(--bh-c-leaf-deep) !important;
}
.bh-filter__chip:has(input:checked) {
    background: var(--bh-c-leaf) !important;
    border-color: var(--bh-c-leaf);
    color: #fff !important;
    font-weight: 600 !important;
}
.bh-filter__chip:has(input:checked) .bh-catico { color: #fff; }
.bh-filter__chip:has(input:checked):hover {
    background: var(--bh-c-leaf-deep) !important;
    border-color: var(--bh-c-leaf-deep);
}

/* ============================================================
   MAP (hlavná stránka)
   ============================================================ */

.bh-map-wrap { margin-bottom: 20px; position: relative; }
.bh-map {
    width: 100%; height: 720px;
    border-radius: var(--bh-radius-lg); overflow: hidden;
    box-shadow: var(--bh-shadow);
    border: 1px solid var(--bh-c-line);
}

/* ─── Smart-positioned map popup (next to pin, side chosen to fit) ─── */
.bh-map-popup {
    position: absolute;
    /* top/left are set by JS in showMapPopup → positionPopup */
    top: 0; left: 0;
    width: 320px;
    background: #fff;
    border-radius: var(--bh-radius);
    box-shadow: var(--bh-shadow-lg);
    z-index: 1000;
    /* Fade-in + smooth re-position when hovering between markers */
    opacity: 0;
    transition: opacity .15s ease, top .22s ease, left .22s ease;
    pointer-events: none;
}
.bh-map-popup--show {
    opacity: 1;
    pointer-events: auto;
}
.bh-map-popup[hidden] { display: none; }

/* Inner card stays rounded; ::after is the tail */
.bh-map-popup > .bh-popup { border-radius: var(--bh-radius); overflow: hidden; }

/* Tail / arrow indicator */
.bh-map-popup::after {
    content: "";
    position: absolute;
    width: 0; height: 0;
    border-style: solid;
    filter: drop-shadow(0 2px 2px rgba(28,31,29,.10));
}
.bh-map-popup[data-bh-pos="top"]::after {
    bottom: -10px;
    left: var(--bh-arrow-x, 50%);
    margin-left: -10px;
    border-width: 10px 10px 0 10px;
    border-color: #fff transparent transparent transparent;
}
.bh-map-popup[data-bh-pos="bottom"]::after {
    top: -10px;
    left: var(--bh-arrow-x, 50%);
    margin-left: -10px;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #fff transparent;
}
.bh-map-popup[data-bh-pos="left"]::after {
    right: -10px;
    top: var(--bh-arrow-y, 50%);
    margin-top: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}
.bh-map-popup[data-bh-pos="right"]::after {
    left: -10px;
    top: var(--bh-arrow-y, 50%);
    margin-top: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}

.bh-map-popup__close {
    position: absolute; top: 8px; right: 8px;
    z-index: 5;
    background: rgba(255,255,255,.92);
    border: 0; border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--bh-c-ink-soft);
    backdrop-filter: blur(4px);
    transition: background .15s, color .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.bh-map-popup__close:hover { background: #fff; color: var(--bh-c-ink); }
.bh-map-popup__pin-indicator {
    position: absolute; top: 8px; left: 8px;
    background: var(--bh-c-leaf);
    color: #fff;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: none;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.bh-map-popup--pinned .bh-map-popup__pin-indicator { display: block; }

/* Override Leaflet's default attribution style to be more discreet */
.leaflet-control-attribution { font-size: 10px; opacity: 0.85; }

/* Custom pins */
.bh-pin { transition: transform .18s ease, filter .25s ease; background: transparent !important; border: 0 !important; }
.bh-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); overflow: visible; }
.bh-pin--hover, .bh-pin:hover { transform: translateY(-3px) scale(1.08); z-index: 9999 !important; }

/* Marker cluster restyle to match palette */
.marker-cluster-small  { background: rgba(232,240,234,.7); }
.marker-cluster-small div  { background: rgba(45,95,63,.85); color:#fff; font-weight:600; }
.marker-cluster-medium { background: rgba(217,185,106,.5); }
.marker-cluster-medium div { background: rgba(184,137,59,.92); color:#fff; font-weight:700; }
.marker-cluster-large  { background: rgba(184,137,59,.5); }
.marker-cluster-large div  { background: rgba(138,99,19,.95); color:#fff; font-weight:700; }
.marker-cluster        { font-family: var(--bh-ff-serif); }

/* ============================================================
   POPUP — rich card (used inside .bh-map-popup overlay)
   ============================================================ */

.bh-popup { width: 100%; font-family: var(--bh-ff-body); }
.bh-popup__media {
    height: 140px;
    background-size: cover; background-position: center;
    background-color: var(--bh-c-leaf-tint);
}
.bh-popup__award {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(90deg, var(--bh-c-gold-tint), var(--bh-c-cream-warm));
    border-bottom: 1px solid var(--bh-c-line-soft);
}
.bh-popup__award-medal svg { display: block; }
.bh-popup__award-text {
    font-family: var(--bh-ff-serif); font-weight: 600; font-size: 13px;
    color: var(--bh-c-gold-deep); letter-spacing: 0.02em;
}
.bh-popup__body { padding: 12px 14px 14px; }
.bh-popup__title {
    font-family: var(--bh-ff-serif); font-size: 18px; font-weight: 600;
    color: var(--bh-c-ink); margin: 0 0 4px; line-height: 1.25;
}
.bh-popup__sub {
    font-size: 12px; color: var(--bh-c-ink-soft); font-style: italic;
    margin: 0 0 8px;
}
.bh-popup__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.bh-popup__meta {
    display: flex; flex-direction: column; gap: 5px;
    margin: 10px 0 12px; padding-top: 10px; border-top: 1px solid var(--bh-c-line-soft);
}
.bh-popup__meta-row {
    display: flex; align-items: flex-start; gap: 7px;
    font-size: 12.5px; color: var(--bh-c-ink-soft);
}
.bh-popup__meta-row svg { color: var(--bh-c-leaf); flex-shrink: 0; margin-top: 2px; }
.bh-popup__meta-row a { color: var(--bh-c-ink-soft); }
.bh-popup__meta-row a:hover { color: var(--bh-c-leaf); }
.bh-popup__actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   CARDS (zoznam hospodárov)
   ============================================================ */

.bh-list-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 14px; }
.bh-list-count {
    font-family: var(--bh-ff-serif); font-size: 26px; font-weight: 600;
    color: var(--bh-c-ink); line-height: 1;
}
.bh-list-count-label {
    font-size: 13px; color: var(--bh-c-ink-soft);
    letter-spacing: 0.04em; text-transform: lowercase;
}

.bh-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.bh-card {
    background: #fff;
    border: 1px solid var(--bh-c-line);
    border-radius: var(--bh-radius);
    overflow: hidden;
    box-shadow: var(--bh-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex; flex-direction: column;
}
.bh-card:hover, .bh-card--hovered {
    transform: translateY(-3px);
    box-shadow: var(--bh-shadow);
    border-color: var(--bh-c-leaf-soft);
}
.bh-card--highlight {
    box-shadow: 0 0 0 3px var(--bh-c-gold), var(--bh-shadow);
    animation: bh-pulse 1.2s ease-out;
}
@keyframes bh-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(184,137,59,.6), var(--bh-shadow); }
    100% { box-shadow: 0 0 0 12px rgba(184,137,59,0), var(--bh-shadow); }
}

.bh-card__media {
    height: 170px;
    background-size: cover; background-position: center;
    background-color: var(--bh-c-leaf-tint);
    position: relative;
}
.bh-card__media--placeholder {
    background-image:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.6), transparent 40%),
        linear-gradient(135deg, var(--bh-c-leaf-tint), var(--bh-c-cream-warm));
}
.bh-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.bh-card__head { display: flex; align-items: flex-start; gap: 8px; }
.bh-card__title {
    font-family: var(--bh-ff-serif); font-size: 19px; font-weight: 600;
    margin: 0; line-height: 1.25; flex: 1;
}
.bh-card__title a { color: var(--bh-c-ink); text-decoration: none; transition: color .15s; }
.bh-card__title a:hover { color: var(--bh-c-leaf); }
.bh-card__pin {
    background: var(--bh-c-leaf-tint); border: 0; border-radius: 6px;
    width: 30px; height: 30px; cursor: pointer; color: var(--bh-c-leaf);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.bh-card__pin:hover { background: var(--bh-c-leaf); color: #fff; }
.bh-card__subtitle {
    font-size: 13px; color: var(--bh-c-ink-soft); font-style: italic;
    margin-top: -2px;
}
.bh-card__cats {
    font-size: 11.5px; color: var(--bh-c-ink-faint);
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.bh-card__excerpt {
    margin: 0; font-size: 14px; line-height: 1.55; color: var(--bh-c-ink-soft);
}

.bh-empty {
    color: var(--bh-c-ink-soft); font-style: italic; font-family: var(--bh-ff-serif);
    padding: 30px; text-align: center; grid-column: 1 / -1;
    background: var(--bh-c-cream); border-radius: var(--bh-radius);
}

/* ============================================================
   SINGLE PAGE
   ============================================================ */

.bh-single { color: var(--bh-c-ink); }
.bh-h2 {
    font-family: var(--bh-ff-serif); font-size: 26px; font-weight: 600;
    color: var(--bh-c-ink); margin: 36px 0 18px; line-height: 1.2;
    position: relative; padding-bottom: 10px;
}
.bh-h2::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 50px; height: 3px; background: var(--bh-c-gold); border-radius: 2px;
}

/* Hero with image overlay */
.bh-hero {
    position: relative; padding: 36px 24px 28px;
    background: var(--bh-c-cream); border-radius: 0;
    margin-bottom: 30px;
    overflow: hidden;
}
.bh-hero--has-image::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--bh-hero-img);
    background-size: cover; background-position: center;
    opacity: 0.20; filter: saturate(0.85);
}
.bh-hero--has-image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(250,250,246,.55) 0%, var(--bh-c-cream) 100%);
}
.bh-hero__inner {
    position: relative; z-index: 2;
    max-width: 1100px; margin: 0 auto;
}
.bh-crumbs {
    font-size: 13px; color: var(--bh-c-ink-soft);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.bh-crumbs a { color: var(--bh-c-leaf); text-decoration: none; font-weight: 600; }
.bh-crumbs a:hover { text-decoration: underline; }
.bh-crumbs span[aria-hidden] { color: var(--bh-c-ink-faint); }
.bh-hero__award {
    position: absolute; top: 0; right: 0; z-index: 3;
}
.bh-hero__title {
    font-family: var(--bh-ff-serif); font-weight: 700; font-size: clamp(28px, 4vw, 44px);
    color: var(--bh-c-ink); margin: 0 0 6px; line-height: 1.1; letter-spacing: -0.01em;
}
.bh-hero__subtitle {
    font-family: var(--bh-ff-serif); font-style: italic; font-size: clamp(15px, 1.4vw, 18px);
    color: var(--bh-c-ink-soft); margin: 0 0 14px; line-height: 1.5;
}
.bh-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.bh-single__container { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; }
.bh-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 900px) {
    .bh-single__layout { grid-template-columns: 1fr; gap: 28px; }
    .bh-hero__award { position: static; margin-bottom: 16px; }
}

.bh-prose {
    font-size: 16px; line-height: 1.7; color: var(--bh-c-ink);
}
.bh-prose p { margin: 0 0 16px; }
.bh-prose a { color: var(--bh-c-leaf); text-decoration: underline; text-underline-offset: 2px; }

/* Sidebar */
.bh-single__sidebar {
    display: flex; flex-direction: column; gap: 18px;
    position: sticky; top: 20px;
}
@media (max-width: 900px) { .bh-single__sidebar { position: static; } }

.bh-card-info {
    background: #fff; border: 1px solid var(--bh-c-line);
    border-radius: var(--bh-radius); padding: 0; overflow: hidden;
    box-shadow: var(--bh-shadow-sm);
}
.bh-card-info--map { padding: 0; }
.bh-card-info__title {
    font-family: var(--bh-ff-serif); font-size: 15px; font-weight: 600;
    color: var(--bh-c-ink); margin: 0; padding: 14px 16px 0;
    letter-spacing: 0.02em;
}
.bh-card-info > :not(.bh-single__map):not(.bh-coords):not(.bh-btn) { padding-left: 16px; padding-right: 16px; }
.bh-card-info > :last-child { padding-bottom: 16px; }
.bh-card-info--map > .bh-btn { margin: 0 16px 16px; }

.bh-single__map {
    width: 100%; height: 240px;
    border-bottom: 1px solid var(--bh-c-line-soft);
}

.bh-coords {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    background: var(--bh-c-cream); border-bottom: 1px solid var(--bh-c-line-soft);
    font-size: 12px;
}
.bh-coords__label {
    font-family: var(--bh-ff-serif); font-weight: 700; color: var(--bh-c-ink-soft);
    letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px;
}
.bh-coords__val {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--bh-c-ink); font-size: 12px;
    background: transparent; padding: 0;
}

/* Key-value list (kontakt) */
.bh-kv { margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.bh-kv dt {
    font-family: var(--bh-ff-serif); font-weight: 600; font-size: 12px;
    color: var(--bh-c-ink-faint); letter-spacing: 0.04em; text-transform: uppercase;
    align-self: start; padding-top: 2px;
}
.bh-kv dd { margin: 0; font-size: 14px; color: var(--bh-c-ink); }
.bh-kv dd a { color: var(--bh-c-leaf); text-decoration: none; }
.bh-kv dd a:hover { text-decoration: underline; }

/* Opening hours table */
.bh-hours { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
.bh-hours th {
    text-align: left; font-family: var(--bh-ff-serif); font-weight: 600;
    padding: 4px 8px 4px 0; color: var(--bh-c-ink); width: 42%;
}
.bh-hours td { padding: 4px 0; color: var(--bh-c-ink-soft); }
.bh-hours__note {
    font-size: 12.5px; color: var(--bh-c-ink-faint); margin: 8px 0 0;
    font-style: italic;
}

/* Gallery */
.bh-single__gallery .bh-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.bh-gallery__item {
    aspect-ratio: 4/3; overflow: hidden;
    border-radius: var(--bh-radius); background: var(--bh-c-leaf-tint);
    display: block; cursor: zoom-in;
    box-shadow: var(--bh-shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.bh-gallery__item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .4s ease;
}
.bh-gallery__item:hover { transform: translateY(-2px); box-shadow: var(--bh-shadow); }
.bh-gallery__item:hover img { transform: scale(1.06); }

/* Similar farms */
.bh-similar__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.bh-similar__card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--bh-c-line);
    border-radius: var(--bh-radius); overflow: hidden;
    text-decoration: none; color: inherit;
    box-shadow: var(--bh-shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bh-similar__card:hover {
    transform: translateY(-3px); box-shadow: var(--bh-shadow);
    border-color: var(--bh-c-leaf-soft);
}
.bh-similar__media {
    height: 130px; background-size: cover; background-position: center;
    background-color: var(--bh-c-leaf-tint); position: relative;
}
.bh-similar__award { position: absolute; top: 8px; right: 8px; }
.bh-similar__body { padding: 12px 14px 14px; }
.bh-similar__title {
    font-family: var(--bh-ff-serif); font-size: 16px; font-weight: 600;
    margin: 0 0 4px; color: var(--bh-c-ink); line-height: 1.3;
}
.bh-similar__sub { margin: 0 0 6px; font-size: 12.5px; color: var(--bh-c-ink-soft); font-style: italic; }
.bh-similar__dist {
    display: inline-block; padding: 2px 8px;
    background: var(--bh-c-leaf-tint); color: var(--bh-c-leaf-deep);
    border-radius: 999px; font-size: 11px; font-weight: 600;
    letter-spacing: 0.04em;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.bh-lb {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(28,31,29,.94);
    display: flex; align-items: center; justify-content: center;
    padding: 30px;
}
.bh-lb[hidden] { display: none; }
.bh-lb__img {
    max-width: 100%; max-height: 100%;
    border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.bh-lb__close, .bh-lb__nav {
    position: absolute; background: rgba(255,255,255,.1); color: #fff;
    border: 0; cursor: pointer; transition: background .15s;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.bh-lb__close {
    top: 20px; right: 20px;
    width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1;
}
.bh-lb__nav {
    top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px; border-radius: 50%; font-size: 32px; line-height: 1;
}
.bh-lb__nav--prev { left: 20px; }
.bh-lb__nav--next { right: 20px; }
.bh-lb__close:hover, .bh-lb__nav:hover { background: rgba(255,255,255,.22); }

/* ============================================================
   Award badge — Krajina živá logo image
   ============================================================ */
.bh-award-img {
    display: block;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
}
.bh-award-img--large {
    filter: drop-shadow(0 6px 14px rgba(184,137,59,.25));
}
.bh-award-img--medium { filter: drop-shadow(0 2px 6px rgba(28,31,29,.12)); }
.bh-award-img--small  { filter: drop-shadow(0 1px 3px rgba(28,31,29,.10)); }

/* Award marker (PNG circle) — subtle golden glow + lift on hover */
.bh-pin--award {
    border-radius: 50% !important;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.30)) drop-shadow(0 0 4px rgba(217,185,112,.45));
    transition: transform .18s ease, filter .25s ease;
}
.bh-pin--award:hover {
    transform: translateY(-3px) scale(1.08);
    z-index: 9999 !important;
}

/* Popup award medal img (replaces old SVG) */
.bh-popup__medal-img {
    display: block;
    border-radius: 50%;
}

/* ============================================================
   MOBILE RESPONSIVE — overrides for narrow viewports

   Host theme (impacto-patronus) constrains `.content_wrap` to a narrow
   width on mobile (~280px on a 430px viewport — 35% of screen lost to
   margins). We defeat this with a viewport-relative break-out trick.
   ============================================================ */

/* Tablet (≤900px): shorter map, smaller similar-farm grid */
@media (max-width: 900px) {
    .bh-map { height: 560px; }
    .bh-similar__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Small tablet / large phone (≤768px) */
@media (max-width: 768px) {
    .bh-map { height: 480px; }
    .bh-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
    .bh-card__media { height: 160px; }
    .bh-h2 { font-size: 24px; margin: 28px 0 14px; }
}

/* Phone (≤600px) — compact filter, single-column cards, full-viewport break-out */
@media (max-width: 600px) {

    /* ─── BREAK-OUT: extend plugin sections to full viewport width ─── */
    /* Theme constrains .content_wrap to ~280px on mobile. We escape this
       with `width: 100vw + negative margin = (100% − 100vw) / 2` which lands
       us flush with the viewport edges, then a small inset for tidiness. */
    .bh-filter,
    .bh-map-wrap,
    .bh-list-wrap {
        box-sizing: border-box !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        margin-left:  calc((100% - 100vw) / 2 + 8px) !important;
        margin-right: calc((100% - 100vw) / 2 + 8px) !important;
    }

    /* ─── COMPACT FILTER ─── 3 rows max:
         Row 1: [🔍 search input...........................] [↻]
         Row 2: [📍 — všetky — ▾]   [○ iba ocenené          ]
         Row 3: [chip] [chip] [chip] [chip] [chip] (wrapped)
    */
    .bh-filter {
        padding: 12px !important;
        border-radius: 12px;
    }
    .bh-filter__row {
        display: grid !important;
        grid-template-columns: 1fr 44px;
        grid-template-rows: auto auto;
        gap: 8px !important;
        align-items: center;
    }
    /* Hide labels on mobile — input icons are self-explanatory */
    .bh-filter__label { display: none !important; }

    /* Search input: row 1, col 1 */
    .bh-filter__group--search {
        grid-column: 1 / 2; grid-row: 1; width: auto !important;
    }
    .bh-filter__input { min-height: 44px !important; padding: 10px 14px 10px 42px !important; font-size: 14px !important; }
    .bh-filter__input-icon { left: 12px; }
    .bh-filter__input::placeholder { font-size: 13px; }

    /* Reset: row 1, col 2 — square icon-only button */
    .bh-filter__reset {
        grid-column: 2 / 3; grid-row: 1;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        justify-content: center;
        font-size: 0 !important; /* hide "Vyčistiť" text */
        gap: 0 !important;
    }
    .bh-filter__reset svg {
        width: 18px; height: 18px;
        color: var(--bh-c-ink-soft);
    }

    /* Location select: row 2, col 1 */
    .bh-filter__group--loc {
        grid-column: 1 / 2; grid-row: 2; width: auto !important;
    }
    .bh-filter__select { min-height: 44px !important; padding: 10px 38px 10px 42px !important; font-size: 14px !important; }

    /* Award toggle: row 2, col 2 — but expanded to row span if needed */
    .bh-filter__group--toggle {
        grid-column: 2 / 3; grid-row: 2;
        justify-self: end;
        padding: 0 !important;
        align-self: center;
    }
    /* Hide toggle's label text on very narrow screens — keep just the switch */
    .bh-filter__toggle { gap: 0 !important; padding: 0 !important; }
    .bh-filter__toggle-label { display: none !important; }

    /* Categories: row 3, full width */
    .bh-filter__cats {
        grid-column: 1 / -1; grid-row: 3;
        flex-direction: row !important;
        flex-wrap: wrap;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid var(--bh-c-line-soft);
        gap: 6px;
    }
    /* Hide "PRODUKTY" header on mobile — chips are clearly visible */
    .bh-filter__catshead { display: none !important; }
    .bh-filter__chips {
        gap: 6px !important;
        width: 100%;
    }
    .bh-filter__chip {
        padding: 6px 11px !important;
        min-height: 32px !important;
        font-size: 12.5px !important;
        gap: 5px !important;
    }
    .bh-filter__chip .bh-catico { width: 13px; height: 13px; }

    /* ─── MAP & CARDS ─── */
    .bh-map { height: 440px; border-radius: 10px; }

    .bh-list { grid-template-columns: 1fr; gap: 12px; }
    .bh-list-count { font-size: 22px; }
    .bh-card__media { height: 180px; }
    .bh-card__body { padding: 12px 14px 14px; }
    .bh-card__title { font-size: 17px; }
    .bh-card__excerpt { font-size: 13.5px; }

    /* ─── SINGLE HOSPODÁR DETAIL PAGE ─── */
    .bh-single__container { padding: 0 14px 40px !important; max-width: 100% !important; }
    .bh-hero {
        padding: 24px 14px 20px;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left:  calc((100% - 100vw) / 2) !important;
        margin-right: calc((100% - 100vw) / 2) !important;
    }
    .bh-hero__title { font-size: clamp(22px, 6.5vw, 32px); }
    .bh-hero__subtitle { font-size: 14px; }
    .bh-h2 { font-size: 22px; margin: 24px 0 14px; }
    .bh-single__layout { gap: 22px; grid-template-columns: 1fr; }
    .bh-single__sidebar { position: static; }
    .bh-similar__grid { grid-template-columns: 1fr; gap: 12px; }
    .bh-similar__media { height: 160px; }
    .bh-single__gallery .bh-gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }

    /* Map popup: fits within map area */
    .bh-map-popup { width: calc(100% - 32px) !important; max-width: 300px !important; }
}

/* Compact phones (≤420px) */
@media (max-width: 420px) {
    .bh-map { height: 380px; }
    .bh-filter__chip {
        font-size: 11.5px !important;
        padding: 5px 9px !important;
        min-height: 30px !important;
    }
    .bh-card__media { height: 160px; }
    .bh-card__title { font-size: 16px; }
}
