/* CasinoMaps site styles. Most layout lives inline in the templates;
   this file holds globals, hover/focus states and the few stateful controls. */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #f4efe6; color: #1c1a17; font-family: Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #1c1a17; text-decoration: none; }
a:hover { color: #2f6b4a; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid #2f6b4a; outline-offset: 2px; }

@keyframes cmPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pulse { animation: cmPulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.wait-pill { font-size: 11px; padding: 2px 7px; border-radius: 999px; color: #fff; }

.h-card:hover { border-color: #2f6b4a !important; }
.h-lift { transition: transform .15s; }
.h-lift:hover { border-color: #2f6b4a !important; transform: translateY(-2px); }
.h-pill:hover { background: #e9e2d4 !important; }
.h-dark:hover { background: #2f6b4a !important; color: #fff !important; }
.f-green:focus { border-color: #2f6b4a !important; }
[aria-current="page"].h-pill { background: #e9e2d4; }

.chip { position: relative; padding: 9px 14px; border-radius: 999px; border: 1px solid #d8cfbf; background: #fffdf9; color: #1c1a17; font-size: 13px; font-weight: 700; cursor: pointer; }
.chip.is-on, .radio-chip:has(input:checked) { background: #1c1a17; color: #f4efe6; border-color: #1c1a17; }
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chip:has(input:focus-visible) { outline: 2px solid #2f6b4a; outline-offset: 2px; }
.seg { display: flex; border: 1px solid #d8cfbf; border-radius: 999px; overflow: hidden; background: #fffdf9; }
.seg button { padding: 9px 14px; border: 0; cursor: pointer; font-size: 13px; font-weight: 700; background: transparent; color: #1c1a17; }
.seg button.is-on { background: #1c1a17; color: #f4efe6; }
.select { padding: 10px 14px; border-radius: 999px; border: 1px solid #d8cfbf; background: #fffdf9; font-size: 14px; font-weight: 600; color: #1c1a17; max-width: 100%; }

.claim-fields { display: none; }
form:has(input[name="mode"][value="claim"]:checked) .claim-fields { display: grid; }
.label-claim { display: none; }
form:has(input[name="mode"][value="claim"]:checked) .label-claim { display: inline; }
form:has(input[name="mode"][value="claim"]:checked) .label-suggest { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.leaflet-container { font-family: Manrope, system-ui, sans-serif; background: #e9e2d4; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 8px 24px rgba(28, 26, 23, .18); }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; }
.cm-pin { width: 40px; height: 40px; border-radius: 50%; background: #1c1a17; color: #f4efe6; border: 3px solid #fffdf9; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; font-family: Outfit, sans-serif; font-weight: 800; font-size: 14px; }
.cm-pin.sample { border-style: dashed; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 380px);
  gap: 36px 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; gap: 28px; }
}
.home-now { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home-now-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 16px;
  background: #fffdf9;
  border: 1px solid #e2dacb;
}
.home-now-card .thumb,
.home-now-card img { width: 64px; height: 64px; border-radius: 10px; }
.home-now-name {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2px 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-now-meta { font-size: 12px; color: #6b655c; line-height: 1.35; }
.home-now [data-status] { font-size: 12px; gap: 6px; }

.card-media { position: relative; aspect-ratio: 4 / 3; min-height: 0; flex: none; }
.card-media > .card-media-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.face-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(28, 26, 23, .45); }
.face-cover img { width: 72px; height: 72px; }

.link-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.cm-consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000;
  max-width: 760px; margin: 0 auto; padding: 16px 18px;
  background: #fffdf9; color: #2b2822; border: 1px solid #d8cfbf; border-radius: 16px;
  box-shadow: 0 10px 40px rgba(28, 26, 23, 0.22); max-height: 70vh; overflow: auto;
}
.cm-consent[hidden] { display: none; }
.cm-consent-title { font-family: Outfit, sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.cm-consent-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.cm-consent-text a { text-decoration: underline; color: #2f6b4a; font-weight: 700; }
.cm-consent-actions { display: flex; gap: 10px; }
.cm-consent-btn {
  flex: 1 1 0; min-height: 44px; padding: 10px 16px; border-radius: 12px;
  background: #1c1a17; color: #f4efe6; border: 2px solid #1c1a17;
  font: 700 15px Manrope, sans-serif; cursor: pointer;
}
.cm-consent-btn:hover { background: #2b2822; }
.cm-consent-btn:focus-visible, .cm-consent-text a:focus-visible, .link-btn:focus-visible { outline: 3px solid #2f6b4a; outline-offset: 2px; }
@media (max-width: 520px) {
  .cm-consent { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; }
  .cm-consent-text { font-size: 13px; margin-bottom: 10px; }
}

.home-now-rail { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home-now-rail[hidden] { display: none; }
.home-now-note { font-size: 12px; color: #6b655c; line-height: 1.4; }
.home-now-note .link-btn { color: #2f6b4a; font-weight: 700; text-decoration: underline; }
.home-now[data-city-pending] { visibility: hidden; animation: cm-city-reveal 0s linear 1.2s forwards; }
@keyframes cm-city-reveal { to { visibility: visible; } }

.prose { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; color: #2b2822; }
.prose p { margin: 0; text-wrap: pretty; }
.sample-banner { padding: 12px 14px; border-radius: 12px; background: #f3e2c2; color: #3d2e12; font-size: 14px; font-weight: 700; line-height: 1.45; }
