/* App-specific map & interaction styles */

.marker-pin {
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2.5px solid #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.25),
        0 6px 14px rgba(15, 23, 42, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: saturate(1.08);
}

.marker-pin::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    transform: rotate(45deg);
}

.marker-pin.is-recent {
    background: linear-gradient(145deg, #22c55e 0%, #15803d 100%);
}

.marker-pin.is-future {
    background: linear-gradient(145deg, #38bdf8 0%, #0369a1 100%);
}

.marker-pin.is-past {
    background: linear-gradient(145deg, #94a3b8 0%, #475569 100%);
}

.marker-pin.is-unknown {
    background: linear-gradient(145deg, #cbd5e1 0%, #64748b 100%);
}

.marker-pin.is-active {
    transform: rotate(-45deg) scale(1.12);
    box-shadow:
        0 0 0 5px rgba(245, 158, 11, 0.45),
        0 8px 18px rgba(15, 23, 42, 0.45);
    z-index: 1000 !important;
}

.map-legend-toggle.is-excluded {
    color: #94a3b8;
    text-decoration: line-through;
    background: #f8fafc;
    opacity: 0.75;
}

.map-legend-toggle.is-excluded .map-legend-dot {
    position: relative;
    background: #cbd5e1 !important;
}

.map-legend-toggle.is-excluded .map-legend-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 140%;
    height: 1.5px;
    background: #64748b;
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 9999px;
}

.marker-center {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border-radius: 9999px;
    background: radial-gradient(circle at 35% 30%, #7dd3fc 0%, #0284c7 55%, #0c4a6e 100%);
    border: 3px solid #fff;
    box-shadow:
        0 0 0 4px rgba(14, 165, 233, 0.28),
        0 4px 10px rgba(15, 23, 42, 0.35);
}

#map.leaflet-container {
    background: #dbe7ef;
}

/* Punch lake blues / land greens for on-screen + IG screenshots (tiles only). */
#map .leaflet-tile-pane {
    filter: saturate(1.45) contrast(1.12) brightness(0.98);
}

/* Hide Leaflet attribution chrome (logo + OSM/CARTO credit strip). */
.leaflet-control-attribution {
    display: none !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 220px;
}

.popup-card {
    padding: 14px 16px 12px;
}

.popup-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.popup-card .meta {
    margin-top: 4px;
    font-size: 0.8125rem;
    color: #64748b;
}

.popup-card .facts {
    margin-top: 10px;
    display: grid;
    gap: 6px;
    font-size: 0.8125rem;
}

.popup-card .facts strong {
    color: #334155;
    font-weight: 600;
}

.popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 12px 12px;
}

.popup-actions a,
.popup-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.popup-actions .btn-map {
    background: #e0f2fe;
    color: #0369a1;
}

.popup-actions .btn-map:hover {
    background: #bae6fd;
}

.popup-actions .btn-directions {
    background: #0ea5e9;
    color: #fff;
}

.popup-actions .btn-directions:hover {
    background: #0284c7;
}

.lake-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
    scroll-margin-top: 1.25rem;
}

.lake-card.is-highlighted {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2), 0 10px 25px rgba(15, 23, 42, 0.08);
}

.lake-card details summary {
    list-style: none;
}

.lake-card details summary::-webkit-details-marker {
    display: none;
}

.lake-card details[open] summary .chevron {
    transform: rotate(180deg);
}

.chevron {
    transition: transform 0.2s ease;
}

#map {
    z-index: 0;
}

.feature-filter-btn:hover,
.kind-filter-btn:hover {
    background-color: #f1f5f9; /* slate-100 */
    color: #334155; /* slate-700 */
}

.feature-filter-btn[aria-pressed="true"],
.kind-filter-btn[aria-pressed="true"] {
    background-color: #0369a1; /* sky-700 */
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #0369a1;
}

.feature-filter-btn[aria-pressed="true"]:hover,
.kind-filter-btn[aria-pressed="true"]:hover {
    background-color: #075985; /* sky-800 */
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #075985;
}

/* Search loading — floating brand fish + rod (no circle badge) */
.search-loading .fishing-loader {
    max-width: 14rem;
}

.search-loading .logo-loader-art {
    animation: logo-loader-bob 1.6s ease-in-out infinite;
    filter: drop-shadow(0 10px 18px rgba(11, 31, 51, 0.22));
}

@keyframes logo-loader-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
}

/* Anonymous results — weather lock overlay only */
.results-teaser {
    position: relative;
}

.results-teaser__blur {
    filter: blur(2.5px);
    opacity: 0.72;
    user-select: none;
}

.results-teaser__lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0.2),
        rgba(248, 250, 252, 0.82)
    );
}

.plan-check {
    display: inline-flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.plan-check--yes {
    background: #dcfce7;
    color: #15803d;
}

.plan-check--no {
    background: #f1f5f9;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .leaflet-popup-content {
        min-width: 180px;
    }
}
