/* -----------------------------------------------------------
   Let’s Go Surfing — Vintage Tropical UI (v2)
   ----------------------------------------------------------- */

:root{
  --bg:#f7f1dc;
  --ink:#152126;
  --muted:rgba(21,33,38,.72);

  --ocean:#1aa6a6;
  --ocean2:#2cc7b8;
  --ocean-deep:#0e6f7d;

  --sun:#ffb703;
  --sunset:#fb6f3a;
  --hibiscus:#ff4f87;

  --go:#2e9f5b;
  --maybe:#f0b429;
  --no:#e34b4b;

  --panel:rgba(255,255,255,.74);
  --panel-strong:rgba(255,255,255,.86);

  --radius:18px;
  --radius-sm:14px;
  --shadow:0 16px 34px rgba(0,0,0,.12);
  --shadow-soft:0 10px 18px rgba(0,0,0,.08);

  --border:rgba(0,0,0,.10);

  --font-head:"Fredoka",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --font-body:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* Base */
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  color:var(--ink);
  font-family:var(--font-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{color:inherit;}
.container{width:min(1100px,calc(100% - 32px));margin:0 auto;}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.skip-link{position:absolute;top:-60px;left:16px;background:#000;color:#fff;padding:10px 12px;border-radius:10px;z-index:9999;}
.skip-link:focus{top:16px;}

/* Site background texture vibe */
.page-home,
.page-results,
.page-spot{
  background:
    radial-gradient(1200px 520px at 20% 0%, rgba(255,183,3,.18), transparent 60%),
    radial-gradient(1200px 620px at 80% 0%, rgba(251,111,58,.14), transparent 62%),
    radial-gradient(900px 600px at 50% 10%, rgba(26,166,166,.16), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(247,241,220,.95));
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(12px);
  background:rgba(247,241,220,.70);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand-mark{
  font-size:22px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.08));
}
.brand-name{
  font-family:var(--font-head);
  font-weight:600;
  letter-spacing:.2px;
  font-size:18px;
}
.nav{display:flex;gap:16px;align-items:center;}
.nav-link{
  text-decoration:none;
  opacity:.88;
  padding:8px 10px;
  border-radius:12px;
}
.nav-link:hover{background:rgba(255,255,255,.58);}

/* Hero wrapper */
.hero{
  padding: 32px 0 46px;
}
.hero-inner{
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* Hero top */
.hero-top{
  text-align:center;
  padding-top:6px;
}
.hero-title{
  margin:10px 0 8px;
  font-family:var(--font-head);
  font-size:clamp(30px,4.6vw,50px);
  line-height:1.02;
  letter-spacing:.2px;
  text-shadow:0 2px 0 rgba(255,255,255,.75);
}
.hero-subtitle{
  margin:0 auto;
  max-width:760px;
  color:var(--muted);
  font-size:16px;
  line-height:1.5;
}

/* Decorative logo */
.hero-logo{
  width:96px;
  height:66px;
  margin:0 auto 10px;
  position:relative;
}
.hero-logo .sun{
  position:absolute;
  width:52px;height:52px;
  left:22px;top:0;
  border-radius:50%;
  background: radial-gradient(circle at 35% 30%, #fff4c6 0%, var(--sun) 46%, #f39b00 100%);
  box-shadow:0 10px 22px rgba(251,111,58,.20);
}
.hero-logo .wave{
  position:absolute;
  width:96px;height:36px;
  left:0;bottom:0;
  border-radius:24px;
  background: linear-gradient(90deg, var(--ocean) 0%, var(--ocean2) 40%, var(--ocean-deep) 100%);
  box-shadow:0 12px 20px rgba(14,111,125,.20);
  clip-path: polygon(0 70%, 10% 55%, 20% 70%, 30% 50%, 40% 66%, 50% 40%, 60% 62%, 70% 38%, 80% 60%, 90% 45%, 100% 58%, 100% 100%, 0 100%);
  opacity:.98;
}

/* Panels */
.panel{
  background:var(--panel);
  border:1px solid rgba(0,0,0,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.panel-search{padding:16px;}

/* Pills */
.pill{
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.66);
  border:1px solid rgba(0,0,0,.08);
  color:rgba(21,33,38,.78);
}

/* Buttons */
.btn{
  border:0;
  cursor:pointer;
  border-radius:16px;
  padding:12px 14px;
  font-weight:800;
  font-family:var(--font-body);
  letter-spacing:.2px;
  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  user-select:none;
}
.btn:active{transform:translateY(1px) scale(.99);}

.btn-primary{
  background: linear-gradient(180deg, var(--sunset), #ea4f2f);
  color:#fff;
  box-shadow:0 14px 22px rgba(251,111,58,.25);
}
.btn-primary:hover{filter:brightness(1.03); box-shadow:0 16px 26px rgba(251,111,58,.28);}

.btn-ghost{
  background:rgba(255,255,255,.62);
  border:1px solid rgba(0,0,0,.10);
}
.btn-ghost:hover{filter:brightness(1.03);}

.btn-card{
  width:100%;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.10);
}
.btn-card:hover{filter:brightness(1.02);}

/* Form */
.zip-form{display:flex;flex-direction:column;gap:10px;}
.zip-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
.zip-input-wrap{
  display:flex;align-items:center;gap:10px;
  background:var(--panel-strong);
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  padding:12px 14px;
  min-width:min(460px,100%);
  box-shadow:var(--shadow-soft);
}
.zip-icon{opacity:.72;}
.zip-input{
  border:0;outline:none;background:transparent;width:100%;
  font-size:16px;padding:2px 0;font-family:var(--font-body);
}
.zip-input::placeholder{color:rgba(21,33,38,.45);}

.zip-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.zip-meta{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;}
.help-text{
  margin:0;
  font-size:13px;
  color:rgba(21,33,38,.70);
  text-align:center;
}
.error-text{
  margin:0;
  font-size:13px;
  color:#b21f1f;
  text-align:center;
  min-height:18px;
}

/* Conditions strip */
.conditions-strip{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  padding:2px 0 6px;
}
.condition-chip{
  background:rgba(255,255,255,.70);
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  padding:8px 10px;
  font-weight:800;
  font-size:13px;
  box-shadow:0 10px 16px rgba(0,0,0,.06);
}

/* Cards section */
.cards{margin-top:10px;}
.section-title{
  text-align:center;
  font-family:var(--font-head);
  font-size:18px;
  margin:10px 0 14px;
  opacity:.92;
}

.card-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}

/* Surf cards */
.surf-card{
  border-radius:var(--radius);
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.70);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
  transform: translateY(0);
  transition: transform .10s ease, box-shadow .12s ease, filter .12s ease;
}
.surf-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.14);
  filter: saturate(1.02);
}

.surf-card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  font-weight:900;
  font-family:var(--font-head);
  letter-spacing:.2px;
  background: rgba(255,255,255,.55);
  border-bottom:1px solid rgba(0,0,0,.08);
}

/* Status badge */
.surf-card-status{
  padding:6px 10px;
  border-radius:999px;
  color:#fff;
  font-family:var(--font-head);
  letter-spacing:.2px;
  border: 1px solid rgba(0,0,0,.10);
}
.surf-card-go .surf-card-status{background:linear-gradient(180deg, rgba(46,159,91,1), rgba(35,135,78,1));}
.surf-card-maybe .surf-card-status{background:linear-gradient(180deg, rgba(240,180,41,1), rgba(220,160,20,1)); color:#2a2200;}
.surf-card-no .surf-card-status{background:linear-gradient(180deg, rgba(227,75,75,1), rgba(195,50,50,1));}

.surf-card-body{padding:12px;}
.spot-line{display:flex;justify-content:space-between;gap:10px;align-items:baseline;}
.muted{color:rgba(21,33,38,.60);}

.mini-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 10px;
}
.mini-pill{
  font-size:12px;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.70);
  font-weight:800;
}

/* Reasons list */
.reasons{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:13px;
  color:rgba(21,33,38,.80);
}

.surf-card-footer{
  padding:12px;
  border-top:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.50);
}

/* Safety banners */
.safety-banner{
  margin:14px auto 0;
  max-width: 920px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 14px;
  border-radius:16px;
  background: rgba(255,183,3,.18);
  border: 1px solid rgba(0,0,0,.08);
}
.safety-icon{font-size:18px;}
.safety-banner p{margin:0;color:rgba(21,33,38,.80);}

.best-window{
  margin-top:12px;
  background: rgba(26,166,166,.14);
}

/* Footer */
.site-footer{
  padding:20px 0 26px;
  border-top:1px solid rgba(0,0,0,.06);
  background:rgba(247,241,220,.72);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(21,33,38,.72);
  font-size:13px;
}

/* Table on spot page */
.table-wrap{width:100%;overflow:auto;}
.hourly-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
}
.hourly-table thead th{
  text-align:left;
  padding:12px 12px;
  background: rgba(255,255,255,.62);
  border-bottom:1px solid rgba(0,0,0,.10);
  position: sticky;
  top: 0;
  z-index: 1;
}
.hourly-table tbody td{
  padding:12px 12px;
  border-bottom:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.72);
  white-space: nowrap;
}
.row-go td{background: rgba(46,159,91,.10);}
.row-maybe td{background: rgba(240,180,41,.10);}
.row-no td{background: rgba(227,75,75,.10);}

.status-pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  border:1px solid rgba(0,0,0,.10);
}
.status-go{background: rgba(46,159,91,.18);}
.status-maybe{background: rgba(240,180,41,.18);}
.status-no{background: rgba(227,75,75,.18);}

.tiny-good{
  display:inline-block;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  background: rgba(26,166,166,.16);
  border:1px solid rgba(0,0,0,.08);
}

/* Responsive */
@media (max-width: 980px){
  .card-grid{grid-template-columns:1fr;}
  .zip-input-wrap{min-width:100%;}
  .zip-actions{justify-content:center;}
  .nav{gap:8px;}
  .nav-link{padding:8px 8px;}
}

/* --- Icon system (SVG sprite) --- */
.icon{
  width: 18px;
  height: 18px;
  display:inline-block;
  vertical-align:-3px;
  color: var(--ink);
  opacity: .88;
}
.icon-lg{ width: 22px; height: 22px; }

.icon-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

/* Use ocean color accents where it feels right */
.icon-ocean{ color: var(--ocean-deep); }
.icon-sun{ color: var(--sunset); }
.icon-hibiscus{ color: var(--hibiscus); }
.icon-warn{ color: #b35a00; }

.brand-name{
  position:relative;
  padding-right: 10px;
}
.brand-name::after{
  content:"";
  position:absolute;
  right:-6px; top:50%;
  width:6px; height:6px;
  transform: translateY(-50%);
  border-radius:999px;
  background: var(--hibiscus);
  box-shadow: 0 0 0 3px rgba(255,79,135,.18);
}
/* --- Best Time Window --- */
.best-time{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(26,166,166,.18),
    rgba(26,166,166,.10)
  );
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.best-time-hero{
  margin-top: 14px;
}

.best-time-label{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .3px;
  margin-bottom: 4px;
}

.best-time-range{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 15px;
  font-weight: 700;
}

.best-time-score{
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.10);
}

