.beaches-intro {
    max-width: 980px;
    margin: 0 auto 1.5rem;
}

.beaches-intro .lead {
    font-size: 1.08rem;
}

.beaches-note {
    max-width: 980px;
    margin: 0 auto 1.25rem;
}

.beaches-actions {
    max-width: 980px;
    margin: 0 auto 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.beach-status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.beach-distance {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.active-location-filter-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.clear-location-filter-btn {
    border: 1px solid #c7d0d9;
    background: #f8f9fa;
    color: #2f3b45;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.1;
    cursor: pointer;
}

.clear-location-filter-btn:hover {
    background: #eef2f5;
}

#nearby-beaches-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

#nearby-beaches-modal.active {
    display: flex;
}

#nearby-beaches-content {
    background: white;
    border-radius: 8px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#nearby-beaches-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nearby-beaches-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: #6c757d;
}

#nearby-beaches-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.beach-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.beach-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.beach-hero-card,
.beach-photo-card,
.beach-panel,
.beach-nearby,
.beach-history,
.beach-metrics {
    background: #fff;
    border: 1px solid #e5ebf0;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(20, 30, 40, 0.04);
}

.beach-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    font-size: 0.88rem;
}

.beach-status.bg-success { background: #198754; }
.beach-status.bg-danger { background: #dc3545; }
.beach-status.bg-secondary { background: #6c757d; }
.beach-status.bg-warning { background: #fd7e14; color: #212529; }

.beach-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    color: #4e5c67;
    font-size: 0.95rem;
    margin-top: 0.6rem;
}

.beach-warning {
    margin-top: 0.9rem;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #f5c2c7;
    background: #fff2f3;
    color: #842029;
    font-size: 0.95rem;
}

.beach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.beach-panel h2,
.beach-nearby h2,
.beach-history h2,
.beach-metrics h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.metric-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #edf2f7;
}

.metric-label {
    font-size: 0.78rem;
    color: #5f6f7b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.metric-value {
    font-weight: 700;
    color: #1b2730;
    font-size: 0.98rem;
    word-break: break-word;
}

.nearby-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.nearby-card {
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    background: #fdfefe;
}

.nearby-card a {
    text-decoration: none;
    font-weight: 700;
}

.beach-history table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.beach-history th,
.beach-history td {
    border-bottom: 1px solid #e7edf2;
    padding: 0.5rem 0.45rem;
    text-align: left;
    vertical-align: top;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.photo-strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dde5ec;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.video-card {
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.video-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid #e4eaf0;
}

.video-card-body {
    padding: 0.7rem 0.8rem;
}

.video-card-title {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

@media (max-width: 900px) {
    .beach-hero,
    .beach-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .photo-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}
