/* =====================================================================
   area-v2.css — Area Results Page
   Phase 1e | Built: 2026-05-28
   Phase 2 | Updated: 2026-05-29 (Session 25):
     Search card now uses homepage-v2.css field/dropdown/Pikaday styles
     directly -- no duplication. This file adds only area-specific styles:
     hero wrapper, filter section inside card, results, skeleton, empty state.
   Loads after homepage-v2.css (pageCss2). All tokens from tokens.css.
   ===================================================================== */

/* =====================================================================
   AREA HERO
   ===================================================================== */

.sct-area-hero {
  background: var(--sct-green-800);
  padding: var(--sct-space-5) var(--sct-space-5) var(--sct-space-10);
}

.sct-search--area {
  margin-bottom: 0;
}

.sct-search--area .sct-search__submit {
  display: none;
}

.sct-search--area .sct-search__fields {
  border-radius: var(--sct-radius-lg) var(--sct-radius-lg) 0 0;
}

/* =====================================================================
   FILTER SECTION -- base (mobile)
   Stacked vertically below fields, separated by top border.
   ===================================================================== */

.sct-area-filters {
  background: var(--sct-paper);
  border-radius: 0 0 var(--sct-radius-lg) var(--sct-radius-lg);
  padding: var(--sct-space-4) var(--sct-space-5);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--sct-overlay-border);
}

/* Filter row -- label above control (stacked) */

.sct-area-filterrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.sct-area-filterrow__label {
  font-family: var(--sct-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sct-ink-500);
  flex-shrink: 0;
}

/* Native <select> styling */

.sct-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--sct-font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--sct-ink-800);
  background: var(--sct-paper);
  border: 1px solid var(--sct-ink-300);
  border-radius: var(--sct-radius-sm);
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  transition: border-color var(--sct-transition-fast);
  min-width: 0;
}

.sct-select:hover { border-color: var(--sct-green-700); }
.sct-select:focus-visible { outline: 2px solid var(--sct-green-700); outline-offset: -2px; border-color: var(--sct-green-700); }
.sct-select:disabled { opacity: 0.35; cursor: not-allowed; }

/* Time From / To row */

.sct-time-selects {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sct-time-selects__sep {
  font-family: var(--sct-font-ui);
  font-size: 12px;
  color: var(--sct-ink-400);
  font-weight: 500;
}

/* Sort pills */
.sct-pill {
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--sct-radius-full);
  padding: 4px 12px;
  font-family: var(--sct-font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--sct-transition-fast), color var(--sct-transition-fast);
  white-space: nowrap;
}

.sct-pill--active  { background: var(--sct-green-800); color: var(--sct-paper); }
.sct-pill--inactive { background: transparent; color: var(--sct-ink-700); border-color: var(--sct-ink-300); }
.sct-pill--disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

.sct-sortpills {
  display: inline-flex;
  gap: 6px;
}

/* =====================================================================
   DESKTOP -- 768px+
   ===================================================================== */

@media (min-width: 768px) {
  .sct-area-hero {
    padding: var(--sct-space-8) var(--sct-space-16) var(--sct-space-12);
  }

  .sct-search--area .sct-search__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--sct-radius-lg);
    border: 1px solid var(--sct-overlay-border-md);
    background: var(--sct-paper);
    box-shadow: var(--sct-shadow-2);
  }

  .sct-search--area {
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .sct-search--area .sct-search__fields {
    flex-shrink: 0;
    border-radius: var(--sct-radius-lg) 0 0 var(--sct-radius-lg);
    border-bottom: 0;
    border-right: 1px solid var(--sct-overlay-border);
    overflow: hidden;
  }

  .sct-area-filters {
    flex: 1;
    min-width: 0;
    border-radius: 0 var(--sct-radius-lg) var(--sct-radius-lg) 0;
    border-top: 0;
    border-left: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: var(--sct-space-4) var(--sct-space-5);
  }

  /* Time filter: left section */
  .sct-area-filterrow--time {
    flex-shrink: 0;
    padding-right: 20px;
  }

  /* Holes filterrow: separated by left border */
  .sct-area-filters .sct-area-filterrow {
    flex-shrink: 0;
    border-left: 1px solid var(--sct-overlay-border-xl);
    padding-left: 20px;
    padding-right: 12px;
  }

  /* First filterrow has no left border */
  .sct-area-filters .sct-area-filterrow:first-child,
  .sct-area-filters .sct-area-filterrow--time {
    border-left: none;
    padding-left: 0;
    padding-right: 12px;
  }

  .sct-area-filterrow--sort {
    border-left: 1px solid var(--sct-overlay-border-xl);
    padding-left: 20px;
    padding-right: 0;
  }

  .sct-area-filterrow--distance {
    border-left: 1px solid var(--sct-overlay-border-xl);
    padding-left: 20px;
  }
}

/* =====================================================================
   PAGE HEADER
   ===================================================================== */

.sct-pagehead { padding: 20px 20px 0; }

.sct-pagehead__h1 {
  font-family: var(--sct-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--sct-green-900);
  margin: 0 0 8px;
  text-wrap: balance;
}

.sct-pagehead__sub {
  font-family: var(--sct-font-ui);
  font-size: 13px;
  line-height: 1.3;
  color: var(--sct-ink-500);
  margin: 0;
}

.sct-pagehead__sub .accent { color: var(--sct-ink-700); font-weight: 600; }

@media (min-width: 768px) {
  .sct-pagehead {
    padding: 24px 32px 0;
    max-width: var(--sct-content-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .sct-pagehead__h1 { font-size: 38px; }
  .sct-pagehead__sub { font-size: 14px; }
}

/* =====================================================================
   RESULTS LIST
   ===================================================================== */

.sct-results {
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sct-course {
  background: var(--sct-paper);
  border: 1px solid var(--sct-overlay-border-md);
  border-radius: var(--sct-radius-md);
  padding: 16px;
}

.sct-course__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sct-course__meta { flex: 1; min-width: 0; }

.sct-course__name {
  font-family: var(--sct-font-ui);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--sct-ink-900);
  margin: 0 0 4px;
}

.sct-course__city {
  font-family: var(--sct-font-ui);
  font-size: 12px;
  color: var(--sct-ink-500);
  line-height: 1;
}

.sct-course__distance { display: none; }
.sct-course__distance::before { content: " · "; }

.sct-course__updated {
  font-family: var(--sct-font-ui);
  font-size: 11px;
  color: var(--sct-ink-400);
  line-height: 1.2;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
  padding-top: 2px;
}

.sct-strip {
  display: flex;
  gap: var(--sct-space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -16px;
  padding: 2px 16px 4px;
  scrollbar-width: none;
}

.sct-strip::-webkit-scrollbar { display: none; }

.sct-tile {
  position: relative;
  background: var(--sct-paper);
  border: 1px solid var(--sct-overlay-border-md);
  border-radius: var(--sct-radius-sm);
  padding: 10px 12px;
  width: 96px;
  flex: 0 0 96px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 82px;
  max-height: 90px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--sct-transition-fast), border-color var(--sct-transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.sct-tile:hover,
.sct-tile:focus-visible {
  background: var(--sct-green-50);
  border-color: var(--sct-overlay-border-3xl);
  outline: none;
}

.sct-tile:active {
  background: var(--sct-green-100);
  border-color: var(--sct-green-700);
}

.sct-tile__open {
  position: absolute;
  top: 8px; right: 8px;
  width: 12px; height: 12px;
  color: var(--sct-ink-300);
  display: block;
  pointer-events: none;
  transition: color var(--sct-transition-fast);
}

.sct-tile:hover .sct-tile__open,
.sct-tile:focus-visible .sct-tile__open { color: var(--sct-green-700); }

.sct-tile__time {
  font-family: var(--sct-font-ui);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--sct-ink-900);
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  padding-right: 16px;
}

.sct-tile__et {
  font-family: var(--sct-font-ui);
  font-size: 10px;
  color: var(--sct-ink-400);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.sct-tile__price {
  font-family: var(--sct-font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--sct-ink-700);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sct-tile__meta {
  font-family: var(--sct-font-ui);
  font-weight: 400;
  font-size: 11px;
  color: var(--sct-ink-500);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sct-tile__stat { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.sct-tile__stat svg { width: 12px; height: 12px; color: var(--sct-ink-500); flex-shrink: 0; display: block; }
.sct-tile__mode { display: none; }
.sct-tile__v3   { display: none; }

.sct-course__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--sct-overlay-border-sm);
}

.sct-course__avail { font-family: var(--sct-font-ui); font-size: 12px; color: var(--sct-ink-500); }

.sct-course__viewall {
  font-family: var(--sct-font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--sct-green-800);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .sct-results {
    padding: 16px 32px 40px;
    max-width: var(--sct-content-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .sct-course { padding: 20px; }
  .sct-course__name { font-size: 17px; }
  .sct-tile { width: 104px; flex: 0 0 104px; }
}

/* =====================================================================
   SKELETON
   ===================================================================== */

.sct-course--skeleton { pointer-events: none; }
.sct-sk-name    { width: 62%; height: 14px; margin-bottom: 8px; }
.sct-sk-city    { width: 38%; height: 9px; }
.sct-sk-updated { width: 56px; height: 22px; flex-shrink: 0; margin-top: 2px; border-radius: var(--sct-radius-xs); }
.sct-strip--skeleton { overflow: hidden; }
.sct-sk-tile    { width: 96px; flex: 0 0 96px; height: 82px; border-radius: var(--sct-radius-sm); }
.sct-sk-avail   { width: 138px; height: 10px; }
.sct-sk-viewall { width: 92px; height: 10px; }
.sct-course--skeleton:nth-child(2) .sct-skeleton { animation-delay: 120ms; }
.sct-course--skeleton:nth-child(3) .sct-skeleton { animation-delay: 240ms; }

/* =====================================================================
   EMPTY STATE
   ===================================================================== */

.sct-empty {
  margin: 8px 16px 24px;
  padding: 56px 24px 64px;
  background: var(--sct-paper);
  border: 1px solid var(--sct-overlay-border);
  border-radius: var(--sct-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sct-empty__copy {
  font-family: var(--sct-font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sct-ink-600);
  text-align: center;
  max-width: 28ch;
  text-wrap: pretty;
  margin: 0;
}

.sct-empty__btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1.5px solid var(--sct-green-800);
  color: var(--sct-green-800);
  font-family: var(--sct-font-ui);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.01em;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--sct-radius-full);
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--sct-transition-fast), color var(--sct-transition-fast);
}

.sct-empty__btn:hover,
.sct-empty__btn:focus-visible {
  background: var(--sct-green-800);
  color: var(--sct-paper);
  outline: none;
}

@media (min-width: 768px) {
  .sct-empty { margin: 8px 32px 40px; padding: 72px 40px 80px; }
  .sct-empty__copy { font-size: 16px; }
}

/* =====================================================================
   NEAR ME -- Sort pills
   ===================================================================== */

.sct-sortpills {
  display: inline-flex;
  gap: 6px;
}

.sct-pill--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* =====================================================================
   NEAR ME -- Geolocation banner
   ===================================================================== */

.sct-geo-banner {
  margin: 12px 16px 0;
  padding: 16px 20px;
  background: var(--sct-gold-50, #fefce8);
  border: 1px solid var(--sct-gold-200, #fde68a);
  border-radius: var(--sct-radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sct-geo-banner__body {
  flex: 1;
  min-width: 200px;
}

.sct-geo-banner__title {
  font-family: var(--sct-font-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--sct-ink-900);
  margin: 0 0 4px;
  line-height: 1.2;
}

.sct-geo-banner__text {
  font-family: var(--sct-font-ui);
  font-size: 14px;
  color: var(--sct-ink-600);
  line-height: 1.4;
  margin: 0;
}

.sct-geo-banner__btn {
  appearance: none;
  -webkit-appearance: none;
  background: var(--sct-green-800);
  border: none;
  color: var(--sct-paper);
  font-family: var(--sct-font-ui);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--sct-radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--sct-transition-fast);
}

.sct-geo-banner__btn:hover {
  background: var(--sct-green-700);
}

.sct-geo-banner__btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (min-width: 768px) {
  .sct-geo-banner {
    margin: 12px 32px 0;
    max-width: var(--sct-content-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 24px;
  }

  .sct-geo-banner__title { font-size: 16px; }
  .sct-geo-banner__text  { font-size: 14px; }
  .sct-geo-banner__btn   { font-size: 14px; padding: 10px 24px; }
}
