/* ==========================================================================
   Property switcher
   The studio works with three kinds of building: homes, hotels and
   short-lets. This is the one control that is present, identically, on all
   four pages, so a visitor can cross over in one tap from anywhere.
   Layered on styles.css tokens only — no external requests.
   ========================================================================== */

.switcher {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  margin: 0 0 clamp(24px, 3.2vw, 38px);
  padding-bottom: clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line);
}

.switcher__label {
  font: 650 10px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.switcher__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.switcher__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    background 0.25s var(--ease), transform 0.25s var(--ease);
}

.switcher__link:hover {
  border-color: var(--clay);
  color: var(--clay);
  transform: translateY(-1px);
}

.switcher__link:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.switcher__link[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.switcher__link[aria-current="page"]:hover {
  border-color: var(--ink);
  color: var(--paper);
  transform: none;
}

.switcher__num {
  font: 700 9.5px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--clay);
}

.switcher__link[aria-current="page"] .switcher__num {
  color: var(--gold);
}

@media (max-width: 620px) {
  .switcher {
    gap: 10px 12px;
  }

  .switcher__label {
    width: 100%;
  }

  .switcher__link {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Footer variant: a plain list, no pills. */
.switcher-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.switcher-foot a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.switcher-foot a:hover {
  color: var(--clay);
}

.switcher-foot .switcher__num {
  color: var(--clay);
  opacity: 0.9;
}

/* The homes hero reuses the operations board from the hotel proposal, but its
   row labels are room names rather than floor numbers. */
.is-homes .ops__floor {
  grid-template-columns: 40px minmax(0, 1fr);
}

.is-homes .ops__flabel {
  font-size: 8.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
