/* ═══════════════════════════════════════════════════════════════
   ŽVEJYBOS PROGNOZĖ – home.css
   Pagrindinio puslapio (index.php) dizainas. Kraunamas TIK ten, po style.css; viskas
   prasideda `body.home`, todėl kitų puslapių išvaizda nesikeičia. Viršutinė navigacija
   (.header, includes/site-nav.php) NELIEČIAMA.
   ═══════════════════════════════════════════════════════════════ */

body.home {
    --hm-bg:        #eef5fc;
    --hm-bg-2:      #e6f0fb;
    --hm-panel:     #ffffff;
    --hm-soft:      #eef4fc;
    --hm-line:      #dbe6f3;
    --hm-ink:       #0b2545;
    --hm-ink-2:     #3d587c;
    --hm-muted:     #6a84a1;
    --hm-blue:      #1f6feb;
    --hm-blue-d:    #1558c8;
    --hm-blue-soft: #e4eefc;
    --hm-green:     #16a34a;
    --hm-lime:      #65a30d;
    --hm-orange:    #f08c1a;
    --hm-red:       #e5484d;
    --hm-shadow:    0 1px 2px rgba(18, 52, 102, .05), 0 10px 28px rgba(18, 52, 102, .07);
    --hm-radius:    18px;
    background: var(--hm-bg);
    color: var(--hm-ink);
}
html:not([data-theme="light"]) body.home {
    --hm-bg:        #08142a;
    --hm-bg-2:      #0a1830;
    --hm-panel:     #0f2140;
    --hm-soft:      #13294d;
    --hm-line:      rgba(148, 197, 255, .16);
    --hm-ink:       #eaf3ff;
    --hm-ink-2:     #b6cdea;
    --hm-muted:     #86a2c4;
    --hm-blue:      #4a90ff;
    --hm-blue-d:    #6aa5ff;
    --hm-blue-soft: rgba(74, 144, 255, .16);
    --hm-shadow:    0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
}

body.home .home-main [id] { scroll-margin-top: calc(var(--header-height) + 14px); }
body.home .home-wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
body.home .hi { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }

/* ───────── Hero ───────── */
body.home .home-hero {
    position: relative;
    padding: calc(var(--header-height) + 44px) 0 118px;
    background: linear-gradient(180deg, #dcecfb 0%, #eef5fc 100%);
    overflow: hidden;
    min-height: 0;
}
html:not([data-theme="light"]) body.home .home-hero { background: linear-gradient(180deg, #0b1d3a 0%, #08142a 100%); }
body.home .home-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 55%; opacity: 0; }
body.home .home-hero.has-photo .home-hero-bg { opacity: 1; background-image: var(--hero-img); }
body.home .home-hero.has-photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(6, 22, 48, .78) 0%, rgba(6, 22, 48, .55) 46%, rgba(6, 22, 48, .15) 100%),
                linear-gradient(180deg, rgba(6, 22, 48, .25) 0%, rgba(6, 22, 48, 0) 40%);
}
body.home .home-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 36px; align-items: center; }
body.home .home-kicker { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--hm-blue); margin: 0 0 14px; }
body.home .home-hero-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: var(--hm-ink); margin: 0 0 16px; max-width: 12em; }
body.home .home-hero-sub { font-size: 1.08rem; line-height: 1.6; color: var(--hm-ink-2); margin: 0 0 26px; max-width: 34em; }
body.home .home-hero.has-photo .home-kicker { color: #8fd0ff; }
body.home .home-hero.has-photo .home-hero-title { color: #fff; }
body.home .home-hero.has-photo .home-hero-sub { color: rgba(255, 255, 255, .88); }

body.home .home-search { display: flex; gap: 10px; align-items: stretch; max-width: 600px; margin: 0 0 18px; flex-wrap: nowrap; }
body.home .home-search .custom-select { flex: 1; min-width: 0; width: auto; }
body.home .home-search .select-trigger {
    height: 100%; min-height: 52px; padding: 0 16px; background: #fff; border: 1px solid var(--hm-line);
    border-radius: 12px; box-shadow: 0 4px 14px rgba(18, 52, 102, .1); backdrop-filter: none; -webkit-backdrop-filter: none; gap: 10px;
}
body.home .home-search .select-trigger:hover,
body.home .home-search .custom-select[aria-expanded="true"] .select-trigger { border-color: var(--hm-blue); box-shadow: 0 0 0 3px rgba(31, 111, 235, .15); background: #fff; }
body.home .home-search .select-trigger-icon { color: var(--hm-blue); width: 1.25em; height: 1.25em; }
body.home .home-search .select-trigger-text { color: #0b2545; font-size: .98rem; font-weight: 500; }
body.home .home-search .select-trigger-text.placeholder { color: #6a84a1; }
body.home .home-search .select-arrow { color: #6a84a1; }
html:not([data-theme="light"]) body.home .home-search .select-trigger { background: #0f2140; border-color: rgba(148, 197, 255, .22); }
html:not([data-theme="light"]) body.home .home-search .select-trigger-text { color: #eaf3ff; }

body.home .home-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; font-family: inherit; }
body.home .home-btn--primary { background: var(--hm-blue); color: #fff; padding: 0 22px; min-height: 52px; box-shadow: 0 6px 16px rgba(31, 111, 235, .32); }
body.home .home-btn--primary:hover { background: var(--hm-blue-d); transform: translateY(-1px); }
body.home .home-btn--sm { min-height: 38px; padding: 0 16px; font-size: .88rem; border-radius: 10px; box-shadow: none; }
body.home .home-btn--ghost { background: var(--hm-blue-soft); color: var(--hm-blue-d); }
body.home .home-btn--ghost:hover { background: var(--hm-blue); color: #fff; }
html:not([data-theme="light"]) body.home .home-btn--ghost { color: #bcd7ff; }
body.home .home-btn:focus-visible, body.home .home-chip:focus-visible, body.home .home-tab:focus-visible, body.home .home-panel-link:focus-visible { outline: 2px solid var(--hm-blue); outline-offset: 2px; }

body.home .home-popular { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--hm-ink-2); margin-bottom: 14px; }
body.home .home-popular-label { font-weight: 600; margin-right: 4px; }
body.home .home-chip { border: 1px solid var(--hm-line); background: #fff; color: var(--hm-ink); font: inherit; font-size: .86rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
body.home .home-chip:hover, body.home .home-chip.active { border-color: var(--hm-blue); color: var(--hm-blue); background: var(--hm-blue-soft); }
html:not([data-theme="light"]) body.home .home-chip { background: rgba(255, 255, 255, .06); }
body.home .home-hero.has-photo .home-popular, body.home .home-hero.has-photo .home-popular-label { color: rgba(255, 255, 255, .9); }
body.home .home-hero.has-photo .hero-suggest-lake-link { color: rgba(255, 255, 255, .85); }
body.home .hero-suggest-lake-link { margin: 0; background: none; border: 0; padding: 4px 0; font: inherit; font-size: .88rem; color: var(--hm-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
body.home .home-hero-credit { position: absolute; z-index: 2; right: 14px; bottom: 74px; font-size: .68rem; color: rgba(255, 255, 255, .7); margin: 0; max-width: 60%; text-align: right; }

/* „Šiandienos prognozė“ kortelė */
body.home .home-today { background: #fff; border: 1px solid var(--hm-line); border-radius: 20px; padding: 22px 24px 18px; box-shadow: 0 18px 44px rgba(10, 35, 80, .22); color: #0b2545; }
html:not([data-theme="light"]) body.home .home-today { background: #0f2140; color: #eaf3ff; }
body.home .home-today-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
body.home .home-today-lake { display: flex; align-items: center; gap: 6px; color: var(--hm-ink-2); font-size: .92rem; margin: 0 0 14px; }
body.home .home-today-lake .hi { color: var(--hm-blue); }
body.home .ht-lake-link { color: var(--hm-blue); font-weight: 600; text-decoration: none; }
body.home .ht-lake-link:hover { text-decoration: underline; }
body.home .ht-lake-link:not([href]) { color: inherit; font-weight: inherit; }
body.home .home-today-body { display: grid; grid-template-columns: 124px 1fr; gap: 20px; align-items: center; }
body.home .ht-ring { position: relative; width: 124px; height: 124px; }
body.home .ht-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
body.home .ht-ring-track { fill: none; stroke: var(--hm-blue-soft); stroke-width: 11; }
body.home .ht-ring-fill { fill: none; stroke: var(--hm-green); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .8s ease, stroke .3s; }
body.home .ht-ring[data-cls="rating-excellent"] .ht-ring-fill { stroke: #16a34a; }
body.home .ht-ring[data-cls="rating-good"] .ht-ring-fill { stroke: #4caf50; }
body.home .ht-ring[data-cls="rating-average"] .ht-ring-fill { stroke: #f0b323; }
body.home .ht-ring[data-cls="rating-poor"] .ht-ring-fill { stroke: #f08c1a; }
body.home .ht-ring[data-cls="rating-bad"] .ht-ring-fill { stroke: #e5484d; }
body.home .ht-ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 800; }
body.home .ht-list { margin: 0; display: grid; gap: 9px; }
body.home .ht-list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; }
body.home .ht-list dt { display: flex; align-items: center; gap: 8px; color: var(--hm-muted); }
body.home .ht-list dt .hi { color: var(--hm-blue); }
body.home .ht-list dd { margin: 0; font-weight: 700; white-space: nowrap; }
body.home .ht-rating { margin: 14px 0 0; text-align: center; font-weight: 700; font-size: .92rem; padding: 7px 12px; border-radius: 999px; background: var(--hm-blue-soft); color: var(--hm-blue-d); }
body.home .ht-rating[data-cls="rating-excellent"], body.home .ht-rating[data-cls="rating-good"] { background: #e3f6e9; color: #14763a; }
body.home .ht-rating[data-cls="rating-average"] { background: #fdf3d3; color: #8a6406; }
body.home .ht-rating[data-cls="rating-poor"] { background: #fde9d4; color: #a35a0b; }
body.home .ht-rating[data-cls="rating-bad"] { background: #fde3e4; color: #b3262b; }
body.home .ht-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--hm-blue-soft); color: var(--hm-blue-d); font-weight: 600; font-size: .88rem; text-decoration: none; }
body.home .ht-link:hover { background: var(--hm-blue); color: #fff; }

/* ───────── Turinio korpusas ───────── */
body.home .home-body { position: relative; z-index: 3; margin-top: 0; padding-bottom: 12px; background: transparent; }
body.home .home-section { padding: 0; margin: 0; }
body.home .home-section + .home-section { margin-top: 22px; }
body.home .home-sec-head { margin: 28px 0 16px; }
body.home .home-sec-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; margin: 0 0 4px; color: var(--hm-ink); }
body.home .home-sec-sub { color: var(--hm-ink-2); margin: 0; font-size: .98rem; }

body.home .home-panel { background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 22px 24px; box-shadow: var(--hm-shadow); min-width: 0; }
body.home .home-section .home-panel + .home-panel, body.home .home-row + .home-panel, body.home .home-panel + .home-row { margin-top: 20px; }
body.home .home-row > .home-panel { margin-top: 0; }
body.home .home-row { display: grid; gap: 20px; margin-top: 20px; align-items: stretch; }
body.home .home-row--forecast { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-top: 0; }
body.home .home-row--map { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
body.home .home-row--catches { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
body.home .home-row--weekend { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
body.home .home-row--single { grid-template-columns: minmax(0, 1fr); }
body.home .home-panel-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
body.home .home-panel-head--weather { align-items: center; }
body.home .home-panel-titles { flex: 1; min-width: 0; }
body.home .home-panel-title { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--hm-ink); line-height: 1.25; }
body.home .home-panel-head > .home-panel-title { flex: 1; }
body.home .home-panel-sub { margin: 3px 0 0; font-size: .86rem; color: var(--hm-muted); }
body.home .home-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--hm-blue-soft); color: var(--hm-blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
body.home .home-ico .hi { width: 20px; height: 20px; }
body.home .home-ico--lg { width: 48px; height: 48px; }
body.home .home-ico--lg .hi { width: 24px; height: 24px; }
body.home .home-panel-link { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; font-weight: 600; color: var(--hm-blue); text-decoration: none; white-space: nowrap; margin-left: auto; }
body.home .home-panel-link:hover { text-decoration: underline; }
body.home .home-note { margin: 12px 0 0; font-size: .78rem; color: var(--hm-muted); }
body.home .update-info { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--hm-ink-2); background: var(--hm-soft); border: 1px solid var(--hm-line); padding: 7px 14px; border-radius: 999px; }
body.home .update-info .update-icon { width: 15px; height: 15px; color: var(--hm-blue); }

/* ───────── Oro sąlygos (10 kortelių) ───────── */
body.home .weather-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
body.home .weather-card, body.home .weather-card.glass-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 12px 16px;
    background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: 14px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    min-height: 168px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
body.home .weather-card::before { display: none; }
body.home .weather-card:hover { transform: translateY(-2px); border-color: #b9cfe9; box-shadow: var(--hm-shadow); }
body.home .weather-card-icon { width: 44px; height: 44px; margin: 0 0 8px; border-radius: 50%; background: var(--hm-blue-soft); color: var(--hm-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; line-height: 1; }
body.home .weather-card-icon .hi { width: 24px; height: 24px; }
body.home .weather-card-body { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 0; }
body.home .weather-value { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
body.home .weather-value--moon { font-size: 1.3rem; }
body.home .weather-unit { font-size: .95rem; font-weight: 600; color: var(--hm-ink-2); }
body.home .weather-label { font-size: .9rem; font-weight: 600; color: var(--hm-ink); margin-top: 2px; }
body.home .weather-desc { font-size: .8rem; color: var(--hm-muted); min-height: 1.2em; line-height: 1.3; }
body.home .weather-trend { font-weight: 600; }
body.home .weather-card .weather-compass-icon { transition: transform .4s; }

/* ───────── Grafikas ───────── */
body.home .home-legend { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: -4px 0 8px; font-size: .8rem; color: var(--hm-ink-2); }
body.home .home-legend li { display: inline-flex; align-items: center; gap: 7px; }
body.home .lg { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
body.home .lg--bar { background: var(--hm-green); width: 10px; }
body.home .lg--temp { background: var(--hm-orange); height: 3px; border-radius: 2px; }
body.home .lg--wind { background: var(--hm-blue); height: 3px; border-radius: 2px; }
body.home .home-chart { position: relative; min-height: 220px; overflow-x: auto; overflow-y: visible; }
body.home .home-chart-inner { position: relative; min-width: 560px; }
body.home .home-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
body.home .home-chart-empty { color: var(--hm-muted); font-size: .9rem; padding: 40px 0; text-align: center; margin: 0; }
body.home .hc-grid { stroke: var(--hm-line); stroke-width: 1; }
body.home .hc-axis { fill: var(--hm-muted); font-size: 10.5px; font-family: inherit; }
body.home .hc-bar { fill: #7cc4a0; transition: opacity .15s; }
body.home .hc-bar.rating-excellent { fill: #34b67a; }
body.home .hc-bar.rating-good { fill: #6dc58a; }
body.home .hc-bar.rating-average { fill: #f0c24a; }
body.home .hc-bar.rating-poor { fill: #f2a24a; }
body.home .hc-bar.rating-bad { fill: #ee7b7e; }
body.home .hc-line-temp { fill: none; stroke: var(--hm-orange); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
body.home .hc-line-wind { fill: none; stroke: var(--hm-blue); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
body.home .hc-dot-temp { fill: #fff; stroke: var(--hm-orange); stroke-width: 2; }
body.home .hc-dot-wind { fill: #fff; stroke: var(--hm-blue); stroke-width: 2; }
body.home .hc-now { stroke: var(--hm-blue); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .7; }
body.home .hc-hit { fill: transparent; cursor: pointer; }
body.home .hc-tip { position: absolute; top: 4px; left: 0; pointer-events: none; z-index: 5; min-width: 150px; background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: 10px; box-shadow: var(--hm-shadow); padding: 9px 12px; font-size: .8rem; color: var(--hm-ink); transform: translateX(-50%); }
body.home .hc-tip strong { display: block; margin-bottom: 4px; font-size: .84rem; }
body.home .hc-tip span { display: flex; align-items: center; gap: 6px; line-height: 1.55; }
body.home .hc-tip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ───────── Savaitės prognozė ───────── */
body.home .home-panel--week { display: flex; flex-direction: column; }
body.home .home-panel--week .weekly-forecast-wrap { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; display: flex; flex-direction: column; flex: 1; }
body.home .weekly-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 16px; color: var(--hm-ink); display: flex; align-items: center; gap: 12px; }
body.home .weekly-title::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: var(--hm-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6feb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / 20px no-repeat; flex: none; }
body.home .weekly-forecast-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; overflow: visible; flex: 1; align-items: stretch; }
body.home .week-day-card, body.home .week-day-card.glass-card {
    display: flex; flex-direction: column; align-items: center; justify-content: space-around; gap: 6px; padding: 12px 3px; text-align: center; min-width: 0;
    background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: 12px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; flex: none; width: auto;
}
body.home .week-day-card:hover { transform: translateY(-2px); border-color: #b9cfe9; }
body.home .week-day-card.week-selected { border-color: var(--hm-blue); background: var(--hm-blue-soft); box-shadow: none; }
body.home .week-head { display: flex; flex-direction: column; gap: 1px; align-items: center; }
body.home .week-day-name { font-weight: 800; font-size: .78rem; color: var(--hm-ink); text-transform: none; letter-spacing: 0; white-space: nowrap; }
body.home .week-date { font-size: .72rem; color: var(--hm-muted); }
body.home .week-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
body.home .week-weather-icon { font-size: 1.5rem; line-height: 1.1; }
body.home .week-temp { font-size: .74rem; font-weight: 700; color: var(--hm-ink); white-space: nowrap; }
body.home .week-scores { display: flex; flex-direction: column; gap: 3px; width: 100%; align-items: center; }
body.home .week-score-row { display: flex; align-items: center; justify-content: center; gap: 3px; }
body.home .week-score-bar-track { display: none; }
body.home .week-fish-icon { font-size: .72rem; }
body.home .week-score-pct { font-size: .78rem; font-weight: 800; }

/* ───────── Prognozė pagal žuvų grupes ───────── */
body.home #home-groups .forecast-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 22px; }
body.home #home-groups .forecast-card, body.home #home-groups .forecast-card.glass-card { background: var(--hm-soft); border: 1px solid var(--hm-line); border-radius: 16px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.home .hourly-forecast-wrap { margin: 0; }


body.home .hour-chip { background: var(--hm-soft); border: 1px solid var(--hm-line); border-radius: 10px; box-shadow: none; }
body.home .hour-chip-now { border-color: var(--hm-blue); background: var(--hm-blue-soft); }

/* ───────── Žemėlapis ir populiarūs ežerai ───────── */
body.home .home-map-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
body.home .home-map-box { min-height: 290px; border-radius: 14px; overflow: hidden; border: 1px solid var(--hm-line); background: var(--hm-soft) linear-gradient(135deg, #dcebfa, #eaf3fc); position: relative; z-index: 0; }
body.home .home-map-box.is-fallback::after { content: attr(data-fallback); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--hm-muted); font-size: .9rem; padding: 20px; text-align: center; }
body.home .home-sub-title { font-size: .9rem; font-weight: 700; margin: 0 0 10px; color: var(--hm-ink-2); }
body.home .home-popular-list { display: flex; flex-direction: column; }
body.home .home-lake-rank { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
body.home .home-lake-rank li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid var(--hm-line); }
body.home .home-lake-rank li:last-child { border-bottom: 0; }
body.home .rank-n { width: 24px; height: 24px; border-radius: 50%; background: var(--hm-blue-soft); color: var(--hm-blue); font-size: .76rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
body.home .rank-name { font-weight: 600; color: var(--hm-ink); text-decoration: none; font-size: .92rem; }
body.home .rank-name:hover { color: var(--hm-blue); }
body.home .rank-pct { font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; }
body.home .home-lake-rank .rank-pct.rating-excellent, body.home .rating-excellent.rank-pct { color: #16a34a; }
body.home .rank-pct.rating-good { color: #3b9a4a; }
body.home .rank-pct.rating-average { color: #c28a0a; }
body.home .rank-pct.rating-poor { color: #d9780f; }
body.home .rank-pct.rating-bad { color: #d6383d; }
body.home .home-popular-list .home-btn { align-self: flex-start; margin-top: auto; }
body.home .lake-pop { font: inherit; }
body.home .leaflet-popup-content .lake-pop strong { display: block; font-size: .95rem; margin-bottom: 2px; }
body.home .home-pin { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--hm-blue); transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

/* ───────── Žuvų aktyvumas ───────── */
body.home .home-fish-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
body.home .home-fish { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 14px; background: var(--hm-soft); border: 1px solid var(--hm-line); border-radius: 14px; min-width: 0; }
body.home .fish-art { width: 100%; height: 62px; margin-bottom: 2px; }
body.home .fish-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
body.home .fish-name { font-weight: 700; font-size: .86rem; color: var(--hm-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.home .fish-pct { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
body.home .fish-pct.rating-excellent { color: #16a34a; }
body.home .fish-pct.rating-good { color: #3b9a4a; }
body.home .fish-pct.rating-average { color: #a16207; }
body.home .fish-pct.rating-poor { color: #c2410c; }
body.home .fish-pct.rating-bad { color: #d6383d; }
[data-theme="dark"] body.home .fish-pct.rating-excellent { color: #4ade80; }
[data-theme="dark"] body.home .fish-pct.rating-good { color: #86efac; }
[data-theme="dark"] body.home .fish-pct.rating-average { color: #fbbf24; }
[data-theme="dark"] body.home .fish-pct.rating-poor { color: #fb923c; }
[data-theme="dark"] body.home .fish-pct.rating-bad { color: #f87171; }
body.home .fish-bar { display: block; height: 6px; border-radius: 99px; background: var(--hm-blue-soft); overflow: hidden; }
html:not([data-theme="light"]) body.home .fish-bar { background: rgba(255, 255, 255, .1); }
body.home .fish-bar-fill { display: block; height: 100%; width: 0; background: #34b67a; border-radius: 99px; transition: width .8s ease; }
body.home .home-fish[data-cls="rating-good"] .fish-bar-fill { background: #6dc58a; }
body.home .home-fish[data-cls="rating-average"] .fish-bar-fill { background: #f0c24a; }
body.home .home-fish[data-cls="rating-poor"] .fish-bar-fill { background: #f2a24a; }
body.home .home-fish[data-cls="rating-bad"] .fish-bar-fill { background: #ee7b7e; }
body.home .home-insights { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.home .home-insights[hidden] { display: none; }
body.home .home-insights li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--hm-soft); border: 1px solid var(--hm-line); border-radius: 14px; }
body.home .ins-label { display: block; font-size: .76rem; color: var(--hm-muted); }
body.home .home-insights strong { font-size: .95rem; color: var(--hm-ink); }

/* ───────── Laimikiai ───────── */
body.home .home-catch-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.home .home-catch { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.home .catch-photo { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--hm-soft); margin-bottom: 6px; }
body.home .catch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
body.home .catch-photo:hover img { transform: scale(1.04); }
body.home .catch-weight { position: absolute; right: 8px; bottom: 8px; background: rgba(11, 37, 69, .82); color: #fff; font-weight: 700; font-size: .78rem; padding: 3px 9px; border-radius: 999px; }
body.home .catch-species { font-size: .95rem; color: var(--hm-ink); }
body.home .catch-meta { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--hm-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.home .catch-meta .hi { color: var(--hm-blue); width: 1em; height: 1em; }

body.home .home-catch-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--hm-blue-soft); color: var(--hm-blue-d); font-weight: 600; font-size: .9rem; text-decoration: none; }
body.home .home-catch-cta:hover { background: var(--hm-blue); color: #fff; }
body.home #laimikiai { display: flex; flex-direction: column; }
body.home #laimikiai .home-catch-grid { margin-bottom: 16px; }

/* ───────── Masalai ───────── */
body.home .home-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
body.home .home-tab { border: 0; background: var(--hm-soft); color: var(--hm-ink-2); font: inherit; font-weight: 600; font-size: .86rem; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
body.home .home-tab:hover { background: var(--hm-blue-soft); }
body.home .home-tab.active { background: var(--hm-blue); color: #fff; }
body.home .home-bait-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
body.home .home-bait-grid[hidden] { display: none; }
body.home .home-bait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 10px 6px 12px; background: var(--hm-soft); border: 1px solid var(--hm-line); border-radius: 14px; }
body.home .bait-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; }
body.home .bait-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
body.home .bait-name { font-size: .84rem; line-height: 1.25; color: var(--hm-ink); min-height: 2.5em; display: flex; align-items: center; }
body.home .home-bait { min-width: 0; }
body.home .home-bait .home-btn { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin-top: auto; font-size: .875rem; line-height: 1.25; padding: 7px 4px; min-height: 36px; white-space: normal; text-align: center; overflow-wrap: break-word; }

/* ───────── Savaitgalio ežerai ───────── */
body.home .home-weekend-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.home .home-weekend-loading { color: var(--hm-muted); font-size: .9rem; grid-column: 1 / -1; padding: 24px 0; text-align: center; }
body.home .wk-card { display: flex; flex-direction: column; background: var(--hm-soft); border: 1px solid var(--hm-line); border-radius: 14px; overflow: hidden; min-width: 0; }
body.home .wk-photo { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #1f6feb, #62b6ff); position: relative; overflow: hidden; }
body.home .wk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.home .wk-photo--none::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' fill='none' stroke='white' stroke-opacity='.45' stroke-width='2'%3E%3Cpath d='M0 40c25-14 25 14 50 0s25 14 50 0 25 14 50 0 25 14 50 0'/%3E%3Cpath d='M0 58c25-14 25 14 50 0s25 14 50 0 25 14 50 0 25 14 50 0'/%3E%3Cpath d='M0 22c25-14 25 14 50 0s25 14 50 0 25 14 50 0 25 14 50 0'/%3E%3C/svg%3E") center / cover; }
body.home .wk-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
body.home .wk-name { font-weight: 700; color: var(--hm-ink); font-size: .92rem; text-decoration: none; }
body.home .wk-name:hover { color: var(--hm-blue); }
body.home .wk-pct { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
body.home .wk-pct small { font-weight: 600; font-size: .72rem; color: var(--hm-muted); margin-left: 3px; }
body.home .wk-meta { font-size: .76rem; color: var(--hm-muted); }
body.home .wk-card .home-btn { margin-top: 6px; align-self: flex-start; }
body.home .wk-pct.rating-excellent { color: #16a34a; }
body.home .wk-pct.rating-good { color: #3b9a4a; }
body.home .wk-pct.rating-average { color: #c28a0a; }
body.home .wk-pct.rating-poor { color: #d9780f; }
body.home .wk-pct.rating-bad { color: #d6383d; }

/* ───────── Straipsniai ───────── */
body.home .home-post-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.home .home-post { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body.home .post-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(135deg, #d8e8fb, #eaf3ff); font-size: 2.2rem; text-decoration: none; border: 1px solid var(--hm-line); }
html:not([data-theme="light"]) body.home .post-tile { background: linear-gradient(135deg, #14305a, #0f2140); }
body.home .post-title { font-weight: 700; font-size: .9rem; line-height: 1.3; color: var(--hm-ink); text-decoration: none; }
body.home .post-title:hover { color: var(--hm-blue); }
body.home .post-meta { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--hm-muted); }
body.home .post-meta .hi { width: 1em; height: 1em; }

/* ───────── Esami SEO blokai (Patarimai, Metodika, DUK) ───────── */
body.home .home-seo { margin-top: 20px; }
body.home .home-seo .section { padding: 28px 0 8px; background: transparent; }
body.home .home-seo .container { max-width: 1220px; }
body.home .home-seo .section-header { text-align: left; margin-bottom: 18px; }
body.home .home-seo .section-subtitle { text-align: left; margin-left: 0; margin-right: 0; max-width: none; }
body.home .home-seo .section-badge { display: none; }
body.home .home-seo .section-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--hm-ink); }
body.home .home-seo .section-subtitle { color: var(--hm-ink-2); }
body.home .home-seo .glass-card, body.home .home-seo .faq-item { background: var(--hm-panel); border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ───────── Privalumų juosta ───────── */
body.home .home-benefits { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); }
body.home .home-benefits li { display: flex; align-items: center; gap: 14px; padding: 22px 22px; border-right: 1px solid var(--hm-line); }
body.home .home-benefits li:last-child { border-right: 0; }
body.home .home-benefits strong { display: block; font-size: .95rem; color: var(--hm-ink); }
body.home .home-benefits span:not(.home-ico) { display: block; font-size: .82rem; color: var(--hm-muted); line-height: 1.35; margin-top: 2px; }

/* ───────── Atsakas: planšetė ───────── */
@media (max-width: 1100px) {
    body.home .home-row--forecast, body.home .home-row--map, body.home .home-row--catches, body.home .home-row--weekend { grid-template-columns: minmax(0, 1fr); }
    body.home .home-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    body.home .home-today { max-width: 520px; }
    body.home .home-body { margin-top: 0; }
    body.home .home-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home .home-benefits li:nth-child(2) { border-right: 0; }
    body.home .home-benefits li:nth-child(-n+2) { border-bottom: 1px solid var(--hm-line); }
}
@media (max-width: 860px) {
    body.home .weather-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home .home-map-grid { grid-template-columns: minmax(0, 1fr); }
    body.home .home-catch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home #home-groups .forecast-cards-grid { grid-template-columns: minmax(0, 1fr); }
    body.home .home-hero-credit { max-width: 85%; }
}
@media (max-width: 640px) {
    body.home .home-wrap { padding: 0 14px; }
    body.home .home-hero { padding: calc(var(--header-height) + 26px) 0 96px; }
    body.home .home-search { flex-direction: column; }
    body.home .home-search-btn { width: 100%; }
    body.home .home-panel { padding: 18px 16px; border-radius: 16px; }
    body.home .home-today { padding: 18px 16px; }
    body.home .home-today-body { grid-template-columns: 104px 1fr; gap: 14px; }
    body.home .ht-ring { width: 104px; height: 104px; }
    body.home .ht-ring-pct { font-size: 1.6rem; }
    body.home .weekly-forecast-grid { grid-template-columns: repeat(7, 74px); overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
    body.home .home-fish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home .home-post-grid { grid-template-columns: minmax(0, 1fr); }
    body.home .home-post { flex-direction: row; align-items: center; gap: 12px; }
    body.home .home-post .post-tile { width: 86px; flex: none; aspect-ratio: 1; font-size: 1.7rem; }
    body.home .home-post > .post-title, body.home .home-post > .post-meta { flex: 1; }
    body.home .home-benefits { grid-template-columns: minmax(0, 1fr); }
    body.home .home-insights { grid-template-columns: minmax(0, 1fr); }
    body.home .home-weekend-grid { grid-template-columns: minmax(0, 1fr); }
    body.home .home-benefits li { border-right: 0; border-bottom: 1px solid var(--hm-line); }
    body.home .home-benefits li:last-child { border-bottom: 0; }
    body.home .home-panel-link { margin-left: 0; width: 100%; }
    body.home .home-panel-titles { flex: 1 1 calc(100% - 60px); }
    body.home .update-info { margin-left: 0; flex-basis: 100%; justify-content: center; }
    body.home .home-hero-credit { bottom: 70px; }
}
@media (max-width: 420px) {
    body.home .weather-value { font-size: 1.65rem; }
    body.home .weather-card { min-height: 150px; padding: 14px 8px; }
    body.home .home-catch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    body.home * { transition: none !important; animation: none !important; }
}

/* Darbalaukis: pirmoji sekcija (Kibimo prognozė) užeina ant hero apačios – antraštė baltu tekstu ant nuotraukos, kortelės 40 px užeina ant hero */
@media (min-width: 1101px) {
    body.home .home-body { margin-top: -96px; }
    body.home #prognoze .home-sec-head { margin: 0 0 20px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
    body.home #prognoze .home-sec-title { color: #fff; margin: 0; text-shadow: 0 1px 12px rgba(0, 20, 50, .55); }
    body.home #prognoze .home-sec-sub { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 10px rgba(0, 20, 50, .55); }
}

/* ── Ežerų dropdown (hero paieška): šviesus, kompaktiškas, subtilus hover; funkcionalumas nekeičiamas ── */
body.home .select-dropdown {
    background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: 18px;
    box-shadow: 0 2px 6px rgba(18, 52, 102, .06), 0 18px 44px rgba(18, 52, 102, .16);
    backdrop-filter: none; -webkit-backdrop-filter: none; overflow: hidden;
}
body.home .select-search-box { background: var(--hm-panel); padding: 12px 16px; gap: 10px; border-bottom: 1px solid var(--hm-line); }
body.home .search-icon { width: 18px; height: 18px; color: var(--hm-muted); }
body.home .select-search-input { font-size: .96rem; color: var(--hm-ink); padding: 6px 0; }
body.home .select-search-input::placeholder { color: var(--hm-muted); }
body.home .select-options-list {
    max-height: min(352px, 55vh); padding: 6px; margin: 0; list-style: none;
    scrollbar-width: thin; scrollbar-color: rgba(31, 111, 235, .28) transparent;
}
body.home .select-options-list::-webkit-scrollbar { width: 8px; }
body.home .select-options-list::-webkit-scrollbar-track { background: transparent; }
body.home .select-options-list::-webkit-scrollbar-thumb { background: rgba(31, 111, 235, .22); border-radius: 8px; border: 2px solid var(--hm-panel); }
body.home .select-options-list::-webkit-scrollbar-thumb:hover { background: rgba(31, 111, 235, .42); }
body.home .select-option {
    min-height: 44px; padding: 0 12px; gap: 10px; border-radius: 10px; font-size: .96rem; font-weight: 500;
    color: var(--hm-ink); text-align: left; transition: background-color .15s ease, color .15s ease;
}
body.home .select-option + .select-option { margin-top: 1px; }
body.home .select-option:hover,
body.home .select-option:focus-visible { background: var(--hm-soft); color: var(--hm-ink); outline: none; }
body.home .select-option.selected,
body.home .select-option[aria-selected="true"] { background: var(--hm-blue-soft); color: var(--hm-blue-d); font-weight: 600; }
/* emoji pakeista subtilia vientisa ežero (vietos) ikona */
body.home .select-option .option-icon {
    font-size: 0; width: 16px; height: 16px; flex: 0 0 16px; opacity: .55; background-color: var(--hm-blue);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.home .select-option:hover .option-icon,
body.home .select-option.selected .option-icon { opacity: .9; }
body.home .select-no-results { padding: 22px 16px; color: var(--hm-muted); font-size: .92rem; }
body.home .select-more-hint { color: var(--hm-muted); border-top: 1px solid var(--hm-line); background: var(--hm-panel); padding: 10px 16px; font-size: .8rem; }
@media (max-width: 640px) {
    body.home .select-options-list { max-height: min(340px, 50vh); }
}

/* Laimikių kortelė: nuotrauka atidaro įrašą (mygtukas), ežero pavadinimas – nuoroda į ežero puslapį */
body.home button.catch-photo { width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit; }
body.home .catch-lake-link { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
body.home .catch-lake-link:hover { color: var(--hm-blue); text-decoration: underline; }
body.home button.catch-photo:focus-visible, body.home .catch-lake-link:focus-visible { outline: 3px solid var(--hm-blue); outline-offset: 2px; }
