/* Carwash detail page — aligned with site-refresh palette */

.page-detail .wash-head {
  margin-bottom: 1.25rem;
  background: var(--r-bg-card, #fffdf9);
  border: 1px solid var(--r-line, #e4e0d8);
  border-radius: var(--r-radius, 14px);
  overflow: hidden;
  box-shadow: none;
}

.page-detail .wash-head--has-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  max-height: min(52vh, 480px);
  border: none;
}

.page-detail .wash-head__media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: var(--r-bg-alt, #f2f0eb);
}

.page-detail .wash-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-detail .wash-head__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 18, 22, 0.08) 0%,
    rgba(15, 18, 22, 0.35) 42%,
    rgba(15, 18, 22, 0.88) 100%
  );
  pointer-events: none;
}

.page-detail .wash-head__body {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.5rem 1.5rem;
}

.page-detail .wash-head--has-photo .wash-head__body {
  padding: 1.5rem 1.5rem 1.35rem;
}

.page-detail .wash-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.page-detail .wash-head__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--r-text, #1a1814);
}

.page-detail .wash-head--has-photo .wash-head__title {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.page-detail .wash-head__address {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--r-muted, #8c877c);
  max-width: 42rem;
}

.page-detail .wash-head--has-photo .wash-head__address {
  color: rgba(255, 255, 255, 0.9);
}

.page-detail .wash-head__status { flex-shrink: 0; }

.page-detail .detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-detail .badge-price {
  background: var(--r-bg-alt, #f2f0eb);
  color: var(--r-text-2, #4a4740);
  border: 1px solid var(--r-line, #e4e0d8);
}

.page-detail .wash-head--has-photo .badge-price {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.page-detail .detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.page-detail .detail-info-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--r-bg-card, #fffdf9);
  border: 1px solid var(--r-line, #e4e0d8);
  border-radius: var(--r-radius-sm, 10px);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.page-detail .detail-info-card--route:hover {
  border-color: var(--r-green, #00a046);
}

.page-detail .detail-info-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--r-muted, #8c877c);
}

.page-detail .detail-info-card__value {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--r-text, #1a1814);
}

.page-detail .detail-info-card__value--link {
  color: var(--r-green, #00a046);
}

/* Режим работы по дням — компактный список (особенно на телефоне) */
.page-detail .detail-hours {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-weight: 600;
}
.page-detail .detail-hours__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.28rem;
  border-bottom: 1px dashed var(--r-line, #e4e0d8);
}
.page-detail .detail-hours__row:last-child { border-bottom: 0; padding-bottom: 0; }
.page-detail .detail-hours__days {
  color: var(--r-muted, #6b6459);
  font-weight: 600;
  white-space: nowrap;
}
.page-detail .detail-hours__time {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.page-detail .detail-hours__row--off .detail-hours__time {
  color: var(--r-muted, #9a938a);
  font-weight: 600;
}

.page-detail .detail-route[hidden] {
  display: none !important;
}

.page-detail .detail-map-wrap {
  position: relative;
  border-radius: var(--r-radius, 14px);
  overflow: hidden;
  border: 1px solid var(--r-line, #e4e0d8);
  background: var(--r-bg-alt, #f2f0eb);
}

.page-detail .detail-map {
  height: 260px;
  margin: 0;
  border: none;
  border-radius: 0;
}

.page-detail .detail-route__btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: var(--r-green, #00a046);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.page-detail .detail-route__btn:hover {
  background: var(--r-green-hover, #008f3e);
}

.page-detail .detail-route__hint {
  margin: 0.55rem 0 1.25rem;
  font-size: 0.82rem;
  color: var(--r-muted, #8c877c);
  text-align: center;
}

.page-detail .detail-description--wide {
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: var(--r-bg-card, #fffdf9);
  border: 1px solid var(--r-line, #e4e0d8);
  border-radius: var(--r-radius, 14px);
  box-shadow: none;
}

.page-detail .detail-description--wide h2 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--r-muted, #8c877c);
  margin: 0 0 0.85rem;
}

.page-detail .detail-description__text {
  max-width: none;
  white-space: normal;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--r-text-2, #4a4740);
}

.page-detail .detail-queue-banner {
  border-color: var(--r-green, #00a046);
  background: linear-gradient(135deg, var(--r-green-soft, #dff5e8) 0%, #eef8f2 100%);
  box-shadow: none;
}

.page-detail .detail-queue-banner__badge {
  background: var(--r-green, #00a046);
}

.page-detail .queue-panel--accent {
  border-color: var(--r-green, #00a046);
  box-shadow: none;
}

.page-detail .detail-actions {
  margin: 0 0 1.25rem;
}

.page-detail .header-back {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .page-detail .wash-head--has-photo {
    max-height: none;
    min-height: 200px;
  }

  .page-detail .wash-head__body,
  .page-detail .wash-head--has-photo .wash-head__body {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .page-detail .wash-head__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-detail .header-back {
    order: -1;
    width: 100%;
    justify-content: center;
  }
}

/* ── Компактная карточка электронной очереди на странице мойки ── */
.page-detail .detail-queue-card {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--r-bg-card, #fffdf9);
  border: 1px solid var(--r-line, #e4e0d8);
  border-left: 4px solid var(--r-green, #00a046);
  border-radius: var(--r-radius, 14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}
.page-detail .detail-queue-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.page-detail .detail-queue-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--r-green, #00a046);
  background: rgba(0, 160, 70, .08);
  border-radius: 999px;
}
.page-detail .detail-queue-card__now {
  margin: 16px 0 4px;
  font-size: 19px;
  line-height: 1.4;
  color: var(--r-text, #1a1814);
}
/* Нерабочее время: карточка синяя, а не зелёная — чтобы не читалось как «работает» */
.page-detail .detail-queue-card--closed {
  border-left-color: #1e88e5;
}
.page-detail .detail-queue-card__now--closed {
  font-size: 17px;
  color: #1e4f7a;
}
.page-detail .detail-queue-card__now--closed strong {
  color: #123a5e;
}
.page-detail .detail-queue-card__now strong {
  color: var(--r-green, #00a046);
  font-weight: 800;
}
.page-detail .detail-queue-card__hint {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--r-muted, #8c877c);
}
.page-detail .detail-queue-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-detail .detail-queue-card__actions .btn {
  flex: 1 1 auto;
  min-width: 160px;
  text-align: center;
  justify-content: center;
}
@media (max-width: 480px) {
  .page-detail .detail-queue-card__now { font-size: 17px; }
  .page-detail .detail-queue-card__actions .btn { flex-basis: 100%; }
}

/* ── Плавающие кнопки на странице мойки (поделиться / избранное) ── */
.wash-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wash-fab__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--r-line, #e4e0d8);
  background: var(--r-bg-card, #fffdf9);
  color: var(--r-text, #1a1814);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(15, 23, 42, 0.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.wash-fab__btn:hover { box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.45); }
.wash-fab__btn:active { transform: scale(.96); }
.wash-fab__icon { font-size: 1.15rem; line-height: 1; }
.wash-fab .wash-fav-btn.is-active { color: #f59e0b; border-color: #fcd34d; background: #fffdf5; }
@media (max-width: 640px) {
  .wash-fab { right: 12px; bottom: 12px; gap: 8px; }
  .wash-fab__label { display: none; }
  .wash-fab__btn { width: 50px; height: 50px; padding: 0; justify-content: center; }
  .wash-fab__icon { font-size: 1.3rem; }
}

/* ── Одна центрированная колонка на странице мойки (сайдбар почти пустой) ── */
.page-detail .detail-layout {
  grid-template-columns: min(100%, 760px);
  justify-content: center;
}

/* ── Ближайшие мойки (у мойки без онлайн-записи) ── */
.page-detail .detail-nearby { margin-top: 1.5rem; }
.page-detail .detail-nearby__title { margin: 0 0 0.35rem; font-size: 1.15rem; }
.page-detail .detail-nearby__sub { margin: 0 0 0.9rem; font-size: 0.9rem; line-height: 1.5; color: var(--r-muted, #8c877c); }
.page-detail .detail-nearby__grid { display: grid; gap: 0.5rem; }
.page-detail .nearby-mini {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  background: var(--r-bg-card, #fffdf9);
  border: 1px solid var(--r-line, #e4e0d8);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.page-detail .nearby-mini:hover { border-color: var(--r-green, #00a046); box-shadow: 0 6px 18px -10px rgba(0,0,0,.2); }
.page-detail .nearby-mini.is-hidden { display: none; }
.page-detail .nearby-mini__name { font-weight: 700; color: var(--r-text, #1a1814); }
.page-detail .nearby-mini__badge {
  font-size: 0.7rem; font-weight: 700;
  color: var(--r-green, #00a046);
  background: rgba(0,160,70,.1);
  padding: 0.1rem 0.45rem; border-radius: 999px;
  vertical-align: middle;
}
.page-detail .nearby-mini__meta { font-size: 0.82rem; color: var(--r-muted, #8c877c); }
.page-detail .detail-nearby__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.page-detail .detail-nearby__actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }

/* ═══ Фото — во всю ширину блока сверху, контент ПОД ним (пропорционально) ═══ */
.page-detail .wash-head--has-photo {
  position: static;
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  border: 1px solid var(--r-line, #e4e0d8);
  overflow: hidden;
}
.page-detail .wash-head--has-photo .wash-head__media {
  position: static;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  display: block;
}
.page-detail .wash-head--has-photo .wash-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-detail .wash-head--has-photo .wash-head__shade { display: none; }
/* Контент под фото — обычный тёмный текст на карточке */
.page-detail .wash-head--has-photo .wash-head__body {
  position: static;
  z-index: auto;
  padding: 1.25rem 1.5rem 1.5rem;
}
.page-detail .wash-head--has-photo .wash-head__title {
  color: var(--r-ink, #201c17);
  text-shadow: none;
}
.page-detail .wash-head--has-photo .wash-head__address {
  color: var(--r-muted, #6b6459);
  text-shadow: none;
}
@media (max-width: 640px) {
  .page-detail .wash-head--has-photo .wash-head__body { padding: 1.1rem 1.15rem 1.25rem; }
}

/* Легенда домиков-меток внизу страницы мойки */
.page-detail .map-legend {
  margin: 28px 0 8px;
  padding: 18px 20px;
  background: #f7f9fc;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
}
.page-detail .map-legend__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #1a2634;
}
.page-detail .map-legend__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.page-detail .map-legend__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #3a4756;
}
.page-detail .map-legend__pin { flex: none; filter: drop-shadow(0 2px 3px rgba(20,30,45,.18)); }
.page-detail .map-legend__item b { color: #1a2634; font-weight: 700; }
