/* Premium Browse by Location Page */
.loc-page {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 18px 18px 38px;
  background:
    radial-gradient(circle at 8% 4%, rgba(244, 194, 88, .16), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(120, 34, 54, .22), transparent 34%),
    linear-gradient(135deg, #080b12 0%, #101722 43%, #210b10 100%);
  color: #f8fafc;
  font-family: Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

.loc-page * { box-sizing: border-box; }

.loc-page a { -webkit-tap-highlight-color: transparent; }

.loc-hero,
.loc-toolbar,
.loc-grid,
.loc-no-results {
  width: 100%;
  max-width: none;
}

.loc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .85fr);
  gap: 16px;
  align-items: stretch;
  margin: 0 0 14px;
  padding: clamp(20px, 2.2vw, 34px);
  min-height: 260px;
  border-radius: 26px;
  border: 1px solid rgba(245, 199, 103, .32);
  background:
    linear-gradient(90deg, rgba(10, 15, 24, .92) 0%, rgba(14, 21, 32, .90) 48%, rgba(48, 13, 20, .88) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 88px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .36);
  position: relative;
  overflow: hidden;
}

.loc-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 38%;
  height: 190px;
  background: radial-gradient(circle, rgba(245, 199, 103, .18), transparent 66%);
  pointer-events: none;
}

.loc-hero-copy,
.loc-hero-panel {
  position: relative;
  z-index: 1;
}

.loc-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.loc-kicker,
.loc-country-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 199, 103, .35);
  background: rgba(245, 199, 103, .10);
  color: #f8d877;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.loc-kicker::before {
  content: "✦";
  font-size: 11px;
}

.loc-hero h1 {
  max-width: 920px;
  margin: 0 0 10px;
  font-size: clamp(34px, 4.1vw, 72px);
  line-height: .96;
  color: #ffffff;
  letter-spacing: -.058em;
  text-wrap: balance;
  text-shadow: 0 16px 38px rgba(0, 0, 0, .38);
}

.loc-hero p {
  max-width: 860px;
  margin: 0;
  color: #d6dde8;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
}

.loc-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 24px 54px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}

.loc-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.loc-panel-title span {
  color: #f8d877;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.loc-panel-title strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.loc-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.loc-hero-stats div {
  min-width: 0;
  min-height: 82px;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(8, 12, 18, .52);
  border: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}

.loc-hero-stats strong {
  display: block;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1;
}

.loc-hero-stats span {
  display: block;
  margin-top: 7px;
  color: #b9c4d5;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.loc-mini-search,
.loc-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(245, 199, 103, .34);
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

.loc-mini-search input,
.loc-search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.loc-mini-search input::placeholder,
.loc-search-wrap input::placeholder {
  color: #667085;
}

.loc-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(245, 199, 103, .22);
  background: rgba(10, 15, 24, .84);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(0,0,0,.26);
}

.loc-directory-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.loc-directory-label span {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.loc-directory-label strong {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.loc-home-btn,
.loc-country-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  color: #111827;
  background: linear-gradient(135deg, #f8d877 0%, #d8a82e 100%);
  box-shadow: 0 14px 30px rgba(216, 168, 46, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}

.loc-home-btn:hover,
.loc-country-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(216, 168, 46, .30);
  filter: brightness(1.03);
  color: #111827;
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.loc-country-card {
  min-width: 0;
  padding: 15px;
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.105), rgba(255,255,255,.055)),
    rgba(12, 18, 28, .78);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}

.loc-country-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.loc-country-card h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.loc-country-card p {
  margin: 0;
  color: #aeb9c9;
  font-size: 13px;
  font-weight: 800;
}

.loc-country-label {
  margin-bottom: 8px;
  padding: 5px 9px;
  font-size: 10px;
  background: rgba(245,199,103,.09);
}

.loc-country-link {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  flex: 0 0 auto;
}

.loc-city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 222px;
  overflow: auto;
  padding: 1px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,199,103,.55) rgba(255,255,255,.08);
}

.loc-city-list a {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  color: #edf2f7;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 850;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.loc-city-list a:hover {
  background: #f8d877;
  color: #111827;
  border-color: #f8d877;
  transform: translateY(-1px);
}

.loc-empty,
.loc-no-results {
  padding: 14px;
  border-radius: 16px;
  background: rgba(245,199,103,.12);
  border: 1px solid rgba(245,199,103,.24);
  color: #ffe7a5;
  font-weight: 850;
  font-size: 14px;
}

.loc-no-results {
  margin: 0;
  text-align: center;
}

@media (max-width: 1360px) {
  .loc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .loc-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .loc-page {
    padding: 10px 10px 28px;
  }

  .loc-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .loc-hero h1 {
    font-size: clamp(31px, 10vw, 44px);
  }

  .loc-hero-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .loc-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .loc-hero-stats div {
    min-height: 68px;
    padding: 10px 6px;
  }

  .loc-hero-stats span {
    font-size: 9px;
  }

  .loc-toolbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
  }

  .loc-home-btn {
    width: 100%;
  }

  .loc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .loc-country-card {
    padding: 13px;
    border-radius: 18px;
  }

  .loc-country-head {
    flex-direction: column;
  }

  .loc-country-link {
    width: 100%;
  }

  .loc-city-list {
    max-height: none;
  }
}

@media (max-width: 420px) {
  .loc-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .loc-panel-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .loc-hero-stats {
    grid-template-columns: 1fr;
  }

  .loc-hero-stats div {
    min-height: auto;
  }
}

/* Visibility hardening: keep location directory headings readable on dark premium background */
body .loc-page,
body .loc-page * {
  text-shadow: none;
}

body .loc-page .loc-hero h1,
body .loc-page .loc-hero-copy h1,
body .loc-page h1 {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .55) !important;
}

body .loc-page .loc-hero p,
body .loc-page .loc-hero-copy p {
  color: #f1f5f9 !important;
  opacity: 1 !important;
}

body .loc-page .loc-country-card h2,
body .loc-page .loc-country-card .loc-country-head h2 {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 8px 22px rgba(0, 0, 0, .45) !important;
}

body .loc-page .loc-country-card p,
body .loc-page .loc-directory-label strong,
body .loc-page .loc-city-list a,
body .loc-page .loc-empty,
body .loc-page .loc-no-results {
  color: #e5edf8 !important;
  opacity: 1 !important;
}

body .loc-page .loc-directory-label span,
body .loc-page .loc-panel-title strong,
body .loc-page .loc-hero-stats strong {
  color: #ffffff !important;
  opacity: 1 !important;
}

body .loc-page .loc-kicker,
body .loc-page .loc-country-label,
body .loc-page .loc-panel-title span,
body .loc-page .loc-hero-stats span {
  color: #ffe28a !important;
  opacity: 1 !important;
}

body .loc-page .loc-country-card {
  background:
    linear-gradient(150deg, rgba(22, 29, 43, .96), rgba(18, 22, 35, .92)),
    rgba(12, 18, 28, .96) !important;
  border-color: rgba(255, 255, 255, .18) !important;
}

body .loc-page .loc-hero-copy {
  padding: 8px 0;
  border-radius: 18px;
}

body .loc-page .loc-hero::before {
  content: "";
  position: absolute;
  inset: 0 38% 0 0;
  background: linear-gradient(90deg, rgba(5, 8, 13, .42), rgba(5, 8, 13, .08), transparent);
  pointer-events: none;
  z-index: 0;
}

body .loc-page .loc-hero-copy,
body .loc-page .loc-hero-panel {
  position: relative;
  z-index: 2;
}

@media (max-width: 1100px) {
  body .loc-page .loc-hero::before {
    inset: 0;
    background: rgba(5, 8, 13, .28);
  }
}
