/* ==========================================================================
   Vgorode Mobile App Experience (Modern Marketplace Home Feed, Hero Banner, Showcase Cards, Bottom Nav)
   ========================================================================== */

/* ==========================================================================
   5. Мобильный нижний навбар (Bottom Navigation Bar)
   ========================================================================== */
.mobile-bottom-nav,
.bottom-nav {
  display: none;
}

/* ==========================================================================
   6. Адаптив для Мобильных устройств (до 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Полностью скрываем верхнюю шапку на мобильных устройствах */
  .app-header {
    display: none !important;
  }

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

  body.in-fullscreen-map {
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  .main-viewport {
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .role-nav {
    display: none !important;
  }

  .btn-admin-header {
    display: none !important;
  }

  .btn-apk-header {
    display: none !important;
  }

  /* Настоящая мобильная шторка заказа: edge-to-edge, без боковых отступов */
  .side-panel {
    top: auto;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important; /* над нижней навигацией с учётом safe area */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(85dvh - 60px) !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.14) !important;
    border: none !important;
    border-top: 1px solid var(--border-light) !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .side-panel.sheet-collapsed {
    transform: translateY(calc(100% - 38px)) !important;
  }

  .booking-card {
    padding: 12px 16px 14px 16px !important;
    gap: 10px;
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  /* Только диалоговые модальные окна центрируются на мобильных когда открыты */
  #passenger-login-modal:not(.hidden),
  #driver-gate-modal:not(.hidden),
  #test-login-modal:not(.hidden) {
    padding: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #passenger-login-modal .modal-card,
  #driver-gate-modal .modal-card,
  #test-login-modal .modal-card {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    max-height: calc(100vh - 36px) !important;
    border-radius: 20px !important;
    margin: auto !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
  }

  /* Полноэкранные страницы на мобильных (детали заявки, создание заявки, поиск, регистрация, чат и т.д.) */
  .full-page-modal-card,
  .proposal-detail-card,
  .full-search-window-card,
  .driver-full-page-card,
  .passenger-full-page-card,
  .community-full-page-card,
  #modal-proposal-detail .modal-card,
  #modal-create-proposal .modal-card,
  #driver-details-modal .modal-card,
  #passenger-details-modal .modal-card,
  #route-search-modal .modal-card,
  #community-invite-modal .modal-card,
  #community-invite-modal .community-full-page-card,
  #driver-register-modal .modal-card,
  #driver-register-modal .driver-register-card,
  #modal-taxi-drivers-list .modal-card,
  #modal-report-user .modal-card,
  #modal-publish-rideshare .modal-card,
  #modal-book-rideshare .modal-card,
  .chat-modal-card {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: none !important;
    transform: none !important;
  }

  .modal-backdrop:not(#passenger-login-modal):not(#driver-gate-modal):not(#test-login-modal),
  .modal-backdrop:has(.full-page-modal-card),
  .modal-backdrop:has(.proposal-detail-card),
  .modal-backdrop:has(.full-search-window-card),
  .modal-backdrop:has(.passenger-full-page-card),
  .modal-backdrop:has(.driver-full-page-card),
  .modal-backdrop:has(.community-full-page-card),
  #modal-proposal-detail,
  #modal-create-proposal,
  #driver-details-modal,
  #passenger-details-modal,
  #driver-register-modal,
  #driver-register-modal:not(.hidden),
  #route-search-modal,
  #passenger-profile-modal,
  #legal-docs-modal,
  #modal-taxi-drivers-list,
  #modal-report-user,
  #modal-publish-rideshare,
  #modal-book-rideshare,
  #community-invite-modal,
  #trip-chat-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  #trip-chat-modal .chat-messages-container {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  #trip-chat-modal .chat-quick-chips {
    flex-shrink: 0 !important;
  }

  #trip-chat-modal .chat-input-area {
    flex-shrink: 0 !important;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 14px)) !important;
    background: #ffffff !important;
    z-index: 10 !important;
    position: relative !important;
  }

  .full-page-modal-card .modal-body,
  .proposal-detail-card .prop-detail-body,
  .prop-detail-body,
  .modal-card .modal-body {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .full-page-modal-card .modal-footer,
  .proposal-detail-card .prop-detail-footer,
  .prop-detail-footer,
  .modal-card .modal-footer {
    flex-shrink: 0 !important;
    position: sticky !important;
    bottom: 0 !important;
    background: var(--bg-card, #ffffff) !important;
    z-index: 100 !important;
    padding: 12px 16px max(16px, calc(10px + env(safe-area-inset-bottom, 0px))) 16px !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
  }

  #modal-add-rent-apartment .modal-footer {
    position: static !important;
    bottom: auto !important;
    box-shadow: none !important;
    padding: 20px 16px 32px 16px !important;
  }

  .full-page-modal-topbar {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  #driver-register-modal .driver-reg-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .stepper-display {
    font-size: 1.8rem;
  }

  .map-ctrl-btn {
    bottom: 250px;
    right: 16px;
  }

  .mobile-bottom-nav,
  .bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: #ffffff !important;
    border-top: 1px solid var(--border-light) !important;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08) !important;
    z-index: 1000 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    height: 100%;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 2px;
  }

  .bottom-nav-item .nav-icon {
    font-size: 1.4rem;
    line-height: 1;
  }

  .bottom-nav-item .nav-label {
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
  }

  .bottom-nav-item.active {
    color: var(--accent-orange) !important;
  }
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   16. Мобильная Шторка Заказа (Шторка с ручкой и 2-этапным заполнением)
   ========================================================================== */
.sheet-drag-handle-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 6px 0;
  cursor: grab;
}

.sheet-drag-handle {
  width: 42px;
  height: 4px;
  background: #cbd5e1;
  border-radius: var(--radius-pill);
}

.btn-back-addresses {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  text-align: left;
  transition: color 0.15s ease;
  width: fit-content;
}
.btn-back-addresses:hover {
  color: var(--text-main);
}

.booking-stage-pricing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInModal 0.2s ease;
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   17. Полноэкранные страницы на мобильных (Личный кабинет и Карточки)
   ========================================================================== */
.full-page-modal-card {
  max-width: 680px;
  height: 90vh;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius-xl);
}

.full-page-modal-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card, #ffffff);
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.modal-topbar-action-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-light, #e2e8f0);
  background: #f8fafc;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
}
.modal-topbar-action-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.dark-theme .modal-topbar-action-btn,
body.dark-theme .modal-topbar-action-btn {
  background: #1c2432 !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
.dark-theme .modal-topbar-action-btn:hover,
.dark-theme .modal-topbar-action-btn:active,
body.dark-theme .modal-topbar-action-btn:hover,
body.dark-theme .modal-topbar-action-btn:active {
  background: #263042 !important;
  color: #ffffff !important;
}
.light-theme .modal-topbar-action-btn,
body.light-theme .modal-topbar-action-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
.light-theme .modal-topbar-action-btn:hover,
.light-theme .modal-topbar-action-btn:active,
body.light-theme .modal-topbar-action-btn:hover,
body.light-theme .modal-topbar-action-btn:active {
  background: #e2e8f0 !important;
  color: #000000 !important;
}

.modal-topbar-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: center;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   16. АДАПТИВНАЯ МОДЕЛЬ: ДЕСКТОП VS МОБИЛЬНЫЙ (ЛАКОНИЧНОСТЬ БЕЗ КУЧИ ТЕКСТА)
   ========================================================================== */
@media (min-width: 769px) {
  .desktop-booking-box {
    display: block !important;
  }
  .mobile-booking-box {
    display: none !important;
  }
  .side-panel {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 380px;
    max-height: calc(100vh - 90px);
    z-index: 30;
  }
  .booking-stage-pricing {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-bottom-nav,
  .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-booking-box {
    display: none !important;
  }
  .mobile-booking-box {
    display: block !important;
  }
  
  /* Хедер на мобильном: лаконичный, без лишнего текста */
  .app-header {
    height: 52px;
    padding: 0 12px;
  }
  .btn-apk-header,
  .btn-admin-header {
    display: none !important;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .role-nav {
    gap: 2px;
  }
  .role-nav-btn {
    padding: 5px 8px;
    font-size: 0.88rem;
  }
  
  /* Боковая панель превращается в мобильную шторку снизу */
  .side-panel {
    position: fixed;
    top: auto;
    bottom: 58px; /* над нижним навбаром */
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 20px 20px 0 0;
    z-index: 40;
    margin: 0;
    padding: 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .booking-card {
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 6px 14px 14px 14px;
    gap: 10px;
    box-shadow: none;
  }
  
  /* Кнопка GPS на мобильном: парит над шторкой справа */
  .map-ctrl-btn {
    bottom: 230px !important;
    right: 14px !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }
  
  /* Лаконичные элементы: никаких простыней текста */
  .initial-quick-chips {
    gap: 6px;
    padding: 2px 0 6px 0;
  }
  .init-chip {
    padding: 8px 14px;
    font-size: 0.88rem;
    min-height: 38px;
    border-radius: 12px;
  }
  .price-stepper-card {
    padding: 10px 12px;
    gap: 6px;
  }
  .stepper-num {
    font-size: 1.5rem;
  }
  .stepper-btn {
    width: 36px;
    height: 36px;
  }
  .btn-main-action {
    padding: 14px 20px;
    font-size: 1.05rem;
    min-height: 54px;
    border-radius: 16px;
  }
}

/* ==========================================================================
   28. Глобальный приоритет отображения модальных окон
   ========================================================================== */
.modal-backdrop.hidden,
#modal-app-menu.hidden,
#modal-city-guide.hidden,
#modal-contacts.hidden,
#modal-about-project.hidden,
#modal-guide-route-choice.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal-backdrop:not(.hidden),
#modal-app-menu:not(.hidden),
#modal-city-guide:not(.hidden),
#modal-contacts:not(.hidden),
#modal-about-project:not(.hidden),
#modal-guide-route-choice:not(.hidden) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 100050 !important;
}

/* Вложенные модальные окна (открываются поверх каталога жилья, меню и других окон) */
#modal-add-rent-apartment:not(.hidden) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 100080 !important;
}

#modal-add-rent-apartment .full-page-modal-card {
  z-index: 100081 !important;
}

#modal-catalog-item-detail:not(.hidden) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 100080 !important;
}

#modal-guide-route-choice:not(.hidden) {
  z-index: 100085 !important;
}

.cargo-lightbox:not(.hidden),
.rent-photo-lightbox:not(.hidden) {
  z-index: 100090 !important;
}

/* -------------------------------------------------------------------------- */

/* ==========================================================================
   17. МОБИЛЬНЫЕ ПРАВКИ: без дублей, «Попутчики» на весь экран, тосты
   ========================================================================== */
.global-toast {
  position: fixed;
  left: 50%;
  top: 70px;
  transform: translate(-50%, -20px);
  max-width: min(92vw, 420px);
  padding: 10px 16px;
  background: #0f172a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 100099 !important;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
}
.global-toast.show { opacity: 1; transform: translate(-50%, 0); }

.rs-filter-btn { flex-shrink: 0; min-height: 30px; line-height: 1.2; }
.rs-trip-card button { position: relative; z-index: 1; cursor: pointer; }

@media (max-width: 768px) {
  /* Убираем дубли: десктопная форма адресов и второй ряд чипов */
  #desktop-booking-box,
  #desktop-quick-chips,
  #initial-quick-chips { display: none !important; }

  /* «Попутчики», «Предложения» и режим Водителя — полноценный полноэкранный интерфейс на телефоне с 5px отступами */
  body.role-rideshare .side-panel,
  body.role-proposals .side-panel,
  body.role-driver-requests .side-panel,
  body.role-driver .side-panel,
  body.role-driver-rides .side-panel,
  body.role-driver-analytics .side-panel {
    position: fixed !important;
    top: 0 !important;
    bottom: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: env(safe-area-inset-top, 0px) 0 0 0 !important;
    margin: 0 !important;
    background: var(--bg-app, #f8fafc) !important;
  }
  body.role-rideshare .rideshare-panel-card,
  body.role-proposals .proposals-panel-card,
  body.role-driver-requests .driver-board-card,
  body.role-driver .driver-cockpit-card,
  body.role-driver-rides .rideshare-panel-card,
  body.role-driver-analytics .driver-analytics-card {
    max-height: none !important;
    min-height: 100% !important;
    border-radius: 0 !important;
    padding: 10px 5px calc(24px + env(safe-area-inset-bottom, 0px)) 5px !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  .driver-proposals-section {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .proposals-section-header {
    padding: 4px 5px 8px 5px !important;
  }

  .proposals-filter-row {
    padding: 0 4px 10px 4px !important;
    margin-bottom: 8px !important;
  }
}

/* Базовые стили фильтра предложений водителя (скрыты по требованию пользователя) */
.proposals-filter-row {
  display: none !important;
}

.prop-filter-chip {
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.prop-filter-chip:hover {
  border-color: #cbd5e1;
  color: var(--text-main);
}

.prop-filter-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-refresh-proposals {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-refresh-proposals:hover {
  background: #f1f5f9;
}

.driver-proposals-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

/* Карточка заявки пассажира для водителя */
.driver-proposal-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 200px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  user-select: none;
}

.driver-proposal-card:hover {
  border-color: #f97316;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.12);
  transform: translateY(-2px);
}

.driver-proposal-card:active {
  transform: translateY(0) scale(0.995);
}

.prop-card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  min-height: 26px;
}

.prop-badges-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.prop-city-badge {
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
}

.prop-type-badge {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
}

.prop-type-badge.cargo {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

.prop-photo-pill {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.prop-comment-badge {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.prop-card-time {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--accent-orange);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.prop-card-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent-orange);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Переработанный крупный и максимально читаемый маршрут */
.prop-card-route {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  box-sizing: border-box;
}

.prop-point-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.prop-point-row .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.prop-point-row .dot.origin {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.prop-point-row .dot.dest {
  background: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.prop-route-connector-line {
  width: 2px;
  height: 8px;
  background: #cbd5e1;
  margin-left: 4px;
  border-radius: 1px;
}

.prop-point-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.prop-point-label {
  font-weight: 500;
  color: #64748b;
  font-size: 0.74rem;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.1;
}

.prop-point-val {
  font-weight: 500;
  color: #0f172a;
  font-size: 1.02rem;
  line-height: 1.35;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.prop-passenger-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 0 2px;
  height: 16px;
  max-height: 16px;
}

.prop-passenger-name {
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

.prop-card-open-hint {
  color: var(--text-muted);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.driver-proposal-card:hover .prop-card-open-hint {
  color: var(--accent-orange);
}

.btn-accept-proposal {
  width: 100%;
  height: 48px;
  min-height: 48px;
  background: var(--accent-orange);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px var(--accent-orange-glow);
  box-sizing: border-box;
}

.btn-accept-proposal:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
}

.proposals-loading {
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.proposals-empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

/* Форма предложения пассажира */
.proposal-info-badge {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #166534;
  line-height: 1.45;
}

.proposal-time-selector {
  display: flex;
  gap: 8px;
}

.time-radio-option {
  flex: 1;
  display: flex;
  cursor: pointer;
}

.time-radio-option input {
  display: none;
}

.time-radio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 8px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.15s ease;
}

.time-radio-option input:checked + .time-radio-pill {
  background: #fff7ed;
  border-color: #ff6b00;
  color: #9a3412;
}

.prop-price-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.prop-price-input-row input {
  padding-right: 36px;
  font-size: 1.1rem;
  font-weight: 500;
}

.currency-tag {
  position: absolute;
  right: 14px;
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

/* Список такси для пассажиров */
.taxi-drivers-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.taxi-driver-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.td-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.td-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.td-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.td-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.td-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
}

.td-car {
  font-size: 0.8rem;
  color: #64748b;
}

.td-rating {
  font-size: 0.82rem;
  font-weight: 500;
  color: #f59e0b;
}

.td-tariffs-row {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.90rem;
  color: #475569;
}

.td-tariffs-row span strong {
  font-weight: 500;
  color: #0f172a;
}

.btn-select-driver {
  min-height: 42px;
  background: #ff6b00;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-select-driver:hover {
  background: #ea580c;
}

/* Модалка жалобы на пользователя */
.report-warning-badge {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #991b1b;
  line-height: 1.45;
}

.report-warning-badge strong {
  font-weight: 500;
}

.report-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-reason-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.report-reason-item:hover {
  border-color: #cbd5e1;
}

.report-reason-item.highlight-violation {
  border-color: #fca5a5;
  background: #fff5f5;
}

.report-reason-item input {
  margin-top: 3px;
  accent-color: #ef4444;
}

.reason-text {
  display: flex;
  flex-direction: column;
}

.reason-main {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e293b;
}

.reason-sub {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}

.btn-danger-action {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.btn-danger-action:hover {
  background: #dc2626 !important;
}

.btn-chat-report, .btn-trip-report {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-chat-report:hover, .btn-trip-report:hover {
  background: #fecaca;
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   18. РЕДИЗАЙН ГЛАВНОГО ЭКРАНА В МОБИЛЬНОЙ ВЕРСИИ (СТИЛЬ KUPIPK / СОВРЕМЕННЫЙ МАРКЕТПЛЕЙС)
   ========================================================================== */

/* Логотип: подпись сервиса */
.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-sub-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Кнопка поддержки/телефона в шапке */
.btn-header-phone {
  display: none;
}

@media (max-width: 768px) {
  .btn-header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
  }
  .btn-header-phone:active {
    transform: scale(0.92);
    background: #e2e8f0;
  }
}

/* По умолчанию (на десктопе) лента скрыта */
.mobile-home-feed {
  display: none !important;
}

@media (max-width: 768px) {
  /* Поведение экрана на мобильном: по умолчанию показывается лента главная (top: 0 без зазора карты) */
  .mobile-home-feed {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 58px;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100vh - 58px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-app, #f8fafc);
    z-index: 95;
    padding: max(14px, env(safe-area-inset-top, 14px)) 14px 28px 14px;
    gap: 14px;
    box-sizing: border-box;
  }

  /* В режиме карты лента скрывается, карта и шторка работают */
  body.mobile-view-map .mobile-home-feed {
    display: none !important;
  }

  body.role-rideshare .mobile-home-feed,
  body.role-proposals .mobile-home-feed,
  body.role-driver-requests .mobile-home-feed,
  body.role-driver .mobile-home-feed,
  body.role-driver-rides .mobile-home-feed,
  body.role-rent .mobile-home-feed,
  body.role-cafe .mobile-home-feed,
  body.role-leisure .mobile-home-feed {
    display: none !important;
  }
}

/* 1. Поисковая строка мобильной ленты */
.mfeed-search-section {
  width: 100%;
}
.mfeed-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.mfeed-search-bar:active {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: scale(0.99);
}
.mfeed-search-icon {
  color: #64748b;
  flex-shrink: 0;
}
.mfeed-search-placeholder {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mfeed-search-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* 2. Слайдер промо-баннеров (Динамический) */
.mfeed-slider-wrapper {
  position: relative;
  width: 100%;
}
.mfeed-promo-slider {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 168px;
  min-height: 168px;
  max-height: 168px;
  box-sizing: border-box;
}
.mfeed-promo-slide {
  display: none;
  height: 100%;
  box-sizing: border-box;
  padding: 16px 18px 14px 18px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  animation: fadeInSlide 0.35s ease;
  flex-direction: column;
  justify-content: space-between;
}
.mfeed-promo-slide.active {
  display: flex;
}
@keyframes fadeInSlide {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}
.mfeed-promo-banner {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 40%, #1e1b4b 100%);
  border-radius: 18px;
  padding: 20px 18px 16px 18px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mfeed-promo-banner::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.mfeed-promo-banner::after {
  content: "";
  position: absolute;
  left: 20%;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.mfeed-promo-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
}
.mfeed-promo-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: #ffffff;
}
.mfeed-promo-desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #94a3b8;
  margin-bottom: 14px;
  max-width: 90%;
}
.mfeed-promo-cta-row {
  margin-top: 4px;
}
.btn-promo-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: #00c853;
  color: #ffffff;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-promo-hero-cta:active {
  transform: scale(0.96);
  background: #00b34a;
}
.mfeed-promo-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.p-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}
.p-dot.active {
  width: 20px;
  border-radius: 4px;
  background: #00c853;
}

/* 3. Быстрые плитки категорий в формате 9:13 с реалистичными 3D-моделями на белом фоне */
.mfeed-categories-row {
  display: flex !important;
  flex-shrink: 0 !important;
  min-height: 128px !important;
  height: 128px !important;
  gap: 5px !important;
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 2px 2px 6px 2px !important;
  box-sizing: border-box !important;
  scrollbar-width: none !important;
  margin: 2px 0 6px 0 !important;
}
.mfeed-categories-row::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.mfeed-cat-card {
  flex: 0 0 92px !important;
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  height: 122px !important;
  min-height: 122px !important;
  max-height: 122px !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 6px 4px 6px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
}
.mfeed-cat-card:active {
  transform: scale(0.95) !important;
  background: #f8fafc !important;
}
.cat-card-img-wrap {
  width: 100% !important;
  height: 70px !important;
  min-height: 70px !important;
  max-height: 70px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
.cat-card-img {
  width: auto !important;
  height: 100% !important;
  max-width: 66px !important;
  max-height: 66px !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.2s ease !important;
}
.mfeed-cat-card:hover .cat-card-img {
  transform: scale(1.04) !important;
}
.cat-card-name {
  width: 100% !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  line-height: 1.15 !important;
  text-align: center !important;
  word-break: break-word !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-top: 2px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}


/* 4. Секция Популярные направления */
.mfeed-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 2px;
}
.mfeed-section-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.mfeed-section-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: #d97706;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}
.mfeed-section-link:active {
  opacity: 0.7;
}

/* Карточка «Стать водителем» в формате 16:9 с крупным текстом */
.mfeed-driver-card-16-9 {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 195px !important;
  height: 195px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  margin-bottom: 12px !important;
  box-sizing: border-box !important;
}
.driver-card-16-9-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: right center !important;
  z-index: 1 !important;
  transition: transform 0.3s ease !important;
}
.mfeed-driver-card-16-9:active .driver-card-16-9-bg {
  transform: scale(1.02) !important;
}
.driver-card-16-9-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.88) 55%, rgba(15, 23, 42, 0.3) 100%) !important;
  z-index: 2 !important;
}
.driver-card-16-9-content {
  position: relative !important;
  z-index: 3 !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
}
.driver-card-16-9-top {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.driver-card-16-9-badge {
  background: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-size: 0.70rem !important;
  font-weight: 500 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}
.driver-card-16-9-subbadge {
  background: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.70rem !important;
  font-weight: 500 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
}
.driver-card-16-9-title {
  font-size: 1.35rem !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  letter-spacing: 0.01em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
  margin-top: 2px !important;
}
.driver-card-16-9-desc {
  font-size: 0.80rem !important;
  font-weight: 400 !important;
  color: #cbd5e1 !important;
  margin-top: 3px !important;
  max-width: 78% !important;
  line-height: 1.28 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.btn-driver-16-9-cta {
  align-self: flex-start !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: none !important;
  border-radius: 20px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}
.btn-driver-16-9-cta:active {
  transform: scale(0.96) !important;
  background: #f1f5f9 !important;
}

/* 5. Карточки направлений без наложений плашек на заголовок */
.mfeed-showcase-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}
.showcase-card-header {
  padding: 12px 14px 4px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.showcase-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.showcase-badge-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.showcase-badge-pill.hot {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}
.showcase-badge-pill.hit {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.showcase-badge-pill.cargo {
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  color: #ffffff;
}
.showcase-badge-pill.info {
  background: rgba(255, 255, 255, 0.94);
  color: #0369a1;
  border: 1px solid #bae6fd;
  backdrop-filter: blur(4px);
}
.showcase-image-container {
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}
.showcase-card-body {
  padding: 4px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.showcase-model-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}
.showcase-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px 0;
}
.showcase-chip {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.showcase-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.showcase-price-block {
  display: flex;
  flex-direction: column;
}
.showcase-price-old {
  font-size: 0.74rem;
  color: #94a3b8;
  text-decoration: line-through;
}
.showcase-price-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}
.btn-showcase-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-showcase-cta:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

/* 6. Карточка карты */
.mfeed-map-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  margin-top: 2px;
  transition: transform 0.15s ease;
}
.mfeed-map-banner:active {
  transform: scale(0.98);
}
.map-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.map-banner-icon {
  font-size: 1.7rem;
}
.map-banner-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e3a8a;
}
.map-banner-desc {
  font-size: 0.74rem;
  color: #3b82f6;
}
.map-banner-arrow {
  font-size: 1.15rem;
  color: #2563eb;
  font-weight: 700;
}
.mfeed-bottom-spacer {
  height: 24px;
}

/* 7. Круглый оранжевый FAB чата скрыт по требованию пользователя */
.mobile-floating-chat-fab {
  display: none !important;
}

/* 7.1 Кнопка геолокации в поле "Откуда забрать?" */
.modal-addr-locate-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-right: 4px;
}
.modal-addr-locate-btn:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}
.modal-addr-locate-btn.locating {
  animation: pulse-locate 1.2s infinite ease-in-out;
  color: #ea580c;
  border-color: #fdba74;
}
@keyframes pulse-locate {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* 8. Стилизация нижнего навбара с SVG иконками */
.mobile-bottom-nav,
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 110;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 500;
  height: 100%;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 4px 0;
  background: none;
  border: none;
}
.bottom-nav-item:active {
  transform: scale(0.95);
}
.bottom-nav-item.active {
  color: #d97706;
  font-weight: 700;
}
.bottom-nav-item.active .nav-icon svg {
  stroke: #d97706;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}
.nav-icon svg {
  transition: stroke 0.15s ease;
}

/* Выпадающее меню водителя (Смена / Выход с линии) */
.driver-nav-dropdown-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 119;
  transition: opacity 0.2s ease;
}
.driver-nav-dropdown {
  position: fixed;
  bottom: 66px;
  right: 12px;
  width: 240px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22), 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 12px;
  z-index: 120;
  box-sizing: border-box;
  animation: drvDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drvDropIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.drv-drop-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 4px 6px 4px;
}
.drv-drop-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}
.drv-drop-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.drv-drop-dot.offline {
  background: #94a3b8;
  box-shadow: none;
}
.drv-drop-status-hint {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  padding-left: 15px;
}
.drv-drop-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0 8px 0;
}
.drv-drop-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drv-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.drv-drop-item:active {
  transform: scale(0.97);
  background: #f1f5f9;
}
.drv-drop-item.danger {
  background: #fff5f5;
  border-color: #fee2e2;
}
.drv-drop-item.danger:active {
  background: #fecaca;
}
.drv-drop-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.drv-drop-item-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.drv-drop-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}
.drv-drop-item.danger .drv-drop-item-title {
  color: #dc2626;
}
.drv-drop-item-desc {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}
.dark-theme .driver-nav-dropdown {
  background: #1e293b;
  border-color: #334155;
  color: #ffffff;
}
.dark-theme .drv-drop-item {
  background: #0f172a;
  border-color: #334155;
}
.dark-theme .drv-drop-item-title {
  color: #f1f5f9;
}
.dark-theme .drv-drop-divider {
  background: #334155;
}

/* 9. Модалка каталога услуг */
.mobile-services-sheet {
  width: min(92vw, 420px);
  padding: 18px;
  border-radius: 20px;
}
.mobile-services-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.service-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.service-sheet-item:active {
  background: #f1f5f9;
  transform: scale(0.98);
}
.ss-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.ss-text {
  display: flex;
  flex-direction: column;
}
.ss-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}
.ss-desc {
  font-size: 0.74rem;
  color: #64748b;
}

/* Тёмная тема для новых компонентов */
.dark-theme .btn-header-phone {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}
.dark-theme .mobile-home-feed {
  background: #0b0f19;
}
.dark-theme .mfeed-search-bar {
  background: #1e293b;
  border-color: #334155;
}
.dark-theme .mfeed-search-placeholder {
  color: #94a3b8;
}
.dark-theme .mfeed-cat-card {
  background: #1e293b;
  border-color: #334155;
}
.dark-theme .cat-card-name {
  color: #f8fafc;
}
.dark-theme .cat-card-badge {
  background: #0369a1;
  color: #e0f2fe;
}
.dark-theme .mfeed-section-title {
  color: #f8fafc;
}
.dark-theme .mfeed-showcase-card {
  background: #1e293b;
  border-color: #334155;
}
.dark-theme .showcase-image-container {
  background: #0f172a;
}
.dark-theme .showcase-model-title {
  color: #f8fafc;
}
.dark-theme .showcase-chip {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}
.dark-theme .showcase-footer-row {
  border-top-color: #334155;
}
.dark-theme .showcase-price-val {
  color: #f8fafc;
}
.dark-theme .mfeed-map-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: #334155;
}
.dark-theme .map-banner-title {
  color: #93c5fd;
}
.dark-theme .map-banner-desc {
  color: #60a5fa;
}
.dark-theme .mobile-bottom-nav,
.dark-theme .bottom-nav {
  background: #0f172a;
  border-top-color: #1e293b;
}
.dark-theme .bottom-nav-item {
  color: #94a3b8;
}
.dark-theme .bottom-nav-item.active {
  color: #f59e0b;
}
.dark-theme .bottom-nav-item.active .nav-icon svg {
  stroke: #f59e0b;
}
.dark-theme .service-sheet-item {
  background: #1e293b;
  border-color: #334155;
}
.dark-theme .ss-name {
  color: #f8fafc;
}
.dark-theme .ss-desc {
  color: #94a3b8;
}

/* ==========================================================================
   21. Автономный режим «Навигатор» (Скрывает пассажирские вкладки)
   ========================================================================== */
body.navigator-active-mode #mobile-bottom-nav,
body.navigator-active-mode .mobile-bottom-nav,
body.navigator-active-mode .side-panel,
body.navigator-active-mode .mobile-home-feed {
  display: none !important;
}

body.navigator-active-mode .map-container {
  bottom: 74px !important;
  height: calc(100vh - 74px) !important;
}

.navigator-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 16px max(14px, env(safe-area-inset-bottom, 14px)) 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* ==========================================================================
   22. Блок предложения цены в модалке поиска маршрута (inDrive style)
   ========================================================================== */
.search-modal-price-bar {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.smp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.smp-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: #334155;
}
.smp-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 4px 10px;
  transition: border-color 0.15s;
}
.smp-input-wrap:focus-within {
  border-color: #f97316;
}
.smp-input {
  width: 90px;
  border: none;
  outline: none;
  font-size: 0.96rem;
  font-weight: 500;
  color: #0f172a;
  text-align: right;
  background: transparent;
}
.smp-currency {
  font-size: 0.96rem;
  font-weight: 500;
  color: #f97316;
}
.smp-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.smp-chip {
  padding: 5px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.smp-chip:hover, .smp-chip:active {
  background: #fff7ed;
  border-color: #f97316;
  color: #ea580c;
}

/* Кнопка переключения темы на главной */
.btn-home-theme-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.btn-home-theme-toggle:active {
  transform: scale(0.94);
}
.dark-theme .btn-home-theme-toggle {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

/* Тёмная тема для блока цены в модалке поиска */
.dark-theme .search-modal-price-bar {
  background: #1c2432 !important;
  border-color: #273244 !important;
}
.dark-theme .smp-label {
  color: #94a3b8 !important;
}
.dark-theme .smp-input-wrap {
  background: #151b26 !important;
  border-color: #334155 !important;
}
.dark-theme .smp-input {
  color: #f1f5f9 !important;
}
.dark-theme .smp-chip {
  background: #151b26 !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
.dark-theme .smp-chip:hover,
.dark-theme .smp-chip:active {
  background: #263042 !important;
  border-color: #f97316 !important;
  color: #ffedd5 !important;
}

/* Светлая тема для всей модалки поиска маршрута */
body.light-theme #route-search-modal .modal-card,
body.light-theme .route-search-full-page {
  background: #ffffff !important;
  color: #0f172a !important;
}
body.light-theme #route-search-modal .full-page-modal-topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.light-theme #route-search-modal .modal-topbar-title {
  color: #0f172a !important;
}
body.light-theme #route-search-modal .modal-body,
body.light-theme #route-search-modal .search-page-body {
  background: #ffffff !important;
}
body.light-theme #route-search-modal .search-inputs-card {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
}
body.light-theme #route-search-modal .modal-addr-field {
  color: #0f172a !important;
}
body.light-theme #route-search-modal .modal-addr-field::placeholder {
  color: #94a3b8 !important;
}
body.light-theme #route-search-modal .modal-addr-clear {
  background: #e2e8f0 !important;
  color: #64748b !important;
}
body.light-theme #route-search-modal .modal-addr-locate-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0284c7 !important;
}
body.light-theme #route-search-modal .btn-pick-on-map-row {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
body.light-theme #route-search-modal .pick-map-title {
  color: #0f172a !important;
}
body.light-theme #route-search-modal .fav-quick-chip {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}
body.light-theme #route-search-modal .search-page-footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}
body.light-theme .search-modal-price-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
body.light-theme .smp-label {
  color: #334155 !important;
}
body.light-theme .smp-input-wrap {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
}
body.light-theme .smp-input {
  color: #0f172a !important;
}
body.light-theme .smp-chip {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

/* ==========================================================================
   23. Мобильное Меню приложения (#modal-app-menu)
   ========================================================================== */
.app-menu-sheet-card {
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.app-menu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}
.app-menu-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #0f172a;
}
.app-menu-scroll-body {
  padding: 16px 20px 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-menu-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.app-menu-user-card:active {
  transform: scale(0.98);
}
.app-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
  flex-shrink: 0;
}
.app-menu-user-meta {
  flex: 1;
  min-width: 0;
}
.app-menu-user-name {
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-menu-user-sub {
  font-size: 0.80rem;
  color: #64748b;
  margin-top: 2px;
}
.app-menu-user-arrow {
  color: #94a3b8;
  font-size: 1.2rem;
}

.app-menu-section-title {
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-top: 4px;
  margin-bottom: 2px;
}
.app-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.app-menu-item:hover, .app-menu-item:active {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.app-menu-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.app-menu-item-body {
  flex: 1;
  min-width: 0;
}
.app-menu-item-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: #0f172a;
}
.app-menu-item-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}
.app-menu-item-arrow {
  color: #cbd5e1;
  font-size: 1.1rem;
}

/* ==========================================================================
   24. Модалка Городского Гида (#modal-city-guide)
   ========================================================================== */
.city-guide-era-toggle {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  margin: 12px 0;
}
.city-guide-era-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.city-guide-era-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.city-guide-photo-box {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.city-guide-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.city-guide-photo-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
}

/* ==========================================================================
   25. Автономный Навигатор: Нижний бар и Верхний HUD
   ========================================================================== */
.nav-mode-hidden,
.navigator-bottom-bar.hidden,
#navigator-bottom-bar.hidden,
.navigator-hud-banner.hidden,
#navigator-hud-banner.hidden,
.pedestrian-hud-banner.hidden,
#pedestrian-hud-banner.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.navigator-bottom-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  height: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0 16px max(10px, env(safe-area-inset-bottom, 10px)) 16px !important;
  box-sizing: border-box !important;
  z-index: 99999 !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4) !important;
}

.nav-dock-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.nav-dock-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.nav-dock-sub {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-dock-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.2);
}

.nav-dock-exit-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.nav-dock-exit-btn:active {
  transform: scale(0.95);
  background: #dc2626;
}

/* ==========================================================================
   Плашка предпросмотра маршрута (Route Preview Card)
   ========================================================================== */
.navigator-route-preview {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  z-index: 99999 !important;
  box-sizing: border-box !important;
  animation: slideUpNavPreview 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpNavPreview {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.nav-preview-card {
  background: var(--bg-card, #ffffff) !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.22) !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  border-bottom: none !important;
  padding: 16px 18px max(16px, env(safe-area-inset-bottom, 16px)) 18px !important;
  box-sizing: border-box !important;
}

.nav-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.nav-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-preview-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-subtle, #f1f5f9);
  color: var(--text-muted, #64748b);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: bold;
}

.nav-preview-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  line-height: 1.2;
  margin-bottom: 2px;
}

.nav-preview-addr {
  font-size: 0.86rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 14px;
}

.nav-preview-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 14px;
}

.nav-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-metric-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  line-height: 1.1;
}

.nav-metric-val.highlight {
  color: #10b981;
}

.nav-metric-lbl {
  font-size: 0.70rem;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-metric-divider {
  width: 1px;
  height: 28px;
  background: var(--border-light, #e2e8f0);
}

.nav-preview-actions {
  display: flex;
  gap: 10px;
}

.btn-nav-go {
  flex: 1;
  height: 52px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}

.btn-nav-go:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

.btn-nav-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1.5px solid var(--border-light, #e2e8f0);
  background: var(--bg-subtle, #f8fafc);
  color: var(--text-main, #0f172a);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-nav-action-icon:active {
  transform: scale(0.94);
}

/* ==========================================================================
   Категории быстрого поиска в модалке навигатора
   ========================================================================== */
.nav-category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px 0;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.nav-category-chips::-webkit-scrollbar {
  display: none;
}

.nav-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light, #e2e8f0);
  background: var(--bg-subtle, #f8fafc);
  color: var(--text-main, #0f172a);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-chip:hover, .nav-chip.active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

/* Элементы результатов поиска в навигаторе */
.nav-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.nav-search-result-item:hover, .nav-search-result-item:active {
  border-color: #3b82f6;
  background: var(--bg-subtle, #f1f5f9);
}

.nav-search-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-subtle, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nav-search-item-body {
  flex: 1;
  min-width: 0;
}

.nav-search-item-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main, #0f172a) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.nav-search-item-subtitle {
  font-size: 0.80rem;
  color: var(--text-muted, #64748b) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.nav-search-item-arrow {
  color: #3b82f6;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ==========================================================================
   Верхний HUD активной навигации
   ========================================================================== */
.navigator-hud-banner {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top, 10px)) !important;
  left: 10px !important;
  right: 10px !important;
  width: calc(100% - 20px) !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 99998 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
  box-sizing: border-box !important;
}

.nav-hud-turn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.nav-hud-arrow {
  font-size: 1.6rem;
  line-height: 1;
}
.nav-hud-dist {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 1px;
}
.nav-hud-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.nav-hud-street {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.nav-hud-sub {
  font-size: 0.80rem;
  color: #94a3b8;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-hud-speed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ef4444;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  background: #ffffff;
  color: #0f172a;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.nav-hud-speed-val {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.nav-hud-speed-unit {
  font-size: 0.55rem;
  color: #64748b;
  text-transform: uppercase;
  margin-top: -2px;
  font-weight: 600;
}


/* ==========================================================================
   26. Переключатель режима аналитики водителя (Доходы / Калькулятор)
   ========================================================================== */
.analytics-mode-switcher {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  background: #f1f5f9 !important;
  padding: 4px !important;
  border-radius: 14px !important;
  gap: 4px !important;
  border: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.analytics-mode-btn {
  height: 42px !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
  padding: 0 12px !important;
}

.analytics-mode-btn .amb-icon {
  font-size: 1.15rem !important;
  line-height: 1 !important;
}

.analytics-mode-btn .amb-text {
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.analytics-mode-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.analytics-mode-btn:active {
  transform: scale(0.98) !important;
}

/* 16:9 Блок-карточка Гид */
.mfeed-guide-card-16-9 {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.mfeed-guide-card-16-9:active {
  transform: scale(0.985) !important;
}

/* ==========================================================================
   27. Кнопки Такси & Маршрут в Гиде по городу (#modal-city-guide)
   ========================================================================== */
.guide-actions-row {
  display: flex !important;
  gap: 8px !important;
  margin-top: 10px !important;
  width: 100% !important;
}

.btn-guide-taxi {
  flex: 1 !important;
  height: 42px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 0.90rem !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.btn-guide-taxi:active {
  transform: scale(0.98) !important;
  background: #1e293b !important;
}

.btn-guide-route {
  flex: 1 !important;
  height: 42px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  font-size: 0.90rem !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.btn-guide-route:active {
  transform: scale(0.98) !important;
  background: #e2e8f0 !important;
}

/* Модалка выбора типа маршрута (Пеший / Авто) */
.guide-route-choice-card {
  max-width: 420px !important;
  width: calc(100% - 24px) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
  margin: auto !important;
}

.guide-route-option-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.guide-route-option-card:hover, .guide-route-option-card:active {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  transform: scale(0.99) !important;
}

.gro-icon-wrap {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  flex-shrink: 0 !important;
}

/* Пеший HUD баннер */
.pedestrian-hud-banner {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  right: 12px !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.96) 0%, rgba(4, 120, 87, 0.94) 100%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 18px !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 99998 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.ped-hud-icon {
  font-size: 1.5rem !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.ped-hud-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.ped-hud-title {
  font-size: 0.96rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #ffffff !important;
}

.ped-hud-sub {
  font-size: 0.76rem !important;
  color: #a7f3d0 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.btn-ped-exit {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

/* Catalog Detail Full-Screen on Mobile */
@media (max-width: 768px) {
  #modal-catalog-item-detail.modal-backdrop {
    padding: 0 !important;
    background: #000000 !important;
    z-index: 100085 !important;
  }
  #modal-catalog-item-detail .modal-card,
  #modal-catalog-item-detail .catalog-detail-modal-card {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #modal-catalog-item-detail .catalog-detail-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(32px, calc(16px + env(safe-area-inset-bottom, 16px))) !important;
  }
}

/* ==========================================================================
   28. ПОЛНОЦЕННАЯ СВЕТЛАЯ ТЕМА (LIGHT THEME AUDIT & SYSTEM REFINEMENTS)
   ========================================================================== */
body.light-theme {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --bg-hover: #e2e8f0;
  --border-light: #e2e8f0;
  --border-focus: #0f172a;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  color-scheme: light !important;
}

body.light-theme .mobile-home-feed {
  background-color: #f8fafc !important;
}

body.light-theme .mfeed-search-bar {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .mfeed-cat-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .cat-card-name {
  color: #0f172a !important;
}

body.light-theme .mfeed-section-title {
  color: #0f172a !important;
}

body.light-theme .mfeed-showcase-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .showcase-model-title {
  color: #0f172a !important;
}

body.light-theme .showcase-chip {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

body.light-theme .showcase-footer-row {
  border-top-color: #f1f5f9 !important;
}

body.light-theme .showcase-price-val {
  color: #0f172a !important;
}

body.light-theme .mfeed-map-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border-color: #bfdbfe !important;
}

body.light-theme .mobile-bottom-nav,
body.light-theme .bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .bottom-nav-item {
  color: #64748b !important;
}

body.light-theme .bottom-nav-item.active {
  color: #ff6b00 !important;
}

body.light-theme .bottom-nav-item.active .nav-icon svg {
  stroke: #ff6b00 !important;
}

body.light-theme .side-panel {
  background: transparent !important;
}

body.light-theme .booking-card {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .price-stepper-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .stepper-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-theme .stepper-display {
  color: #0f172a !important;
}

body.light-theme .q-chip {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

body.light-theme .q-chip:hover,
body.light-theme .q-chip:active {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.light-theme .main-search-trigger-bar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .quick-service-pill {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-theme .modal-card {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18) !important;
}

body.light-theme .modal-topbar,
body.light-theme .full-page-modal-topbar,
body.light-theme .modal-header {
  background: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
}

body.light-theme .modal-title,
body.light-theme .modal-topbar-title {
  color: #0f172a !important;
}

body.light-theme .app-menu-sheet-card {
  background: #ffffff !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22) !important;
}

body.light-theme .app-menu-user-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .app-menu-user-name {
  color: #0f172a !important;
}

body.light-theme .app-menu-user-sub {
  color: #64748b !important;
}

body.light-theme .app-menu-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .app-menu-item-title {
  color: #0f172a !important;
}

body.light-theme .app-menu-item-sub {
  color: #64748b !important;
}

body.light-theme .modal-input,
body.light-theme .dif-input,
body.light-theme .addr-input,
body.light-theme .modal-addr-field,
body.light-theme input[type="text"],
body.light-theme input[type="password"],
body.light-theme input[type="tel"],
body.light-theme input[type="number"],
body.light-theme input[type="email"],
body.light-theme select {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
}

body.light-theme .catalog-item-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .catalog-card-title {
  color: #0f172a !important;
}

body.light-theme .catalog-spec-item {
  background: #f8fafc !important;
  border-color: #f1f5f9 !important;
  color: #334155 !important;
}

body.light-theme .catalog-card-desc {
  color: #475569 !important;
}

body.light-theme .btn-card-taxi {
  background: #ff6b00 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   29. АДАПТИВ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ (ФОРМА «СДАТЬ ЖИЛЬЕ», КАТАЛОГИ, ПРОФИЛЬ)
   ========================================================================== */
@media (max-width: 768px) {
  /* Исключаем горизонтальный скролл на любых мобильных экранах */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-text-size-adjust: 100% !important;
  }

  .app-container,
  .main-viewport {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Модалка добавления жилья (#modal-add-rent-apartment) на весь экран мобильного */
  #modal-add-rent-apartment.modal-backdrop,
  #modal-add-rent-apartment:not(.hidden) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 100080 !important;
    background: var(--bg-card, #ffffff) !important;
  }

  #modal-add-rent-apartment .full-page-modal-card {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-card, #ffffff) !important;
    z-index: 100081 !important;
  }

  #modal-add-rent-apartment form.modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 16px max(32px, calc(16px + env(safe-area-inset-bottom, 16px))) 16px !important;
    box-sizing: border-box !important;
    background: var(--bg-card, #ffffff) !important;
  }

  /* Предотвращение iOS Safari зума при клике на input (16px) */
  #modal-add-rent-apartment .modal-input,
  #modal-add-rent-apartment .form-select,
  #modal-add-rent-apartment .modal-textarea,
  .address-autocomplete-input {
    font-size: 16px !important;
  }

  /* Сетка чекбоксов удобств: ровно 2 колонки на мобильном, чтобы текст не вылезал */
  #modal-add-rent-apartment .rent-amenities-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #modal-add-rent-apartment .amenity-checkbox {
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* Кнопки загрузки фото на мобильном */
  #modal-add-rent-apartment .rent-photo-actions-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
  }

  #modal-add-rent-apartment .btn-upload-photo {
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
  }

  /* Строки из двух полей ввода в форме жилья */
  #modal-add-rent-apartment .form-row-2 {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  @media (max-width: 580px) {
    #modal-add-rent-apartment .form-row-2 {
      flex-direction: column !important;
      gap: 10px !important;
    }
  }

  #modal-add-rent-apartment .form-row-2 .form-group {
    flex: 1 1 0% !important;
    min-width: 0 !important;
  }

  #modal-add-rent-apartment .modal-footer {
    position: static !important;
    bottom: auto !important;
    box-shadow: none !important;
    padding: 16px 0 8px 0 !important;
    margin-top: 14px !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Каталог жилья (#modal-rent-catalog) на весь экран мобильного */
  #modal-rent-catalog.modal-backdrop,
  #modal-rent-catalog:not(.hidden) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 100050 !important;
  }

  #modal-rent-catalog .full-page-modal-card {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  #modal-rent-catalog .catalog-scroll-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 8px max(36px, calc(20px + env(safe-area-inset-bottom, 16px))) 8px !important;
    box-sizing: border-box !important;
  }

  /* Сегментный переключатель в модалке жилья */
  .rent-period-segmented-switch {
    height: 44px !important;
    padding: 3px !important;
    gap: 4px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  .rent-period-switch-btn {
    height: 38px !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
  }

  .rent-filter-icon-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

  /* Сетка фильтров жилья */
  .rent-drawer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .rent-drawer-col {
    min-width: 0 !important;
  }

  .rent-drawer-col .filter-mini-select,
  .rent-drawer-col .filter-mini-input {
    height: 38px !important;
    font-size: 0.84rem !important;
  }
}

/* Стили кнопки изменения номера телефона пассажира */
.btn-edit-phone-pill {
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: #2563eb !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1.2 !important;
}

.btn-edit-phone-pill:hover,
.btn-edit-phone-pill:active {
  background: rgba(37, 99, 235, 0.16) !important;
  transform: scale(0.96) !important;
}

body.dark-theme .btn-edit-phone-pill {
  background: rgba(96, 165, 250, 0.15) !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
  color: #93c5fd !important;
}

.passenger-phone-edit-box {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 6px !important;
  animation: fadeInModal 0.2s ease !important;
}

.passenger-phone-edit-box.hidden {
  display: none !important;
}



