/* MatchdayHotels V12 homepage control corrections.
 * Homepage-only overrides following isolated visual review.
 */

/* The shared V12 base image rule uses height:auto. This selector is deliberately
 * more specific so the supplied 2172x724 paper master stays at the audited
 * 105px decorative height around the 84px navigation band. */
body.mhd-v12 .mdh-home-v12-paper {
  width: 100%;
  height: 105px;
  max-height: none;
  object-fit: fill;
}

/* The V12 homepage already has its own primary search. Keep the proven V7
 * launcher on other routes, but never duplicate it on the neutral homepage. */
body.mhd-v12.mhd-neutral-homepage > .v7-search-launch,
body.mhd-v12.mhd-neutral-homepage > .v7-search-dialog {
  display: none !important;
}

/* Own the hero search completely. Historical generic input/focus styles were
 * leaking through and creating a square focus rectangle inside the rounded
 * control. The outer pill is now the only visible focus state. */
body.mhd-v12 .mdh-home-v12-searchbox {
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  transition: border-color .16s ease, box-shadow .16s ease;
}

body.mhd-v12 .mdh-home-v12-searchbox:focus-within {
  border-color: var(--home-yellow);
  box-shadow: 0 0 0 2px rgba(255,203,50,.22), 0 10px 30px rgba(0,0,0,.20);
}

body.mhd-v12 .mdh-home-v12-searchbox input,
body.mhd-v12 .mdh-home-v12-searchbox input:hover,
body.mhd-v12 .mdh-home-v12-searchbox input:focus,
body.mhd-v12 .mdh-home-v12-searchbox input:focus-visible,
body.mhd-v12 .mdh-home-v12-searchbox input:active {
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #17213a !important;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

body.mhd-v12 .mdh-home-v12-searchbox input::placeholder {
  color: #68748a !important;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  opacity: 1;
}

/* Search suggestions should read like part of the V12 homepage, not an old
 * browser-style dropdown. */
body.mhd-v12 .mdh-home-v12 .landing-search-results {
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif !important;
}

body.mhd-v12 .mdh-home-v12 .landing-search-result {
  grid-template-columns: minmax(0,1fr);
  align-items: center;
  gap: 2px;
  min-height: 54px;
  padding: 9px 12px;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
}

body.mhd-v12 .mdh-home-v12 .landing-search-result.has-club-badge {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
}

body.mhd-v12 .mdh-home-v12 .landing-search-result strong {
  color: #fff;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif !important;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}

body.mhd-v12 .mdh-home-v12 .landing-search-result .mdh-home-v12-search-result-copy > span {
  color: #b8c1c8;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif !important;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.25;
}

body.mhd-v12 .mdh-home-v12-search-result-badge {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mdh-home-v12-search-result-fallback {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--home-yellow);
  color: var(--home-navy) !important;
  font-size: 12px !important;
  font-weight: 900;
}

.mdh-home-v12-search-result-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

/* V12 club chooser: one searchable alphabetical list rather than a division
 * gate. The division remains useful metadata within each result. */
.mdh-home-v12-club-picker {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mdh-home-v12-club-picker label {
  color: #eef1f2;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 650;
}

body.mhd-v12 .mdh-home-v12-club-picker > input,
body.mhd-v12 .mdh-home-v12-club-picker > input:focus,
body.mhd-v12 .mdh-home-v12-club-picker > input:focus-visible {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  outline: 0 !important;
  background: #fff !important;
  color: var(--home-navy) !important;
  padding: 0 14px !important;
  box-shadow: none !important;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  font-style: normal !important;
}

body.mhd-v12 .mdh-home-v12-club-picker > input:focus,
body.mhd-v12 .mdh-home-v12-club-picker > input:focus-visible {
  border-color: var(--home-yellow) !important;
  box-shadow: 0 0 0 2px rgba(255,203,50,.20) !important;
}

.mdh-home-v12-club-results {
  max-height: min(330px, 42vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: #101b22;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif;
}

.mdh-home-v12-club-result {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  padding: 6px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif;
}

.mdh-home-v12-club-result:hover,
.mdh-home-v12-club-result:focus-visible,
.mdh-home-v12-club-result.is-active {
  background: rgba(255,255,255,.09);
}

body.mhd-v12 .mdh-home-v12-club-result-badge {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.mdh-home-v12-club-result-fallback {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--home-yellow);
  color: var(--home-navy);
  font-size: 12px;
  font-weight: 900;
}

.mdh-home-v12-club-result-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mdh-home-v12-club-result-copy strong {
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}

.mdh-home-v12-club-result-copy span {
  color: #aeb9bf;
  font-size: 12px;
  font-weight: 400;
}

.mdh-home-v12-club-empty {
  margin: 0;
  padding: 14px 12px;
  color: #bdc6cb;
  font-family: "Segoe UI", Aptos, Arial, Helvetica, sans-serif;
  font-size: 13px;
}

body.mhd-v12 .mdh-home-v12-club-preview .landing-preview-badge {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

@media (max-width: 767px) {
  body.mhd-v12 .mdh-home-v12-paper {
    display: none;
  }

  body.mhd-v12 .mdh-home-v12-searchbox input,
  body.mhd-v12 .mdh-home-v12-searchbox input::placeholder {
    font-size: 16px !important;
  }

  .mdh-home-v12-club-results {
    max-height: min(300px, 38vh);
  }
}
