/* =====================================================================
   French Riviera Golf — "Riviera editorial" theme layer
   Loaded after style.css. Presentation only: no markup or behaviour
   depends on this file. Palette: warm paper, deep Mediterranean blue,
   pine green, terracotta accent. Headings in Fraunces, UI in Inter.
   All text/background pairs below meet WCAG AA (4.5:1) or better.
   ===================================================================== */

:root {
    /* Palette */
    --rv-paper: #f8f4ec;          /* page background */
    --rv-paper-deep: #efe7da;     /* alternate sections */
    --rv-surface: #fffdf8;        /* cards */
    --rv-ink: #1f2a33;            /* body text   (13.3:1 on paper) */
    --rv-ink-soft: #46525d;       /* secondary   (7.3:1 on paper) */
    --rv-ink-muted: #5e6872;      /* muted       (5.2:1 on paper) */
    --rv-sea: #1d4e6e;            /* primary     (white text 8.9:1) */
    --rv-sea-dark: #143a53;
    --rv-sea-tint: #e3ecf2;
    --rv-pine: #2f5d46;           /* secondary   (white text 7.6:1) */
    --rv-pine-tint: #e2ece4;
    --rv-terracotta: #a84b25;     /* accent      (white text 5.7:1, on paper 5.2:1) */
    --rv-terracotta-tint: #f6e4d9;
    --rv-line: #e2d8c8;
    --rv-focus: #c9672f;

    /* Map the existing design tokens onto the new palette */
    --color-primary: var(--rv-sea);
    --color-primary-dark: var(--rv-sea-dark);
    --color-primary-light: #3b6f91;
    --color-primary-muted: var(--rv-sea-tint);
    --color-bg: var(--rv-paper);
    --color-bg-elevated: var(--rv-paper-deep);
    --color-bg-card: var(--rv-surface);
    --color-surface: var(--rv-paper-deep);
    --color-text: var(--rv-ink);
    --color-text-secondary: var(--rv-ink-soft);
    --color-text-muted: var(--rv-ink-muted);
    --color-success: var(--rv-pine);
    --color-error: #b3261e;
    --color-warning: #8a5a00;
    --glass-bg: var(--rv-surface);
    --glass-bg-hover: #ffffff;
    --glass-border: var(--rv-line);
    --glass-border-light: #d6cab6;
    --glass-accent: var(--rv-sea-tint);
    --glass-accent-border: #b9cddb;

    --font-heading: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-glass: 0 1px 2px rgba(31, 42, 51, 0.04), 0 8px 24px rgba(31, 42, 51, 0.06);
    --shadow-glass-hover: 0 2px 4px rgba(31, 42, 51, 0.05), 0 16px 40px rgba(31, 42, 51, 0.10);
    --shadow-glow: 0 0 0 rgba(0, 0, 0, 0);

    --container-width: 1180px;

    /* Aliases for variable names used by some views but never defined before
       (city pages rendered white-on-transparent text because of this) */
    --primary: var(--rv-sea);
    --primary-dark: var(--rv-sea-dark);
    --text: var(--rv-ink);
    --text-dark: var(--rv-ink);
    --text-muted: var(--rv-ink-muted);
    --bg-light: var(--rv-paper-deep);
    --border: var(--rv-line);
    --color-border: var(--rv-line);
    --color-bg-alt: var(--rv-paper-deep);
    --color-secondary: var(--rv-pine);
}

/* ---------- Base ---------- */
html { background: var(--rv-paper); }
body {
    background: var(--rv-paper);
    color: var(--rv-ink);
    font-family: var(--font-body);
    line-height: 1.65;
}
h1, h2, h3, h4,
.section-title, .page-header h1, .hero h1 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: inherit;
    font-optical-sizing: auto;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.25; }
h5, h6 { font-family: var(--font-body); }
p { color: inherit; }

a { color: var(--rv-sea); text-underline-offset: 3px; }
a:hover { color: var(--rv-terracotta); }

::selection { background: var(--rv-terracotta-tint); color: var(--rv-ink); }

/* Visible, consistent focus states (keyboard users) */
:focus { outline: none; }
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--rv-focus);
    outline-offset: 3px;
    border-radius: 6px;
    box-shadow: none;
}

.container { padding-left: clamp(1rem, 4vw, 2rem); padding-right: clamp(1rem, 4vw, 2rem); }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section-alt { background: var(--rv-paper-deep); }
.section-title { margin-bottom: 0.25rem; }
.section-header { align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.text-muted { color: var(--rv-ink-muted) !important; }
.text-secondary { color: var(--rv-ink-soft) !important; }

/* ---------- Header / navigation ---------- */
.header {
    background: rgba(248, 244, 236, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--rv-line);
    box-shadow: none;
}
.nav-logo-img { background: transparent; }
.nav-link {
    color: var(--rv-ink);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 999px;
}
.nav-link:hover, .nav-link.active { color: var(--rv-sea); background: var(--rv-sea-tint); }
.nav-menu .btn-primary, .nav-menu .nav-link.btn-primary { color: #fff; }
.nav-dropdown-menu {
    background: var(--rv-surface);
    border: 1px solid var(--rv-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass-hover);
}
.nav-dropdown-menu a { color: var(--rv-ink); }
.nav-dropdown-menu a:hover { background: var(--rv-sea-tint); color: var(--rv-sea); }
.nav-avatar-placeholder, .avatar-placeholder, .profile-avatar-placeholder,
.creator-avatar-placeholder, .player-avatar-placeholder, .organizer-avatar-placeholder,
.review-avatar-placeholder, .player-avatar {
    background: var(--rv-pine-tint);
    color: var(--rv-pine);
    font-family: var(--font-heading);
}
.lang-btn { color: var(--rv-ink-soft); }
.lang-btn.active, .lang-btn[aria-current="true"] { color: var(--rv-sea); background: var(--rv-sea-tint); }
.nav-menu-mobile { background: var(--rv-paper); }
.mobile-menu-overlay.active { background: rgba(20, 58, 83, 0.35); }
.notification-badge { background: var(--rv-terracotta); }

/* ---------- Buttons ---------- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary, .btn-solid {
    background: var(--rv-sea);
    border: 1px solid var(--rv-sea);
    color: #fff;
    box-shadow: 0 6px 16px rgba(29, 78, 110, 0.18);
}
.btn-primary:hover, .btn-solid:hover {
    background: var(--rv-sea-dark);
    border-color: var(--rv-sea-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--rv-ink);
    color: var(--rv-ink);
}
.btn-outline:hover { background: var(--rv-ink); color: var(--rv-paper); border-color: var(--rv-ink); }
.btn-success { background: var(--rv-pine); border-color: var(--rv-pine); color: #fff; }
.btn-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn-dark { background: var(--rv-ink); color: var(--rv-paper); }
.btn-accent { background: var(--rv-terracotta); border: 1px solid var(--rv-terracotta); color: #fff; }
.btn-accent:hover { background: #8e3d1c; color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 520px at 85% -10%, rgba(29, 78, 110, 0.16), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(47, 93, 70, 0.16), transparent 60%),
        radial-gradient(600px 300px at 60% 120%, rgba(168, 75, 37, 0.10), transparent 70%),
        var(--rv-paper);
    padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
    border-bottom: 1px solid var(--rv-line);
}
.hero::before { display: none; }
.hero::after {
    /* thin horizon line, like a sea view */
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1180px, 92vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--rv-sea) 20%, var(--rv-terracotta) 50%, var(--rv-pine) 80%, transparent);
    opacity: .35;
}
.hero-content { max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem); margin-bottom: 1.25rem; }
.hero p { color: var(--rv-ink-soft); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 640px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.hero-cta .btn-primary + .btn-primary { background: var(--rv-pine); border-color: var(--rv-pine); box-shadow: 0 6px 16px rgba(47, 93, 70, 0.18); }
.hero-cta .btn-primary + .btn-primary:hover { background: #244a37; border-color: #244a37; }
.hero-join { margin-top: 1.25rem; color: var(--rv-ink-soft); font-size: .95rem; }
.hero-join a { color: var(--rv-terracotta); font-weight: 600; }

/* ---------- Cards (shared) ---------- */
.card, .feature-card, .auth-card, .contact-card, .chart-card, .stat-card,
.game-card, .player-card, .review-card, .rating-summary-card, .course-actions-card,
.course-contact-card, .related-courses-card, .nearby-card, .rate-game-card,
.upcoming-game-card, .action-card, .home-live-card, .filters-bar, .glass-panel {
    background: var(--rv-surface);
    border: 1px solid var(--rv-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.card:hover, .game-card:hover, .player-card:hover, .home-live-card:hover,
.upcoming-game-card:hover, .action-card:hover, .nearby-card:hover {
    box-shadow: var(--shadow-glass-hover);
    transform: translateY(-2px);
}
.feature-card { padding: 2rem 1.5rem; text-align: left; }
.feature-card h3 { font-size: 1.25rem; margin: 1rem 0 .5rem; }
.feature-card p { color: var(--rv-ink-soft); }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--rv-terracotta-tint);
    color: var(--rv-terracotta);
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0;
}
.feature-icon svg { width: 28px; height: 28px; }
.features-grid { gap: 1.25rem; }

/* ---------- Course cards built around an illustration ---------- */
.courses-grid { gap: clamp(1rem, 2.5vw, 1.75rem); }
.course-card,
.course-card-illustrated {
    background: var(--rv-surface);
    border: 1px solid var(--rv-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glass-hover); }
.course-card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.course-card-media {
    position: relative;
    aspect-ratio: 3 / 2;
    background:
        radial-gradient(120% 90% at 20% 10%, rgba(29, 78, 110, .18), transparent 60%),
        radial-gradient(120% 90% at 90% 100%, rgba(47, 93, 70, .22), transparent 60%),
        var(--rv-paper-deep);
    overflow: hidden;
}
.course-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.course-card:hover .course-card-media img { transform: scale(1.04); }
/* Photos (not yet illustrated) get a soft, painterly treatment so the set feels coherent */
.course-card-media:not(.is-illustration) img { filter: saturate(.85) contrast(.95) sepia(.08); }
.course-card-media.is-empty::after {
    content: "";
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cpath d='M0 62 C20 52 40 58 60 50 S100 40 120 46 V80 H0Z' fill='%232f5d46' fill-opacity='.25'/%3E%3Cpath d='M0 70 C30 64 60 72 90 64 S115 62 120 60 V80 H0Z' fill='%231d4e6e' fill-opacity='.25'/%3E%3Ccircle cx='92' cy='22' r='9' fill='%23a84b25' fill-opacity='.25'/%3E%3C/svg%3E") center / cover no-repeat;
}
.course-card-content, .course-card-illustrated .course-card-content { padding: 1.25rem 1.4rem 1.4rem; }
.course-card-title { font-family: var(--font-heading); font-weight: 500; font-size: 1.3rem; color: var(--rv-ink); margin-bottom: .2rem; }
.course-card-location { color: var(--rv-ink-muted); font-size: .92rem; }
.course-card-details { margin-top: .75rem; gap: .5rem; display: flex; flex-wrap: wrap; }
.course-card-details span {
    background: var(--rv-sea-tint);
    color: var(--rv-sea-dark);
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .8rem;
    font-weight: 600;
}
.course-card-details .course-rating { background: var(--rv-terracotta-tint); color: #7a3518; }
.course-card-no-image { background: var(--rv-surface); }

/* ---------- Home: live games / players ---------- */
.home-live { background: var(--rv-surface); border-bottom: 1px solid var(--rv-line); }
.home-live-grid { gap: clamp(1.5rem, 4vw, 3rem); }
.home-live-card a strong { font-family: var(--font-heading); font-weight: 500; font-size: 1.12rem; color: var(--rv-ink); }
.home-live-card a span { color: var(--rv-ink-soft); }
.home-live-meta, .home-live-empty { color: var(--rv-ink-muted); opacity: 1; }

/* ---------- CTA band ---------- */
.cta {
    background: var(--rv-sea);
    color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: #dbe7ef; }
.cta-section h2 { color: var(--rv-sea-dark); }
.cta .btn-primary { background: var(--rv-terracotta); border-color: var(--rv-terracotta); box-shadow: none; }
.cta .btn-primary:hover { background: #8e3d1c; border-color: #8e3d1c; }

/* ---------- Page headers, breadcrumbs, filters ---------- */
.page-header { text-align: left; margin: 2.5rem 0 2rem; }
.page-header h1 { margin-bottom: .5rem; }
.page-subtitle { color: var(--rv-ink-soft); font-size: 1.1rem; }
.breadcrumb-nav, .breadcrumb { font-size: .875rem; }
.breadcrumb-item a { color: var(--rv-ink-soft); }
.breadcrumb-item.active span, .breadcrumb-item.active { color: var(--rv-ink); }
.filters-bar { padding: 1rem 1.25rem; }
.filters-form { gap: .75rem; align-items: end; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], input[type="tel"], input[type="search"], input[type="url"],
select, textarea {
    background: #fff;
    border: 1px solid #cfc3ae;
    border-radius: 12px;
    color: var(--rv-ink);
    font-family: var(--font-body);
}
input::placeholder, textarea::placeholder { color: #69717a; }
input:focus, select:focus, textarea:focus { border-color: var(--rv-sea); }
.form-group label, label { color: var(--rv-ink); font-weight: 500; }
.form-hint { color: var(--rv-ink-muted); }
.checkbox-label input, input[type="checkbox"], input[type="radio"] { accent-color: var(--rv-sea); }

/* ---------- Alerts & badges ---------- */
.alert { border-radius: var(--radius-md); border: 1px solid transparent; }
.alert-success { background: var(--rv-pine-tint); color: #1f4231; border-color: #c4d8c9; }
.alert-error { background: #fbe4e1; color: #7f1d17; border-color: #f0c4bf; }
.alert-warning { background: #fbf0d9; color: #5c3d00; border-color: #ecd9ad; }
.alert-close { color: inherit; }
.badge { border-radius: 999px; font-weight: 600; }
.badge-primary { background: var(--rv-sea-tint); color: var(--rv-sea-dark); }
.badge-success { background: var(--rv-pine-tint); color: #1f4231; }
.badge-warning { background: #fbf0d9; color: #5c3d00; }
.badge-danger { background: #fbe4e1; color: #7f1d17; }
.tag {
    background: var(--rv-paper-deep);
    color: var(--rv-ink-soft);
    border-radius: 999px;
}
.founding-badge, .badge-founding {
    background: var(--rv-terracotta-tint);
    color: #7a3518;
    border: 1px solid #ebc8b4;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
}

/* ---------- Course detail ---------- */
.course-hero { background: transparent; padding-top: 1.5rem; }
.course-hero h1 { margin: 1rem 0 1.25rem; }
.course-hero-image {
    margin: 0 0 1rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--rv-paper-deep);
    box-shadow: var(--shadow-glass);
}
.course-hero-image img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.course-hero-image:not(.is-illustration) img { filter: saturate(.9) contrast(.97); }
.illustration-credit {
    padding: .6rem 1rem;
    font-size: .78rem;
    color: var(--rv-ink-muted);
    background: var(--rv-surface);
    border-top: 1px solid var(--rv-line);
}
.illustration-credit a { color: var(--rv-ink-soft); }
.course-hero-location { color: var(--rv-ink-soft); }
.course-section h2, .course-sidebar h3 { font-family: var(--font-heading); }
.course-stats .stat, .stat {
    background: var(--rv-paper-deep);
    border-radius: var(--radius-md);
}
.stat-value, .stat-number { font-family: var(--font-heading); color: var(--rv-sea); }
.tip-box { background: var(--rv-terracotta-tint); border-left: 3px solid var(--rv-terracotta); border-radius: var(--radius-md); }
.facility-icon { color: var(--rv-pine); }

/* ---------- Games & players ---------- */
.game-card-title, .player-card-title { font-family: var(--font-heading); font-weight: 500; }
.game-date-large, .game-date-small {
    background: var(--rv-sea);
    color: #fff;
    border-radius: var(--radius-md);
}
.game-date-small .date-num, .game-date-large .day { font-family: var(--font-heading); }
.game-spots-badge, .game-card-spots { background: var(--rv-pine-tint); color: #1f4231; border-radius: 999px; }
.game-card-note, .player-card-note, .game-note {
    color: var(--rv-ink-soft);
    font-style: italic;
    border-left: 2px solid var(--rv-line);
    padding-left: .75rem;
}
.game-card-image, .game-card-placeholder { background: var(--rv-paper-deep); }
.chat-section, .chat-container { border-radius: var(--radius-lg); }
.chat-message.own .message-content, .chat-message.own .message-text { background: var(--rv-sea-tint); }

/* ---------- Dashboard ---------- */
.dashboard-header h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.action-card { color: var(--rv-ink); text-decoration: none; }
.action-icon { background: var(--rv-sea-tint); color: var(--rv-sea); border-radius: 14px; }
.quick-actions .action-card:nth-child(2) .action-icon { background: var(--rv-pine-tint); color: var(--rv-pine); }
.quick-actions .action-card:nth-child(3) .action-icon { background: var(--rv-terracotta-tint); color: var(--rv-terracotta); }

/* ---------- Auth ---------- */
.auth-page { background: transparent; }
.auth-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.auth-card h1, .auth-card h2 { font-family: var(--font-heading); }

/* ---------- Blog & static pages ---------- */
.static-page, .legal-content { color: var(--rv-ink); }
.blog-post-content, .blog-post-content p, .legal-content p { font-size: 1.06rem; line-height: 1.8; }
.blog-post-content h2, .blog-post-content h3 { font-family: var(--font-heading); }
.table-scroll { overflow-x: auto; }
.credits-table { width: 100%; border-collapse: collapse; background: var(--rv-surface); border-radius: var(--radius-md); overflow: hidden; }
.credits-table th, .credits-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--rv-line); text-align: left; font-size: .92rem; }
.credits-table th { background: var(--rv-paper-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
    background: var(--rv-sea-dark);
    color: #d5e1ea;
    border-top: none;
}
.footer h4, .footer-links h4 { color: #fff; font-family: var(--font-body); letter-spacing: .08em; }
.footer a, .footer-links a { color: #d5e1ea; }
.footer a:hover, .footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-brand { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: none; }
.footer-brand p, .footer-bottom, .footer-bottom p { color: #c3d3df; }
.footer-logo-img { background: #fff; border-radius: 12px; padding: 6px; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.15); }

/* ---------- Small screens (mobile-first adjustments) ---------- */
@media (max-width: 700px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .courses-grid, .features-grid, .games-grid, .players-grid { grid-template-columns: 1fr; }
    .course-card-title { font-size: 1.2rem; }
    .page-header { margin-top: 1.5rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .course-card:hover, .card:hover { transform: none; }
}

/* Partner sites strip (was inline-styled, low contrast) */
.footer-partners { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 1.5rem 0 .5rem; margin-top: 1.5rem; }
.footer-partners-title { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #c3d3df; margin: 0 0 .75rem; }
.footer-partners-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-partners-links a { font-size: .85rem; color: #d5e1ea; text-decoration: none; }
.footer-partners-links a:hover { color: #fff; text-decoration: underline; }

/* Logo sits on a light chip so its white background blends in */
.nav-logo-img { border-radius: 12px; }

/* Hero: calmer wash */
.hero {
    background:
        radial-gradient(900px 420px at 88% 0%, rgba(29, 78, 110, 0.10), transparent 65%),
        radial-gradient(800px 420px at 0% 100%, rgba(47, 93, 70, 0.10), transparent 65%),
        var(--rv-paper);
}
.home-live .section-header { align-items: center; }

/* Game cards: course image behind a sea-tinted wash with date and tee time */
.game-card-image { position: relative; }
.game-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card-bg + .game-card-placeholder { background: linear-gradient(180deg, rgba(20, 58, 83, .35) 0%, rgba(20, 58, 83, .78) 100%); }
.game-card-date, .game-card-time { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); background: none; }
.game-card-time { font-family: var(--font-heading); font-weight: 500; font-size: 1.9rem; }
.game-spots-badge { z-index: 2; background: var(--rv-terracotta); color: #fff; top: .6rem; left: .6rem; }
.game-card-spots { background: none; color: var(--rv-ink-muted); }
.game-card-action { color: var(--rv-sea); }

/* Dashboard date tiles */
.game-date-small .date-num, .game-date-small .date-month { color: #fff; }
.game-date-small .date-month { opacity: .85; }
.profile-stats .stat { background: transparent; }

/* Date inputs match the other fields */
input[type="date"] { min-height: 44px; padding: .55rem .8rem; }

/* "Can't find a game?" / availability call-outs */
.create-game-cta, .availability-cta {
    background: var(--rv-sea-tint) !important;
    border: 1px solid #c9d9e4 !important;
}
.create-game-cta h2, .create-game-cta h3, .availability-cta h2, .availability-cta h3 { font-family: var(--font-heading); }

@media (max-width: 700px) {
    .filters-form { flex-direction: column; align-items: stretch; }
    .filters-form .filter-group, .filters-form select, .filters-form input, .filters-form .btn { width: 100%; }
}

/* Dark editorial headers (city, guides): keep text light and readable */
.city-hero, .guide-hero { background: linear-gradient(135deg, var(--rv-sea) 0%, var(--rv-sea-dark) 100%); color: #fff; }
.city-hero .breadcrumb a, .city-hero .breadcrumb-item a, .guide-hero a { color: #dbe7ef; }
.city-hero .breadcrumb-item.active span, .guide-hero .breadcrumb-item.active span { color: #fff; }
.sidebar-cta { color: #fff; }
.sidebar-cta h3, .sidebar-cta p { color: #fff; }

/* Blog cards: same treatment as course cards */
.blog-card, .post-card {
    background: var(--rv-surface) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

/* City pages: course image cards */
.course-card-image { aspect-ratio: 3 / 2; height: auto; background: var(--rv-paper-deep); }
.course-card-image img { width: 100%; height: 100%; object-fit: cover; }
.badge-featured { background: var(--rv-terracotta); color: #fff; }
