/*
 * darya-r2.css — client feedback round 2, HOME workstream (2026-09-15):
 *   · branch image cards and the covered-cities strip on the home page (W11, A54)
 *   · the notification bell in the header (W13)
 *   · the FAQ accordion (W37)
 *   · the car page reading order on phones (W38)
 * Loaded after darya-fit.css; extends the reference components, never forks them.
 */

/* ------------------------------------------------------------ branches (W11) */
.branch-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.branch-cards[data-n="1"] { grid-template-columns: minmax(0, 520px); }
.branch-cards[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.branch-cards[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.branch.branch-card { padding: 0; overflow: hidden; }
.branch-card .branch-photo { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.branch-card .branch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.branch-card:hover .branch-photo img { transform: scale(1.03); }
.branch-card .branch-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.branch-card h3 { margin: 0; }
.branch-card h3 a { color: var(--ink); }
.branch-card h3 a:hover { color: var(--brand); text-decoration: none; }
.branch-card .branch-city { margin: 0; display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; }
.branch-card .branch-city svg { flex: none; color: var(--gold); }
.branch-card .branch-address { margin: 0; line-height: 1.7; }
.branch-card .branch-contact { margin: 0; font-weight: 600; }
.branch-card .branch-fee { margin-top: 4px !important; }
.branch-card .branch-cta { margin-top: auto; align-self: flex-start; padding-top: 0; display: inline-flex; align-items: center; gap: 6px; }
.branch-card .branch-cta .dir-arrow { flex: none; }
[dir="rtl"] .branch-card .branch-cta .dir-arrow { transform: scaleX(-1); }
@media (max-width: 780px) {
  .branch-cards, .branch-cards[data-n="2"], .branch-cards[data-n="3"] { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------- covered cities (A54) */
.city-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.city-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 150px; padding: 14px 16px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #0C1C3D, #1B3E7C) center / cover no-repeat; color: #fff !important;
  text-decoration: none !important; isolation: isolate;
}
/* r4 F8: the gold gradient is the PLACEHOLDER for a city with no photo — it
   used to hit every even card, so a real photo could sit next to a flat gold
   panel and read as a failed upload. */
.city-card.is-placeholder:nth-child(even) { background-image: linear-gradient(135deg, #8a6a33, #BA8E4A); }
/* r4 F8: the photo is an <img> now, so it can carry a srcset and stay sharp */
.city-card .city-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: inherit; }
.city-card .city-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,28,61,0) 30%, rgba(12,28,61,.82)); z-index: -1; }
.city-card .city-name { font-weight: 800; font-size: 1.12rem; line-height: 1.3; }
.city-card .city-province, .city-card .city-count { font-size: .82rem; opacity: .85; }
.city-card:hover .city-name { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 780px) { .city-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .city-card { min-height: 128px; } }

/* --------------------------------------------------- header notification (W13) */
.icon-btn-notif { position: relative; padding: 0; }
.icon-btn-notif .notif-count {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--danger, #C0392B); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px;
  text-align: center; box-shadow: 0 0 0 2px #fff; direction: ltr;
}
.header .icon-btn-notif { display: inline-grid; }
@media (max-width: 780px) {
  /* on phones the bell keeps its place beside the profile icon */
  .header .icon-btn-notif, .header .icon-btn-profile.mobile-too { display: inline-grid !important; }
  .header .wrap { gap: 8px; }
}

/* ------------------------------------------------------------ FAQ accordion (W37) */
.darya-faq .faq-item { border-top: 1px solid var(--line); }
.darya-faq .faq-item:first-of-type { border-top: 0; }
.darya-faq .faq-q { margin: 0; font-size: 1rem; }
.darya-faq .faq-q .faq-toggle {
  all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 14px 2px; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink); text-align: start;
}
.darya-faq .faq-q .faq-toggle:hover { color: var(--brand); }
.darya-faq .faq-q .faq-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.darya-faq .faq-chev { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: var(--gold); transition: transform .25s ease; }
.darya-faq .faq-toggle[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.darya-faq .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.darya-faq .faq-a > .faq-a-inner { overflow: hidden; min-height: 0; }
.darya-faq .faq-a > .faq-a-inner > :first-child { margin-top: 0; }
.darya-faq .faq-a > .faq-a-inner > :last-child { margin-bottom: 0; }
.darya-faq .faq-a.is-open { grid-template-rows: 1fr; }
.darya-faq .faq-a.is-open > .faq-a-inner { padding: 0 2px 16px; }
.darya-faq .faq-group + .faq-group { margin-top: 26px; }
.darya-faq .faq-group h2 { font-size: 1.15rem; margin: 0 0 6px; }
.darya-faq-cats.tagrow .tag { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .darya-faq .faq-a, .darya-faq .faq-chev { transition: none; } }
.darya-faq .faq-item:target .faq-toggle { color: var(--brand); }
/* no JavaScript: every answer stays visible */
.no-js .darya-faq .faq-a { grid-template-rows: 1fr; }

/* ------------------------------------------------------- car page order (W38) */
/* «دربارهٔ این خودرو» reads right after the title on every width; the sidebar keeps the booking card */
.darya-car-detail .car-main .car-about { margin-top: var(--gap); }
