/* AHT Find My Beach — Cards (light, site-aligned) */
/* Style-only refresh. No class names changed. Safe drop-in. */
.aht-bp-wrap{
  /* Tokens — overridden by inline style from Settings, these are fallback defaults */
  --aht-bg: #ffffff;
  --aht-fg: #111827;
  --aht-muted: #6B7280;
  --aht-accent: #CDEBFF; /* header strip */
  --aht-yes: #10B981;       /* positive (green) */
  --aht-no: #EF4444;
  --aht-pill: #E6F6FF;
  --aht-border: #E5E7EB;
  --aht-radius: 18px;
  --aht-scale: 1;
  --gap:16px;
  --shadow: 0 6px 18px rgba(17,24,39,.06);

  font-family: inherit;
  color: var(--aht-fg);
  transform: scale(var(--aht-scale));
  transform-origin: top left;
}

/* Grid */
.aht-bp-grid{ display:grid; grid-template-columns: repeat(1,minmax(0,1fr)); gap: var(--gap); }
@media (min-width:720px){ .aht-bp-grid{ grid-template-columns: repeat(3,minmax(0,1fr)); } }

/* Card shell */
.aht-card{
  background: var(--aht-bg);
  border-radius: var(--aht-radius);
  border: 1px solid var(--aht-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display:flex; flex-direction:column; min-height: 260px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.aht-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(17,24,39,.10);
  border-color:#D1D5DB;
}
.aht-card:focus-within{ outline: 2px solid #93C5FD; outline-offset: 2px; }

/* Header strip */
.aht-card-hdr{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  background: var(--aht-accent);
  color:#0B1720;
  font-weight: 700; font-size:1.18rem; line-height:1.2;
}
.aht-card-hdr .aht-title{ color:#0B1720; }
.aht-card-hdr .aht-pill{ margin-left:12px; }

/* Region badge */
.aht-pill{
  display:inline-block; padding:6px 12px; border-radius:999px;
  background: var(--aht-pill); color:#074A63; font-weight:600; font-size:.9rem;
  border:1px solid #BFE8FF;
}

/* Body */
.aht-card-body{
  padding:18px;
  background: #ffffff; /* light body to match site cards */
  color: var(--aht-fg);
  flex:1 1 auto;
}
.aht-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 2px; border-bottom:1px dashed var(--aht-border);
}
.aht-row:last-child{ border-bottom:none; }
.aht-label{ color: var(--aht-muted); font-weight:500; letter-spacing:.2px }
.aht-value{ color:#0B1720; font-weight:800; }
.aht-value .yes{ color: var(--aht-yes); font-weight:800; }
.aht-value .no{ color: var(--aht-no);  font-weight:800; }

/* Footer */
.aht-card-ftr{
  padding:12px 18px; color:var(--aht-muted);
  background:#FAFAFA; border-top:1px solid var(--aht-border);
  font-size:.92rem; margin-top:auto;
}

/* Variants share the same shell; keep headers consistent with accent */
.aht-pills .aht-card-hdr{ background: var(--aht-accent); }
.aht-ticket .aht-card-hdr{ background: var(--aht-accent); }

/* Empty state */
.aht-bp-empty{
  background:#F9FAFB; color:#4B5563; padding:16px; border-radius:12px; border:1px solid var(--aht-border);
}

/* Tabs */
.aht-bp-tabs{ display:flex; gap:.5rem; margin:0 0 1rem; }
.aht-bp-tab{
  cursor:pointer; padding:.45rem .8rem; border:1px solid #D1D5DB;
  border-radius:.6rem; background:#F3F4F6; color:#374151; font-weight:600;
}
.aht-bp-tab.is-active{ background:#DBF0FF; color:#0B1720; border-color:#BFDBFE; }
.aht-bp-panel{ display:none; }
.aht-bp-panel.is-active{ display:block; }


/* --- RC2 Patch: rounded cards + uniform header height + adaptive title --- */
.aht-card{
  border-radius: var(--aht-radius, 20px) !important;
  overflow: hidden !important;
}

.aht-card-hdr{
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  min-height: 72px !important; /* same blue height across cards */
  border-top-left-radius: inherit !important;
  border-top-right-radius: inherit !important;
}

.aht-card-hdr .aht-title{
  /* Adaptive size while preserving accessibility */
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.35rem) !important;
  line-height: 1.2 !important;
  text-wrap: balance;
  margin-right: 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* allow at most two lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aht-pill{
  white-space: nowrap;
}

/* Map container */
.aht-bp-map{height:360px;border-radius:16px;overflow:hidden;margin-top:12px;box-shadow:0 8px 24px rgba(0,0,0,.08)}

/* Freshness stamp */
.aht-bp__freshness{margin:.5rem 0 0; font-size:.9rem; opacity:.8; clear:both}



/* =========================================================
   Find My Beach — Mockup UI (mobile-first, scoped)
   ========================================================= */
.aht-bp-wrap .aht-bp-app{
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

/* Accordion header (mobile only) */
.aht-bp-wrap .aht-bp-acc-header{
  display:flex; align-items:center; justify-content:space-between;
  background:#fff; border:1px solid var(--aht-border); border-radius:12px;
  padding:12px 16px; cursor:pointer; box-shadow:var(--shadow);
}
.aht-bp-wrap .aht-bp-acc-header.is-open{ border-radius:12px 12px 0 0; border-bottom:none; }
.aht-bp-wrap .aht-bp-acc-summary{ font-size:.95rem; font-weight:700; }
.aht-bp-wrap .aht-bp-acc-summary span{ color:#00AEEF; }
.aht-bp-wrap .aht-bp-acc-chevron{ font-size:.8rem; color:var(--aht-muted); transition:transform .2s; }
.aht-bp-wrap .aht-bp-acc-header.is-open .aht-bp-acc-chevron{ transform:rotate(180deg); }

/* Accordion body */
.aht-bp-wrap .aht-bp-acc-body{
  display:none; background:#fff; border:1px solid var(--aht-border);
  border-top:none; border-radius:0 0 12px 12px;
  padding:16px; margin-bottom:20px; box-shadow:var(--shadow);
}
.aht-bp-wrap .aht-bp-acc-body.is-open{ display:block; }

/* Section labels */
.aht-bp-wrap .aht-bp-filter-label{
  font-size:.7rem; font-weight:700; text-transform:uppercase;
  letter-spacing:1px; color:var(--aht-muted); margin-bottom:8px;
}

/* Day: underline tabs */
.aht-bp-wrap .aht-bp-underline-tabs{ display:flex; gap:0; border-bottom:2px solid var(--aht-border); margin-bottom:16px; }
.aht-bp-wrap .aht-bp-underline-tab{
  padding:8px 18px; font-size:.9rem; font-weight:600; cursor:pointer;
  background:none; border:none; color:var(--aht-muted);
  position:relative; transition:color .15s;
}
.aht-bp-wrap .aht-bp-underline-tab.is-active{ color:#00AEEF; }
.aht-bp-wrap .aht-bp-underline-tab.is-active::after{
  content:''; position:absolute; left:0; right:0; bottom:-2px;
  height:3px; background:#00AEEF; border-radius:3px 3px 0 0;
}
.aht-bp-wrap .aht-bp-underline-tab:hover:not(.is-active){ color:var(--aht-fg); }

/* Mode: 2-column radio grid (mobile) */
.aht-bp-wrap .aht-bp-radio-list{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.aht-bp-wrap .aht-bp-radio-item{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:10px; cursor:pointer;
  font-size:.88rem; font-weight:600; color:var(--aht-fg);
  background:#f9fafb; border:2px solid transparent; transition:all .15s;
}
.aht-bp-wrap .aht-bp-radio-item:hover{ background:#E6F6FF; }
.aht-bp-wrap .aht-bp-radio-item.is-active{ background:#E6F6FF; border-color:#00AEEF; color:#00AEEF; }
.aht-bp-wrap .aht-bp-radio-dot{
  width:16px; height:16px; border-radius:50%;
  border:2px solid var(--aht-border);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.aht-bp-wrap .aht-bp-radio-item.is-active .aht-bp-radio-dot{ border-color:#00AEEF; }
.aht-bp-wrap .aht-bp-radio-dot::after{ content:''; width:8px; height:8px; border-radius:50%; background:transparent; }
.aht-bp-wrap .aht-bp-radio-item.is-active .aht-bp-radio-dot::after{ background:#00AEEF; }

/* Desktop: always visible, pill-style modes */
@media (min-width:720px){
  .aht-bp-wrap .aht-bp-acc-header{ display:none; }
  .aht-bp-wrap .aht-bp-acc-body{ display:block !important; border:1px solid var(--aht-border); border-radius:12px; margin-bottom:20px; }
  .aht-bp-wrap .aht-bp-radio-list{ display:flex; flex-wrap:wrap; gap:10px; }
  .aht-bp-wrap .aht-bp-radio-item{ border-radius:999px; padding:9px 16px; background:#fff; border:2px solid var(--aht-border); }
  .aht-bp-wrap .aht-bp-radio-item.is-active{ background:#00AEEF; color:#fff; border-color:#00AEEF; }
  .aht-bp-wrap .aht-bp-radio-item.is-active .aht-bp-radio-dot{ display:none; }
  .aht-bp-wrap .aht-bp-radio-dot{ display:none; }
}

/* Cards container */
.aht-bp-wrap .aht-bp-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* 3 cards side-by-side on desktop */
@media (min-width: 720px){
  .aht-bp-wrap .aht-bp-cards{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* Amenities icons row */
.aht-amenities{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  color:#6B7280;
  font-size: .95rem;
}
.aht-amenity{ display:flex; align-items:center; gap:6px; }
.aht-amenity i{ font-size: 1.1rem; }


/* Beach Card (matches your mockup's ranking-card vibe) */
.aht-bp-wrap .aht-bp-card{
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}

.aht-bp-wrap .aht-bp-tags{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.aht-bp-wrap .aht-bp-tag{
  font-size: .75rem;
  text-transform: uppercase;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}
.aht-bp-wrap .aht-bp-tag.blue{ background:#e1f5fe; color:#00AEEF; }
.aht-bp-wrap .aht-bp-tag.yellow{ background:#fff9c4; color:#f57f17; }
.aht-bp-wrap .aht-bp-tag.green{ background:#e8f5e9; color:#2e7d32; }

.aht-bp-wrap .aht-bp-name{
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #00AEEF;
  font-family: inherit;
}

.aht-bp-wrap .aht-bp-why{
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
  margin-bottom: 14px;
}

.aht-bp-wrap .aht-bp-why-compact{
  font-size: 1rem;
  margin-bottom: 12px;
}

/* Amenities */
.aht-bp-wrap .aht-bp-amenities{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color:#666;
  font-size: .95rem;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 12px;
}

.aht-bp-wrap .aht-bp-amenity{
  display:flex;
  align-items:center;
  gap: 8px;
}
.aht-bp-wrap .aht-bp-amenity i{ font-size: 1.1rem; }

/* CTA button */
.aht-bp-wrap .aht-bp-btn{
  display:block;
  width:100%;
  background-color:#00AEEF;
  color:#fff !important;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 800;
  text-align:center;
  margin-top: 16px;
  box-shadow: 0 4px 6px rgba(0,174,239, 0.2);
}
.aht-bp-wrap .aht-bp-btn:hover{ background:#008cb9; }
.aht-bp-wrap .aht-bp-btn-compact{ margin-top: 12px; }

.aht-bp-wrap .aht-bp-updated{
  margin-top: 10px;
  color:#6b7280;
  font-size: .9rem;
}

/* Panels */
.aht-bp-wrap .aht-bp-panel{ display:none; }
.aht-bp-wrap .aht-bp-panel.is-active{ display:block; }

/* Map */
.aht-bp-wrap .aht-bp-map{ height: 380px; border-radius: 16px; overflow:hidden; margin-top: 14px; border: 1px solid #e0e0e0; }

.aht-bp-wrap .aht-bp-freshness{
  margin: .75rem 0 0;
  font-size: .9rem;
  opacity: .85;
  text-align: center;
}

/* Desktop */
@media (min-width: 768px){
  .aht-bp-wrap .aht-bp-app{ padding: 20px; }
  .aht-bp-wrap .aht-bp-card{ padding: 22px; }
}

/* =========================================================
   Split Panel Card (mockup_b)
   ========================================================= */
.aht-bp-wrap .split-card{
  background:#fff;
  border-radius: var(--aht-radius, 16px);
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: box-shadow .2s;
}
.aht-bp-wrap .split-card:hover{
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Header */
.aht-bp-wrap .split-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:.85rem 1rem .5rem;
}
.aht-bp-wrap .split-card__name{
  font-size:1.05rem;
  font-weight:700;
  color:#222;
  margin:0;
  line-height:1.2;
}
.aht-bp-wrap .split-card__region{
  display:inline-block;
  font-size:.7rem;
  font-weight:600;
  color:#00AEEF;
  background:rgba(0,174,239,.1);
  padding:.2rem .55rem;
  border-radius:9999px;
  margin-top:.15rem;
  white-space:nowrap;
}
.aht-bp-wrap .split-card__updated{
  font-size:.65rem;
  color:#9ca3af;
  background:rgba(0,0,0,.04);
  padding:.15rem .5rem;
  border-radius:9999px;
  white-space:nowrap;
}

/* Weather 2x2 grid */
.aht-bp-wrap .split-card__wx-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:.5rem 1rem .7rem;
}
.aht-bp-wrap .split-card__wx-cell{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:.55rem .4rem;
  border-radius:10px;
  background:#f9fafb;
  text-align:center;
}
.aht-bp-wrap .split-card__wx-cell i{
  font-size:.85rem;
  color:#555;
  margin-bottom:.2rem;
}
.aht-bp-wrap .split-card__wx-label{
  font-size:.6rem;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:#9ca3af;
  font-weight:600;
}
.aht-bp-wrap .split-card__wx-value{
  font-size:.95rem;
  font-weight:700;
  color:#222;
}

/* Water temp gradient variants */
.aht-bp-wrap .split-card__wx-cell--water-cool{
  background:linear-gradient(135deg, #dbeafe, #e0f2fe);
}
.aht-bp-wrap .split-card__wx-cell--water-cool i{ color:#0ea5e9; }
.aht-bp-wrap .split-card__wx-cell--water-warm{
  background:linear-gradient(135deg, #fef3c7, #fde68a);
}
.aht-bp-wrap .split-card__wx-cell--water-warm i{ color:#d97706; }

/* Amenity chips */
.aht-bp-wrap .split-card__amenities{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  padding:.6rem 1rem;
  border-top:1px solid #eee;
}
.aht-bp-wrap .split-card__amen-chip{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.2rem .5rem;
  border-radius:6px;
  background:#f3f4f6;
  font-size:.72rem;
  font-weight:500;
  color:#555;
}
.aht-bp-wrap .split-card__amen-chip i{ font-size:.65rem; }

/* Footer */
.aht-bp-wrap .split-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  padding:.65rem 1rem .75rem;
  border-top:1px solid #eee;
  margin-top:auto;
}
.aht-bp-wrap .split-card__link{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.38rem .7rem;
  border-radius:9999px;
  font-size:.75rem;
  font-weight:600;
  text-decoration:none;
  transition:all .15s;
  white-space:nowrap;
}
.aht-bp-wrap .split-card__link--ghost{
  border:1.5px solid #e0e0e0;
  color:#444;
  background:#fff;
}
.aht-bp-wrap .split-card__link--ghost:hover{
  border-color:#00AEEF;
  color:#00AEEF;
}
.aht-bp-wrap .split-card__link--cta{
  border:none;
  background:#EFCD0F;
  color:#222;
}
.aht-bp-wrap .split-card__link--cta:hover{
  background:#dcb300;
}

/* =========================================================
   Beach Picks Pills — compact homepage strip
   ========================================================= */
.aht-bp-pills-strip{
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
  font-family: inherit;
  color: var(--aht-fg, #111827);
}
.aht-bp-pills-header{
  margin-bottom: 12px;
}
.aht-bp-pills-title{
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--aht-fg, #111827);
}
.aht-bp-pills-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.aht-bp-pill-card{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--aht-pill, #E6F6FF);
  text-decoration: none;
  border: 1px solid #BFE8FF;
  transition: box-shadow .15s, transform .15s;
  flex: 1 1 0;
  min-width: 140px;
}
.aht-bp-pill-card:hover{
  box-shadow: 0 4px 12px rgba(0,174,239,.15);
  transform: translateY(-1px);
}
.aht-bp-pill-name{
  font-weight: 700;
  font-size: 1rem;
  color: var(--aht-fg, #111827);
}
.aht-bp-pill-region{
  font-size: .75rem;
  font-weight: 600;
  color: #074A63;
  background: rgba(0,174,239,.12);
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-block;
  width: fit-content;
}
.aht-bp-pill-conditions{
  font-size: .85rem;
  color: var(--aht-muted, #6B7280);
}
.aht-bp-pills-cta{
  display: block;
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
  font-size: .95rem;
  color: #00AEEF;
  text-decoration: none;
}
.aht-bp-pills-cta:hover{
  text-decoration: underline;
}

/* Mobile: stack pills vertically */
@media (max-width: 719px){
  .aht-bp-pills-row{
    flex-direction: column;
  }
  .aht-bp-pill-card{
    min-width: unset;
  }
}

/* =========================================================
   Beach Conditions Brief — narrative container
   ========================================================= */
.aht-bp-conditions-brief{
  max-width: 800px;
  margin: 20px auto;
  padding: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #333;
}
.aht-bp-conditions-brief p{
  margin: 0 0 .8em;
}
.aht-bp-conditions-brief-updated{
  font-size: .85rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* =========================================================
   Beach Forecast — 3-day outlook container
   ========================================================= */
.aht-bp-forecast{
  max-width: 800px;
  margin: 24px auto;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #1e3a5f;
}
.aht-bp-forecast__heading{
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c4a6e;
}
.aht-bp-forecast p{
  margin: 0 0 .8em;
}
.aht-bp-forecast p:last-child{
  margin-bottom: 0;
}

/* =========================================================
   Per-day Summary — inside beach card panels
   ========================================================= */
.aht-bp-day-summary{
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  font-size: .95rem;
  line-height: 1.6;
  color: #374151;
  background: #f9fafb;
  border-left: 3px solid var(--aht-bp-accent, #00AEEF);
  border-radius: 0 8px 8px 0;
}
.aht-bp-day-summary p{
  margin: 0 0 .5em;
}
.aht-bp-day-summary p:last-child{
  margin-bottom: 0;
}
@media (min-width: 720px){
  .aht-bp-day-summary{
    margin-bottom: 20px;
    padding: 14px 20px;
  }
}

/* =========================================================
   Expandable conditions + forecast wrapper
   ========================================================= */
.aht-bp-expandable{
  max-width: 800px;
  margin: 20px auto;
}
.aht-bp-expandable__toggle{
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--aht-bp-accent, #00AEEF);
  padding: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aht-bp-expandable__toggle::-webkit-details-marker{ display: none; }
.aht-bp-expandable__toggle::before{
  content: '\25B8';
  font-size: .85em;
  transition: transform .2s ease;
}
.aht-bp-expandable[open] > .aht-bp-expandable__toggle::before{
  transform: rotate(90deg);
}
