/* Small additions on top of Tailwind. */

/* Numbers such as phone numbers and codes stay left-to-right inside Arabic text. */
[dir="rtl"] input[dir="ltr"] {
  text-align: right;
}

/* Tailwind's image reset distorts Leaflet map tiles. */
.leaflet-container img {
  max-width: none !important;
  max-height: none !important;
}

/* Star rating choices. */
.stars .choice-list label {
  color: #d97706;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
}

/* Radio options rendered by Django forms. */
.choice-list > div {
  display: grid;
  gap: 0.5rem;
}
.choice-list label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}
.choice-list label:has(input:checked) {
  border-color: #7a2e57;
  background: #fbf3f7;
}
.choice-list input {
  accent-color: #7a2e57;
}

/* Bottom tab bar on phones (see base.html). */
.tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 6px;
  color: #78716c; /* stone-500 */
}
.tab-active {
  color: #7a2e57; /* brand-700 */
}
.tab-active svg {
  stroke-width: 2.2;
}
