/* Functional Directory discovery module — City / Space type / Use. */
/* One optical grid for the public header and primary Directory search. */
.dir-header {
  padding-inline: var(--directory-gutter, var(--page));
}

body:not(.is-space-view) .directory-hero {
  padding-inline: var(--directory-gutter, var(--page));
}

body:not(.is-space-view) .directory-hero-inner {
  padding: 0;
}

.directory-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body:not(.is-space-view) .directory-hero .search-box {
  width: 100%;
  margin: 0;
  border-top: 0;
}

body:not(.is-space-view) .directory-hero .directory-search-field {
  display: grid;
  min-height: 72px;
  padding: 12px 18px;
  align-content: center;
  gap: 7px;
}

body:not(.is-space-view) .directory-hero .directory-search-field label {
  margin: 0;
  line-height: 1;
}

body:not(.is-space-view) .directory-hero .directory-search-button {
  min-height: 72px;
}

.site-directory select.is-hds-enhanced {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  clip-path: inset(50%);
  overflow: hidden;
  pointer-events: none;
  white-space: nowrap;
}

.directory-search .hds-home-select {
  min-width: 0;
}

.directory-search .hds-home-select-trigger {
  display: flex;
  width: 100%;
  min-height: 28px;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 430;
  line-height: 1.25;
  text-align: left;
}

.directory-search .hds-home-select-trigger:focus-visible {
  outline: 0;
  box-shadow: 0 1px 0 #111;
}

.directory-search .hds-home-select-chevron {
  flex: 0 0 auto;
  color: #77726a;
  font-size: 14px;
  transition: transform .16s ease;
}

.directory-search .hds-home-select-trigger[aria-expanded="true"] .hds-home-select-chevron {
  transform: rotate(180deg);
}

body:not(.is-space-view) .directory-selected {
  padding-top: clamp(58px, 6vw, 88px);
}

.directory-selected .section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .94;
  text-transform: none;
}

.directory-edition-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 18px var(--directory-gutter, var(--page)) 0;
  padding: 24px clamp(24px, 3vw, 42px);
  border: 1px solid #c9cec1;
  background: linear-gradient(105deg, #e6edde 0%, #f1eee7 72%);
}

.directory-edition-context .section-kicker {
  margin-bottom: 7px;
}

.directory-edition-context h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.directory-edition-context p:last-child {
  margin: 9px 0 0;
  color: #66635d;
  font-size: 11px;
  line-height: 1.5;
}

.directory-edition-context > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 166px;
  padding: 13px 15px;
  border: 1px solid #171716;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.directory-edition-context > a:hover,
.directory-edition-context > a:focus-visible {
  background: #171716;
  color: #fff;
}
.directory-explore {
  padding: clamp(64px, 7vw, 104px) var(--directory-gutter, var(--page));
  border-top: 1px solid var(--line);
  background: #ece9e2;
}

.directory-explore-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
  align-items: end;
  gap: clamp(36px, 7vw, 112px);
  margin-bottom: 38px;
}

.directory-explore-head h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .94;
}

.directory-explore-head > p {
  max-width: 450px;
  margin: 0;
  color: #68635b;
  font-size: 14px;
  line-height: 1.65;
}

.directory-explore-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #c7c1b7;
}

.directory-explore-tabs button {
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #77726a;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.directory-explore-tabs button:first-child {
  padding-left: 0;
}

.directory-explore-tabs button[aria-selected="true"] {
  border-bottom-color: #111;
  color: #111;
}

.directory-explore-panel[hidden] {
  display: none;
}

.directory-explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.directory-explore-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: #171716;
  color: #fff;
}

.directory-explore-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .2s ease;
}

.directory-explore-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06) 30%, rgba(0, 0, 0, .74) 100%);
}

.directory-explore-copy {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 22px;
  flex-direction: column;
  justify-content: flex-end;
}

.directory-explore-copy small {
  order: 1;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.directory-explore-copy strong {
  order: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .96;
}

.directory-explore-copy em {
  order: 3;
  margin-top: 18px;
  font-size: 9px;
  font-style: normal;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.directory-explore-card.is-coming-soon img {
  opacity: .42;
  filter: grayscale(.35);
}

.directory-explore-card.is-coming-soon .directory-explore-shade {
  background: rgba(17, 17, 17, .48);
}

.directory-explore-card.is-coming-soon .directory-explore-copy em {
  color: rgba(255, 255, 255, .62);
}

.directory-explore-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 36px;
  border: 1px solid #c7c1b7;
  color: #706b63;
  text-align: center;
}

.directory-explore-empty p {
  max-width: 440px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -.035em;
  line-height: 1.12;
}

@media (hover: hover) {
  a.directory-explore-card:hover img {
    transform: scale(1.025);
  }

  .directory-explore-tabs button:hover {
    color: #111;
  }
}

@media (max-width: 980px) {
  .directory-explore-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .directory-explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dir-header,
  body:not(.is-space-view) .directory-hero {
    padding-inline: 20px;
  }

  body:not(.is-space-view) .directory-hero .directory-search-field {
    min-height: 62px;
  }

  body:not(.is-space-view) .directory-hero .directory-search-button {
    min-height: 54px;
  }

  .directory-edition-context {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 12px 20px 0;
    padding: 22px 20px;
  }

  .directory-edition-context > a {
    width: 100%;
  }

  .directory-explore {
    padding: 52px 20px 58px;
  }

  .directory-explore-head {
    margin-bottom: 28px;
  }

  .directory-explore-head h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .directory-explore-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .directory-explore-tabs::-webkit-scrollbar {
    display: none;
  }

  .directory-explore-tabs button {
    min-width: max-content;
    padding-inline: 18px;
  }

  .directory-explore-tabs button:first-child {
    padding-left: 0;
  }

  .directory-explore-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(276px, 84vw);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .directory-explore-grid::-webkit-scrollbar {
    display: none;
  }

  .directory-explore-card {
    min-height: 350px;
    scroll-snap-align: start;
  }

  .directory-explore-copy {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directory-explore-card img {
    transition: none;
  }
}

/* Shared custom controls for search, selection and Claim. */
.site-directory .hds-home-select { min-width: 0; }
.site-directory .hds-home-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; color: #111; font-family: inherit; text-align: left; cursor: pointer; }
.site-directory .hds-home-select-chevron { display: flex; flex: 0 0 16px; color: currentColor; }
.site-directory .hds-home-select-menu { z-index: 140; max-height: min(70svh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.site-directory .space-project-field .hds-home-select-trigger, .site-directory .shortlist-brief-field .hds-home-select-trigger { border: 0; background: #fff; padding: 8px 0; min-height: 44px; font-size: 16px; }
.site-directory [data-browse-chips] button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.site-directory .directory-show-all { display: flex; align-items: center; justify-content: center; gap: 12px; }
.site-directory :is(.space-project-form, .shortlist-brief-form) .hds-date-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; border: 0; background: transparent; padding: 8px 0; color: #111; font-family: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.site-directory .hds-calendar { z-index: 170; max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; }

.site-directory .city-results-controls .hds-home-select-trigger { border: 0; background: transparent; padding: 8px 0; min-height: 44px; font-size: 14px; line-height: 1.4; font-weight: 400; letter-spacing: 0; text-transform: none; }
/* A single custom range control replaces the former pair of native inputs. */
.site-directory .directory-date-range { display: block; min-width: 0; }
.site-directory .hds-date-trigger [data-hds-date-display] { color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
