/* ========================================
   ALPY 2.0 — Country / region listing page
   Loaded only on country.html (after the core stack).
   ======================================== */

/* ---- Secondary nav (.sub-nav) now lives in pages.css (shared with shop page) ---- */

/* ---- Page layout ---- */
.country-layout {
  display: grid;
  grid-template-columns: 300px 1fr; /* match the town page sidebar width */
  gap: 40px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 64px;
}

/* ---- Left: search panel ---- */
.country-sidebar { position: sticky; top: 92px; }
.ski-rental-panel {
  /* orange skin + padding come from the shared .search-panel class; this just sets shape */
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-md);
}
.srp-title {
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: 30px;
  color: #fff;
  margin: 0 0 16px;
}
/* Search-card chrome (gray card + white fields) comes from the shared
   `.search-panel` class in pages.css — no per-page overrides needed. */

/* ---- Right: cascading lists ---- */
.country-main { display: flex; flex-direction: column; gap: 36px; }
.geo-accordion { border-bottom: 1px solid var(--color-border); padding-bottom: 28px; }
.geo-accordion:last-child { border-bottom: 0; }
.geo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0 0 20px;
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-fg-primary);
  cursor: pointer;
}
.geo-caret {
  color: var(--color-fg-tertiary);
  transition: transform var(--transition-fast);
  line-height: 0;
}
.geo-accordion.collapsed .geo-caret { transform: rotate(180deg); }
.geo-accordion.collapsed .geo-body { display: none; }

.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.geo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: #e6e6e6;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-fg-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.geo-row:hover { background: #d8d8d8; }
.geo-row.active {
  background: var(--color-primary-red);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(198, 58, 30, 0.28);
}
.geo-row.active:hover { background: var(--color-primary-red); }
.geo-row .geo-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.geo-row alpy-icon { color: var(--color-fg-tertiary); flex-shrink: 0; }
.geo-row.active alpy-icon { color: #fff; }

/* ---- Mobile ---- */
@media (max-width: 1024px) {
  .country-layout { grid-template-columns: 1fr; gap: 28px; }
  .country-sidebar { position: static; }
}
@media (max-width: 640px) {
  .country-layout { padding-top: 24px; }
  .geo-grid { grid-template-columns: 1fr; gap: 10px; }
  .geo-head { font-size: 22px; }
  .srp-title { font-size: 26px; }
}
