
/* =========================================================
   Fairway Forecast — MOBILE-FIRST PREMIUM (Option B)
   CSS ONLY — no app.js changes
   ========================================================= */

/* ---------- Base / Reset ---------- */
:root{
  /* Premium, higher-contrast green palette */
  --bg: #E4EEE9;
  --surface: #FBFDFC;
  --surface-2: #EDF5F1;

  --text: #071512;
  --muted: #51635F;
  --line: rgba(7, 21, 18, 0.12);

  --brand: #0F766E;
  --brand-2: #115E59;
  --brand-soft: rgba(17,94,89,.16);

  --danger: #C0362C;
  --danger-soft: rgba(192,54,44,.14);

  --shadow-soft: 0 14px 40px rgba(6,24,20,.14);

  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 14px;

  --gap: 14px;
}

*{ box-sizing:border-box; }
html{ 
  height:100%;
  scroll-behavior: smooth;
}
body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -220px, rgba(31,111,92,.16), transparent 65%),
    linear-gradient(var(--bg), var(--bg));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
button, input, select{ font: inherit; }

/* ---------- Layout ---------- */
.ff-wrap{
  max-width:640px;
  margin:14px auto 28px auto;
  padding: 0 16px calc(18px + env(safe-area-inset-bottom));
}

.ff-shell{
  background:
    radial-gradient(160% 120% at 10% 0%, rgba(17,94,89,.12), transparent 55%),
    radial-gradient(140% 120% at 100% 0%, rgba(14,148,136,.10), transparent 60%),
    var(--surface);
  border-radius:32px;
  border:1px solid rgba(7,21,18,.12);
  box-shadow:var(--shadow-soft);
  padding:18px 16px 16px 16px;
  display:flex;
  flex-direction:column;
  gap: var(--gap);
}

/* ---------- Header (DEV: compact, tool-first) ---------- */
.ff-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 6px 2px 2px 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ff-topbar-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.ff-topbar-logo{
  width:34px;
  height:34px;
  border-radius:12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding:5px;
  flex: 0 0 auto;
}

.ff-topbar-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.ff-topbar-title{
  font-size:15px;
  font-weight:700;
  letter-spacing:0.2px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ff-topbar-badge{
  display:inline-block;
  margin-left:6px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--surface-2);
  font-size:11px;
  font-weight:800;
  color: var(--brand-2);
  vertical-align:middle;
}

.ff-topbar-tagline{
  font-size:11px;
  font-weight:600;
  color: var(--muted);
  opacity:0.85;
  line-height:1.2;
}
/* Legacy support */
.ff-brand-text strong{
  font-size:18px;
  letter-spacing:.2px;
  display:block;
}
.ff-brand-text span:not(.ff-brand-sub):not(.ff-tagline){
  font-size:12.5px;
  color:var(--muted);
  margin-top:3px;
  display:block;
}
.ff-brand-title-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.ff-hero-line{
  font-size:13px;
  color:var(--muted);
  margin-top:10px;
  line-height:1.4;
  font-weight:500;
}

/* ---------- Panels / Cards ---------- */
.ff-panel,
.ff-verdict,
.ff-results > *{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}
.ff-panel{ padding:14px; }

/* Compact search panel */
.ff-panel--search{
  padding:10px;
}
.ff-panel--search .ff-label{
  font-size:11px;
  margin-bottom:4px;
}
.ff-panel--search .ff-input{
  padding:8px 10px;
  font-size:14px;
}
.ff-panel--search .ff-btn-primary{
  margin-top:6px !important;
  padding:8px 14px;
  font-size:13px;
}
.ff-panel--search .ff-btn-ghost{
  padding:6px 8px;
  font-size:14px;
}

.ff-panel:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 44px rgba(6,24,20,.18);
}

/* Disable hover lift on search panel for cleaner feel */
.ff-panel--search:hover{
  transform: none;
  box-shadow: var(--shadow-soft);
}

/* Course/location header card – slightly tinted for stronger icon contrast */
.ff-course-header{
  background: #E3F2EC;
  border-color: rgba(31,111,92,.28);
}
.ff-course-header .ff-course-title{
  font-weight: 800;
}
.ff-course-header .ff-sub{
  color: #3E5A53;
}
.ff-course-details{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  font-weight:600;
}
.ff-result-details{
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
  font-weight:600;
}

/* Search result items - compact */
.ff-result{
  display:block;
  width:100%;
  padding:10px 12px;
  margin-bottom:6px;
  border-radius:12px;
  background:var(--surface-2);
  border:1px solid var(--line);
  text-align:left;
  cursor:pointer;
  transition: all 0.15s ease;
}

.ff-result:last-child{
  margin-bottom:0;
}

.ff-result:hover:not(:disabled){
  background:var(--surface);
  border-color:var(--brand);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(6,24,20,.1);
}

.ff-result:active:not(:disabled){
  transform:translateY(0);
}

.ff-result:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

.ff-result-main{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.ff-result-title{
  font-weight:700;
  font-size:13px;
  color:var(--text);
  line-height:1.3;
}

.ff-result-sub{
  font-size:11px;
  color:var(--muted);
  font-weight:500;
}

.ff-result-details{
  font-size:10px;
  color:var(--muted);
  margin-top:2px;
  font-weight:500;
  opacity:0.8;
}

.ff-result-list{
  display:flex;
  flex-direction:column;
}
.ff-course-detail-row{
  margin-bottom:10px;
  line-height:1.5;
}
.ff-course-detail-row strong{
  font-weight:700;
  color:var(--text);
  margin-right:6px;
}
.ff-course-detail-row a{
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
}
.ff-course-detail-row a:hover{
  text-decoration:underline;
}

/* Course logo */
.ff-course-logo{
  width:48px;
  height:48px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid var(--line);
  flex-shrink:0;
  margin-right:12px;
}

.ff-course-header-left{
  display:flex;
  align-items:flex-start;
  gap:12px;
  flex:1;
  min-width:0;
}

/* Quick action buttons */
.ff-quick-actions{
  display:flex;
  gap:8px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
  flex-wrap:wrap;
}

.ff-action-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  background:var(--surface-2);
  border:1px solid var(--line);
  text-decoration:none;
  font-size:20px;
  transition:all 0.2s ease;
  flex-shrink:0;
}

.ff-action-btn:hover,
.ff-action-btn:active{
  background:var(--brand-soft);
  border-color:var(--brand);
  transform:translateY(-1px);
}

/* Course images gallery */
.ff-course-images-gallery{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:8px 0;
  margin:-8px 0 12px 0;
  scrollbar-width:thin;
  scrollbar-color:var(--line) transparent;
}

.ff-course-images-gallery::-webkit-scrollbar{
  height:4px;
}

.ff-course-images-gallery::-webkit-scrollbar-track{
  background:transparent;
}

.ff-course-images-gallery::-webkit-scrollbar-thumb{
  background:var(--line);
  border-radius:2px;
}

.ff-course-image{
  width:120px;
  height:80px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid var(--line);
  cursor:pointer;
  flex-shrink:0;
  transition:transform 0.2s ease;
}

.ff-course-image:hover{
  transform:scale(1.05);
  box-shadow:0 4px 12px rgba(6,24,20,.15);
}

/* Course rating */
.ff-course-rating{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:4px;
  font-size:13px;
}

.ff-rating-stars{
  font-size:14px;
  line-height:1;
  letter-spacing:1px;
}

.ff-rating-count{
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

.ff-nearby-course-rating{
  margin-top:2px;
  font-size:12px;
}

/* Nearby courses */
.ff-nearby-courses-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ff-nearby-course{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:16px;
  background:var(--surface-2);
  border:1px solid var(--line);
  cursor:pointer;
  transition:all 0.2s ease;
  text-align:left;
  width:100%;
}

.ff-nearby-course:hover,
.ff-nearby-course:active{
  background:var(--surface);
  border-color:var(--brand);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(6,24,20,.1);
}

.ff-nearby-course-main{
  flex:1;
  min-width:0;
}

.ff-nearby-course-name{
  font-weight:800;
  font-size:15px;
  margin-bottom:2px;
}

.ff-nearby-course-location{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.ff-nearby-course-distance{
  font-weight:900;
  font-size:14px;
  color:var(--brand);
  flex-shrink:0;
  padding:6px 10px;
  background:var(--brand-soft);
  border-radius:12px;
}

/* Mobile optimizations */
@media (max-width:520px){
  .ff-course-logo{
    width:40px;
    height:40px;
  }
  
  .ff-course-image{
    width:100px;
    height:70px;
  }
  
  .ff-action-btn{
    width:44px;
    height:44px;
    font-size:18px;
  }
  
  .ff-nearby-course{
    padding:10px;
  }
  
  .ff-nearby-course-name{
    font-size:14px;
  }
  
  .ff-nearby-course-distance{
    font-size:12px;
    padding:4px 8px;
  }
  
  .ff-hero-line{
    font-size:12px;
  }
  
  .ff-round-playability-grid{
    gap:8px;
  }
  
  .ff-round-window{
    padding:10px;
  }
  
  /* Ensure all interactive elements meet 44px minimum */
  .ff-btn,
  .ff-tab,
  .ff-action-btn,
  .ff-fav-pill{
    min-height:44px;
    min-width:44px;
  }
  
  /* Improve text readability */
  .ff-hint,
  .ff-sub,
  .ff-muted{
    font-size:12px;
    line-height:1.5;
  }
}

/* ---------- Search ---------- */
.ff-label{
  font-size:13px;
  font-weight:600;
  color:var(--muted);
  margin-bottom:10px;
  display:block;
}
/* --- Utility: Hidden class for JS-controlled visibility --- */
.ff-hidden {
  display: none !important;
}

/* --- Search results slot: sits under search bar --- */
.ff-search-results{
  display: block;           /* Always visible when has content */
  margin-top: 6px;
  margin-bottom: 6px;
  min-height: 0;            /* Allow collapsing when empty */
}

/* Hide when empty - use :empty as fallback only */
.ff-search-results:empty{
  display: none;
}

/* The card that app.js renders (“Select a result”) */
.ff-search-results > *{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  padding: 10px;
}

/* Make the list easier to scan/tap */
.ff-search-results button,
.ff-search-results a{
  width:100%;
  text-align:left;
}
/* IMPORTANT: contain the geo button + prevent overflow */
.ff-search-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:6px;
  align-items:center;
  width: 100%;
}

.ff-input{
  padding:13px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  font-size:16px;
  background:#fff;
  min-width: 0;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ff-input:focus{
  border-color:rgba(31,111,92,.45);
  box-shadow:0 0 0 4px rgba(31,111,92,.14);
  outline:none;
  transform: translateY(-1px);
}

.ff-btn{
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
  font-size:15px;
  min-height:46px;
  padding:12px 14px;
  cursor:pointer;
  max-width: 100%;
  transition: all 0.2s ease;
}

.ff-btn:hover:not(:disabled){
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6,24,20,.12);
}

.ff-btn:active:not(:disabled){
  transform: translateY(0);
}

.ff-btn:disabled{
  opacity: 0.7;
  cursor: not-allowed;
}

.ff-btn-primary{
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#fff;
  border-color:rgba(31,111,92,.45);
}

.ff-btn-ghost{
  width:46px;
  min-width:46px;
  padding:0;
  display:grid;
  place-items:center;
  background:#fff;
}

.ff-units-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
}
.ff-select{
  border-radius:16px;
  border:1px solid var(--line);
  padding:10px 12px;
  font-weight:700;
  background:#fff;
  min-height:44px;
}

/* Mobile: force geo button INSIDE the card by stacking row */
@media (max-width: 520px){
  .ff-search-row{
    grid-template-columns: 1fr 46px;
    grid-template-areas:
      "input geo"
      "search search";
  }
  #searchInput{ grid-area: input; }
  #btnGeo{ grid-area: geo; }
  #searchBtn{ grid-area: search; width:100%; }
}

/* ---------- Advanced Options ---------- */
.ff-advanced{
  margin-bottom:8px;
}

.ff-advanced-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  padding:10px 14px;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  cursor:pointer;
  transition: all 0.2s ease;
}

.ff-advanced-toggle:hover{
  background:var(--surface);
  border-color:var(--brand);
  color:var(--text);
}

.ff-advanced-arrow{
  font-size:10px;
  transition: transform 0.2s ease;
}

.ff-advanced-options{
  margin-top:10px;
  padding:12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  animation: slideUp 0.2s ease;
}

/* ---------- Course Direction Selector ---------- */
.ff-course-direction{
  margin:0;
}
.ff-course-direction .ff-label{
  margin-bottom:8px;
  font-size:12px;
}
.ff-course-direction .ff-select{
  width:100%;
}

/* ---------- Tabs (sticky segmented control) ---------- */
.ff-tabs{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
  position: sticky;
  top: 8px;
  z-index: 20;
  padding: 8px;
  margin: 0 -2px;
  border-radius: 22px;
  background: rgba(241,245,243,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(14,28,26,.08);
}

.ff-tab{
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--surface);
  min-height:46px;
  min-width:44px;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ff-tab::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ff-tab:active::after{
  opacity: 1;
}

.ff-tab.active{
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#fff;
  border-color:rgba(31,111,92,.45);
  box-shadow:0 4px 12px rgba(15,118,110,.25);
  transform: scale(1.02);
}

.ff-tab:not(.active):hover{
  background:var(--surface-2);
  border-color:rgba(15,118,110,.25);
  transform: translateY(-1px);
}

/* ---------- Verdict (Play / No-Play) ---------- */
.ff-verdict{
  padding:12px 14px;
  cursor:pointer;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.ff-verdict:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 44px rgba(6,24,20,.18);
}
.ff-verdict-main{
  display:flex;
  gap:12px;
  align-items:center;
}
.ff-verdict-badge,
.ff-verdict-icon{
  width:36px;
  height:36px;
  border-radius:14px;
  background:var(--surface-2);
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:18px;
  flex:0 0 auto;
}
.ff-verdict-text{ flex:1; min-width:0; }
.ff-verdict-label{
  font-weight:900;
  font-size:16px;
  line-height:1.15;
}
.ff-verdict-reason{
  font-size:13px;
  color:var(--muted);
  margin-top:2px;
}
.ff-verdict-time{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px;
}
.ff-verdict-time span{
  font-weight:500;
}
.ff-time-separator{
  opacity:0.5;
}
.ff-time-hint{
  font-size:10px;
  color:var(--muted);
  opacity:0.6;
  margin-top:4px;
}
.ff-verdict-meta{
  margin-top:8px;
  padding-top:8px;
  border-top:1px dashed rgba(14,28,26,.18);
  font-size:13px;
  color:var(--muted);
}

/* Round Planner subtitle */
.ff-planner-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* Apply to tee time button */
.ff-btn-apply {
  margin-top: 12px;
  width: 100%;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(15,118,110,.25);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ff-btn-apply:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,118,110,.25);
}

.ff-btn-apply:active {
  transform: translateY(0);
}

/* =========================================================
   PREMIUM TEASER CARD
   ========================================================= */

.ff-premium-teaser {
  margin-bottom: var(--gap);
}

.ff-premium-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.ff-premium-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ff-premium-pill {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
}

.ff-premium-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.ff-premium-features {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ff-premium-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.ff-premium-feature-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.ff-premium-feature-text {
  flex: 1;
}

.ff-btn-premium {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ff-btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
}

.ff-btn-premium:active {
  transform: translateY(0);
}

/* Best window label prefix */
.ff-verdict-label-prefix {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 2px;
}

.ff-verdict--play{
  background:linear-gradient(180deg,rgba(31,111,92,.16),#fff);
  border-color:rgba(31,111,92,.35);
}
.ff-verdict--no{
  background:linear-gradient(180deg,rgba(192,54,44,.16),#fff);
  border-color:rgba(192,54,44,.35);
}
.ff-verdict--maybe{
  background:linear-gradient(180deg,rgba(245,158,11,.18),#fff);
  border-color:rgba(245,158,11,.30);
}
.ff-verdict--nighttime{
  background:linear-gradient(180deg,rgba(59,130,246,.12),#fff);
  border-color:rgba(59,130,246,.25);
}

/* ---------- Results ---------- */
.ff-results{
  display:flex;
  flex-direction:column;
  gap:var(--gap);
}
#results > *{ 
  padding:14px;
  animation: slideUp 0.35s ease;
}

/* Loading skeleton animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.ff-loading{
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  min-height: 20px;
}

/* Current card layout helpers */
.ff-current-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.ff-current-icon{
  display:flex;
  align-items:center;
  justify-content:center;
}

#results h2, #results h3{
  margin:0 0 6px 0;
  font-size:18px;
  letter-spacing:.1px;
}
#results p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

/* ---------- Favourites chips (compact) ---------- */
#results .favourites,
#results .favorites,
#results [data-favourites],
#results [data-favorites]{
  margin-top:8px;
  padding:8px;
  border-radius:12px;
  background:var(--surface-2);
  border:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  overflow:hidden;
}

/* Favourite pill buttons - smaller */
.ff-fav-pill,
#results .favourites button,
#results .favorites button{
  padding:6px 10px;
  font-size:11px;
  font-weight:600;
  border-radius:8px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text);
  cursor:pointer;
  transition:all 0.15s ease;
  white-space:nowrap;
}

.ff-fav-pill:hover,
#results .favourites button:hover,
#results .favorites button:hover{
  background:var(--brand);
  color:white;
  border-color:var(--brand);
}

/* ---------- Weather icon (emoji-based) ---------- */
.ff-wicon{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:20px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #f2faf7);
  box-shadow:0 10px 24px rgba(6,24,20,.22);
}

.ff-wicon--xl{
  width:88px;
  height:88px;
  font-size:40px;
}

.ff-wicon--lg{
  width:64px;
  height:64px;
  font-size:30px;
}

.ff-wicon--sm{
  width:32px;
  height:32px;
  font-size:20px;
}
/* =========================================================
   FIX: “Rain chance0% / Sunrise08:10” spacing
   Works when markup is: TextNode + <strong>Value</strong>
   ========================================================= */
#results .ff-kvline{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
}

/* Convert any line that contains a <strong> into a 2-col row */
#results div:has(> strong),
#results p:has(> strong),
#results li:has(> strong){
  display:grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: baseline;
}

/* Make the label part look consistent (the text node becomes first “cell”) */
#results div:has(> strong) strong,
#results p:has(> strong) strong,
#results li:has(> strong) strong{
  margin-left: 0 !important;
  justify-self: end;
  font-weight: 900;
}

/* If browser doesn’t support :has(), keep a safe fallback */
@supports not(selector(:has(*))){
  #results strong{ margin-left: 8px; }
}

/* ---------- Tables ---------- */
#results table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
}
#results thead th{
  background:#EEF4F2;
  color:var(--muted);
  font-size:12.5px;
  font-weight:900;
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
#results tbody td{
  padding:10px 10px;
  border-bottom:1px solid rgba(14,28,26,.06);
  font-weight:800;
  vertical-align:middle;
}
#results tbody tr:last-child td{ border-bottom:0; }
.ff-daily-row{
  transition:background-color 0.2s ease;
}
.ff-daily-row:hover{
  background-color:var(--surface-2);
}
.ff-daily-row:active{
  background-color:var(--brand-soft);
}

/* Info icon styling */
.ff-info-icon{
  display:inline-block;
  font-size:12px;
  opacity:0.6;
  margin-left:6px;
  vertical-align:middle;
  transition:opacity 0.2s ease;
  cursor:help;
}
.ff-daily-row:hover .ff-info-icon,
.ff-verdict:hover .ff-info-icon{
  opacity:1;
}
.ff-verdict-label .ff-info-icon{
  font-size:11px;
}
#results td img{
  width:26px;
  height:26px;
  vertical-align:middle;
}

/* Daily: hide last column (usually Summary) */
@media (max-width:520px){
  #results table thead th:last-child,
  #results table tbody td:last-child{
    display:none;
  }
}

/* ---------- Course Difficulty ---------- */
.ff-panel--difficulty{
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

.ff-difficulty{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.ff-difficulty-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.ff-difficulty-title{
  font-weight:900;
  font-size:16px;
}

.ff-difficulty-badge{
  font-weight:800;
  font-size:14px;
  padding:8px 14px;
  border-radius:20px;
  transition: all 0.3s ease;
}

.ff-difficulty--easy{
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ff-difficulty--moderate{
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.ff-difficulty--challenging{
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.ff-difficulty--difficult{
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ff-difficulty--championship{
  background: rgba(17, 24, 39, 0.1);
  color: #1f2937;
  border: 1px solid rgba(17, 24, 39, 0.25);
}

.ff-difficulty-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

.ff-difficulty-stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:10px 8px;
  background:var(--surface);
  border-radius:14px;
  border:1px solid var(--line);
}

.ff-difficulty-label{
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.ff-difficulty-stat strong{
  font-size:18px;
  font-weight:900;
  color:var(--text);
}

/* ---------- Today's Challenge (combined course + weather) ---------- */
.ff-panel--challenge{
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

.ff-challenge{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.ff-challenge-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.ff-challenge-title{
  font-weight:900;
  font-size:16px;
}

.ff-challenge-badge{
  font-weight:800;
  font-size:14px;
  padding:8px 16px;
  border-radius:20px;
  transition: all 0.3s ease;
  /* Default appearance */
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.ff-challenge-reason{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
}

.ff-challenge--easy{
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ff-challenge--fair{
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.ff-challenge--moderate{
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.ff-challenge--challenging{
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.ff-challenge--tough,
.ff-challenge--hard{
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ff-score-updated{
  animation: scoreUpdate 0.5s ease;
}

/* ---------- Smooth Animations ---------- */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scoreUpdate {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ff-fade-in {
  animation: fadeIn 0.4s ease;
}

.ff-slide-up {
  animation: slideUp 0.4s ease;
}

/* ---------- Icon + ghost button contrast tweaks ---------- */
.ff-btn-ghost{
  background: var(--surface-2);
  color: var(--brand-2);
}

.ff-star{
  color: #e0a500;
}

/* ---------- Modal ---------- */
.ff-modal[hidden]{
  display:none !important;
}

.ff-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  pointer-events:auto;
}

.ff-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,15,12,.45);
  backdrop-filter: blur(8px);
}

.ff-modal-dialog{
  position:relative;
  max-width:420px;
  margin:0 16px;
  padding:18px 18px 16px 18px;
  border-radius:22px;
  background:var(--surface);
  border:1px solid rgba(7,21,18,.18);
  box-shadow:0 22px 55px rgba(6,24,20,.5);
  z-index:61;
}

.ff-modal-title{
  margin:0 24px 8px 0;
  font-size:18px;
  font-weight:800;
}

.ff-modal-body{
  margin:0;
  font-size:14px;
  color:var(--muted);
  line-height:1.5;
}

.ff-modal-close{
  position:absolute;
  top:10px;
  right:10px;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(7,21,18,.16);
  background:var(--surface-2);
  cursor:pointer;
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text);
  font-weight:700;
}
.ff-modal-close:hover{
  background:var(--surface);
  border-color:rgba(7,21,18,.28);
}

/* ---------- Enhanced Current Weather ---------- */
.ff-current-temp{
  font-size:42px;
  font-weight:900;
  line-height:1;
  margin-bottom:4px;
}
.ff-feels-like{
  display:block;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
  margin-top:4px;
}
.ff-tomorrow-label{
  font-size:14px;
  font-weight:700;
  color:var(--brand-2);
  margin-left:6px;
}
.ff-tomorrow-label-small{
  font-size:11px;
  font-weight:700;
  color:var(--brand-2);
  margin-left:4px;
}
.ff-nighttime-badge{
  background:rgba(7,21,18,.08);
  border-radius:12px;
  padding:8px 12px;
  margin-bottom:12px;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  text-align:center;
}
.ff-current-icon{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ---------- Wind Direction Compass ---------- */
.ff-wind-display{
  display:flex;
  align-items:center;
  gap:10px;
}
.ff-wind-compass{
  position:relative;
  width:32px;
  height:32px;
  flex-shrink:0;
}
.ff-compass-bg,
.ff-compass-arrow{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}
.ff-compass-arrow{
  transition:transform 0.3s ease;
  color:var(--brand);
}
.ff-wind-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.ff-wind-text strong{
  font-size:15px;
}
.ff-wind-dir{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}

/* ---------- Enhanced Decision Card ---------- */
.ff-verdict-quick-stats{
  display:flex;
  gap:12px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(7,21,18,.15);
}
.ff-quick-stat{
  display:flex;
  flex-direction:column;
  gap:2px;
  flex:1;
}
.ff-quick-label{
  font-size:11px;
  color:var(--muted);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.ff-quick-stat strong{
  font-size:16px;
  font-weight:900;
  color:var(--text);
}

/* ---------- Horizontal Hourly Forecast ---------- */
.ff-hourly-scroll{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:8px 0 16px 0;
  margin:0 -14px;
  padding-left:14px;
  padding-right:14px;
  scrollbar-width:thin;
  scrollbar-color:var(--line) transparent;
}
.ff-hourly-scroll::-webkit-scrollbar{
  height:6px;
}
.ff-hourly-scroll::-webkit-scrollbar-track{
  background:transparent;
}
.ff-hourly-scroll::-webkit-scrollbar-thumb{
  background:var(--line);
  border-radius:3px;
}
.ff-hourly-card{
  flex:0 0 auto;
  width:80px;
  padding:12px 8px;
  border-radius:16px;
  background:var(--surface-2);
  border:1px solid var(--line);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
  transition:all 0.2s ease;
}
.ff-hourly-card:hover{
  background:var(--surface);
  border-color:rgba(15,118,110,.25);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(6,24,20,.1);
}
.ff-hourly-best{
  background:var(--brand-soft);
  border-color:var(--brand);
  border-width:2px;
  box-shadow:0 4px 16px rgba(15,118,110,.2);
}
.ff-hourly-time{
  font-size:12px;
  font-weight:700;
  color:var(--muted);
}
.ff-hourly-icon{
  font-size:24px;
}
.ff-hourly-temp{
  font-size:16px;
  font-weight:900;
}
.ff-hourly-rain{
  font-size:11px;
  color:var(--muted);
  font-weight:700;
}
.ff-hourly-wind{
  font-size:11px;
  color:var(--muted);
  font-weight:700;
}

/* ---------- Mini Charts ---------- */
.ff-hourly-charts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.ff-chart-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ff-chart-label{
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.ff-mini-chart{
  display:flex;
  align-items:flex-end;
  gap:3px;
  height:60px;
  padding:4px 0;
}
.ff-mini-bar{
  flex:1;
  min-width:4px;
  border-radius:2px 2px 0 0;
  transition:opacity 0.2s;
}
.ff-mini-bar:hover{
  opacity:0.8;
}

/* ---------- Round-Based Playability Windows ---------- */
.ff-round-playability-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.ff-round-window{
  padding:12px;
  border-radius:16px;
  background:var(--surface-2);
  border:1px solid var(--line);
}
.ff-round-window-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.ff-round-window-name{
  font-weight:800;
  font-size:15px;
}
.ff-round-window-time{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}
.ff-round-window-status{
  font-weight:900;
  font-size:16px;
  margin-bottom:4px;
}
.ff-round-window-reason{
  font-size:12px;
  color:var(--muted);
  margin-bottom:8px;
}
.ff-round-window-details{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
}
.ff-round-window-details span{
  font-weight:600;
}
.ff-round-playable{
  background:rgba(31,111,92,.1);
  border-color:rgba(31,111,92,.3);
}
.ff-round-marginal{
  background:rgba(245,158,11,.12);
  border-color:rgba(245,158,11,.25);
}
.ff-round-poor{
  background:rgba(192,54,44,.1);
  border-color:rgba(192,54,44,.25);
}

/* ---------- Wind Impact Tags ---------- */
.ff-wind-impact{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.5px;
  padding:2px 6px;
  border-radius:6px;
  margin-left:6px;
}
.ff-wind-impact-small{
  display:block;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.5px;
  margin-top:2px;
}
.ff-wind-impact--into{
  background:rgba(192,54,44,.15);
  color:#C0362C;
}
.ff-wind-impact--cross{
  background:rgba(245,158,11,.15);
  color:#A16207;
}
.ff-wind-impact--helping{
  background:rgba(31,111,92,.15);
  color:#0F766E;
}

/* ---------- Last Updated ---------- */
.ff-last-updated{
  font-size:11px;
  color:var(--muted);
  text-align:center;
  padding:8px 0;
  opacity:0.7;
}

/* ---------- Footer ---------- */
.ff-foot{
  font-size:11px;
  color:var(--muted);
  text-align:center;
  padding:12px 0 8px;
}
.ff-foot p{
  margin:0 0 4px;
}
.ff-foot-tagline{
  font-size:10px;
  opacity:0.8;
  max-width:280px;
  margin:4px auto 8px;
  line-height:1.4;
}
.ff-foot-credits{
  font-size:10px;
  opacity:0.7;
}
.ff-foot-copy{
  font-size:9px;
  opacity:0.5;
  margin-top:6px !important;
}
.ff-foot a{
  color:var(--muted);
  text-decoration:underline;
}
.ff-foot a:hover{
  color:var(--brand);
}

/* =========================================================
   DEV: Support link (Buy Me a Coffee)
   ========================================================= */

.ff-support{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ff-support-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  box-shadow: none;
}

.ff-support-btn:hover{
  background: var(--surface-2);
  border-color: rgba(7,21,18,.18);
  color: var(--text);
}

.ff-support-note{
  font-size: 10px;
  color: var(--muted);
  opacity: 0.8;
  max-width: 320px;
  line-height: 1.4;
}

.ff-premium-note{
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
}

.ff-premium-note a{
  color: var(--muted);
  text-decoration: underline;
}

.ff-premium-note a:hover{
  color: var(--brand);
}

/* Hide large premium teaser card in DEV (keep messaging subtle) */
#premiumTeaserSection{
  display: none !important;
}

/* Search results dropdown polish */
.ff-search-results{
  min-height: 54px; /* reserve space to reduce layout shifts */
}

.ff-search-results .ff-card{
  padding: 10px;
}

.ff-result-list{
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}

.ff-inline-status{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ff-spinner{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(7,21,18,.18);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

/* =========================================================
   TEE-TIME DECISION STRIP
   Mobile-first, premium design for instant play/no-play
   ========================================================= */

/* Screen reader only */
.ff-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ff-tee-time-strip {
  margin-bottom: var(--gap);
}

.ff-tee-strip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ff-tee-strip-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 44px rgba(6,24,20,.18);
}

/* Eyebrow label */
.ff-tee-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Selected tee time display */
.ff-tee-selected-time {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

/* Date row container */
.ff-tee-date-row {
  margin: 10px 0;
}

/* Applied confirmation message */
.ff-tee-applied-msg {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  padding: 8px;
  margin-top: 10px;
  background: var(--brand-soft);
  border-radius: 8px;
  animation: fadeInOut 1.5s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-4px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* Header row: Status + Time selector */
.ff-tee-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Status pill */
.ff-tee-strip-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  /* Default neutral state */
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.ff-tee-status-icon {
  font-size: 16px;
}

.ff-tee-status-label {
  font-weight: 800;
}

/* Status states */
.ff-tee-strip-status--play {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.35);
}

.ff-tee-strip-status--risky {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.1));
  color: #a16207;
  border-color: rgba(245, 158, 11, 0.35);
}

.ff-tee-strip-status--no-chance {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.35);
}

/* Date chips row */
.ff-tee-date-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 1;
  min-width: 0;
}

.ff-tee-date-chips::-webkit-scrollbar {
  display: none;
}

.ff-tee-date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 52px;
  min-height: 44px;
  flex-shrink: 0;
}

.ff-tee-date-chip:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--text);
  transform: translateY(-1px);
}

.ff-tee-date-chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(15,118,110,.25);
}

.ff-tee-date-chip-day {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

.ff-tee-date-chip-date {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.ff-tee-date-chip.active .ff-tee-date-chip-day,
.ff-tee-date-chip.active .ff-tee-date-chip-date {
  opacity: 1;
}

/* Disabled date chip (no valid tee times) */
.ff-tee-date-chip:disabled,
.ff-tee-date-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Time selector row */
.ff-tee-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.ff-tee-time-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.ff-tee-time-icon {
  font-size: 16px;
}

/* Time selector */
.ff-tee-time-selector {
  flex-shrink: 0;
}

.ff-tee-select {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
  min-width: 120px;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2351635F' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.ff-tee-select:hover {
  border-color: var(--brand);
  background-color: var(--surface);
}

.ff-tee-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15,118,110,.15);
}

/* Metrics row */
.ff-tee-strip-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.ff-tee-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.2s ease;
}

.ff-tee-metric:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.ff-tee-metric-icon {
  font-size: 16px;
}

.ff-tee-metric-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ff-tee-metric-value {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

/* Highlight metrics that trigger warnings */
.ff-tee-metric--warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.ff-tee-metric--danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.ff-tee-metric--warning .ff-tee-metric-value {
  color: #a16207;
}

.ff-tee-metric--danger .ff-tee-metric-value {
  color: #dc2626;
}

/* Summary text */
.ff-tee-strip-summary {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Animation for status changes */
@keyframes teeStatusPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.ff-tee-strip-status.ff-tee-status-updated {
  animation: teeStatusPulse 0.4s ease;
}

/* Mobile optimizations */
@media (max-width: 520px) {
  .ff-tee-strip-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .ff-tee-strip-status {
    justify-content: center;
  }
  
  .ff-tee-date-chips {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  
  .ff-tee-date-chip {
    min-width: 48px;
    padding: 5px 8px;
  }
  
  .ff-tee-time-row {
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px;
  }
  
  .ff-tee-time-selector {
    width: 100%;
  }
  
  .ff-tee-select {
    width: 100%;
    text-align: center;
  }
  
  .ff-tee-strip-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .ff-tee-metric {
    padding: 8px 4px;
  }
  
  .ff-tee-metric-value {
    font-size: 13px;
  }
}

/* Ultra-wide: center constraint */
@media (min-width: 768px) {
  .ff-tee-strip-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ---------- Ultra small: tighten ---------- */
@media (max-width:360px){
  .ff-wrap{ padding-left:12px; padding-right:12px; }
  .ff-panel, #results > *{ padding:12px; }
  .ff-tab{ min-height:44px; font-size:14px; }
  
  .ff-tee-strip-card {
    padding: 12px;
  }
  
  .ff-tee-strip-status {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* =========================================================
   COUNTRY / STATE SELECTOR (DEV)
   ========================================================= */

.ff-panel--country {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

/* =========================================================
   ROUND SELECTION TOOL (DEV)
   ========================================================= */

.ff-round-tool{
  padding: 14px;
}

.ff-round-tool-head{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom: 10px;
}

.ff-round-tool-title{
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
}

.ff-round-tool-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.ff-round-step{
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed var(--line);
}

.ff-round-step:first-of-type{
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.ff-round-step-label{
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ff-round-presets{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.ff-chip{
  appearance:none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor:pointer;
}

.ff-chip:hover{
  border-color: rgba(15,118,110,.25);
  background: var(--surface);
}

.ff-chip.active{
  background: linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#fff;
  border-color: rgba(31,111,92,.45);
}

.ff-round-micro{
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.85;
  font-weight: 600;
}

.ff-society{
  margin-top: 10px;
}

.ff-tee-sheet{
  margin-top: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.ff-tee-sheet-title{
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
}

.ff-tee-sheet-grid{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.ff-tee-sheet-slot{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
}

.ff-country-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ff-select-country,
.ff-select-state {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
}

.ff-state-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* OSM Attribution */
.ff-osm-attribution {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.ff-osm-attribution a {
  color: var(--brand);
  text-decoration: none;
}

.ff-osm-attribution a:hover {
  text-decoration: underline;
}

/* Dataset loading indicator */
.ff-loading-dataset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.ff-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Search result count */
.ff-search-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 4px 0;
}


/* =========================================================
   REFACTORED DASHBOARD UI (At-a-Glance)
   Forest/Sage Green palette with high-density layout
   ========================================================= */

/* ---------- Forest/Sage Green Palette ---------- */
:root {
  --forest-dark: #1a4d3e;
  --forest-primary: #2d6a4f;
  --forest-light: #40916c;
  --sage-dark: #52796f;
  --sage-primary: #74a892;
  --sage-light: #a7c4bc;
  --sage-muted: #cad2c5;

  /* Verdict status colors - Semantic tokens */
  --status-play: #2d6a4f;
  --status-play-light: #40916c;
  --status-play-bg: rgba(45, 106, 79, 0.12);
  --status-play-shadow: rgba(45, 106, 79, 0.35);

  --status-caution: #D97706;
  --status-caution-light: #F59E0B;
  --status-caution-bg: rgba(217, 119, 6, 0.12);
  --status-caution-shadow: rgba(217, 119, 6, 0.35);

  --status-delay: #EA580C;
  --status-delay-light: #F97316;
  --status-delay-bg: rgba(234, 88, 12, 0.12);
  --status-delay-shadow: rgba(234, 88, 12, 0.35);

  --status-avoid: #DC2626;
  --status-avoid-light: #EF4444;
  --status-avoid-bg: rgba(220, 38, 38, 0.12);
  --status-avoid-shadow: rgba(220, 38, 38, 0.35);

  --status-unsafe: #991B1B;
  --status-unsafe-light: #B91C1C;
  --status-unsafe-bg: rgba(153, 27, 27, 0.12);
  --status-unsafe-shadow: rgba(153, 27, 27, 0.35);
}

/* ---------- Course Breadcrumb Header ---------- */
.ff-course-breadcrumb {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 12px 14px;
  margin-bottom: var(--gap);
}

.ff-breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ff-breadcrumb-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.ff-breadcrumb-btn:hover {
  background: var(--surface);
  border-color: var(--forest-primary);
}

.ff-breadcrumb-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-breadcrumb-country {
  color: var(--forest-primary);
  font-weight: 800;
}

.ff-breadcrumb-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.ff-breadcrumb-course {
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ff-breadcrumb-expand {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ff-breadcrumb-btn[aria-expanded="true"] .ff-breadcrumb-expand {
  transform: rotate(180deg);
}

.ff-btn-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ff-btn-icon:hover {
  background: var(--forest-primary);
  border-color: var(--forest-primary);
  color: #fff;
}

.ff-btn-icon i {
  width: 20px;
  height: 20px;
}

/* Course Selection Panel */
.ff-course-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  animation: slideUp 0.2s ease;
}

.ff-panel-section {
  margin-bottom: 12px;
}

.ff-panel-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ---------- Duration Selection ---------- */
.ff-duration-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px;
  margin-bottom: var(--gap);
}

.ff-section-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.ff-section-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
}

.ff-section-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ff-duration-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ff-duration-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 72px;
}

.ff-duration-btn:hover {
  background: var(--surface);
  border-color: var(--forest-light);
}

.ff-duration-btn.active {
  background: linear-gradient(135deg, var(--forest-primary), var(--forest-dark));
  border-color: var(--forest-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.3);
}

.ff-duration-holes {
  font-size: 16px;
  font-weight: 900;
}

.ff-duration-time {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  margin-top: 2px;
}

.ff-chip-society {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

/* ---------- Weather Timeline ---------- */
.ff-timeline-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px;
  margin-bottom: var(--gap);
}

.ff-timeline-tee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.ff-timeline-tee-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.ff-icon-sm {
  width: 16px;
  height: 16px;
}

/* Timeline Table Scroll */
.ff-timeline-scroll {
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.ff-timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

.ff-timeline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ff-timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.ff-timeline-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: max-content;
}

.ff-timeline-table th,
.ff-timeline-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ff-timeline-table th {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--surface-2);
}

.ff-timeline-table th:first-child {
  border-radius: 12px 0 0 0;
  position: sticky;
  left: 0;
  z-index: 1;
}

.ff-timeline-table th:last-child {
  border-radius: 0 12px 0 0;
}

.ff-timeline-table td {
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.ff-timeline-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  font-weight: 800;
  color: var(--forest-primary);
}

.ff-timeline-table tbody tr:last-child td {
  border-bottom: none;
}

.ff-timeline-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 12px;
}

.ff-timeline-table tbody tr:last-child td:last-child {
  border-radius: 0 0 12px 0;
}

/* Timeline Weather Icons */
.ff-timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto;
}

.ff-timeline-icon i {
  width: 20px;
  height: 20px;
}

/* ---------- Pro-Tip Callout ---------- */
.ff-pro-tip {
  background: var(--status-caution-bg);
  border: 1px solid var(--status-caution);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 14px;
}

.ff-pro-tip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ff-pro-tip-icon {
  width: 18px;
  height: 18px;
  color: var(--status-caution);
}

.ff-pro-tip-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--status-caution);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ff-pro-tip-text {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* ---------- Detailed Metrics Grid ---------- */
.ff-detailed-metrics {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ff-metrics-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.ff-metrics-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.ff-metrics-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.ff-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ff-metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.2s ease;
}

.ff-metric-card:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.ff-metric-icon {
  width: 22px;
  height: 22px;
  color: var(--forest-primary);
}

.ff-metric-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.ff-metric-value {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

/* Warning/Danger states for metrics */
.ff-metric-card--warning {
  background: var(--status-caution-bg);
  border-color: var(--status-caution);
}

.ff-metric-card--warning .ff-metric-icon {
  color: var(--status-caution);
}

.ff-metric-card--warning .ff-metric-value {
  color: var(--status-caution);
}

.ff-metric-card--danger {
  background: var(--status-avoid-bg);
  border-color: var(--status-avoid);
}

.ff-metric-card--danger .ff-metric-icon {
  color: var(--status-avoid);
}

.ff-metric-card--danger .ff-metric-value {
  color: var(--status-avoid);
}

/* ---------- Verdict Card (Sticky Bottom) ---------- */
.ff-verdict-section {
  position: sticky;
  bottom: 0;
  z-index: 100;
  margin: 0 -16px;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--surface) 80%, transparent);
  pointer-events: none;
}

.ff-verdict-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
  /* Default: Playable (Forest Green) */
  background: linear-gradient(135deg, var(--forest-primary), var(--forest-dark));
  border: 2px solid var(--forest-dark);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.35);
}

.ff-verdict-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 106, 79, 0.45);
}

/* Verdict status variants */
.ff-verdict-card--play {
  background: linear-gradient(135deg, var(--forest-primary), var(--forest-dark));
  border-color: var(--forest-dark);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.35);
}

.ff-verdict-card--caution {
  background: linear-gradient(135deg, #d4a017, #b8860b);
  border-color: #b8860b;
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35);
}

.ff-verdict-card--avoid {
  background: linear-gradient(135deg, #c0362c, #9b2c23);
  border-color: #9b2c23;
  box-shadow: 0 8px 24px rgba(192, 54, 44, 0.35);
}

.ff-verdict-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ff-verdict-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.ff-verdict-lucide {
  width: 22px;
  height: 22px;
  color: #fff;
}

.ff-verdict-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ff-verdict-section .ff-verdict-label {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ff-verdict-section .ff-verdict-reason {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.ff-verdict-section .ff-tee-selected-time {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.ff-verdict-note {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  opacity: 0.7;
}

/* Mobile responsive adjustments */
@media (max-width: 520px) {
  .ff-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ff-breadcrumb-text {
    font-size: 12px;
  }

  .ff-verdict-card {
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
  }

  .ff-verdict-status {
    width: 100%;
    justify-content: center;
  }

  .ff-verdict-section .ff-tee-selected-time {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   POLISHED STEP-BASED DASHBOARD (Matching Mockup)
   ========================================================= */

/* Course Header */
.ff-course-header {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.ff-course-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ff-course-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.ff-course-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ff-course-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-course-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* Step Sections */
.ff-step-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.ff-step-header {
  margin-bottom: 12px;
}

.ff-step-label {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--forest-primary);
  margin-bottom: 4px;
}

.ff-step-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* Duration Toggles - Pill Style */
.ff-duration-toggles {
  display: flex;
  gap: 8px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
}

.ff-duration-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.ff-duration-btn:hover {
  background: var(--surface);
}

.ff-duration-btn.active {
  background: var(--forest-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.3);
}

.ff-duration-holes {
  font-weight: 800;
}

.ff-duration-time {
  font-weight: 600;
  opacity: 0.85;
}

/* Timeline Table - Compact */
.ff-timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 12px 0;
}

.ff-timeline-table th {
  padding: 8px 12px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.ff-timeline-table th:first-child {
  text-align: left;
  width: 50px;
}

.ff-timeline-table td {
  padding: 8px 12px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.ff-timeline-table td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--muted);
}

.ff-timeline-table tbody tr:last-child td {
  border-bottom: none;
}

.ff-sky-icon {
  width: 18px;
  height: 18px;
  color: var(--forest-primary);
}

/* Pro Tip - Yellow/Amber */
.ff-pro-tip {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  display: block;
}

.ff-pro-tip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ff-pro-tip-icon {
  width: 16px;
  height: 16px;
  color: #D97706;
}

.ff-pro-tip-title {
  font-size: 12px;
  font-weight: 800;
  color: #D97706;
}

.ff-pro-tip-text {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #92400E;
  line-height: 1.4;
}

/* Metrics Grid - 2x2 */
.ff-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ff-metric-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ff-metric-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ff-icon-rain { color: #3B82F6; }
.ff-icon-wind { color: #6B7280; }
.ff-icon-temp { color: #EF4444; }
.ff-icon-gust { color: #8B5CF6; }

.ff-metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ff-metric-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-left: auto;
}

/* Verdict Card - Forest Green */
.ff-verdict-section {
  margin: 12px 0;
}

.ff-verdict-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--forest-primary);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ff-verdict-card:hover {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.ff-verdict-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ff-verdict-icon {
  width: 24px;
  height: 24px;
}

.ff-verdict-lucide {
  width: 24px;
  height: 24px;
  color: #fff;
}

.ff-verdict-label {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}

.ff-verdict-reason {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.ff-verdict-note {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

/* Caution/Risky - Amber */
.ff-verdict-card--caution {
  background: #D97706;
}

.ff-verdict-card--caution:hover {
  background: #B45309;
}

/* Avoid - Red */
.ff-verdict-card--avoid {
  background: #DC2626;
}

.ff-verdict-card--avoid:hover {
  background: #B91C1C;
}

/* =========================================================
   MOBILE-FRIENDLY IMPROVEMENTS
   ========================================================= */

/* Base mobile adjustments */
@media (max-width: 480px) {
  .ff-shell {
    padding: 14px 12px;
    border-radius: 24px;
  }

  /* Course selector */
  .ff-course-breadcrumb {
    padding: 12px;
    border-radius: 14px;
  }

  .ff-breadcrumb-row {
    justify-content: flex-end;
  }

  .ff-btn-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  /* Step sections */
  .ff-step-section {
    padding: 14px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .ff-step-label {
    font-size: 13px;
  }

  .ff-step-sub {
    font-size: 11px;
  }

  /* Duration toggles - full width pills */
  .ff-duration-toggles {
    padding: 3px;
    border-radius: 10px;
  }

  .ff-duration-btn {
    padding: 14px 10px;
    min-height: 48px;
    border-radius: 8px;
  }

  .ff-duration-holes {
    font-size: 13px;
  }

  .ff-duration-time {
    font-size: 11px;
  }

  /* Timeline table - better mobile scroll */
  .ff-timeline-scroll {
    margin: 0 -12px;
    padding: 0 12px;
    -webkit-overflow-scrolling: touch;
  }

  .ff-timeline-table {
    font-size: 11px;
  }

  .ff-timeline-table th,
  .ff-timeline-table td {
    padding: 8px 10px;
    min-width: 55px;
  }

  .ff-timeline-table th:first-child,
  .ff-timeline-table td:first-child {
    min-width: 45px;
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 1;
  }

  .ff-sky-icon {
    width: 16px;
    height: 16px;
  }

  /* Pro tip */
  .ff-pro-tip {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .ff-pro-tip-title {
    font-size: 11px;
  }

  .ff-pro-tip-text {
    font-size: 11px;
  }

  /* Metrics grid - 2x2 but tighter */
  .ff-metrics-grid {
    gap: 6px;
  }

  .ff-metric-card {
    padding: 10px;
    border-radius: 10px;
    gap: 6px;
  }

  .ff-metric-icon {
    width: 18px;
    height: 18px;
  }

  .ff-metric-label {
    font-size: 10px;
  }

  .ff-metric-value {
    font-size: 13px;
  }

  /* Verdict card - larger touch target */
  .ff-verdict-card {
    padding: 16px;
    border-radius: 12px;
    min-height: 56px;
  }

  .ff-verdict-lucide {
    width: 22px;
    height: 22px;
  }

  .ff-verdict-label {
    font-size: 14px;
  }

  .ff-verdict-reason {
    font-size: 12px;
  }

  .ff-verdict-note {
    font-size: 9px;
  }

  /* Course header */
  .ff-course-header {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .ff-course-selector-btn {
    padding: 8px 10px;
    font-size: 13px;
  }

  .ff-course-name {
    max-width: 160px;
  }

  /* Inputs and selects - larger touch targets */
  .ff-input,
  .ff-select {
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom */
    padding: 10px 12px;
  }

  .ff-panel-label {
    font-size: 10px;
  }
}

/* Extra small screens (iPhone SE, etc) */
@media (max-width: 375px) {
  .ff-shell {
    padding: 12px 10px;
  }

  .ff-step-section {
    padding: 12px 10px;
  }

  .ff-duration-btn {
    flex-direction: column;
    gap: 2px;
    padding: 12px 8px;
  }

  .ff-duration-holes {
    font-size: 12px;
  }

  .ff-duration-time {
    font-size: 10px;
  }

  .ff-timeline-table th,
  .ff-timeline-table td {
    padding: 6px 8px;
    min-width: 48px;
  }

  .ff-metrics-grid {
    gap: 4px;
  }

  .ff-metric-card {
    padding: 8px;
    flex-direction: column;
    text-align: center;
  }

  .ff-metric-value {
    margin-left: 0;
  }

  .ff-course-name {
    max-width: 120px;
    font-size: 12px;
  }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .ff-step-section {
    padding: 10px 12px;
    margin-bottom: 8px;
  }

  .ff-step-header {
    margin-bottom: 8px;
  }

  .ff-duration-btn {
    padding: 10px 12px;
    min-height: 40px;
  }

  .ff-pro-tip {
    padding: 8px 10px;
    margin: 8px 0;
  }

  .ff-verdict-card {
    padding: 12px 16px;
    min-height: 48px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .ff-duration-btn:active {
    transform: scale(0.98);
  }

  .ff-verdict-card:active {
    transform: scale(0.98);
  }

  .ff-metric-card:active {
    background: var(--surface);
  }

  .ff-course-selector-btn:active {
    background: var(--surface);
  }
}

/* Safe area support for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .ff-verdict-section {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .ff-wrap {
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
  }
}

/* High contrast / accessibility */
@media (prefers-contrast: high) {
  .ff-step-label {
    color: #000;
  }

  .ff-metric-label {
    color: #333;
  }

  .ff-verdict-card {
    border: 2px solid #000;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ff-duration-btn,
  .ff-verdict-card,
  .ff-metric-card {
    transition: none;
  }
}

/* =========================================================
   UI POLISH - Sleeker buttons, better fit
   ========================================================= */

/* Hide verdict note */
.ff-verdict-note {
  display: none;
}

/* Course selector row - sleek inline design */
.ff-course-breadcrumb {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.ff-breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sleek location button - pill style */
.ff-btn-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--forest-primary);
}

.ff-btn-icon:hover {
  background: var(--forest-primary);
  border-color: var(--forest-primary);
  color: #fff;
}

.ff-btn-icon i {
  width: 18px;
  height: 18px;
}

/* Course panel - tighter */
.ff-course-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ff-panel-section {
  margin-bottom: 10px;
}

/* Step sections - compact */
.ff-step-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.ff-step-header {
  margin-bottom: 10px;
}

.ff-step-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.ff-step-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Duration toggles - SHORTER */
.ff-duration-toggles {
  display: flex;
  gap: 8px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
}

.ff-duration-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  min-height: 44px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--muted);
}

.ff-duration-btn.active {
  background: var(--forest-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(45, 106, 79, 0.25);
}

.ff-duration-holes {
  font-size: 14px;
  font-weight: 800;
}

.ff-duration-time {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

/* Timeline section - fit width */
.ff-timeline-scroll {
  margin: 0 -14px;
  padding: 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ff-timeline-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin: 10px 0;
}

.ff-timeline-table th,
.ff-timeline-table td {
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}

.ff-timeline-table th:first-child,
.ff-timeline-table td:first-child {
  text-align: left;
  width: 40px;
  min-width: 40px;
}

/* Pro tip - compact */
.ff-pro-tip {
  padding: 10px 12px;
  margin: 10px 0;
  border-radius: 10px;
}

/* Metrics grid - tighter */
.ff-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ff-metric-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ff-metric-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ff-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.ff-metric-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-left: auto;
}

/* Verdict card - sleek */
.ff-verdict-section {
  margin: 10px 0 0 0;
}

.ff-verdict-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: var(--forest-primary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ff-verdict-card:active {
  transform: scale(0.98);
}

.ff-verdict-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ff-verdict-icon {
  width: 22px;
  height: 22px;
}

.ff-verdict-lucide {
  width: 22px;
  height: 22px;
  color: #fff;
}

.ff-verdict-label {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.ff-verdict-reason {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Ensure everything fits */
.ff-shell {
  max-width: 100%;
  overflow-x: hidden;
}

.ff-wrap {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Mobile polish */
@media (max-width: 400px) {
  .ff-step-section {
    padding: 12px;
  }

  .ff-duration-btn {
    padding: 8px 10px;
    min-height: 40px;
  }

  .ff-duration-holes {
    font-size: 13px;
  }

  .ff-duration-time {
    font-size: 11px;
  }

  .ff-metric-card {
    padding: 8px 10px;
  }

  .ff-btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .ff-btn-icon i {
    width: 16px;
    height: 16px;
  }
}

/* =========================================================
   PREMIUM MOBILE-FIRST REDESIGN v2
   Fixed: Search bar always visible, smoother transitions
   ========================================================= */

/* ===== SEARCH SECTION (Always Visible) ===== */
.ff-search-section {
  margin-bottom: 10px;
}

/* Country/State Inline Selector */
.ff-country-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.ff-country-select,
.ff-state-select {
  flex: 1;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.ff-country-select:hover,
.ff-state-select:hover {
  border-color: var(--forest-primary);
}

.ff-country-select:focus,
.ff-state-select:focus {
  outline: none;
  border-color: var(--forest-primary);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.1);
}

.ff-state-wrap {
  flex: 1;
}

.ff-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ff-search-bar:focus-within {
  border-color: var(--forest-primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.ff-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.ff-search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.ff-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 0;
  outline: none;
  min-width: 0;
}

.ff-search-input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

/* Geo Button - Sleek pill */
.ff-geo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ff-geo-btn:hover {
  background: var(--forest-primary);
}

.ff-geo-btn:hover .ff-geo-icon {
  color: #fff;
}

.ff-geo-btn:active {
  transform: scale(0.95);
}

.ff-geo-btn.loading {
  pointer-events: none;
}

.ff-geo-btn.loading .ff-geo-icon {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ff-geo-icon {
  width: 18px;
  height: 18px;
  color: var(--forest-primary);
  transition: color 0.15s ease;
}

/* Selected Course Display */
.ff-selected-course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-top: 8px;
  background: var(--surface-2);
  border-radius: 10px;
  animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ff-selected-course-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ff-selected-course-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ff-selected-course-location {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.ff-change-course-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--forest-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ff-change-course-btn:hover {
  background: var(--forest-primary);
  border-color: var(--forest-primary);
  color: #fff;
}

/* Search Results */
.ff-search-results {
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  border-radius: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ff-search-results.ff-hidden {
  display: none;
}

.ff-search-results:not(.ff-hidden) {
  animation: fadeSlideIn 0.2s ease;
}

/* Search Result Items */
.ff-result {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.ff-result:hover {
  background: var(--surface-2);
  border-color: var(--forest-primary);
}

.ff-result:active {
  transform: scale(0.98);
}

.ff-result:last-child {
  margin-bottom: 0;
}

/* ===== COUNTRY/REGION SECTION ===== */
.ff-country-section {
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.ff-country-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ff-country-header:hover {
  background: var(--surface-2);
}

.ff-country-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.ff-country-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.ff-country-section.expanded .ff-country-chevron {
  transform: rotate(180deg);
}

.ff-country-panel {
  padding: 0 14px 14px;
  display: none;
}

.ff-country-section.expanded .ff-country-panel {
  display: block;
  animation: fadeSlideIn 0.2s ease;
}

.ff-panel-field {
  margin-bottom: 12px;
}

.ff-panel-field:last-of-type {
  margin-bottom: 0;
}

.ff-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.ff-osm-credit {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ff-osm-credit a {
  color: var(--forest-primary);
  text-decoration: none;
}

/* ===== STEP CARDS ===== */
.ff-step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  animation: fadeSlideIn 0.25s ease;
}

.ff-step-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

/* Timeline header with inline duration toggle */
.ff-timeline-header {
  margin-bottom: 10px;
}

.ff-timeline-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ff-duration-toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.ff-dur-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ff-dur-btn:hover {
  color: var(--text);
}

.ff-dur-btn.active {
  background: var(--forest-primary);
  color: #fff;
}

.ff-step-desc {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Duration Pills */
.ff-duration-pills {
  display: flex;
  gap: 8px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 10px;
}

.ff-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ff-pill:hover {
  background: var(--surface);
}

.ff-pill.active {
  background: var(--forest-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
}

.ff-pill:active {
  transform: scale(0.97);
}

.ff-pill-sub {
  font-weight: 500;
  opacity: 0.8;
}

/* Date Chips */
.ff-date-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}

.ff-date-chips::-webkit-scrollbar {
  display: none;
}

.ff-date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ff-date-chip:hover {
  border-color: var(--forest-primary);
}

.ff-date-chip.active {
  background: var(--forest-primary);
  border-color: var(--forest-primary);
  color: #fff;
}

.ff-date-chip-day {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.7;
}

.ff-date-chip-num {
  font-size: 16px;
  font-weight: 800;
}

/* Tee Time Row */
.ff-tee-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: 8px;
  margin-bottom: 10px;
}

.ff-tee-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ff-tee-icon {
  width: 14px;
  height: 14px;
}

.ff-tee-select {
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

/* Timeline Table */
.ff-timeline-wrap {
  overflow-x: auto;
  margin: 0 -14px;
  padding: 0 14px;
  -webkit-overflow-scrolling: touch;
}

.ff-timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.ff-timeline-table th,
.ff-timeline-table td {
  padding: 8px 8px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.ff-timeline-table th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
}

.ff-timeline-table th:first-child,
.ff-timeline-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  font-weight: 600;
  color: var(--muted);
}

.ff-timeline-table tbody tr:last-child td {
  border-bottom: none;
}

/* Pro Tip */
.ff-pro-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  margin: 12px 0;
}

.ff-pro-tip-icon {
  width: 18px;
  height: 18px;
  color: #D97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.ff-pro-tip-text {
  font-size: 13px;
  font-weight: 500;
  color: #92400E;
  line-height: 1.4;
  margin: 0;
}

/* Metrics Section */
.ff-metrics-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ff-metrics-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.ff-metrics-sub {
  font-weight: 500;
  color: var(--muted);
}

.ff-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ff-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: 8px;
}

.ff-metric-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ff-metric-icon.rain { color: #3B82F6; }
.ff-metric-icon.wind { color: #6B7280; }
.ff-metric-icon.temp { color: #EF4444; }
.ff-metric-icon.gust { color: #8B5CF6; }

.ff-metric-data {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ff-metric-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

.ff-metric-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

/* ===== VERDICT CARD ===== */
.ff-verdict-wrap {
  position: sticky;
  bottom: 0;
  z-index: 50;
  padding: 10px 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
}

.ff-verdict-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--status-play), var(--status-play-light));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--status-play-shadow);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.ff-verdict-card:hover {
  transform: translateY(-2px);
}

.ff-verdict-card:active {
  transform: scale(0.98);
}

/* PLAY - Green/Teal (default) */
.ff-verdict-card.play,
.ff-verdict-card--play {
  background: linear-gradient(135deg, var(--status-play), var(--status-play-light));
  box-shadow: 0 4px 20px var(--status-play-shadow);
}

/* CAUTION/RISKY - Amber */
.ff-verdict-card.caution,
.ff-verdict-card--caution {
  background: linear-gradient(135deg, var(--status-caution), var(--status-caution-light));
  box-shadow: 0 4px 20px var(--status-caution-shadow);
}

/* DELAY - Orange/Red */
.ff-verdict-card.delay,
.ff-verdict-card--delay {
  background: linear-gradient(135deg, var(--status-delay), var(--status-delay-light));
  box-shadow: 0 4px 20px var(--status-delay-shadow);
}

/* AVOID - Red */
.ff-verdict-card.avoid,
.ff-verdict-card--avoid {
  background: linear-gradient(135deg, var(--status-avoid), var(--status-avoid-light));
  box-shadow: 0 4px 20px var(--status-avoid-shadow);
}

/* UNSAFE - Deep Red */
.ff-verdict-card.unsafe,
.ff-verdict-card--unsafe {
  background: linear-gradient(135deg, var(--status-unsafe), var(--status-unsafe-light));
  box-shadow: 0 4px 20px var(--status-unsafe-shadow);
}

.ff-verdict-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ff-verdict-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ff-verdict-status {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.ff-verdict-desc {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ff-verdict-time {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
  white-space: nowrap;
}

/* ===== UNITS ROW ===== */
.ff-units-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-top: 6px;
}

.ff-units-row .ff-field-label {
  font-size: 11px;
}

.ff-select-sm {
  padding: 6px 10px;
  font-size: 12px;
}

/* ===== LOADING STATES ===== */
.ff-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ff-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--forest-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 400px) {
  .ff-search-bar {
    padding: 3px;
  }

  .ff-search-input {
    font-size: 14px;
    padding: 8px 0;
  }

  .ff-geo-btn {
    width: 38px;
    height: 38px;
  }

  .ff-step-card {
    padding: 14px;
  }

  .ff-pill {
    padding: 10px 12px;
    font-size: 13px;
  }

  .ff-metric {
    padding: 10px;
  }

  .ff-metric-icon {
    width: 18px;
    height: 18px;
  }

  .ff-metric-value {
    font-size: 14px;
  }

  .ff-verdict-card {
    padding: 12px 14px;
  }
}

/* ===== INSTALL BANNER SAFE AREA ===== */
.ff-shell {
  padding-bottom: calc(16px + 70px); /* Extra space for install banner */
}

/* ===== TRANSITIONS ===== */
.ff-fade-enter {
  opacity: 0;
  transform: translateY(-8px);
}

.ff-fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ff-fade-exit {
  opacity: 1;
}

.ff-fade-exit-active {
  opacity: 0;
  transition: opacity 0.15s ease;
}
