/* ==========================================================================
   AegeanSwim — Redesigned UI
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --deep: #0B1D3A;
    --aegean: #1565C0;
    --azure: #2196F3;
    --shallow: #4FC3F7;
    --foam: #E1F5FE;
    --sand: #F5E6D3;
    --sand-light: #FBF4ED;
    --warm: #FF8A65;
    --safe: #26A69A;
    --caution: #FFB74D;
    --avoid: #EF5350;
    --white: #ffffff;
    --text-muted: #7A8599;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--deep);
    background: var(--sand-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ambient gradient blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: ambientFloat 20s ease-in-out infinite;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(225, 245, 254, 0.12) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: ambientFloat 25s ease-in-out infinite reverse;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}

a {
    color: var(--aegean);
    text-decoration: none;
}

a:hover {
    color: var(--azure);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(to right, var(--aegean), var(--shallow));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(251, 244, 237, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(11, 29, 58, 0.06);
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(11, 29, 58, 0.08);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--aegean), var(--shallow));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.logo__text {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    color: var(--deep);
}

.header-badge {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 14px;
    background: rgba(11, 29, 58, 0.04);
    border-radius: 20px;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 48px 0 32px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(38, 166, 154, 0.08);
    border-radius: 20px;
    font-size: 13px;
    color: var(--safe);
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeUp 0.5s ease both;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--safe);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: var(--deep);
    margin-bottom: 12px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.5s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--aegean), var(--shallow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
    animation: fadeUp 0.5s ease 0.2s both;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.4s ease both;
    animation-delay: var(--delay, 0s);
}

/* --- Main Content Layout --- */
.main-content {
    animation: fadeUp 0.5s ease 0.3s both;
}

.main-content .finder-card {
    max-width: 520px;
    margin: 0 auto 40px;
}

/* --- Finder Card --- */
.finder-card {
    background: var(--white);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 8px 40px rgba(11, 29, 58, 0.08);
    transition: box-shadow 0.3s ease;
}

.finder-card:focus-within {
    box-shadow: 0 12px 48px rgba(21, 101, 192, 0.15), 0 0 0 2px rgba(21, 101, 192, 0.1);
}

.finder-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--deep);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select,
.form-group input[type="date"] {
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    background: var(--sand-light);
    color: var(--deep);
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8599' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select:focus,
.form-group input[type="date"]:focus {
    outline: none;
    border-color: var(--aegean);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Time Pills --- */
.time-pills {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.time-pill {
    flex: 1;
    padding: 10px 0;
    border: 2px solid rgba(11, 29, 58, 0.1);
    border-radius: 12px;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.time-pill:hover {
    border-color: var(--azure);
    color: var(--azure);
}

.time-pill.active {
    border-color: var(--aegean);
    background: var(--foam);
    color: var(--aegean);
    transform: scale(1.02);
}

/* --- Filter Section --- */
.filter-toggle-btn {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed rgba(11, 29, 58, 0.15);
    border-radius: 14px;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.filter-toggle-btn:hover {
    border-color: var(--azure);
    color: var(--azure);
}

.filter-toggle-btn.open {
    border-color: var(--aegean);
    border-style: solid;
    color: var(--aegean);
}

.filter-panel {
    padding-top: 16px;
    display: grid;
    gap: 16px;
}

.filter-group__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 8px 16px;
    border: 2px solid rgba(11, 29, 58, 0.1);
    border-radius: 20px;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--azure);
    color: var(--azure);
}

.filter-chip.active {
    border-color: var(--aegean);
    background: var(--foam);
    color: var(--aegean);
    font-weight: 600;
}

.clear-filters-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(11, 29, 58, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: rgba(11, 29, 58, 0.04);
    color: var(--deep);
}

/* Distance Sort (hidden until geolocation enabled) */
.distance-sort-group {
    display: none;
}

.distance-sort-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.distance-sort-group input[type="checkbox"] {
    accent-color: var(--aegean);
}

/* --- Button Group --- */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Primary CTA */
.find-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 32px;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--aegean), var(--azure));
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.find-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.35);
}

.find-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.find-btn:active {
    transform: translateY(0);
}

.find-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Loading state for find button */
@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.find-btn .analyzing-text {
    animation: pulseText 1.5s ease-in-out infinite;
}

/* Secondary CTA */
.geo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 28px;
    border: 2px solid rgba(11, 29, 58, 0.1);
    border-radius: 14px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.geo-btn:hover {
    border-color: var(--azure);
    color: var(--azure);
    background: rgba(21, 101, 192, 0.04);
}

.geo-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Results Section --- */
.results-section {
    display: none;
}

.results-header {
    margin-bottom: 20px;
}

.results-title {
    font-size: 2rem;
    color: var(--deep);
    margin-bottom: 4px;
}

.results-count {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.results-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.weather-info {
    background: var(--white);
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    color: var(--deep);
    box-shadow: 0 2px 12px rgba(11, 29, 58, 0.06);
    margin-bottom: 20px;
}

.conditions-disclaimer {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin: -8px 0 20px;
    line-height: 1.5;
}

.conditions-disclaimer a {
    color: inherit;
    text-decoration: underline;
}

.beach-results {
    display: grid;
    gap: 16px;
}

/* --- Beach Cards --- */
.beach-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(11, 29, 58, 0.06);
    transition: all 0.3s ease;
    animation: fadeUp 0.4s ease both;
    animation-delay: var(--delay, 0s);
}

.beach-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(11, 29, 58, 0.1);
}

.beach-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.beach-card__info {
    flex: 1;
    min-width: 0;
}

.beach-card__name {
    font-family: 'Instrument Serif', serif;
    font-size: 19px;
    font-weight: 400;
    color: var(--deep);
    line-height: 1.3;
}

.beach-card__island {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

/* Safety Badge */
.safety-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.safety-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.safety-badge--safe {
    background: rgba(38, 166, 154, 0.1);
    color: var(--safe);
}

.safety-badge--safe .safety-badge__dot {
    background: var(--safe);
}

.safety-badge--caution {
    background: rgba(255, 183, 77, 0.15);
    color: #E69100;
}

.safety-badge--caution .safety-badge__dot {
    background: var(--caution);
}

.safety-badge--avoid {
    background: rgba(239, 83, 80, 0.1);
    color: var(--avoid);
}

.safety-badge--avoid .safety-badge__dot {
    background: var(--avoid);
}

/* Beach Stats Row */
.beach-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.beach-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Beach Description */
.beach-card__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

/* Beach Actions Row */
.beach-card__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(11, 29, 58, 0.06);
}

.beach-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--aegean);
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    padding: 0;
    transition: gap 0.2s ease;
}

.beach-card__link:hover {
    color: var(--azure);
    gap: 6px;
}

.beach-card__type {
    margin-left: auto;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(11, 29, 58, 0.04);
    color: var(--text-muted);
}

/* Wave Warning */
.wave-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 183, 77, 0.1);
    border-left: 3px solid var(--caution);
    border-radius: 0 10px 10px 0;
    margin-top: 10px;
    font-size: 12px;
    color: #8B6914;
}

.wave-warning.severe {
    background: rgba(239, 83, 80, 0.08);
    border-left-color: var(--avoid);
    color: #991b1b;
}

/* UV Warning */
.uv-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.uv-warning.low { background: rgba(38, 166, 154, 0.08); color: #065f46; }
.uv-warning.moderate { background: rgba(255, 183, 77, 0.1); color: #713f12; }
.uv-warning.high { background: rgba(255, 138, 101, 0.1); color: #9a3412; }
.uv-warning.very-high { background: rgba(239, 83, 80, 0.08); color: #991b1b; }
.uv-warning.extreme { background: rgba(124, 58, 237, 0.08); color: #5b21b6; }

.uv-warning-icon { font-size: 1.1em; flex-shrink: 0; }
.uv-warning-content { flex: 1; }
.uv-warning-title { font-weight: 600; margin-bottom: 2px; }
.uv-warning-tip { font-size: 11px; opacity: 0.9; }

/* Distance Badge */
.distance-badge {
    background: linear-gradient(135deg, var(--safe), #1B8A80);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

/* --- Trust Strip --- */
.trust-strip {
    padding: 48px 0;
    position: relative;
    z-index: 1;
}

.trust-strip .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-item__number {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    color: var(--aegean);
    line-height: 1.2;
}

.trust-item__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Safety Tip --- */
.safety-tip {
    padding: 0 0 48px;
    position: relative;
    z-index: 1;
}

.safety-tip__card {
    background: linear-gradient(135deg, rgba(38, 166, 154, 0.06) 0%, rgba(21, 101, 192, 0.06) 100%);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.safety-tip__icon {
    font-size: 28px;
    flex-shrink: 0;
}

.safety-tip__card p {
    font-size: 15px;
    color: var(--deep);
    line-height: 1.7;
}

.safety-tip__card a {
    color: var(--aegean);
    font-weight: 600;
}

.safety-tip__title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.safety-tip__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-tip__list li {
    font-size: 15px;
    color: var(--deep);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.safety-tip__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--safe);
    font-weight: 700;
}

/* --- Footer --- */
.site-footer {
    background: var(--deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 24px 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-content > span {
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--safe);
    color: white;
    padding: 14px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: none;
    animation: slideIn 0.3s ease;
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
}

.toast.show {
    display: block;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Loading Spinner --- */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- PWA Update Banner --- */
.pwa-update-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--aegean), var(--azure));
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    max-width: 90%;
}

.pwa-update-banner__btn {
    background: white;
    color: var(--aegean);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.pwa-update-banner__close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* --- Image Optimization (kept for image-loader.js) --- */
.optimized-image {
    display: block;
    position: relative;
    overflow: hidden;
    background-color: var(--foam);
}

.lazy-image {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: blur(10px);
    transform: scale(1.05);
}

.lazy-image.loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--foam) 0%, #bae6fd 50%, var(--foam) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

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

/* ==========================================================================
   Desktop Layout (≥1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .main-content.has-results {
        display: grid;
        grid-template-columns: 420px 1fr;
        gap: 32px;
        align-items: start;
    }

    .main-content.has-results .finder-card {
        position: sticky;
        top: 80px;
        margin: 0;
        max-width: none;
    }

    .main-content.has-results .results-section {
        min-width: 0;
    }
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .header-badge {
        display: none;
    }

    .finder-card {
        padding: 20px;
        border-radius: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .time-pills {
        gap: 6px;
    }

    .beach-card {
        padding: 20px;
    }

    .beach-card__top {
        flex-wrap: wrap;
    }

    .trust-strip .container {
        gap: 16px;
    }

    .trust-item__number {
        font-size: 1.6rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-links {
        gap: 16px;
    }

    .results-title {
        font-size: 1.6rem;
    }

    .safety-tip__card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .hero {
        padding: 32px 0 24px;
    }

    .container {
        padding: 0 16px;
    }

    .finder-card {
        padding: 18px;
        border-radius: 20px;
    }

    .beach-card__actions {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-progress {
        transition: none;
    }
}
