@charset "UTF-8";

/* Horse Hub Japan facility directory */
body.hh-directory-page {
  background: var(--hh-cream-50);
}

.hh-directory-main {
  min-height: 60vh;
  overflow: hidden;
}

.hh-breadcrumbs {
  display: flex;
  margin: 0 0 44px;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  white-space: nowrap;
}

.hh-breadcrumbs a {
  transition: color 160ms ease;
}

.hh-breadcrumbs a:hover {
  color: var(--hh-white);
}

.hh-breadcrumbs strong {
  max-width: min(42vw, 430px);
  overflow: hidden;
  color: var(--hh-white);
  font-weight: 650;
  text-overflow: ellipsis;
}

.hh-breadcrumbs--dark {
  padding-top: 34px;
  margin-bottom: 28px;
  color: var(--hh-muted);
}

.hh-breadcrumbs--dark a:hover,
.hh-breadcrumbs--dark strong {
  color: var(--hh-forest-900);
}

.hh-directory-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--hh-white);
  background: var(--hh-forest-950);
}

.hh-directory-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 19% 18%, rgba(170, 137, 85, 0.25), transparent 31%),
    linear-gradient(90deg, rgba(16, 39, 31, 0.98) 0%, rgba(16, 39, 31, 0.92) 47%, rgba(16, 39, 31, 0.38) 75%, rgba(16, 39, 31, 0.6) 100%);
}

.hh-directory-hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(59vw, 900px);
}

.hh-directory-hero-image {
  position: absolute;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.hh-directory-hero-image--one {
  top: -8%;
  right: -6%;
  width: 72%;
  height: 65%;
  background-image: url("../images/regions/hokkaido.jpg");
  border-radius: 0 0 0 80px;
}

.hh-directory-hero-image--two {
  right: 23%;
  bottom: -13%;
  width: 48%;
  height: 58%;
  background-image: url("../images/regions/kanto.jpg");
  border-radius: 38px;
  transform: rotate(-4deg);
}

.hh-directory-hero-image--three {
  right: -8%;
  bottom: -8%;
  width: 35%;
  height: 43%;
  background-image: url("../images/regions/kyushu-okinawa.jpg");
  border-radius: 34px 0 0 0;
  transform: rotate(4deg);
}

.hh-directory-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 34px;
  padding-bottom: 64px;
}

.hh-directory-hero .hh-eyebrow {
  color: var(--hh-sand-300);
}

.hh-directory-hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--hh-serif);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.hh-directory-hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.96rem;
  letter-spacing: 0.035em;
  line-height: 2;
}

.hh-directory-summary {
  display: flex;
  margin-top: 42px;
  gap: 42px;
}

.hh-directory-summary > div {
  display: flex;
  min-width: 92px;
  flex-direction: column;
}

.hh-directory-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hh-directory-summary span {
  margin-top: 7px;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
}

.hh-directory-content {
  padding: 0 0 112px;
  background: var(--hh-cream-50);
}

.hh-directory-filter {
  position: relative;
  z-index: 5;
  padding: 34px 38px 38px;
  margin-top: -42px;
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius-md);
  box-shadow: var(--hh-shadow-lg);
}

.hh-directory-filter-heading,
.hh-directory-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hh-directory-filter-heading h2,
.hh-directory-results-head h2,
.hh-directory-source h2,
.hh-facility-section-heading h2 {
  margin: 0;
  color: var(--hh-forest-950);
  font-family: var(--hh-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.hh-directory-filter-heading > a {
  color: var(--hh-forest-700);
  border-bottom: 1px solid var(--hh-olive-400);
  font-size: 0.76rem;
  font-weight: 700;
}

.hh-directory-filter-fields {
  display: grid;
  margin-top: 25px;
  grid-template-columns: minmax(190px, 0.75fr) minmax(250px, 1.35fr) auto;
  gap: 14px;
}

.hh-directory-filter-fields label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.hh-directory-filter-fields label > span {
  color: var(--hh-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hh-directory-filter-fields select,
.hh-directory-filter-fields input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  color: var(--hh-ink);
  background: var(--hh-cream-50);
  border: 1px solid var(--hh-border);
  border-radius: 8px;
  outline: 0;
}

.hh-directory-filter-fields select:focus,
.hh-directory-filter-fields input:focus {
  border-color: var(--hh-olive-600);
  box-shadow: 0 0 0 3px rgba(113,130,96,0.13);
}

.hh-directory-filter-fields button {
  display: inline-flex;
  min-width: 165px;
  height: 54px;
  padding: 0 21px;
  margin-top: 27px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--hh-white);
  background: var(--hh-forest-800);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  transition: background 180ms ease, transform 180ms ease;
}

.hh-directory-filter-fields button:hover {
  background: var(--hh-forest-700);
  transform: translateY(-2px);
}

.hh-directory-results-head {
  margin: 78px 0 28px;
}

.hh-directory-results-head > p {
  margin: 0 0 5px;
  color: var(--hh-muted);
  font-size: 0.76rem;
}

.hh-directory-results-head > p strong {
  margin-right: 4px;
  color: var(--hh-forest-800);
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.hh-directory-results-head > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hh-forest-700);
  font-size: 0.77rem;
  font-weight: 750;
}

.hh-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.hh-facility-card {
  overflow: hidden;
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius-md);
  box-shadow: var(--hh-shadow-sm);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--hh-ease);
}

.hh-facility-card:hover {
  border-color: rgba(113,130,96,0.42);
  box-shadow: 0 18px 44px rgba(20,48,38,0.13);
  transform: translateY(-5px);
}

.hh-facility-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--hh-sage-100);
}

.hh-facility-card-media::after,
.hh-facility-detail-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(16,39,31,0.28) 100%);
  pointer-events: none;
}

.hh-facility-card-media img,
.hh-facility-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--hh-ease);
}

.hh-facility-card:hover .hh-facility-card-media img {
  transform: scale(1.045);
}

.hh-region-image-note {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 12px;
  padding: 5px 9px;
  color: rgba(255,255,255,0.88);
  background: rgba(16,39,31,0.66);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.hh-facility-card-body {
  display: flex;
  min-height: 250px;
  padding: 23px 23px 20px;
  flex-direction: column;
}

.hh-facility-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hh-muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.hh-facility-card-meta a {
  color: var(--hh-forest-700);
}

.hh-facility-card-meta span::before {
  margin-right: 8px;
  content: "·";
  color: var(--hh-sand-300);
}

.hh-facility-card h2 {
  margin: 12px 0 0;
  color: var(--hh-forest-950);
  font-family: var(--hh-serif);
  font-size: 1.17rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.55;
}

.hh-facility-card-address {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--hh-muted);
  font-size: 0.74rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hh-facility-card-footer {
  display: flex;
  padding-top: 19px;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--hh-border);
}

.hh-membership-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  color: var(--hh-forest-800);
  background: var(--hh-sage-100);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.hh-facility-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hh-forest-700);
  font-size: 0.67rem;
  font-weight: 750;
}

.hh-facility-card-link .hh-icon {
  width: 16px;
}

.hh-directory-pagination {
  margin-top: 55px;
}

.hh-directory-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.hh-directory-pagination .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  color: var(--hh-forest-800);
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  border-radius: 50%;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
}

.hh-directory-pagination .page-numbers.current,
.hh-directory-pagination a.page-numbers:hover {
  color: var(--hh-white);
  background: var(--hh-forest-800);
  border-color: var(--hh-forest-800);
}

.hh-directory-pagination .prev,
.hh-directory-pagination .next {
  width: auto;
  padding-inline: 17px;
  border-radius: 999px;
}

.hh-directory-empty {
  padding: 70px 30px;
  text-align: center;
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius-md);
}

.hh-directory-empty h2 {
  margin: 0;
  font-family: var(--hh-serif);
}

.hh-directory-empty p {
  margin: 15px 0 25px;
  color: var(--hh-muted);
}

.hh-directory-source {
  padding: 70px 0;
  background: var(--hh-sage-100);
  border-top: 1px solid var(--hh-border);
}

.hh-directory-source .hh-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 70px;
}

.hh-directory-source p:last-child {
  margin: 0;
  color: var(--hh-muted);
  font-size: 0.82rem;
  line-height: 2;
}

/* Single facility */
.hh-facility-single {
  padding-bottom: 0;
  background: var(--hh-cream-50);
}

.hh-facility-detail {
  display: grid;
  padding-bottom: 100px;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
  gap: 0;
}

.hh-facility-detail-visual {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: var(--hh-radius-lg) 0 0 var(--hh-radius-lg);
  box-shadow: var(--hh-shadow-lg);
}

.hh-facility-detail-header {
  display: flex;
  min-height: 510px;
  padding: clamp(38px, 5vw, 72px);
  justify-content: center;
  flex-direction: column;
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  border-left: 0;
  border-radius: 0 var(--hh-radius-lg) var(--hh-radius-lg) 0;
}

.hh-facility-detail-labels {
  display: flex;
  margin-bottom: 26px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hh-facility-detail-labels > a {
  color: var(--hh-forest-700);
  border-bottom: 1px solid var(--hh-olive-400);
  font-size: 0.7rem;
  font-weight: 750;
}

.hh-facility-detail-header h1 {
  margin: 4px 0 0;
  color: var(--hh-forest-950);
  font-family: var(--hh-serif);
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.hh-facility-detail-lead {
  margin: 22px 0 0;
  color: var(--hh-muted);
  font-size: 0.83rem;
  line-height: 1.95;
}

.hh-facility-primary-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.hh-button--outline {
  color: var(--hh-forest-800) !important;
  background: transparent;
  border: 1px solid var(--hh-border);
}

.hh-button--outline:hover {
  background: var(--hh-sage-100);
}

.hh-facility-detail-body {
  display: grid;
  margin-top: 40px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: start;
  gap: 30px;
}

.hh-facility-info-card,
.hh-facility-side-card {
  padding: clamp(28px, 4vw, 50px);
  background: var(--hh-white);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius-md);
  box-shadow: var(--hh-shadow-sm);
}

.hh-facility-data-list {
  margin: 28px 0 0;
  border-top: 1px solid var(--hh-border);
}

.hh-facility-data-list > div {
  display: grid;
  padding: 19px 0;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--hh-border);
}

.hh-facility-data-list dt {
  color: var(--hh-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.hh-facility-data-list dd {
  margin: 0;
  color: var(--hh-ink);
  font-size: 0.82rem;
  line-height: 1.8;
}

.hh-facility-data-list a {
  color: var(--hh-forest-700);
  text-decoration: underline;
  text-decoration-color: var(--hh-olive-400);
  text-underline-offset: 4px;
}

.hh-facility-side-card {
  position: sticky;
  top: 118px;
  color: rgba(255,255,255,0.72);
  background: var(--hh-forest-900);
}

.hh-facility-side-card h2 {
  margin: 0;
  color: var(--hh-white);
  font-family: var(--hh-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.hh-facility-side-card ul {
  padding: 0;
  margin: 23px 0 0;
  list-style: none;
}

.hh-facility-side-card li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  font-size: 0.78rem;
}

.hh-facility-side-card li::before {
  position: absolute;
  top: 18px;
  left: 2px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--hh-sand-300);
  border-radius: 50%;
}

.hh-facility-side-card > p {
  margin: 18px 0 0;
  font-size: 0.77rem;
}

.hh-facility-contact-links {
  display: grid;
  margin-top: 28px;
  gap: 8px;
}

.hh-facility-contact-links a {
  display: flex;
  min-height: 47px;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--hh-white) !important;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 750;
}

.hh-facility-contact-links a:hover {
  background: rgba(255,255,255,0.14);
}

.hh-facility-contact-links .hh-icon {
  width: 16px;
}

.hh-facility-source-note {
  padding: 25px 28px;
  margin-top: 30px;
  grid-column: 1 / -1;
  color: var(--hh-muted);
  background: var(--hh-sage-100);
  border-radius: var(--hh-radius-sm);
  font-size: 0.7rem;
  line-height: 1.9;
}

.hh-facility-source-note strong {
  color: var(--hh-forest-800);
}

.hh-facility-source-note p {
  margin: 5px 0 0;
}

.hh-facility-source-note a {
  color: var(--hh-forest-700);
  text-decoration: underline;
}

.hh-related-facilities {
  padding: 90px 0 110px;
  background: var(--hh-sage-100);
}

.hh-related-facilities .hh-directory-results-head {
  margin-top: 0;
}

@media (max-width: 1050px) {
  .hh-facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hh-directory-hero-art {
    width: 62vw;
    opacity: 0.72;
  }

  .hh-directory-filter-fields {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .hh-directory-filter-fields button {
    min-width: 190px;
    margin-top: 0;
    grid-column: 1 / -1;
    justify-self: end;
  }

  .hh-facility-detail {
    grid-template-columns: 1fr;
  }

  .hh-facility-detail-visual {
    min-height: 440px;
    border-radius: var(--hh-radius-lg) var(--hh-radius-lg) 0 0;
  }

  .hh-facility-detail-header {
    min-height: 0;
    border-top: 0;
    border-left: 1px solid var(--hh-border);
    border-radius: 0 0 var(--hh-radius-lg) var(--hh-radius-lg);
  }
}

@media (max-width: 760px) {
  .hh-breadcrumbs {
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hh-breadcrumbs--dark {
    padding-top: 24px;
    margin-bottom: 18px;
  }

  .hh-directory-hero {
    min-height: 610px;
  }

  .hh-directory-hero::before {
    background: linear-gradient(180deg, rgba(16,39,31,0.7), rgba(16,39,31,0.97) 72%);
  }

  .hh-directory-hero-art {
    top: 0;
    width: 100%;
    height: 54%;
    opacity: 1;
  }

  .hh-directory-hero-image--one {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .hh-directory-hero-image--two,
  .hh-directory-hero-image--three {
    display: none;
  }

  .hh-directory-hero-inner {
    padding-top: 28px;
    padding-bottom: 76px;
  }

  .hh-directory-hero h1 {
    margin-top: 255px;
    font-size: clamp(2.25rem, 11vw, 3.3rem);
  }

  .hh-directory-hero-lead {
    margin-top: 17px;
    font-size: 0.82rem;
    line-height: 1.85;
  }

  .hh-directory-summary {
    margin-top: 28px;
    gap: 22px;
  }

  .hh-directory-summary > div {
    min-width: 0;
  }

  .hh-directory-summary strong {
    font-size: 1.48rem;
  }

  .hh-directory-summary span {
    font-size: 0.58rem;
  }

  .hh-directory-content {
    padding-bottom: 82px;
  }

  .hh-directory-filter {
    padding: 26px 20px;
    margin-top: -28px;
  }

  .hh-directory-filter-heading,
  .hh-directory-results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hh-directory-filter-fields {
    grid-template-columns: 1fr;
  }

  .hh-directory-filter-fields button {
    width: 100%;
    grid-column: auto;
  }

  .hh-directory-results-head {
    margin-top: 58px;
  }

  .hh-facility-grid {
    grid-template-columns: 1fr;
  }

  .hh-facility-card-body {
    min-height: 225px;
  }

  .hh-directory-pagination .nav-links {
    flex-wrap: wrap;
  }

  .hh-directory-source .hh-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hh-facility-detail {
    padding-bottom: 74px;
  }

  .hh-facility-detail-visual {
    min-height: 290px;
  }

  .hh-facility-detail-header {
    padding: 30px 23px 34px;
  }

  .hh-facility-detail-header h1 {
    font-size: 2.05rem;
  }

  .hh-facility-primary-actions {
    flex-direction: column;
  }

  .hh-facility-primary-actions .hh-button {
    width: 100%;
  }

  .hh-facility-detail-body {
    grid-template-columns: 1fr;
  }

  .hh-facility-info-card,
  .hh-facility-side-card {
    padding: 28px 22px;
  }

  .hh-facility-data-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hh-facility-side-card {
    position: static;
  }

  .hh-related-facilities {
    padding: 70px 0 84px;
  }
}
