/* Homepage film experiment: scoped so the rest of the directory is unchanged. */
.home-film-test > header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  max-width: none;
  height: 92px;
  background: rgba(12, 30, 23, 0.76);
  backdrop-filter: blur(10px);
  color: white;
  border-bottom: 1px solid #ffffff30;
}
.home-film-test > header a,
.home-film-test > header .brand span,
.home-film-test > header nav a[aria-current] {
  color: white;
}
.home-film-test > header .header-account > a {
  background: transparent;
  border-color: #ffffff60;
}
.home-film-test > main {
  max-width: none;
}
.home-film-test .film-hero {
  position: relative;
  isolation: isolate;
  margin: 0 calc(-1 * var(--page-gutter));
  padding: 172px var(--page-gutter) 28px;
  min-height: min(850px, 94svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  color: #fff;
  background: #15251f;
}
.film-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
}
.film-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #061710b8 0%, #06171075 50%, #06171020 100%),
    linear-gradient(0deg, #061710a6, transparent 60%, #06171045);
}
.film-content {
  width: min(100%, 900px);
  padding: 20px 0 48px;
}
.film-content .eyebrow {
  color: #e6f5b8;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.film-content h1 {
  font: 500 clamp(52px, 6.8vw, 100px) / 1.04 var(--sans);
  letter-spacing: -0.055em;
  color: white;
  margin: 22px 0;
}
.film-content > p {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}
.film-search {
  max-width: 770px;
  margin-top: 30px;
}
.film-search .search-controls {
  margin-top: 0;
}
.film-search .search-controls .discovery-search {
  border-color: transparent;
}
.film-search .filter-panel {
  color: #27252a;
}
.film-search .filter-details summary {
  color: white;
  background: #10251b66;
  border-color: #ffffff90;
  backdrop-filter: blur(10px);
}
.film-search .search-shortcuts {
  margin: 12px 0 0;
  gap: 8px;
}
.film-search .discovery-cities button {
  background: transparent;
  color: white;
  border: 0;
  padding: 5px 10px;
  font-size: 14px;
}
.film-search .discovery-cities button:first-child {
  padding-left: 0;
}
.film-search .discovery-cities button:hover {
  text-decoration: underline;
  background: transparent;
}
.film-search .search-shortcuts .locate-button {
  color: white;
  text-decoration: underline;
  font-size: 14px;
}
.film-search #location-feedback {
  color: white;
}
.film-search #location-feedback:empty {
  display: none;
}
.film-search .active-filters {
  color: #222;
}
.film-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #ffffff40;
  font-size: 14px;
}
.film-foot a {
  color: white;
}
#film-toggle {
  background: #10251b66;
  color: white;
  border: 1px solid #ffffff70;
  border-radius: 30px;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
}
.home-film-test #directory {
  padding-top: 36px;
  scroll-margin-top: 20px;
}
.home-film-test .film-search :focus-visible {
  outline: 3px solid #e6f5b8;
  outline-offset: 3px;
}
/* Desktop hero fills about half the viewport while keeping results in the first screen. */
@media (min-width: 761px) {
  .home-film-test > header {
    height: 76px;
  }
  .home-film-test .film-hero {
    min-height: 50svh;
    padding: 104px var(--page-gutter) 24px;
    justify-content: center;
  }
  /* Keep the open filters above cards outside the isolated hero background. */
  .home-film-test .film-hero:has(.filter-details[open]) {
    z-index: 20;
  }
  .home-film-test .film-content {
    padding: 0;
  }
  .film-content .eyebrow {
    font-size: 11px;
  }
  .home-film-test .film-content #film-title {
    font-size: clamp(40px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin: 10px 0 12px;
  }
  .film-content > p {
    font-size: 14px;
    line-height: 1.6;
    max-width: none;
  }
  .film-search {
    margin-top: 16px;
  }
  .film-search .discovery-search {
    padding: 5px;
  }
  .film-search .search-controls .primary {
    min-height: 42px;
    padding: 10px 18px;
    white-space: nowrap;
  }
  .film-search .search-controls #query {
    padding: 10px 12px;
  }
  .film-search .filter-details summary {
    min-height: 54px;
    padding: 10px 18px;
  }
  .film-search .search-shortcuts {
    margin-top: 8px;
  }
  .film-search .discovery-cities button {
    min-height: 28px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 13px;
  }
  .film-search .search-shortcuts .locate-button {
    padding: 4px 0;
    font-size: 13px;
  }
  .film-foot {
    display: none;
  }
  .home-film-test #directory {
    padding-top: 24px;
  }
  .home-film-test #directory > .section-heading {
    margin-bottom: 12px;
  }
  .home-film-test #directory > .section-heading > div h2 {
    font-size: clamp(30px, 3vw, 40px);
  }
  .home-film-test #directory .search-utilities {
    margin: 8px 0;
  }
}
@media (min-width: 761px) and (max-height: 800px) {
  .film-content .eyebrow {
    display: none;
  }
  .home-film-test .film-content #film-title {
    font-size: 40px;
    margin-top: 0;
  }
}
@media (max-width: 760px) {
  .home-film-test > header {
    height: auto;
    min-height: 112px;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px 16px;
    flex-wrap: wrap;
  }
  .home-film-test > header nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
  }
  .home-film-test .film-hero {
    min-height: 760px;
    padding-top: 162px;
    padding-bottom: 24px;
  }
  .film-content {
    padding: 10px 0 34px;
  }
  .film-content h1 {
    font-size: clamp(44px, 9vw, 66px);
  }
  .film-content > p {
    font-size: 16px;
    max-width: 36ch;
  }
  .film-search {
    margin-top: 26px;
  }
  .film-search .search-controls {
    gap: 8px;
  }
  .film-search .search-controls .primary {
    padding: 10px 12px;
    font-size: 14px;
  }
  .film-search .search-controls #query {
    padding: 10px 8px;
  }
  .film-search .filter-details summary {
    padding: 10px 12px;
  }
  .film-search .search-shortcuts {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .film-search .discovery-cities {
    gap: 0;
  }
  .film-search .discovery-cities button {
    font-size: 13px;
    padding: 5px 8px;
  }
  .film-background {
    object-position: 52% center;
  }
  .film-hero::before {
    background:
      linear-gradient(90deg, #061710a6, #06171055),
      linear-gradient(0deg, #061710aa, transparent 70%);
  }
}

@media (max-width: 760px) {
  .film-search .search-controls .primary {
    white-space: nowrap;
  }
  .home-film-test .film-search .search-shortcuts {
    margin-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .film-background {
    object-fit: cover;
  }
}

.home-film-test > header .header-account > a[href='/account/'] {
  color: #fff;
  opacity: 1;
}
@media (max-width: 760px) {
  .home-film-test > header nav {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    overflow-x: auto;
  }
  .home-film-test > header nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0;
    font-size: 1rem;
  }
  .home-film-test .film-hero {
    min-height: 710px;
  }
  .film-search .search-shortcuts .locate-button {
    align-self: flex-start;
  }
}

/* White links retain contrast over the film; underline supplies hover feedback. */
.home-film-test > header nav a:hover,
.home-film-test > header nav a:focus-visible,
.home-film-test > header .header-account > a:hover,
.home-film-test > header .header-account > a:focus-visible {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.home-film-test > header a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
  border-radius: 2px;
}

.home-film-test > header .header-account > a[href] {
  font-size: 1rem;
}

@media (max-width: 600px) {
  .home-film-test > header nav {
    gap: 4px;
    overflow: visible;
  }
  .home-film-test > header nav a,
  .home-film-test > header .header-account > a[href] {
    font-size: 0.9375rem;
  }
}

/* Mobile homepage: search first, refinement with the results. */
.film-mobile-copy,
.film-mobile-image,
.home-mobile-menu,
.mobile-city-shortcuts,
.mobile-filter-slot,
.mobile-location-icon {
  display: none;
}
@media (max-width: 760px) {
  .home-film-test > header.mobile-ready {
    min-height: 64px;
    height: 64px;
    padding: 8px var(--page-gutter);
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }
  .home-mobile-menu {
    display: block;
  }
  .home-mobile-menu summary {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    list-style: none;
    cursor: pointer;
    font-size: 15px;
  }
  .home-mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .home-mobile-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #15251f;
    padding: 12px var(--page-gutter) 20px;
    box-shadow: 0 12px 24px #0003;
    max-height: calc(100svh - 64px);
    overflow-y: auto;
  }
  .home-mobile-menu-panel nav,
  .home-mobile-menu-panel .header-account {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .home-mobile-menu-panel .header-account {
    border-top: 1px solid #ffffff30;
    margin-top: 8px;
    padding-top: 8px;
  }
  .home-mobile-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 0;
  }
  .home-film-test .film-hero {
    min-height: 0;
    padding: 108px var(--page-gutter) 32px;
    justify-content: flex-start;
  }
  .film-content {
    padding: 0;
    width: 100%;
  }
  .film-content .eyebrow,
  .film-desktop-copy,
  .film-background,
  .film-foot {
    display: none;
  }
  .film-mobile-copy {
    display: inline;
  }
  .film-mobile-image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
    z-index: -2;
  }
  .film-content h1 {
    font-size: clamp(30px, 8.5vw, 48px);
    line-height: 1.12;
    margin: 0 0 12px;
  }
  .film-content > p {
    font-size: 16px;
    line-height: 1.5;
    max-width: none;
  }
  .film-search {
    margin-top: 24px;
  }
  .film-search .search-controls {
    width: 100%;
  }
  .film-search .discovery-search {
    width: 100%;
    padding: 5px;
    gap: 4px;
  }
  .film-search .search-controls #query {
    padding: 12px 8px;
    font-size: 16px;
  }
  .film-search .search-controls .primary {
    min-height: 48px;
    padding: 10px 16px;
    font-size: 15px;
  }
  .film-search .search-shortcuts {
    margin-top: 12px;
  }
  .film-search .search-shortcuts .locate-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 0;
    font-size: 15px;
  }
  .mobile-location-icon {
    display: inline-block;
    flex: none;
  }
  .mobile-city-shortcuts {
    display: block;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-city-shortcuts h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
  }
  .mobile-city-shortcuts .discovery-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .mobile-city-shortcuts button {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
  }
  .mobile-city-shortcuts button[data-city-search=''] {
    display: none;
  }
  .home-film-test #directory {
    padding-top: 24px;
  }
  .home-film-test #directory > .section-heading {
    align-items: center;
    gap: 12px;
  }
  .mobile-filter-slot {
    display: block;
    order: 1;
    margin-left: auto;
  }
  .mobile-filter-slot .filter-details {
    position: relative;
  }
  .mobile-filter-slot summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    list-style: none;
  }
  .mobile-filter-slot .filter-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(340px, calc(100vw - 40px));
    max-height: 65svh;
    overflow-y: auto;
    z-index: 20;
    background: white;
    color: #27252a;
    padding: 18px;
    box-sizing: border-box;
    box-shadow: 0 12px 32px #0002;
  }
  .mobile-filter-slot .filter-panel label {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
  }
  .mobile-filter-slot .filter-panel select {
    min-height: 44px;
    width: 100%;
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  .home-film-test .film-content #film-title {
    font-size: clamp(28px, 8vw, 46px);
    letter-spacing: -0.04em;
  }
  .home-film-test .film-search .search-shortcuts .locate-button {
    margin-left: 0;
    align-self: flex-start;
  }
  .home-film-test .mobile-city-shortcuts h2 {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0;
  }
  .home-film-test #directory > .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .home-film-test #directory > .section-heading > .mobile-filter-slot {
    grid-column: 2;
    grid-row: 1;
    order: 0;
  }
  .home-film-test #directory > .section-heading > .view-controls {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .home-film-test #directory > .section-heading h2 {
    font-size: 23px;
  }
}
@media (max-width: 760px) {
  .home-film-test .mobile-filter-slot .filter-panel {
    left: auto;
    right: 0;
  }
  .home-film-test .home-mobile-menu-panel nav a {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .home-film-test .film-search {
    display: flex;
    flex-direction: column;
  }
  .home-film-test .film-search .search-shortcuts {
    order: 2;
  }
  .home-film-test .film-search #location-feedback {
    order: 3;
  }
}
