/*
 * Stanovištia, úle, včelstvá, matky, nastavenia: doplnky nad pages.css (funkčné formuláre, filtre, mapa).
 * Len tokeny --hv-*; dotykové plochy >= 44 px.
 */

/* ---------- Hlásenia (flash) ---------- */
.hv-callout--ok {
    background: var(--hv-ok-bg);
    box-shadow: inset 0 0 0 1px rgb(4 120 87 / 25%);
}

/* ---------- Formuláre ---------- */
.hv-field__error {
    margin: 0;
    color: var(--hv-bad);
    font-size: var(--hv-text-sm);
    font-weight: 600;
}

.hv-field__help {
    color: var(--hv-ink-subtle);
    font-size: var(--hv-text-xs);
    font-weight: 400;
}

.hv-fieldset {
    display: flex;
    flex-direction: column;
    gap: var(--hv-space-2);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.hv-fieldset > legend {
    float: none;
    width: auto;
    margin: 0 0 var(--hv-space-1);
    padding: 0;
    color: var(--hv-stone-700);
    font-size: 13px;
    font-weight: 600;
}

.hv-check {
    display: flex;
    align-items: center;
    gap: var(--hv-space-3);
    min-height: 44px;
    font-weight: 500;
}

.hv-check input {
    flex: none;
    width: 20px;
    height: 20px;
    accent-color: var(--hv-ink);
}

.hv-form-errors {
    display: flex;
    flex-direction: column;
    gap: var(--hv-space-2);
}

/* ---------- Filtre ako odkazy ---------- */
.hv a.hv-pill {
    text-decoration: none;
}

.hv a.hv-pill[aria-current='true'] {
    background: var(--hv-ink);
    box-shadow: none;
    color: #fff;
    font-weight: 600;
}

.hv a.hv-year-chip {
    text-decoration: none;
    color: inherit;
}

.hv-year-chip[aria-current='true'] {
    background: var(--hv-ink);
    color: #fff;
}

.hv-searchbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--hv-space-2);
}

.hv-searchbar .hv-input {
    flex: 1 1 220px;
    width: auto;
    min-height: 44px;
}

/* ---------- Bočný panel: používateľ ---------- */
.hv-side__user {
    display: flex;
    align-items: center;
    gap: var(--hv-space-2);
}

.hv-side__user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    margin: 0;
}

.hv-account {
    display: flex;
    align-items: center;
    gap: var(--hv-space-3);
}

.hv-side__user-name {
    color: var(--hv-ink);
    font-size: var(--hv-text-sm);
    font-weight: 600;
}

.hv-side__foot a {
    color: var(--hv-accent-ink);
}

/* ---------- Tabuľka úľov: akcie v riadku ---------- */
.hv-hive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hv-space-2);
}

/* ---------- Detail včelstva ---------- */
.hv-lifecycle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hv-space-2);
}

.hv-queen-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--hv-space-2);
}

/* ---------- Nastavenia ---------- */
.hv-settings-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hv-space-3);
    padding: var(--hv-space-3) var(--hv-space-4);
}

.hv-settings-lang .hv-lang a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.hv-inline-form {
    display: inline;
    margin: 0;
}

.hv-btn-link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hv-accent-ink);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Výber polohy na mape (formulár stanovišťa) ---------- */
.hv-map-tools {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hv-space-2);
}

.hv-map-tools .hv-input {
    flex: 1 1 220px;
    width: auto;
}

.hv-map-picker {
    isolation: isolate;
    height: clamp(260px, 42vh, 420px);
    border-radius: var(--hv-radius-md);
    background: var(--hv-stone-200);
    box-shadow: var(--hv-ring);
    overflow: hidden;
}

.hv-map-picker .leaflet-container {
    font: inherit;
}

.hv-map-status {
    min-height: 1.4em;
    margin: 0;
    font-size: var(--hv-text-sm);
}

.hv-btn[hidden] {
    display: none;
}

/* Značka polohy: kvapka v farbe akcentu. */
.hv-map-pin {
    background: none;
    border: 0;
}

.hv-map-pin span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    background: var(--hv-accent);
    box-shadow: 0 0 0 3px var(--hv-surface), 0 3px 8px rgb(0 0 0 / 35%);
    transform: rotate(-45deg);
}

.hv-map-pin span::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--hv-ink);
}

/* ---------- Stojany a palety včelnice ---------- */
.hv-stands {
    display: flex;
    flex-direction: column;
    gap: var(--hv-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hv-stand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--hv-space-2);
    margin: 0;
}

.hv-stand .hv-input {
    flex: 1 1 200px;
    width: auto;
}

.hv-stand--new {
    padding-top: var(--hv-space-3);
    border-top: 1px solid var(--hv-line-soft);
}

.hv-map-pin--ok span {
    background: var(--hv-ok);
}

.hv-map-pin--warn span {
    background: var(--hv-warn);
}

.hv-map-pin--bad span {
    background: var(--hv-bad);
}

.hv-map-pin--idle span {
    background: var(--hv-stone-500);
}

.hv-map-label {
    padding: 2px 8px;
    border: 0;
    border-radius: var(--hv-radius-pill);
    background: var(--hv-surface);
    box-shadow: var(--hv-shadow-card);
    color: var(--hv-ink);
    font-size: 13px;
    font-weight: 700;
}

.hv-map-label::before {
    display: none;
}
