/* CuciQu Spot — laundry finder (list + Leaflet map). Shared tokens live in site.css. */

/* ---------- Header band ---------- */
.spot-head { background: var(--tint); border-bottom: 1px solid var(--line); padding: clamp(20px, 3vw, 32px) 0 24px; }
.spot-head .breadcrumb { font-size: 13px; }
.spot-head__row { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.spot-head__text { max-width: 640px; }
.spot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.spot-head__title { margin: 14px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; color: var(--ink); }
.spot-head__lede { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-3); }
.spot-head__cta { height: 48px; padding: 0 20px; font-size: 15px; background: var(--ink); color: #fff; }
.spot-head__cta:hover { background: var(--primary); color: #fff; }

.spot-tools { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spot-search { flex: 1 1 320px; min-width: 0; position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.spot-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 122, 111, .14); }
.spot-search svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.spot-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.spot-search input::placeholder { color: #6c7f81; }
.spot-search input::-webkit-search-cancel-button { display: none; }
.spot-search__clear { flex: none; border: 0; background: #f1f7f6; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: var(--text-1); font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0; }
.spot-search__clear[hidden] { display: none; }
.spot-chips { padding-bottom: 2px; max-width: 100%; }

/* ---------- Body grid ---------- */
.spot-body { padding-top: 20px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
.spot-list-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.spot-map-col { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }
.spot-map { position: relative; height: calc(100vh - 108px); min-height: 420px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #eef3f2; }
#map { position: absolute; inset: 0; font-family: var(--font); }

@media (max-width: 899px) {
  .spot-body { grid-template-columns: minmax(0, 1fr); }
  .spot-map-col { order: -1; position: relative; top: auto; }
  .spot-map { height: 380px; min-height: 0; }
}

/* ---------- Location prompt ---------- */
.spot-loc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--amber-bg); border: 1px solid #f2e2b6; }
.spot-loc[hidden] { display: none; }
.spot-loc__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--star); }
.spot-loc p { flex: 1; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--on-amber); }
.spot-loc__btn { flex: none; height: 40px; padding: 0 16px; font-size: 14px; background: var(--ink); color: #fff; }
.spot-loc__btn:hover { background: var(--primary); color: #fff; }
.spot-loc__btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Meta row ---------- */
.spot-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.spot-meta__count { margin: 0; font-size: 14px; color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.spot-meta__ctrl { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.spot-check, .spot-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-1); font-weight: 600; }
.spot-check { cursor: pointer; }
.spot-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.spot-sort select { height: 38px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 10px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.spot-hint { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-3); background: var(--tint); border-radius: 12px; padding: 10px 14px; }

/* ---------- Outlet cards ---------- */
.spot-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; outline: 0; }
.spot-list > li { animation: cqFadeUp .4s var(--ease) both; animation-delay: var(--d, 0ms); }
.spot-card { cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s; }
.spot-card:hover, .spot-card.is-hot { border-color: var(--primary); box-shadow: 0 18px 36px -24px rgba(14, 35, 36, .4); }
.spot-card__top { display: flex; gap: 14px; align-items: flex-start; }
.spot-card__n { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; transition: background .2s; }
.spot-card.is-hot .spot-card__n { background: var(--ink); }
.spot-card__body { flex: 1; min-width: 0; }
.spot-card__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spot-card__name { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.spot-card__name button { all: unset; cursor: pointer; }
.spot-card__name button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.spot-badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.spot-badge--ok { color: var(--primary); background: var(--chip); }
.spot-badge--pending { color: #7a4a00; background: #fdf0d2; }
.spot-card__meta { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.spot-card__dist { flex: none; font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.spot-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.spot-tag { font-size: 13px; font-weight: 600; color: var(--text-1); background: #f1f5f5; padding: 4px 10px; border-radius: 999px; line-height: 1.4; }
.spot-tag--more { color: var(--muted); }
.spot-pill { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.spot-pill--open { color: var(--primary-deep); background: var(--chip); }
.spot-pill--closed { color: #7a2e1f; background: #fbe9e4; }
.spot-card__actions { display: flex; gap: 8px; }
.spot-card__actions .btn { flex: 1; height: 42px; font-size: 14px; }
.spot-card__note { margin: 0; font-size: 13px; color: var(--muted); }

.spot-skel { height: 132px; border-radius: 20px; background: linear-gradient(90deg, #f1f6f5 0%, #e8f0ef 50%, #f1f6f5 100%); background-size: 200% 100%; animation: spotShimmer 1.4s linear infinite; }
@keyframes spotShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.spot-empty, .spot-error { padding: 32px 24px; border-radius: 20px; border: 1px dashed #cfdedb; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.spot-empty[hidden] { display: none; }
.spot-empty strong, .spot-error strong { font-size: 17px; color: var(--ink); }
.spot-empty span, .spot-error span { font-size: 15px; color: var(--text-3); }
.spot-empty .btn, .spot-error .btn { margin-top: 6px; height: 42px; font-size: 14px; }
.spot-error { border-color: var(--error-line); }
.spot-noscript { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-size: 16px; }
.spot-noscript h2 { margin: 0 0 8px; font-size: 18px; }
.spot-noscript p { margin: 0; color: var(--text-2); }

/* ---------- Map UI ---------- */
.spot-map__locate { position: absolute; z-index: 500; top: 14px; right: 14px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(14, 35, 36, .35); }
.spot-map__locate:hover { border-color: var(--primary); }
.spot-map__badge { position: absolute; z-index: 500; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; box-shadow: var(--shadow-float); pointer-events: none; }
.spot-map__badge[hidden] { display: none; }
.spot-map .leaflet-control-zoom { border: 0; box-shadow: 0 8px 20px -10px rgba(14, 35, 36, .35); border-radius: 12px; overflow: hidden; }
.spot-map .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; color: var(--ink); border-color: var(--line); }
.spot-map .leaflet-control-attribution { font-size: 11px; border-top-right-radius: 8px; }

/* Teardrop pins (L.divIcon). Wrapper is the Leaflet icon element; transforms go on the inner node. */
.spot-pin { background: none; border: 0; }
.spot-pin__b { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(14, 35, 36, .35); display: grid; place-items: center; transition: transform .2s, background .2s; }
.spot-pin__b span { transform: rotate(45deg); color: #fff; font: 800 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.spot-pin.is-hot .spot-pin__b { background: var(--ink); transform: rotate(-45deg) scale(1.22); }
.spot-pin--pending .spot-pin__b { background: #5d7d79; }
.spot-pin--pending.is-hot .spot-pin__b { background: var(--ink); }

.spot-cluster { background: none; border: 0; }
.spot-cluster div { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(42, 157, 143, .25), 0 6px 14px rgba(14, 35, 36, .3); display: grid; place-items: center; font: 800 14px/1 var(--font); font-variant-numeric: tabular-nums; }

.spot-me { background: none; border: 0; }
.spot-me div { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(42, 157, 143, .5); animation: spotPulse 1.6s infinite; }
@keyframes spotPulse { 0% { box-shadow: 0 0 0 0 rgba(42, 157, 143, .5); } 100% { box-shadow: 0 0 0 14px rgba(42, 157, 143, 0); } }

/* ---------- Owner section ---------- */
.spot-owner { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0; }
.spot-owner__glow { width: 520px; height: 520px; top: auto; bottom: -240px; left: 10%; opacity: .25; }
.spot-owner__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(36px, 5vw, 64px); align-items: center; }
.spot-owner__title { font-size: clamp(28px, 3.4vw, 42px); }
.spot-owner__cta { margin-top: 28px; gap: 20px; }
.spot-owner__more { margin: 24px 0 0; font-size: 15px; line-height: 1.6; color: var(--on-dark-3); }
.spot-owner__more a { color: var(--mint); font-weight: 600; }
.spot-owner__more a:hover { color: #fff; }
.spot-perks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.spot-perk { background: var(--dark-card); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 22px; }
.spot-perk__n { font-size: 12px; font-weight: 800; color: var(--mint); font-variant-numeric: tabular-nums; }
.spot-perk__title { margin: 8px 0 0; font-size: 17px; font-weight: 800; color: #fff; line-height: 1.3; }
.spot-perk p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--on-dark-2); }

@media (max-width: 899px) {
  .spot-map__badge { bottom: auto; top: 66px; max-width: calc(100% - 120px); font-size: 12px; padding: 6px 12px; border-radius: 14px; }
}

@media (max-width: 480px) {
  .spot-loc { flex-wrap: wrap; }
  .spot-loc p { flex-basis: calc(100% - 26px); }
  .spot-loc__btn { width: 100%; }
  .spot-card { padding: 16px; }
}
