:root {
  --primary-bg: #ffffff;
  --primary-text: #212529;
  --card-bg: #ffffff;
  --hero-bg: linear-gradient(135deg, #0d6efd, #0a58ca);
  --focus-outline: 3px solid #ffbf47;
  --base-font-size: 16px;
}

body {
  background-color: var(--primary-bg);
  color: var(--primary-text);
  font-size: var(--base-font-size);
}

.hero-section {
  background: var(--hero-bg);
}

.card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.rank-badge {
  font-size: 1rem;
  font-weight: 700;
  background-color: #0d6efd;
  color: white;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  display: inline-block;
}

.accessibility-badge {
  background-color: #198754;
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  z-index: 1000;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.high-contrast {
  --primary-bg: #000000;
  --primary-text: #ffffff;
  --card-bg: #111111;
  --hero-bg: linear-gradient(135deg, #000000, #222222);
}

.restaurant-meta {
  font-size: 0.95rem;
}

.feature-list li {
  margin-bottom: 0.4rem;
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
}

.restaurant-card {
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.restaurant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
}

.detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.navbar-brand {
  letter-spacing: 0.3px;
}

.hero-section {
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.card-body ul {
  padding-left: 1.2rem;
}

.btn {
  border-radius: 0.75rem;
}

footer {
  margin-top: 3rem;
}

.form-control,
.form-select {
  border-radius: 0.75rem;
}

.alert {
  border-radius: 0.75rem;
}

.detail-side-card {
  height: auto;
}

.review-list {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.review-list li {
  line-height: 1.6;
}

main.container {
  padding-bottom: 2rem;
}

html, body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}