/* ================================================================
   balti.css — Dau la Peste! fishing spots listing page
   Reuses the forest/water night theme from home.css
   PSR-12 JS / BEM-lite naming / fishing theme
   ================================================================ */

/* ── Icon helpers ─────────────────────────────────────────── */
.lbl-icon {
    width: 13px;
    height: 13px;
    display: inline-block;
    vertical-align: -2px;
    color: var(--color-green-400);
    flex-shrink: 0;
}

/* ── Shared root variables (mirrors home.css) ─────────────── */
:root {
    --color-forest-darkest: #061510;
    --color-forest-dark:    #0f2218;
    --color-forest-mid:     #1a3a2a;
    --color-forest-light:   #2d5a3d;
    --color-forest-bright:  #4a7c5e;
    --color-green-400:      #4ade80;
    --color-green-500:      #22c55e;
    --color-teal-400:       #2dd4bf;
    --color-teal-500:       #14b8a6;
    --color-water-dark:     #0d3a52;
    --color-water-mid:      #1a5a7a;
    --color-amber:          #f59e0b;
    --color-text-light:     #e2f4e8;
    --color-text-muted:     rgba(180,230,200,0.65);
    --radius-card:          1.25rem;
    --shadow-card:          0 4px 24px rgba(0,0,0,0.18);
    --shadow-card-hover:    0 12px 40px rgba(0,0,0,0.32);
    --transition-base:      0.25s ease;
}

/* ─────────────────────────────────────────────────────────── */
/* FILTER PANEL (floating over water)                           */
/* ─────────────────────────────────────────────────────────── */
.balti-filters-wrap {
    position: relative;
    z-index: 40;
    max-width: 1000px;
    margin: -3.5rem auto 2.5rem;
    padding: 0 1rem;
}

.balti-filters {
    background: rgba(15, 34, 24, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(74,222,128,0.2);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: flex-end;
}

.balti-filters__group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 170px;
}

.balti-filters__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(180,230,200,0.6);
    margin-bottom: 0.35rem;
}

.balti-filters__input,
.balti-filters__select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(74,222,128,0.18);
    border-radius: 0.65rem;
    color: #e2f4e8;
    font-size: 0.875rem;
    padding: 0.65rem 0.9rem;
    outline: none;
    transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
    width: 100%;
}

.balti-filters__input::placeholder {
    color: rgba(180,230,200,0.35);
}

.balti-filters__input:focus,
.balti-filters__select:focus {
    border-color: rgba(74,222,128,0.55);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(74,222,128,0.12);
}

.balti-filters__select option {
    background: var(--color-forest-dark);
    color: #e2f4e8;
}

.balti-filters__search-wrap {
    position: relative;
}

.balti-filters__search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(74,222,128,0.5);
    pointer-events: none;
}

.balti-filters__search-wrap .balti-filters__input {
    padding-left: 2.25rem;
}

.balti-filters__btn {
    background: linear-gradient(135deg, var(--color-green-500), var(--color-teal-500));
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 0.65rem;
    cursor: pointer;
    white-space: nowrap;
    transition: filter var(--transition-base), transform var(--transition-base);
    align-self: flex-end;
}

.balti-filters__btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.balti-filters__reset {
    background: rgba(255,255,255,0.07);
    color: rgba(220,255,230,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.65rem;
    font-size: 0.8rem;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    text-decoration: none;
    align-self: flex-end;
    transition: background var(--transition-base), color var(--transition-base);
    white-space: nowrap;
}

.balti-filters__reset:hover {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.25);
}

/* Advanced toggle button */
.balti-filters__advanced-btn {
    background: rgba(74,222,128,0.1);
    color: var(--color-green-400);
    border: 1px solid rgba(74,222,128,0.25);
    border-radius: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-end;
    transition: background var(--transition-base), border-color var(--transition-base);
    white-space: nowrap;
}

.balti-filters__advanced-btn:hover,
.balti-filters__advanced-btn[aria-expanded="true"] {
    background: rgba(74,222,128,0.2);
    border-color: rgba(74,222,128,0.5);
}

.balti-filters__advanced-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 0.7rem;
}

.balti-filters__advanced-btn[aria-expanded="true"] .balti-filters__advanced-arrow {
    transform: rotate(180deg);
}

/* Advanced drawer */
.balti-filters__drawer {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    padding-top: 0;
    border-top: 0px solid rgba(74,222,128,0.1);
}

.balti-filters__drawer--open {
    max-height: 800px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top-width: 1px;
}

.balti-filters__group--full {
    grid-column: 1 / -1;
}

.balti-filters__group--full > .balti-filters__label {
    font-size: 0.72rem;
    color: rgba(180,230,200,0.75);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(74,222,128,0.12);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Checkboxes grid */
.balti-filters__checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.1rem 0;
}

.balti-filters__checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(74,222,128,0.15);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: rgba(220,255,230,0.7);
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.balti-filters__checkbox-item:hover {
    background: rgba(74,222,128,0.12);
    border-color: rgba(74,222,128,0.4);
    color: #a7f3c8;
    transform: translateY(-1px);
}

/* Hide native checkbox — pill itself is the visual toggle */
.balti-filters__checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Custom dot indicator before the label text */
.balti-filters__checkbox-item span::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid rgba(74,222,128,0.35);
    margin-right: 0.3rem;
    vertical-align: middle;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.balti-filters__checkbox-item:has(input:checked) {
    background: rgba(74,222,128,0.2);
    border-color: rgba(74,222,128,0.65);
    color: #bbf7d0;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(74,222,128,0.18), inset 0 1px 0 rgba(74,222,128,0.08);
}

.balti-filters__checkbox-item:has(input:checked) span::before {
    background: var(--color-green-400);
    border-color: var(--color-green-400);
    box-shadow: 0 0 5px rgba(74,222,128,0.6);
}

.balti-filters__active-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(74,222,128,0.1);
    margin-top: 0.35rem;
}

.balti-filters__pill {
    background: rgba(255,255,255,0.06);
    color: rgba(220,255,230,0.65);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.balti-filters__pill:hover,
.balti-filters__pill--active {
    background: rgba(74,222,128,0.15);
    border-color: rgba(74,222,128,0.4);
    color: var(--color-green-400);
}

/* ─────────────────────────────────────────────────────────── */
/* RESULTS HEADER BAR                                           */
/* ─────────────────────────────────────────────────────────── */
.balti-results-header {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.balti-results-header__count {
    font-size: 0.9rem;
    color: #374151;
}

.balti-results-header__count strong {
    color: var(--color-forest-light);
    font-weight: 800;
}

.balti-results-header__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.balti-results-header__sort select {
    font-size: 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.3rem 0.6rem;
    color: #374151;
    background: #fff;
    outline: none;
    cursor: pointer;
}

/* ─────────────────────────────────────────────────────────── */
/* SPOTS GRID                                                   */
/* ─────────────────────────────────────────────────────────── */
.balti-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 5rem;
}

.balti-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px)  { .balti-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .balti-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .balti-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─────────────────────────────────────────────────────────── */
/* SPOT CARD                                                    */
/* ─────────────────────────────────────────────────────────── */
.spot-card {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    text-decoration: none;
}

.spot-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

/* Photo area */
.spot-card__photo {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, #2d6e4e, #1a5a7a);
    flex-shrink: 0;
    display: block;
}

.spot-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.spot-card__img.spot-card__img--placeholder {
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: none;
}

.spot-card:hover .spot-card__img.spot-card__img--placeholder {
    transform: translate(-50%, -50%);
}

.spot-card:hover .spot-card__img {
    transform: scale(1.07);
}

/* Photo gradient overlay for readability of badges */
.spot-card__photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(6,21,16,0.65) 100%
    );
    pointer-events: none;
}

/* Placeholder when no photo */
.spot-card__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(74,222,128,0.25);
}

/* Rating badge — top right */
.spot-card__rating {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Fishing-type badge — bottom left */
.spot-card__type {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: rgba(26,58,42,0.88);
    backdrop-filter: blur(6px);
    color: var(--color-green-400);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(74,222,128,0.3);
}

/* Score badge — bottom right */
.spot-card__score {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-green-500), var(--color-teal-500));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.spot-card__score-label {
    font-size: 0.5rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 1px;
}

/* Card body */
.spot-card__body {
    padding: 1rem 1.1rem 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.spot-card__name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-base);
}

.spot-card:hover .spot-card__name {
    color: var(--color-forest-light);
}

.spot-card__location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.spot-card__location--has-weather {
    margin-bottom: 0.3rem;
}

/* Weather chip */
.spot-card__weather {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #6b7280;
    margin-bottom: 0.65rem;
    min-height: 1.1rem;
}

.spot-card__weather-skeleton {
    display: inline-block;
    width: 90px;
    height: 0.75rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: weather-shimmer 1.4s linear infinite;
}

@keyframes weather-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spot-card__weather--loaded .spot-card__weather-skeleton {
    display: none;
}

.spot-card__weather-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.spot-card__weather-temp {
    font-weight: 700;
    color: #374151;
}

.spot-card__weather-sep {
    color: #d1d5db;
}

.spot-card__weather-wind {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #9ca3af;
}

.spot-card__location svg {
    flex-shrink: 0;
    color: var(--color-forest-bright);
}

/* Tags row */
.spot-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.spot-card__tag {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.spot-card__tag--blue  { background: #eff6ff; color: #1d4ed8; }
.spot-card__tag--cyan  { background: #ecfeff; color: #0e7490; }
.spot-card__tag--green { background: #f0fdf4; color: #15803d; }

/* Card footer */
.spot-card__footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spot-card__price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-forest-mid);
}

.spot-card__price-na {
    font-size: 0.78rem;
    color: #9ca3af;
    font-style: italic;
}

.spot-card__cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-forest-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: color var(--transition-base), gap var(--transition-base);
}

.spot-card:hover .spot-card__cta {
    color: var(--color-green-500);
    gap: 0.4rem;
}

/* ─────────────────────────────────────────────────────────── */
/* EMPTY STATE                                                   */
/* ─────────────────────────────────────────────────────────── */
.balti-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #9ca3af;
}

.balti-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: block;
    opacity: 0.3;
    color: #9ca3af;
}

.balti-empty__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.balti-empty__link {
    color: var(--color-forest-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.balti-empty__link:hover {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────── */
/* PAGINATION                                                    */
/* ─────────────────────────────────────────────────────────── */
.balti-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* ─────────────────────────────────────────────────────────── */
/* REVEAL animation (scroll-in)                                  */
/* ─────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }

/* ─────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                    */
/* ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .balti-filters-wrap { margin-top: -2rem; padding: 0 0.75rem; }
    .balti-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        padding: 1rem;
    }
    /* Search spans full width */
    .balti-filters__group--search {
        grid-column: 1 / -1;
    }
    /* County and price each take half */
    .balti-filters__group--county,
    .balti-filters__group--price {
        grid-column: span 1;
        min-width: 0;
    }
    /* Buttons row: advanced + submit each half */
    .balti-filters__advanced-btn {
        grid-column: span 1;
    }
    .balti-filters__btn {
        grid-column: span 1;
    }
    .balti-filters__reset {
        grid-column: 1 / -1;
        text-align: center;
    }
    /* Advanced drawer full-width */
    .balti-filters__drawer {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
    .balti-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .spot-card__photo { height: 160px; }
}

/* Prevent any horizontal overflow site-wide on mobile */
@media (max-width: 767px) {
    .balti-hero__trees svg,
    .balti-hero__bank svg,
    .balti-hero__water { overflow: hidden; }
    .balti-grid-wrap { overflow-x: hidden; }
}
