/* ==========================================================================
   Vgorode Catalogs & Services (Carpooling/Rideshare, Daily Rentals, Dining, Leisure, Sidebar Panels)
   ========================================================================== */

/* ==========================================================================
   15. СТИЛИ РАЗДЕЛА «ПОПУТЧИКИ» (CARPOOLING / RIDESHARE)
   ========================================================================== */
.rideshare-panel-card,
.proposals-panel-card {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.rideshare-header-top,
.proposals-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rideshare-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rideshare-top-icon {
  font-size: 1.35rem;
}
.rideshare-subtext {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.btn-create-ride-top {
  padding: 6px 12px;
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-create-ride-top:hover {
  background: var(--accent-orange-hover);
}
.rideshare-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.rs-filter-btn {
  padding: 5px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
}
.rs-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.rideshare-trips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rs-trip-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}
.rs-trip-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.rs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rs-time-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.90rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-input);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.rs-seats-badge {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.rs-seats-badge.available {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
}
.rs-seats-badge.full {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}
.rs-route-flow {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: var(--radius-md);
}
.rs-point-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.rs-point-city {
  font-weight: 500;
  color: var(--text-main);
}
.rs-point-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.rs-arrow-down {
  font-size: 13px;
  color: var(--text-subtle);
  margin-left: 3px;
  line-height: 1;
}
.rs-driver-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.90rem;
}
.rs-driver-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rs-driver-name {
  font-weight: 500;
  color: var(--text-main);
}
.rs-car-name {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.rs-price-tag {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent-orange);
}
.rs-comment-box {
  font-size: 0.86rem;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 5px 8px;
  border-radius: 6px;
}
.btn-rs-book {
  width: 100%;
  padding: 9px 0;
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px var(--accent-orange-glow);
}
.btn-rs-book:hover {
  background: var(--accent-orange-hover);
}
.btn-rs-waitlist {
  width: 100%;
  padding: 9px 0;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}
.rs-booked-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
}
.rs-booked-tag.confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
}
.rs-booked-tag.waitlist {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}
.btn-rs-cancel {
  background: transparent;
  border: none;
  color: var(--accent-red);
  font-size: 0.90rem;
  cursor: pointer;
  text-decoration: underline;
}
.rs-waitlist-alert {
  display: flex;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.90rem;
  color: #92400e;
  line-height: 1.4;
}
.rs-seats-selector-row {
  display: flex;
  gap: 8px;
}
.rs-seat-btn.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.rs-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
}
.rs-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}


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

/* ==========================================================================
   18. НОВЫЕ МОДУЛИ: АРЕНДА (ПОСУТОЧНО), КАФЕ И РЕСТОРАНЫ, РАЗВЛЕЧЕНИЯ И ОТДЫХ
   (Эргономика Яндекс Go, font-weight <= 500, 5px боковые отступы)
   ========================================================================== */

/* --- Личный кабинет арендодателя (Сдача жилья) --- */
.lk-rent-section {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lk-rent-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.lk-rent-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.rent-limit-pill {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.rent-antiagent-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #166534;
  line-height: 1.45;
}

.rent-antiagent-note strong {
  color: #15803d;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.antiagent-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.rent-sub-status-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rent-sub-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-dot-active {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.rent-sub-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  display: block;
}

.rent-sub-desc {
  font-size: 0.82rem;
  color: #059669;
  display: block;
}

.btn-sub-renew-sm {
  background: var(--accent-orange);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px var(--accent-orange-glow);
}

.btn-sub-renew-sm:hover {
  background: var(--accent-orange-hover);
}

.user-rent-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.user-rent-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  position: relative;
}

.user-rent-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.user-rent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-rent-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-rent-price {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent-orange);
}

.user-rent-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.user-rent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-rent-status-toggle {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.btn-rent-status-toggle.active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.btn-rent-del {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-add-apartment {
  min-height: 50px;
  font-size: 1rem;
  border-radius: 14px;
  margin-top: 6px;
}

.btn-add-apartment:disabled,
.btn-add-apartment.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #94a3b8 !important;
  box-shadow: none !important;
}

.rent-limit-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 6px;
}

/* Чекбоксы удобств в форме квартиры */
.rent-amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.amenity-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.amenity-checkbox input[type="checkbox"] {
  accent-color: var(--accent-orange);
  width: 17px;
  height: 17px;
  margin: 0;
  cursor: pointer;
}

/* Полоса превью загруженных фото */
.rent-photos-preview-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
  margin-top: 6px;
}

.rent-photo-thumb-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
}

.rent-photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-del-photo {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}


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

/* --- Каталоги (Аренда, Кафе, Развлечения) --- */
.catalog-badge-pill {
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.25);
  color: var(--accent-orange);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
}

.catalog-scroll-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.catalog-hero-banner {
  flex-shrink: 0 !important;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 5px;
}

.catalog-free-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.catalog-hero-banner.rent-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border: 1.5px solid #fed7aa;
}

.catalog-hero-banner.cafe-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid #bbf7d0;
}

.catalog-hero-banner.leisure-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1.5px solid #bfdbfe;
}

.catalog-banner-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
}

.catalog-banner-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Скрытие чипов фильтрации аренды по требованию */
#rent-city-filters,
#rent-type-filters {
  display: none !important;
}

/* Переключатель жилья в стиле чипов «Все города / Все посуточно» */
.rent-period-segmented-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: transparent;
  padding: 0;
  border: none;
}
.rent-period-switch-btn {
  flex: 1;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.rent-period-switch-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}
.rent-period-switch-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15) !important;
}

/* Фильтры чипов с горизонтальным скроллом (не сжимаются во флекс-контейнере) */
.catalog-filter-scroll,
.catalog-subfilter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0 !important;
  min-height: 44px;
  padding: 4px 5px 8px 5px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.catalog-subfilter-scroll {
  min-height: 38px;
  padding: 0 5px 4px 5px;
  gap: 6px;
}

.catalog-filter-scroll::-webkit-scrollbar,
.catalog-subfilter-scroll::-webkit-scrollbar {
  display: none !important;
}

.catalog-filter-scroll,
.catalog-subfilter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.catalog-filter-scroll::-webkit-scrollbar,
.catalog-subfilter-scroll::-webkit-scrollbar {
  display: none;
}

.catalog-chip {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-pill, 999px);
  height: 32px;
  padding: 0 13px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.catalog-chip:hover {
  border-color: #cbd5e1;
  color: var(--text-main, #0f172a);
}

.catalog-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}

.catalog-subchip {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-pill, 999px);
  height: 30px;
  padding: 0 12px;
  font-size: 0.80rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.catalog-subchip:hover {
  border-color: #cbd5e1;
  color: var(--text-main, #0f172a);
}

.catalog-subchip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}


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

/* ==========================================================================
   Панели каталогов в левом сайдбаре десктопа (Аренда, Кафе, Отдых)
   ========================================================================== */
.catalog-panel-card {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  gap: 12px;
  scrollbar-width: thin;
}

.catalog-panel-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-panel-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.catalog-panel-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.catalog-free-guarantee-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-green-bg, #ecfdf5);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 10px;
  border-radius: var(--radius-md, 10px);
  font-size: 0.80rem;
  font-weight: 500;
  color: #047857;
}

/* Выпадающий список выбора города в каталогах */
.catalog-city-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.catalog-city-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.catalog-city-pin {
  font-size: 1.15rem;
  line-height: 1;
}

.catalog-city-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main, #0f172a);
  white-space: nowrap;
}

.catalog-city-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 220px;
}

.catalog-city-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-subtle, #f8fafc);
  border: 1.5px solid var(--border-light, #cbd5e1);
  border-radius: 10px;
  padding: 7px 28px 7px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main, #0f172a);
  cursor: pointer;
  outline: none;
  transition: all 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-city-select:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.catalog-city-select:focus {
  border-color: #ff6b00;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}

.catalog-city-arrow-icon {
  position: absolute;
  right: 9px;
  pointer-events: none;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Комфортная ширина сайдбара на десктопе для каталогов и заявок */
@media (min-width: 769px) {
  body.role-rent .side-panel,
  body.role-cafe .side-panel,
  body.role-leisure .side-panel,
  body.role-driver-requests .side-panel {
    width: 420px;
  }
}

@media (max-width: 768px) {
  body.role-rent .catalog-panel-card,
  body.role-cafe .catalog-panel-card,
  body.role-leisure .catalog-panel-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;
  }
}

/* Контейнер карточек с обязательным 5px отступом на мобильных */
.catalog-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 5px;
  box-sizing: border-box;
}

/* Карточки объектов (Аренда, Кафе, Отдых) */
.catalog-item-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.catalog-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.catalog-card-image-wrap {
  position: relative;
  width: 100%;
  height: 184px;
  background: #0f172a;
  overflow: hidden;
  user-select: none;
}

.catalog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.15s ease;
}

.catalog-item-card:hover .catalog-card-img {
  transform: scale(1.02);
}

/* DNS / Avito hover mini-gallery */
.gallery-hover-zones {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 6;
  cursor: pointer;
}

.gallery-hover-zone {
  flex: 1 1 0%;
  height: 100%;
  background: transparent;
}

.gallery-indicators-bar {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 7;
  pointer-events: none;
}

.gallery-indicator-dot {
  flex: 1 1 0%;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.gallery-indicator-dot.active {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.catalog-card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.card-badge-left {
  display: flex;
  gap: 6px;
}

.catalog-tag {
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.catalog-tag.highlight {
  background: rgba(15, 23, 42, 0.88);
  color: #ffedd5;
  border-color: rgba(255, 107, 0, 0.5);
}

.catalog-card-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.catalog-card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.3;
}

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

.catalog-card-addr-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.catalog-card-specs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #334155;
}

.catalog-spec-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 3px 8px;
}

.catalog-card-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.45;
}

/* Действия в карточке (Прямой звонок, WhatsApp, Поехать на такси) */
.catalog-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.catalog-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* Кнопка звонка: элегантная, ненавязчивая, статусная */
.btn-card-call {
  flex: 1;
  height: 42px;
  min-height: 42px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}

.btn-card-call:hover {
  background: #d1fae5;
  border-color: rgba(16, 185, 129, 0.5);
  color: #065f46;
}

.btn-card-call:active {
  transform: scale(0.98);
}

/* Кнопка такси: главный транспортный CTA сервиса */
.btn-card-taxi {
  flex: 1.15;
  height: 42px;
  min-height: 42px;
  background: var(--accent-orange, #ff6b00);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px var(--accent-orange-glow);
}

.btn-card-taxi:hover {
  background: var(--accent-orange-hover, #e05e00);
  box-shadow: 0 3px 12px var(--accent-orange-glow);
}

.btn-card-taxi:active {
  transform: scale(0.98);
}

/* Кнопка WhatsApp */
.btn-card-msg {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  background: var(--bg-input, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-card-msg:hover {
  background: var(--bg-hover, #f1f5f9);
  border-color: #cbd5e1;
}

.btn-card-msg:active {
  transform: scale(0.96);
}

/* Плашка партнерства для владельцев бизнеса */
.partner-cta-card {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.partner-cta-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
}

.partner-cta-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 440px;
}

/* Модалка подписки арендодателя */
.rent-sub-modal-card {
  max-width: 440px;
  width: 95%;
  border-radius: 20px;
}

.sub-plans-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-plan-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sub-plan-card.active {
  border-color: var(--accent-orange);
  background: #fff7ed;
  box-shadow: 0 0 0 1px var(--accent-orange);
}

.sub-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sub-plan-duration {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-main);
}

.sub-plan-price {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--accent-orange);
}

.sub-plan-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.sub-plan-desc {
  font-size: 0.80rem;
  color: var(--text-muted);
}

.payment-methods-row {
  display: flex;
  gap: 8px;
}

.btn-pay-method {
  flex: 1;
  min-height: 44px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pay-method.active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}


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

/* ==========================================================================
   ПАНЕЛЬ УПРАВЛЕНИЯ КАТАЛОГОМ: ФИЛЬТРЫ И СОРТИРОВКА
   ========================================================================== */
.catalog-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 10px 0;
}

.catalog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap !important;
}

.catalog-filter-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.catalog-filter-btn.active {
  background: #ff6b00;
  border-color: #ff6b00;
  color: #ffffff;
}

.filter-count-badge {
  background: #ff6b00;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 10px;
}

.catalog-filter-btn.active .filter-count-badge {
  background: #ffffff;
  color: #ff6b00;
}

.catalog-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 8px;
  height: 34px;
  transition: all 0.16s ease;
}

.catalog-sort-wrap:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.sort-icon {
  font-size: 0.88rem;
  color: #64748b;
  user-select: none;
}

.catalog-sort-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  padding-right: 4px;
  white-space: nowrap !important;
}

/* Раскрывающийся блок фильтров */
.catalog-filters-expandable {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideDownFade 0.2s ease-out;
}

.catalog-filters-expandable.hidden {
  display: none !important;
}

.filters-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filter-mini-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap !important;
}

.filter-price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-mini-input {
  width: 100%;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 10px;
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 500;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px !important;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-mini-input:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.filter-currency-sign {
  position: absolute;
  right: 10px;
  font-size: 0.8rem;
  color: #94a3b8;
  pointer-events: none;
}

.filter-mini-select {
  width: 100%;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 28px 0 10px;
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 500;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px !important;
  outline: none;
  background-color: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' 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 8px center;
  background-size: 15px 15px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-mini-select:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.filter-amenities-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap !important;
  color: #334155;
}

.filter-chip-checkbox:hover {
  border-color: #94a3b8;
}

.btn-reset-filters {
  margin-left: auto;
  padding: 3px 8px;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap !important;
}

.btn-reset-filters:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* Dark mode for toolbar */
.dark-theme .catalog-filter-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
.dark-theme .catalog-sort-wrap {
  background: #1e293b;
  border-color: #334155;
}
.dark-theme .catalog-sort-select {
  color: #e2e8f0;
}
.dark-theme .catalog-filters-expandable {
  background: #1e293b;
  border-color: #334155;
}
.dark-theme .filter-mini-input,
.dark-theme .filter-mini-select,
.dark-theme .filter-chip-checkbox {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

/* Переключение нижнего навбара на мобильных */
@media (max-width: 768px) {
  body.app-mode-passenger:not(.nav-active):not(.in-navigation-view) #mobile-bottom-nav {
    display: flex !important;
  }
  body.app-mode-passenger #driver-bottom-nav {
    display: none !important;
  }
  body.app-mode-driver #mobile-bottom-nav {
    display: none !important;
  }
  body.app-mode-driver:not(.nav-active):not(.in-navigation-view) #driver-bottom-nav {
    display: flex !important;
  }
  body.nav-active #mobile-bottom-nav,
  body.nav-active #driver-bottom-nav,
  body.in-navigation-view #mobile-bottom-nav,
  body.in-navigation-view #driver-bottom-nav {
    display: none !important;
    visibility: hidden !important;
  }
}


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

/* ==========================================================================
   КАТАЛОГИ: КЛИКАБЕЛЬНОСТЬ КАРТОЧЕК И ПРЕМИУМ ХОВЕР
   ========================================================================== */
.catalog-item-card {
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.catalog-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(249, 115, 22, 0.45);
}

.catalog-item-card:active {
  transform: translateY(-1px) scale(0.995);
}

.catalog-card-image-wrap {
  position: relative;
  overflow: hidden;
}

.catalog-card-click-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.catalog-item-card:hover .catalog-card-click-hint {
  opacity: 1;
  background: rgba(249, 115, 22, 0.9);
}

