.ramadan-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ramadan-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  padding: 0.9rem;
  border: 1px solid #deccb6;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251, 244, 228, 0.9), rgba(238, 245, 239, 0.88));
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.ramadan-year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ramadan-year-tab {
  border: 1px solid #d7cab8;
  background: rgba(255, 255, 255, 0.96);
  color: #2a2a2a;
  padding: 0.45rem 0.88rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 40px;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.ramadan-year-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.ramadan-year-tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ramadan-toolbar--single-year {
  justify-content: flex-start;
}

.ramadan-toolbar--single-year .ramadan-toolbar__actions {
  width: 100%;
  justify-content: flex-start;
}

.ramadan-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ramadan-label {
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a5a4a;
  font-weight: 800;
}

.ramadan-city-filter {
  min-width: 170px;
  max-width: 220px;
  min-height: 44px;
  border-width: 1.5px;
}

.ramadan-search {
  width: min(360px, 100%);
}

.ramadan-clear {
  min-width: 90px;
}

.ramadan-note {
  margin-bottom: 0.9rem;
}

.ramadan-summary {
  margin: 0 0 1rem;
  display: inline-flex;
}

.ramadan-groups {
  display: grid;
  gap: 1.1rem;
}

.ramadan-city {
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1rem;
  border: 1px solid #e5d9c8;
}

.ramadan-city:nth-child(4n + 1) {
  background: var(--card-cream);
}

.ramadan-city:nth-child(4n + 2) {
  background: var(--card-sage);
}

.ramadan-city:nth-child(4n + 3) {
  background: var(--card-rose);
}

.ramadan-city:nth-child(4n + 4) {
  background: var(--card-sand);
}

.ramadan-city__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.72rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(90, 78, 62, 0.12);
}

.ramadan-city__head h3 {
  margin: 0;
}

.ramadan-city__count {
  border: 1px solid #d6cab9;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5f5a53;
}

.ramadan-city__grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.ramadan-card {
  border: 1px solid #e8decf;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.ramadan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.ramadan-card h4 {
  margin: 0;
  line-height: 1.24;
}

.ramadan-card__cuisine {
  margin: 0.25rem 0 0.55rem;
  font-size: 0.88rem;
  color: #5f5a53;
  font-weight: 700;
}

.ramadan-card__address,
.ramadan-card__phone {
  margin: 0.2rem 0;
  color: #56514a;
  line-height: 1.3;
}

.ramadan-card__phone a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ramadan-prices {
  border-top: 1px solid #e6dbcb;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.ramadan-price-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

.ramadan-price-label {
  color: #6a5a4a;
  font-weight: 700;
}

.ramadan-price-value {
  color: #111;
  font-weight: 800;
}

.ramadan-year-tab:focus-visible,
.ramadan-search:focus-visible,
.ramadan-city-filter:focus-visible,
.ramadan-clear:focus-visible,
.ramadan-card__phone a:focus-visible,
.address-link:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.2);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .ramadan-toolbar {
    align-items: stretch;
    padding: 0.78rem;
  }

  .ramadan-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .ramadan-city-filter {
    max-width: none;
  }

  .ramadan-search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .ramadan-toolbar__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ramadan-label {
    font-size: 0.74rem;
  }

  .ramadan-city-filter,
  .ramadan-search,
  .ramadan-clear {
    width: 100%;
  }

  .ramadan-city__grid {
    grid-template-columns: 1fr;
  }

  .ramadan-city {
    padding: 0.82rem;
  }
}
