/* public/css/spot.css — Lease-A-Spot components (Working Waterfront system).
   Loaded after main.css + theme.css. Squared placards, stencil labels, channel-green
   as the only action color. No new palette: everything comes from main.css tokens. */

/* ── Hero: Lease-A-Dock | Lease-A-Spot segmented toggle ─────────────────── */
.kind-toggle {
  display: inline-flex; margin: 0 0 12px; padding: 3px; gap: 3px;
  background: rgba(23,42,51,0.55); border: 1px solid rgba(231,217,168,0.35); border-radius: 3px;
}
.kind-toggle button {
  background: transparent; border: 0; border-radius: 2px; color: rgba(255,255,255,0.82);
  padding: 9px 16px; text-align: left; line-height: 1.15; cursor: pointer; min-height: 44px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; font-size: 1rem;
}
.kind-toggle button small {
  display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  font-weight: 500; font-size: 0.74rem; opacity: 0.85;
}
.kind-toggle button:hover { color: #fff; background: rgba(255,255,255,0.06); }
.kind-toggle button[aria-pressed="true"] { background: var(--teal); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18); }
.kind-toggle button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.hero .hero-spot-line { color: var(--gold-light); font-size: 0.98rem; line-height: 1.55; margin: -18px 0 22px; max-width: 560px; }
.hero .hero-spot-line a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ── "Open right now" tabs ───────────────────────────────────────────────── */
.open-tabs { display: flex; justify-content: center; gap: 0; margin: -28px auto 32px; width: max-content; max-width: 100%;
  border: 1px solid var(--sand-dark); border-radius: 2px; background: var(--white); box-shadow: 3px 3px 0 var(--sand-dark); }
.open-tabs button {
  border: 0; background: transparent; padding: 10px 22px; min-height: 44px; cursor: pointer; color: var(--navy-mid);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; font-size: 1rem;
}
.open-tabs button + button { border-left: 1px solid var(--sand-dark); }
.open-tabs button[aria-selected="true"] { background: var(--teal); color: #fff; }
.open-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* card extras for spot listings */
.las-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.las-chip {
  font-size: 0.74rem; font-weight: 600; color: var(--teal-dark); background: var(--sand);
  border: 1px solid var(--sand-dark); border-radius: 2px; padding: 2px 8px;
}
.listing-card-badge.spot { background: var(--gold); }

/* ── CTA duo: two owner placards ─────────────────────────────────────────── */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; text-align: left; }
.cta-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(231,217,168,0.35); border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.18); padding: 28px 26px; display: flex; flex-direction: column;
}
.cta-card .eyebrow { color: var(--gold-light); border-top-color: rgba(231,217,168,0.35); align-self: flex-start; }
.cta-section .cta-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 4px 0 10px; }
.cta-section .cta-card p { margin: 0 0 22px; max-width: none; text-align: left; }
.cta-card .cta-btns { justify-content: flex-start; margin-top: auto; gap: 10px; }
.cta-card .btn { margin: 0; }

/* ── Landing pages (lease-a-spot / list-your-spot) ──────────────────────── */
/* Photo hero: <picture class="las-hero-bg"> behind the content. The left third of the
   photo is open sky/lawn for the headline; a left→right harbor-ink wash keeps white text
   ≥4.5:1 there (wash ≥0.80 under the text column). */
.las-hero--photo { position: relative; overflow: hidden; background: var(--navy); min-height: min(78vh, 680px); display: flex; align-items: center; }
.las-hero--photo .las-hero-bg, .las-hero--photo .las-hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.las-hero--photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(23,42,51,0.92) 0%, rgba(23,42,51,0.86) 53%, rgba(23,42,51,0.45) 67%, rgba(23,42,51,0.08) 83%, rgba(23,42,51,0) 100%);
}
.las-hero--photo .las-hero-in { position: relative; z-index: 2; width: 100%; }
.las-hero--photo .las-hero-in > *,
.las-hero--photo .las-hero-in > p.lede { max-width: min(520px, 100%); }   /* text column ends ≤ ~52% of the width */
.las-hero--photo .las-hero-in > .las-search { max-width: min(560px, 100%); }
.las-hero--short { min-height: min(56vh, 480px); }
.las-figure { margin: 0; }
.las-figure img { display: block; width: 100%; height: auto; max-width: 460px; border: 1px solid var(--sand-dark); border-radius: 2px; box-shadow: 4px 4px 0 var(--sand-dark); }
.las-figure figcaption { font-size: 0.82rem; color: var(--gray-500); margin-top: 10px; }
.las-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%); color: var(--white); padding: clamp(48px,7vw,96px) 20px; }
.las-hero-in { max-width: 1000px; margin: 0 auto; }
.las-hero .eyebrow { color: var(--gold-light); border-top-color: rgba(231,217,168,0.35); }
.las-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4.8vw, 3.3rem); line-height: 1.06; margin: 6px 0 16px; max-width: 20ch; }
.las-hero p.lede { font-size: clamp(1.02rem, 1.7vw, 1.2rem); opacity: 0.92; max-width: 58ch; margin: 0 0 26px; }
.las-hero .fineprint { margin-top: 14px; font-size: 0.88rem; opacity: 0.75; }
.las-hero .fineprint a { color: #fff; text-decoration: underline; }
.las-search { display: flex; gap: 0; max-width: 640px; background: var(--white); border-radius: 3px; padding: 5px; box-shadow: var(--shadow-lg); }
.las-search input, .las-search select { border: 0; outline: 0; font-family: var(--font-body); font-size: 1rem; color: var(--gray-800); background: transparent; min-height: 44px; }
.las-search input { flex: 1; padding: 0 12px; min-width: 0; }
.las-search select { border-left: 1px solid var(--gray-200); padding: 0 8px; max-width: 46%; }
.las-search .btn-search { height: 44px; }
.las-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.las-placard { background: var(--white); border: 1px solid var(--sand-dark); border-radius: 2px; box-shadow: 4px 4px 0 var(--sand-dark); padding: 22px 20px; }
.las-placard h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy); margin: 0 0 8px; letter-spacing: 0.01em; }
.las-placard p { color: var(--navy-mid); font-size: 0.94rem; line-height: 1.6; margin: 0; }
.las-types { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.las-types span { background: var(--white); border: 1px solid var(--sand-dark); border-radius: 2px; padding: 6px 12px; font-size: 0.9rem; color: var(--navy); font-weight: 600; }
.earn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--sand-dark); border: 1px solid var(--sand-dark); border-radius: 2px; overflow: hidden; margin-top: 30px; }
.earn-cell { background: var(--white); padding: 20px 18px; }
.earn-cell b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.earn-cell span { display: block; font-size: 0.86rem; color: var(--navy-mid); margin-top: 5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); align-items: start; }
.chk { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.chk li { padding-left: 30px; position: relative; line-height: 1.5; }
.chk li::before { content: ""; position: absolute; left: 0; top: .28em; width: 17px; height: 17px; border-radius: 2px; background: var(--teal); }
.chk li::after { content: ""; position: absolute; left: 5px; top: .52em; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.qa { border-top: 1px solid var(--sand-dark); }
.qa details { border-bottom: 1px solid var(--sand-dark); }
.qa summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--navy); list-style: none; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: '+'; display: inline-block; width: 1.2em; color: var(--gold); font-weight: 700; }
.qa details[open] summary::before { content: '–'; }
.qa .a { padding: 0 0 20px 1.2em; color: var(--navy-mid); max-width: 72ch; line-height: 1.6; }
.las-note { border: 1px solid var(--sand-dark); border-left: 4px solid var(--gold); border-radius: 2px; padding: 20px 22px; background: var(--sand); }
.las-note h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.25rem; }
.las-note p { margin: 0 0 10px; color: var(--navy-mid); line-height: 1.6; }
.las-note p:last-child { margin-bottom: 0; }

/* ── Spot details on listing.html ────────────────────────────────────────── */
.las-detail-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.las-detail-types span { background: var(--sand); border: 1px solid var(--sand-dark); border-radius: 2px; padding: 6px 12px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }

/* ── list-dock.html trailer form: chip checkboxes ───────────────────────── */
.las-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.las-check { display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 44px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.88rem; background: var(--white); }
.las-check:hover { border-color: var(--teal); }
.las-check input { accent-color: var(--teal); width: 16px; height: 16px; flex-shrink: 0; }
.las-check:has(input:checked) { border-color: var(--teal); background: var(--sand); }
.las-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.las-hint { background: var(--sand); border-left: 4px solid var(--gold); border-radius: 2px; padding: 12px 14px; font-size: 0.88rem; color: var(--navy-mid); margin: 0 0 16px; }

/* search.html spot filters */
.spot-filters { display: none; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 4px 0 8px; padding: 10px 12px; background: var(--sand); border: 1px solid var(--sand-dark); border-radius: 2px; }
.spot-filters.on { display: flex; }
.spot-filters select { padding: 6px 8px; border: 1.5px solid var(--gray-200); border-radius: 3px; font-family: var(--font-body); font-size: 0.84rem; min-height: 36px; }
.spot-filters label { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--gray-600); cursor: pointer; min-height: 32px; }
.spot-filters input[type=checkbox] { accent-color: var(--teal); width: 15px; height: 15px; }

/* ── PHONE LAYOUT (own layout, not a squeezed desktop) ──────────────────── */
@media (max-width: 768px) {
  .kind-toggle { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .kind-toggle button { text-align: center; padding: 10px 8px; font-size: 0.95rem; }
  /* phones: the toggle itself introduces Lease-A-Spot — drop the extra line so search stays near the fold */
  .hero .hero-spot-line { display: none; }
  .open-tabs { width: 100%; margin: -24px 0 22px; }
  .open-tabs button { flex: 1; padding: 12px 8px; }
  .cta-duo { grid-template-columns: 1fr; gap: 16px; }
  .cta-card { padding: 22px 18px; }
  .cta-card .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-card .btn { justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  #spotGrid .listing-card:nth-child(n+4) { display: none; } /* phones: 3 cards, then "See all" */
  .las-checks { grid-template-columns: 1fr 1fr; }
  .las-search { flex-direction: column; padding: 8px; gap: 6px; }
  .las-search select { border-left: 0; border-top: 1px solid var(--gray-200); max-width: none; }
  .las-search .btn-search { justify-content: center; }
  .las-hero .cta-btns { flex-direction: column; align-items: stretch; }
  /* phones: photo toward the boat (right), even wash so text over sky stays legible;
     content sits at the top so the search box is above the fold */
  .las-hero--photo { min-height: 0; align-items: flex-start; }
  .las-hero--photo .las-hero-bg img { object-position: 74% 60%; }
  .las-hero--photo::before { background: linear-gradient(180deg, rgba(23,42,51,0.86) 0%, rgba(23,42,51,0.80) 60%, rgba(23,42,51,0.62) 100%); }
  .las-hero--photo .las-hero-in > *, .las-hero--photo .las-hero-in > p.lede, .las-hero--photo .las-hero-in > .las-search { max-width: none; }
  .las-hero .cta-btns .btn { justify-content: center; }
}
@media (max-width: 420px) {
  .las-check { padding: 8px 10px; font-size: 0.84rem; }
}
