/* ============================================================
   FONTS — self-hosted, font-display: block for wkhtmltopdf
   Files must be in /assets/fonts/ before first deploy.
   ============================================================ */

@font-face {
  font-family: 'Antonio';
  src: url('/assets/fonts/Antonio-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Archivo Narrow';
  src: url('/assets/fonts/ArchivoNarrow-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Archivo Narrow';
  src: url('/assets/fonts/ArchivoNarrow-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'BigTimes';
  src: url('/assets/fonts/Bigtimes.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ============================================================
   RESET / BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: #E8E8E8;
  color: #00305D;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a             { color: #00305D; }
a:hover       { color: #C03936; }
h1, h2, h3   { margin: 0 0 0.5em; line-height: 1.2; }
p             { margin: 0 0 1em; }
ul, ol        { margin: 0; padding-left: 1.4em; }

/* BigTimes used only for "Destination [Town Name]" in town hero */
.town-display-name {
  font-family: 'BigTimes', cursive;
  color: #00305D;
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0.15em 0;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  background: #00305D;
  padding: 14px 24px;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  color: #fff;
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-header__brand:hover { color: #fff; text-decoration: underline; }

.site-header__tagline {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: #00305D;
  color: rgba(255,255,255,0.8);
  padding: 24px;
  margin-top: 48px;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer__inner p { margin: 4px 0; }

.site-footer__tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

/* ============================================================
   SITE MAIN
   ============================================================ */

.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

/* ============================================================
   TOWN CARDS (shared: home, state page)
   ============================================================ */

.town-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.town-card {
  display: block;
  background: #fff;
  border: 1px solid #00305D;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,48,93,0.08);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s;
}

.town-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,48,93,0.16);
}

.town-card__accent {
  height: 4px;
  background: #C03936;
}

.town-card__body {
  padding: 14px 16px;
}

.town-card__name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #00305D;
  margin-bottom: 4px;
}

.town-card__status {
  display: block;
  font-size: 0.82rem;
  color: #555;
}

/* ============================================================
   HOME PAGE
   ============================================================ */

.home-page { padding-bottom: 48px; }

.home-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.home-hero__headline {
  font-family: 'BigTimes', cursive;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #00305D;
  margin-bottom: 28px;
}

.home-selectors {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.home-select {
  min-width: 200px;
  padding: 10px 14px;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 1rem;
  border: 2px solid #00305D;
  border-radius: 4px;
  background: #fff;
  color: #00305D;
  appearance: none;
  cursor: pointer;
}

.home-select:focus {
  outline: none;
  border-color: #C03936;
}

.view-all-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #00305D;
  text-decoration: underline;
}
.view-all-link:hover { color: #C03936; }

/* ============================================================
   RECENTLY VIEWED / CLAIMED TOGGLE
   ============================================================ */

.home-recent { padding-bottom: 32px; }

.recent-toggle {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 4px;
}

.recent-toggle__btn {
  background: none;
  border: none;
  padding: 8px 0;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 1rem;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.1s, border-color 0.1s;
}

.recent-toggle__btn--active {
  color: #00305D;
  font-weight: 700;
  text-decoration: underline;
  border-bottom-color: #00305D;
}

/* ============================================================
   STATE PAGE
   ============================================================ */

.state-page__hero {
  padding: 40px 0 24px;
}

.state-page__sub {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}

.state-page__count {
  font-size: 0.9rem;
  color: #777;
  margin-top: 4px;
}

/* ============================================================
   TOWN HERO (pre-press + published)
   ============================================================ */

.town-hero {
  background: #00305D;
  color: #fff;
  padding: 36px 24px;
  border-bottom: 4px solid #C03936;
  margin: -32px -24px 32px;
}

.town-hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.town-hero .town-display-name { color: #fff; }

.town-hero__sub {
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin: 4px 0 0;
}

.town-hero__distributor {
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   TOWN LAYOUT (card + sidebar)
   ============================================================ */

.town-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.town-layout__card { flex: 0 0 auto; }

.town-sidebar {
  flex: 1 1 240px;
  min-width: 220px;
}

.card-footer-bar {
  background: #00305D;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 420px;
}

.card-footer-bar__url {
  font-size: 0.68rem;
  opacity: 0.75;
}

.card-side-label {
  text-align: center;
  font-size: 0.78rem;
  color: #777;
  margin: 6px 0 20px;
}

/* ============================================================
   COUNTDOWN WRAP
   ============================================================ */

.countdown-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.deadline-note {
  font-size: 0.78rem;
  color: #555;
  margin-top: 6px;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   HOW IT WORKS / LEGEND
   ============================================================ */

.how-it-works {
  background: #fff;
  border-left: 3px solid #C03936;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 2px;
}

.how-it-works h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.how-it-works ol {
  font-size: 0.85rem;
  padding-left: 1.2em;
}

.how-it-works li { margin-bottom: 4px; }

.card-legend {
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-swatch--open     { background: #E8E8E8; border: 1px solid #ccc; }
.legend-swatch--reserved { border-left: 3px solid #C03936; background: #fff; border-top: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee; }
.legend-swatch--confirmed{ border-left: 3px solid #00305D; background: #fff; border-top: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee; }

.next-destination-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #00305D;
  text-decoration: underline;
  margin-top: 8px;
}
.next-destination-link:hover { color: #C03936; }

/* ============================================================
   CLAIM MODAL
   ============================================================ */

.claim-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.claim-modal[hidden] { display: none; }

.claim-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,48,93,0.55);
}

.claim-modal__box {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: 32px;
  max-width: 560px;
  width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,48,93,0.25);
}

.claim-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.claim-modal__close:hover { color: #C03936; }

.claim-step h3 {
  font-size: 1rem;
  color: #C03936;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 9px 12px;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.95rem;
  border: 1px solid #aaa;
  border-radius: 3px;
  color: #00305D;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #00305D;
}

.form-group--inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group--inline label {
  font-weight: 400;
  margin: 0;
}

.form-group--inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.char-counter {
  font-size: 0.78rem;
  color: #888;
  float: right;
}

.field-note {
  font-size: 0.8rem;
  color: #888;
  margin: 4px 0 0;
}

.req { color: #C03936; }

.listing-preview-wrap {
  margin: 20px 0;
  padding: 12px;
  background: #E8E8E8;
  border-radius: 4px;
}

.preview-label {
  font-size: 0.78rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Storefront URL row */
.storefront-url-display {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #aaa;
  border-radius: 3px;
  overflow: hidden;
  margin: 12px 0;
}

.storefront-domain {
  background: #E8E8E8;
  color: #555;
  font-size: 0.88rem;
  padding: 9px 10px;
  white-space: nowrap;
  border-right: 1px solid #aaa;
}

.storefront-url-display input {
  border: none;
  flex: 1;
  padding: 9px 10px;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.95rem;
  color: #00305D;
  min-width: 0;
}

.storefront-url-display input:focus { outline: none; }

/* Package options */
.package-options { margin-bottom: 16px; }

.package-option {
  display: block;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.1s;
}

.package-option:hover { border-color: #00305D; }

.package-option input[type="radio"] {
  margin-right: 10px;
  accent-color: #00305D;
}

.package-option strong {
  display: block;
  font-size: 0.95rem;
  color: #00305D;
  margin-bottom: 4px;
}

.package-option p {
  margin: 0;
  font-size: 0.84rem;
  color: #555;
}

/* TOS items */
.tos-items { margin-bottom: 16px; }

.tos-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.tos-item input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #00305D;
}

/* Notices */
.notice {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 12px 0;
  font-size: 0.9rem;
}

.notice--warn {
  background: #fff8e1;
  border-left: 4px solid #f0ad00;
  color: #7a5200;
}

/* Step nav */
.step-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.step6-summary {
  background: #f5f8ff;
  border: 1px solid #c0d0e8;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.12s;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn--primary   { background: #00305D; color: #fff; }
.btn--primary:hover   { background: #004a8c; }
.btn--secondary { background: #E8E8E8; color: #00305D; border: 1px solid #ccc; }
.btn--secondary:hover { background: #d8d8d8; }
.btn--cta       { background: #C03936; color: #fff; }
.btn--cta:hover { background: #a02d2b; }

/* ============================================================
   ERROR PAGE
   ============================================================ */

.error-page {
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 { font-size: 2rem; color: #C03936; }

/* ============================================================
   NO TOWNS
   ============================================================ */

.no-towns {
  color: #888;
  font-size: 0.9rem;
  padding: 16px 0;
}
