/* ==========================================================================
   Vgorode Design System — Base (Reset, Typography, CSS Variables, Global Utilities)
   ========================================================================== */

/* ==========================================================================
   В ГОРОДЕ (Vgorode) - Чистый, лаконичный светлый дизайн в стиле inDrive
   ГЛОБАЛЬНОЕ ПРАВИЛО: Максимальное начертание шрифтов — MEDIUM (500)! Никаких 600/700/800.
   Палитра: Белый (#FFFFFF), Серый (#F8FAFC / #F1F5F9), Акцент Lime (#C6FF00), Текст (#0F172A)
   ========================================================================== */

:root {
  /* Палитра светлой темы */
  --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;
  
  /* Фирменный лаймовый акцент ПроГород (Figma Brand Theme Node 2626:2) */
  --accent-lime: #B1EC52;
  --accent-lime-hover: #9edc3e;
  --accent-lime-tint: #EDF8DB;
  --accent-lime-glow: rgba(177, 236, 82, 0.35);
  
  --accent-orange: #B1EC52;
  --accent-orange-hover: #9edc3e;
  --accent-orange-glow: rgba(177, 236, 82, 0.35);
  --accent-orange-light: #EDF8DB;
  --accent-orange-border: #E8EBE4;

  --accent-green: #10b981;
  --accent-blue: #2563eb;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  
  /* Шрифты */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  
  /* Тени */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 20px 45px -10px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   ГЛОБАЛЬНОЕ ПРАВИЛО: Максимальное начертание шрифтов — MEDIUM (500)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 400; /* Regular по умолчанию */
  -webkit-tap-highlight-color: transparent;
}

b, strong, h1, h2, h3, h4, h5, h6, th {
  font-weight: 500; /* Максимум medium */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

body.in-fullscreen-map {
  overflow: hidden;
  height: 100vh;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-weight: 500;
  transition: all 0.15s ease;
}

input, select {
  font-family: inherit;
  font-weight: 500;
}

.hidden,
.modal-backdrop.hidden,
[id].hidden,
#mobile-main-menu.hidden,
#community-invite-modal.hidden,
#test-login-modal.hidden,
#passenger-login-modal.hidden,
#driver-gate-modal.hidden,
#driver-register-modal.hidden,
#route-search-modal.hidden,
#passenger-profile-modal.hidden,
#legal-docs-modal.hidden,
#publish-ride-modal.hidden,
#book-ride-modal.hidden,
#trip-rating-modal.hidden,
#finding-drivers-window.hidden {
  display: none !important;
}

/* Глобально: максимум medium (500) */
b, strong {
  font-weight: 500 !important;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 500 !important;
}

/* Контейнер приложения */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}


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

/* ==========================================================================
   УНИВЕРСАЛЬНЫЙ ЭТАЛОННЫЙ ДИЗАЙН ВСЕХ ПОЛЕЙ ВВОДА (INPUT, SELECT, TEXTAREA)
   ========================================================================== */
.modal-input,
.dif-input,
.addr-input,
.driver-chat-input,
.chat-input,
input[type="text"]:not(.clean-route-input):not(.figma-addr-field),
input[type="password"]:not(.clean-route-input):not(.figma-addr-field),
input[type="tel"]:not(.clean-route-input):not(.figma-addr-field),
input[type="number"]:not(.clean-route-input):not(.figma-addr-field),
input[type="email"]:not(.clean-route-input):not(.figma-addr-field) {
  display: block;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 13px;
  font-size: 0.94rem;
  font-family: inherit;
  font-weight: 500;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  outline: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  -webkit-appearance: none;
  appearance: none;
}

.modal-input:hover,
.dif-input:hover,
input[type="text"]:not(.clean-route-input):not(.figma-addr-field):hover,
input[type="password"]:not(.clean-route-input):not(.figma-addr-field):hover,
input[type="tel"]:not(.clean-route-input):not(.figma-addr-field):hover,
input[type="number"]:not(.clean-route-input):not(.figma-addr-field):hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

.modal-input:focus,
.dif-input:focus,
input[type="text"]:not(.clean-route-input):not(.figma-addr-field):focus,
input[type="password"]:not(.clean-route-input):not(.figma-addr-field):focus,
input[type="tel"]:not(.clean-route-input):not(.figma-addr-field):focus,
input[type="number"]:not(.clean-route-input):not(.figma-addr-field):focus {
  border-color: #B1EC52;
  background-color: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(177, 236, 82, 0.25), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.modal-input::placeholder,
.dif-input::placeholder,
input::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 400;
}

/* Глобальная стилизация для ВСЕХ выпадающих списков со скруглением */
select,
select.modal-input,
select.form-select,
.form-select {
  display: block;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 13px;
  padding-right: 38px;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 500;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

select:hover,
select.modal-input:hover,
select.form-select:hover,
.form-select:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

select:focus,
select.modal-input:focus,
select.form-select:focus,
.form-select:focus {
  border-color: #ff6b00;
  background-color: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(255, 107, 0, 0.15);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  text-align: left;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: #334155;
  letter-spacing: -0.01em;
  display: block;
}

.form-row-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.form-row-2 > * {
  min-width: 0 !important;
  margin-bottom: 0 !important;
}

/* Подписка ЮKassa */
.sub-card {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.sub-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
}

.sub-status {
  font-size: 0.88rem;
  color: var(--accent-green);
  font-weight: 500;
}

.sub-price {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
}

.btn-yookassa {
  padding: 9px 0;
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.82rem;
  text-align: center;
}

.tariffs-box {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tariffs-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tariff-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tariff-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.stepper-mini {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stepper-mini button {
  width: 24px;
  height: 28px;
  font-weight: 500;
  color: var(--text-muted);
}
.stepper-mini button:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.stepper-mini input {
  width: 100%;
  border: none;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
}

.btn-save-tariffs {
  padding: 8px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-main);
}

.toast-note {
  font-size: 0.88rem;
  color: var(--accent-green);
  text-align: center;
  font-weight: 500;
}

/* Радар заказов */
.radar-box {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.radar-title {
  font-size: 0.82rem;
  font-weight: 500;
}

.radar-tag {
  font-size: 0.84rem;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.radar-route {
  font-size: 0.90rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radar-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.radar-btns {
  display: flex;
  gap: 6px;
}

.btn-radar-accept {
  flex: 1;
  padding: 8px 0;
  background: var(--accent-green);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.8rem;
}

.btn-radar-counter {
  flex: 1;
  padding: 8px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.8rem;
}

/* Офлайн карты */
.offline-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 400;
}

.offline-status-box {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offline-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
}

.offline-bar {
  height: 5px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.offline-bar-fill {
  height: 100%;
  background: var(--accent-green);
}

.offline-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
}


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

/* ==========================================================================
   ГЛОБАЛЬНОЕ СКРЫТИЕ ПОЛОС ПРОКРУТКИ (Убираем нижний горизонтальный скролл везде)
   ========================================================================== */
.search-quick-favs,
.initial-quick-chips,
.route-alt-chips,
.quick-cities-bar,
.chat-quick-chips,
.rating-chips-wrap,
.tips-chips-row,
.quick-chips-row,
.bids-chips,
.loaders-chips,
.search-page-body,
.search-page-footer,
.modal-body,
.no-scrollbar {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE / Edge */
}

.search-quick-favs::-webkit-scrollbar,
.initial-quick-chips::-webkit-scrollbar,
.route-alt-chips::-webkit-scrollbar,
.quick-cities-bar::-webkit-scrollbar,
.chat-quick-chips::-webkit-scrollbar,
.rating-chips-wrap::-webkit-scrollbar,
.tips-chips-row::-webkit-scrollbar,
.quick-chips-row::-webkit-scrollbar,
.bids-chips::-webkit-scrollbar,
.loaders-chips::-webkit-scrollbar,
.search-page-body::-webkit-scrollbar,
.search-page-footer::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}


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

/* ==========================================================================
   ГЛОБАЛЬНОЕ ПРАВИЛО: СТРОЖАЙШИЙ ЗАПРЕТ ПЕРЕНОСА НОМЕРОВ ТЕЛЕФОНОВ И ТЕКСТА
   ========================================================================== */
.direct-phone-text,
.direct-phone-text strong,
.catalog-card-phone,
.card-phone,
.prop-phone,
.driver-phone,
.phone-number,
.btn-card-call,
.btn-card-taxi,
.btn-card-msg,
.catalog-card-price,
.catalog-spec-item,
.direct-contact-pill,
.rent-badge-free,
.prop-price-val,
a[href^="tel"],
[data-phone] {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Адреса точек маршрута водителя: перенос без обрезания текста */
.prop-point-val,
.driver-proposal-card .prop-point-val {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.catalog-direct-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 9px;
  padding: 5px 9px;
  font-size: 0.81rem;
  margin: 4px 0 6px 0;
  box-sizing: border-box;
}

.direct-contact-pill {
  color: #047857;
  font-weight: 500;
  font-size: 0.76rem;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.direct-phone-text {
  color: #065f46;
  font-weight: 500;
  font-size: 0.82rem;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0;
  margin-left: auto;
}


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

/* ==========================================================================
   СКРЫТИЕ СКРОЛЛБАРА (ЛАКОНИЧНЫЙ БЕСШОВНЫЙ ВИД БЕЗ ПОЛОС ПРОКРУТКИ)
   ========================================================================== */
.side-panel,
.panel-section,
.booking-card,
.driver-board-card,
.driver-proposals-section,
.driver-proposals-container,
.catalog-cards-container,
.rideshare-trips-list,
.proposals-list,
.custom-city-list,
#driver-proposals-list,
#rent-panel-cards-container,
#cafe-panel-cards-container,
#leisure-panel-cards-container {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.side-panel::-webkit-scrollbar,
.panel-section::-webkit-scrollbar,
.booking-card::-webkit-scrollbar,
.driver-board-card::-webkit-scrollbar,
.driver-proposals-section::-webkit-scrollbar,
.driver-proposals-container::-webkit-scrollbar,
.catalog-cards-container::-webkit-scrollbar,
.rideshare-trips-list::-webkit-scrollbar,
.proposals-list::-webkit-scrollbar,
.custom-city-list::-webkit-scrollbar,
#driver-proposals-list::-webkit-scrollbar,
#rent-panel-cards-container::-webkit-scrollbar,
#cafe-panel-cards-container::-webkit-scrollbar,
#leisure-panel-cards-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}


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

/* ==========================================================================
   СКРЫТИЕ СКРОЛЛБАРОВ (SCROLLBAR HIDING) ПО ВСЕМУ ИНТЕРФЕЙСУ
   ========================================================================== */
.side-panel,
.side-panel-content,
.panel-section,
.booking-card,
.driver-proposals-container,
.catalog-cards-container,
.catalog-scroll-body,
.my-requests-container,
.rideshare-list-container,
.custom-city-list,
.modal-body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.side-panel::-webkit-scrollbar,
.side-panel-content::-webkit-scrollbar,
.panel-section::-webkit-scrollbar,
.booking-card::-webkit-scrollbar,
.driver-proposals-container::-webkit-scrollbar,
.catalog-cards-container::-webkit-scrollbar,
.catalog-scroll-body::-webkit-scrollbar,
.my-requests-container::-webkit-scrollbar,
.rideshare-list-container::-webkit-scrollbar,
.custom-city-list::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

