/* Legal Pages Styles (Privacy Policy, Terms of Service, etc.) */
body:has(.legal-page) {
  background-color: #f4f6f9;
}

.legal-page {
  background: transparent;
  min-height: calc(100vh - 44px);
  padding: 32px 0;
  margin-bottom: 0;
  display: block;
}

.legal-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 48px;
  background: white;
  border: 1px solid #e1e8ef;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  color: #191e3b;
  margin: 0 0 16px 0;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #191e3b;
  margin: 0 0 16px 0;
}

.legal-section p {
  font-size: 17px;
  line-height: 1.6;
  color: #3c4043;
  margin: 0 0 16px 0;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.legal-section li {
  font-size: 17px;
  line-height: 1.6;
  color: #3c4043;
  margin-bottom: 8px;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  font-weight: 600;
  color: #191e3b;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 24px 0;
  }
  
  .legal-page .container {
    padding: 32px 24px;
  }
  
  .legal-page h1 {
    font-size: 28px;
  }
  
  .legal-section h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .legal-page .container {
    padding: 24px 16px;
  }
  
  .legal-page h1 {
    font-size: 24px;
  }
  
  .legal-section {
    margin-bottom: 24px;
  }
  
  .legal-section h2 {
    font-size: 18px;
  }
  
  .legal-section p,
  .legal-section li {
    font-size: 17px;
  }
}

/* ============================================================
   Countries / Hotels-by-country Page
   ============================================================ */

.countries-page {
  padding: 16px 0 48px;
}

.countries-heading {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

/* Alphabet nav strip */
.countries-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.countries-alphabet .letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.countries-alphabet .letter.enabled {
  color: #007bff;
  background: #edf4ff;
}

.countries-alphabet .letter.enabled:hover {
  background: #007bff;
  color: #fff;
}

.countries-alphabet .letter.disabled {
  color: #d0d0d0;
  background: transparent;
  cursor: default;
  pointer-events: none;
}

/* Letter sections */
.countries-sections {
  display: flex;
  flex-direction: column;
}

.countries-letter-section {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: start;
}

.countries-letter {
  font-size: 28px;
  font-weight: 800;
  color: #007bff;
  line-height: 1;
  margin: 0;
  padding-top: 2px;
  letter-spacing: -0.5px;
}

/* Country links grid */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px 8px;
}

.country-link {
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
  padding: 5px 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-link:hover {
  text-decoration: underline;
}

/* States page */
.states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}

.state-card {
  padding: 4px 0;
}

.state-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.state-cities {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2px;
}

.state-cities li {
  line-height: 1.6;
}

.city-link {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
}

.city-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .countries-letter-section {
    grid-template-columns: 40px 1fr;
    gap: 0 12px;
    padding: 16px 0;
  }

  .countries-letter {
    font-size: 32px;
  }

  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 480px) {
  .countries-letter-section {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }

  .countries-letter {
    font-size: 22px;
    font-weight: 700;
    color: #555;
  }

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

  .states-grid {
    grid-template-columns: 1fr;
  }
}
