/* CamAtlas — clean, fast, mobile-first. No frameworks, no web fonts, no images. */
:root {
  --sand: #fdf8ec;
  --sand-dark: #f4ead2;
  --sea: #0e7490;
  --sea-dark: #155e75;
  --sea-light: #e0f2f7;
  --coral: #ea580c;
  --ink: #21302e;
  --muted: #64706d;
  --card: #ffffff;
  --line: #e7ddc8;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sea-dark); }
img, iframe { max-width: 100%; }

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--sea), var(--sea-dark));
  color: #fff;
  padding: 0.9rem 1rem;
}
.site-header .wrap { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.site-title { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.01em; }
.site-title a { color: #fff; text-decoration: none; }
.site-tagline { font-size: 0.9rem; opacity: 0.9; }
.site-nav { margin-left: auto; font-size: 0.95rem; }
.site-nav a { color: #d6eef5; text-decoration: none; margin-left: 1rem; }
.site-nav a:hover { color: #fff; text-decoration: underline; }

/* Layout */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
main { padding: 1.5rem 0 2.5rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.2rem 0 0.6rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2rem 0 0.5rem; padding-top: 0.4rem; border-top: 2px solid var(--sand-dark); }
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.3rem; }
p { margin: 0.55rem 0; }
.lede { font-size: 1.12rem; color: #3c4a47; }
.small { font-size: 0.88rem; color: var(--muted); }
.badge-live {
  display: inline-block; background: #dc2626; color: #fff; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.15rem 0.55rem; border-radius: 999px; vertical-align: middle; margin-right: 0.4rem;
}

/* Player */
.player-wrap { margin: 1rem 0 0.5rem; }
.player {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #0b2530; border-radius: var(--radius); overflow: hidden;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #bfe3ee; font-size: 0.95rem; text-align: center; padding: 1rem;
}
.offline-note {
  background: #fff7ed; border: 1px solid #fdba74; border-radius: var(--radius);
  padding: 0.9rem 1rem; margin: 0.75rem 0;
}
.offline-note strong { color: #9a3412; }

/* Click-to-load player facade: poster + play button, no YouTube code
   until the visitor clicks. */
.player-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  cursor: pointer; background: #0b2530; display: block; text-align: left;
}
.player-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-facade-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border-radius: 12px; background: rgba(11, 37, 48, 0.85);
  color: #fff; font-size: 24px; line-height: 48px; text-align: center;
}
.player-facade:hover .player-facade-play,
.player-facade:focus-visible .player-facade-play { background: #c00; }
.player-facade-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0.8rem 0.6rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff; font-size: 0.95rem;
}
.player-loading[hidden] { display: none; }

/* Live conditions */
.conditions {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; margin: 1.2rem 0;
}
.conditions h2 { margin-top: 0; border-top: none; padding-top: 0; }
.conditions-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem 1.2rem; margin: 0.7rem 0 0.3rem;
}
.conditions-grid div { background: var(--sea-light); border-radius: 8px; padding: 0.55rem 0.7rem; }
.conditions-grid dt { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.conditions-grid dd { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--sea-dark); }
.conditions-status { color: var(--muted); }

/* Beach cards (homepage) */
.beach-grid { display: grid; gap: 1.1rem; margin: 1.2rem 0; }
@media (min-width: 680px) { .beach-grid { grid-template-columns: repeat(3, 1fr); } }
.beach-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.beach-card .thumb { aspect-ratio: 16 / 9; background: #0b2530; }
.beach-card .thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.beach-card .body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.beach-card h3 { margin: 0 0 0.3rem; font-size: 1.08rem; }
.beach-card h3 a { color: var(--ink); text-decoration: none; }
.beach-card h3 a:hover { color: var(--sea); text-decoration: underline; }
.beach-card p { margin: 0.3rem 0 0.8rem; font-size: 0.95rem; color: #3c4a47; flex: 1; }
.btn {
  display: inline-block; background: var(--sea); color: #fff; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--sea-dark); color: #fff; }

/* FAQ */
.faq-list { margin: 0.5rem 0; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.95rem; margin: 0.55rem 0;
}
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--sea-dark); }
.faq-list details p { margin: 0.45rem 0 0.1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--sand-dark);
  padding: 1.4rem 1rem 2rem; font-size: 0.9rem; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a { color: var(--sea-dark); }
.site-footer nav a { margin-right: 1rem; }

/* Breadcrumbs */
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4rem; }
.crumbs a { color: var(--muted); }

/* Cookie banner (fixed bottom bar; never covers the player — it sits
   below the page content and is dismissed with one click) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--sea-dark); color: #fff;
  padding: 0.8rem 1rem; font-size: 0.9rem; line-height: 1.5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-banner a { color: #bfe3ee; }
.cookie-banner .cookie-accept {
  background: #fff; color: var(--sea-dark); font-weight: 700;
  border: 0; border-radius: 8px; padding: 0.5rem 1.1rem; cursor: pointer;
  font-size: 0.95rem; white-space: nowrap;
}
