/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
  padding: 20px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
}
.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: var(--terracotta);
}
.breadcrumbs span {
  color: var(--gray-light);
}
.breadcrumbs .current {
  color: var(--chocolate);
  font-weight: 500;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-section {
  padding: 40px 0;
  background: var(--white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}
.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 600px;
  cursor: pointer;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-main img.transitioning {
  opacity: 0;
}
.gallery-main:hover img {
  transform: scale(1.02);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: var(--chocolate);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.gallery-nav:hover {
  background: var(--terracotta);
  color: var(--white);
}
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow-y: auto;
  max-height: 600px;
  padding-right: 4px;
  align-content: start;
}
.gallery-thumbs img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  opacity: 0.7;
  display: block;
}
.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
}
.gallery-thumbs::-webkit-scrollbar { width: 6px; }
.gallery-thumbs::-webkit-scrollbar-track { background: var(--cream); border-radius: 3px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--terracotta-light); border-radius: 3px; }
.gallery-thumbs::-webkit-scrollbar-thumb:hover { background: var(--terracotta); }

.show-more-photos {
  display: none;
  margin: 20px auto 0;
  padding: 12px 28px;
  background: var(--cream);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--terracotta);
  transition: all 0.3s;
}
.show-more-photos:hover {
  background: var(--terracotta);
  color: var(--white);
}

/* ===== ОСНОВНАЯ ИНФОРМАЦИЯ ===== */
.apartment-details { padding: 60px 0; }
.details-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; }

.apartment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.apartment-header h1 { font-size: 36px; margin-bottom: 12px; color: var(--chocolate); }
.apartment-header .apartment-location { display: flex; align-items: center; color: var(--gray); font-size: 15px; }

.favorite-btn-large {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--chocolate);
  transition: all 0.3s;
  white-space: nowrap;
}
.favorite-btn-large:hover { border-color: var(--terracotta); color: var(--terracotta); }

.apartment-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 40px;
}
.spec-item { display: flex; align-items: center; gap: 16px; }
.spec-value { font-size: 16px; font-weight: 600; color: var(--chocolate); margin-bottom: 4px; }
.spec-label { font-size: 13px; color: var(--gray); }

.apartment-description { margin-bottom: 48px; }
.apartment-description h2 { font-size: 28px; margin-bottom: 20px; color: var(--chocolate); }
.apartment-description p { font-size: 15px; line-height: 1.8; color: var(--chocolate-light); margin-bottom: 16px; }

/* ===== БЛОК ХАРАКТЕРИСТИК С БУКВАМИ A, B, C ===== */
.apartment-features {
  margin-bottom: 48px;
}
.features-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  border-color: var(--terracotta-light);
  box-shadow: 0 12px 32px rgba(184, 115, 79, 0.15);
  transform: translateY(-6px);
}
.feature-letter {
  position: absolute;
  right: -35px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: all 0.4s ease;
  opacity: 0.9;
}
.feature-card:nth-child(odd) .feature-letter {
  color: var(--chocolate);
}
.feature-card:nth-child(even) .feature-letter {
  color: var(--terracotta);
}
.feature-card:hover .feature-letter {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}
.feature-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 50px;
}
.feature-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--chocolate);
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-content p {
  font-size: 13px;
  color: var(--chocolate-light);
  line-height: 1.6;
  margin: 0;
}

/* ===== ПРАВИЛА ПРОЖИВАНИЯ ===== */
.apartment-rules {
  margin-bottom: 48px;
}
.apartment-rules h2 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--chocolate);
}
.rules-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.rule-card-item {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  padding: 24px 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.rule-card-item:hover {
  border-color: var(--terracotta-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(184, 115, 79, 0.1);
}
.rule-card-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  transition: all 0.3s ease;
}
.rule-card-item:hover .rule-card-icon {
  background: var(--terracotta);
  color: var(--white);
}
.rule-card-icon svg {
  width: 24px;
  height: 24px;
}
.rule-card-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--chocolate);
  margin: 0;
}
.rule-card-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--chocolate-light);
  margin: 0;
}
.rules-cta {
  text-align: center;
}
.rules-cta .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
}
.rules-cta .btn-outline svg {
  transition: transform 0.3s ease;
}
.rules-cta .btn-outline:hover svg {
  transform: translateX(4px);
}

/* ===== БЛОК УДОБСТВ (ИСПРАВЛЕННЫЙ) ===== */
.apartment-amenities {
  margin-bottom: 48px;
}
.apartment-amenities .section-title {
  font-size: 28px;
  color: var(--chocolate);
  margin-bottom: 24px;
  position: relative;
  padding-left: 16px;
}
.apartment-amenities .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--terracotta);
  border-radius: 2px;
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.amenity-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all 0.3s ease;
}
.amenity-card:hover {
  border-color: var(--terracotta-light);
  background: var(--cream);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(184, 115, 79, 0.12);
}
.amenity-icon {
  width: 40px;
  height: 40px;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.amenity-icon svg {
  width: 100%;
  height: 100%;
}
.amenity-card:hover .amenity-icon {
  color: var(--terracotta-dark);
  transform: scale(1.1);
}
.amenity-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--chocolate);
  line-height: 1.3;
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.details-sidebar { position: sticky; top: 100px; height: fit-content; }
.booking-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(62, 39, 35, 0.1);
  margin-bottom: 24px;
}
.booking-price { margin-bottom: 24px; }
.price-amount { font-size: 32px; font-weight: 700; color: var(--chocolate); }
.price-period { font-size: 16px; color: var(--gray); }
.booking-form { margin-bottom: 24px; }
.booking-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.date-field { display: flex; flex-direction: column; gap: 6px; }
.date-field label, .booking-guests label {
  font-size: 12px;
  font-weight: 600;
  color: var(--chocolate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.date-field input, .booking-guests select {
  padding: 12px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}
.date-field input:focus, .booking-guests select:focus { border-color: var(--terracotta); }
.booking-guests { margin-bottom: 20px; }
.booking-guests select { width: 100%; padding: 12px; border: 1px solid var(--gray-light); border-radius: 8px; font-family: 'Montserrat', sans-serif; font-size: 14px; outline: none; cursor: pointer; }
.booking-summary { padding-top: 20px; border-top: 1px solid var(--gray-light); margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; color: var(--chocolate-light); }
.summary-total { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--gray-light); font-size: 18px; font-weight: 700; color: var(--chocolate); }
.booking-features { display: flex; flex-direction: column; gap: 12px; }
.booking-feature { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray); }

.location-card { background: var(--white); padding: 24px; border-radius: 16px; box-shadow: 0 4px 20px rgba(62, 39, 35, 0.06); }
.location-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--chocolate); }
.location-card > p { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.map-placeholder { margin-bottom: 16px; border-radius: 12px; overflow: hidden; }
.location-features { display: flex; flex-direction: column; gap: 12px; }
.location-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--chocolate); }

/* ===== ПОХОЖИЕ КВАРТИРЫ ===== */
.similar-apartments { padding: 60px 0; background: var(--cream-dark); }
.similar-apartments .section-title { margin-bottom: 32px; }

/* ===== ЛАЙТБОКС ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.lightbox.active {
  display: block;
  animation: lightboxFadeIn 0.3s ease;
}
.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image-container {
  max-width: 90%;
  max-height: 85vh;
  position: relative;
}
#lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#lightbox-image.loaded {
  opacity: 1;
  transform: translateX(0) scale(1);
}
#lightbox-image.slide-left {
  transform: translateX(-50px) scale(0.95);
}
#lightbox-image.slide-right {
  transform: translateX(50px) scale(0.95);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-50%) scale(1.1); }
.lightbox-info {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 24px;
  border-radius: 30px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  display: flex;
  gap: 20px;
  align-items: center;
  backdrop-filter: blur(10px);
}
#lightbox-counter { font-weight: 600; color: var(--terracotta-light); }
#lightbox-title { opacity: 0.9; }
.lightbox-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== МОДАЛЬНОЕ ОКНО (ИСПРАВЛЕННОЕ) ===== */
.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.booking-modal.active {
  display: flex;
}
.booking-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(62, 39, 35, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.booking-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 50px;
  box-shadow: 0 30px 80px rgba(62, 39, 35, 0.25);
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.booking-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chocolate);
  transition: all 0.2s;
  z-index: 10;
}
.booking-modal-close:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: rotate(90deg);
}
.booking-modal-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}
.booking-modal-header h2 {
  font-size: 32px;
  color: var(--chocolate);
  margin-bottom: 12px;
  position: relative;
  padding-left: 18px;
}
.booking-modal-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 28px;
  background: var(--terracotta);
  border-radius: 2px;
}
.booking-modal-apartment {
  font-size: 14px;
  color: var(--gray);
  padding-left: 22px;
}
.booking-modal-apartment strong {
  color: var(--chocolate);
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.booking-modal-body {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 50px;
  align-items: start;
}
.booking-modal-photo {
  position: sticky;
  top: 20px;
}
.booking-modal-photo img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(62, 39, 35, 0.12);
}

.booking-modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-form-group.full-width {
  grid-column: 1 / -1;
}
.modal-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--chocolate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--gray);
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}
.custom-input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: var(--chocolate);
  background: var(--white);
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
select.custom-input {
  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='%238B7E74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.custom-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 115, 79, 0.12);
}
.input-with-icon:focus-within .input-icon {
  color: var(--terracotta);
}
.custom-input::placeholder {
  color: var(--gray);
  opacity: 0.7;
}
textarea.custom-input {
  padding-top: 14px;
  min-height: 100px;
  resize: vertical;
}

.booking-info-box {
  background: #FFF9E6;
  border: 1.5px solid #FFE4B5;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 14px;
  color: var(--chocolate);
  font-size: 13px;
  line-height: 1.6;
}
.booking-info-box svg {
  flex-shrink: 0;
  color: var(--terracotta);
}
.booking-info-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
.booking-info-box p {
  margin: 0;
  color: var(--gray);
}

.booking-tariff {
  margin-top: 8px;
}
.booking-tariff h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--chocolate);
  margin-bottom: 10px;
}
.tariff-option {
  display: block;
  cursor: pointer;
}
.tariff-option input[type="radio"] {
  display: none;
}
.tariff-content {
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.2s;
}
.tariff-option input[type="radio"]:checked + .tariff-content {
  border-color: var(--terracotta);
  background: rgba(184, 115, 79, 0.05);
}
.tariff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.tariff-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--chocolate);
}
.tariff-check {
  width: 20px;
  height: 20px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.tariff-option input[type="radio"]:checked + .tariff-content .tariff-check {
  display: flex;
}
.tariff-desc {
  font-size: 12px;
  color: var(--gray);
}

.booking-total {
  background: var(--cream);
  padding: 20px;
  border-radius: 12px;
  margin-top: 8px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--chocolate-light);
  margin-bottom: 12px;
}
.total-divider {
  height: 1px;
  background: var(--gray-light);
  margin: 12px 0;
}
.total-final {
  font-size: 18px;
  font-weight: 700;
  color: var(--chocolate);
}

.booking-modal-submit {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 18px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}
.booking-modal-submit:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 115, 79, 0.35);
}
.booking-modal-submit svg {
  transition: transform 0.3s;
}
.booking-modal-submit:hover svg {
  transform: translateX(4px);
}

/* ===== КАСТОМНЫЕ DROPDOWN'Ы ===== */
.custom-dropdown-wrapper {
  position: relative;
  z-index: 10;
}
.custom-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  user-select: none;
}
.custom-dropdown-trigger:hover {
  border-color: var(--terracotta-light);
}
.custom-dropdown-wrapper.active .custom-dropdown-trigger {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 115, 79, 0.12);
}
.dropdown-trigger-icon {
  width: 18px;
  height: 18px;
  color: var(--gray);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.custom-dropdown-wrapper.active .dropdown-trigger-icon {
  color: var(--terracotta);
}
.dropdown-selected-text {
  flex: 1;
  font-size: 14px;
  color: var(--chocolate);
  font-family: 'Montserrat', sans-serif;
}
.dropdown-arrow {
  width: 16px;
  height: 16px;
  color: var(--gray);
  margin-left: auto;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.custom-dropdown-wrapper.active .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--terracotta);
}
.custom-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(62, 39, 35, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  max-height: 200px;
  overflow-y: auto;
  pointer-events: none;
}
.custom-dropdown-wrapper.active .custom-dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-option {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--chocolate);
  cursor: pointer;
  transition: background 0.15s;
}
.dropdown-option:hover {
  background: var(--cream);
  color: var(--terracotta);
}
.dropdown-option.selected {
  background: var(--cream-dark);
  color: var(--terracotta);
  font-weight: 600;
}
.custom-dropdown-list::-webkit-scrollbar {
  width: 6px;
}
.custom-dropdown-list::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 3px;
}
.custom-dropdown-list::-webkit-scrollbar-thumb {
  background: var(--terracotta-light);
  border-radius: 3px;
}

/* ===== ОТЗЫВЫ С ПОШАГОВОЙ ЗАГРУЗКОЙ ===== */
.apartment-reviews {
  padding: 80px 0;
  background: var(--cream);
}
.apartment-reviews .section-title {
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--chocolate);
  position: relative;
  padding-left: 20px;
}
.apartment-reviews .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 40px;
  background: var(--terracotta);
  border-radius: 2px;
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}
.review-item {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(62, 39, 35, 0.06);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.review-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--chocolate);
}
.review-date {
  font-size: 12px;
  color: var(--gray);
}
.review-rating {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.review-stars .star {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.icon-star {
  width: 18px;
  height: 18px;
  fill: var(--terracotta);
  stroke: var(--terracotta);
}
.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--chocolate-light);
  margin: 0;
}
#show-more-reviews {
  margin: 32px auto 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
#show-more-reviews:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-2px);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.review-item-new {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

/* ===== ЯНДЕКС КАРТА ===== */
#yandex-map {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 12px;
  border: 1px solid var(--gray-light);
}
.map-external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}
.map-external-link:hover {
  color: var(--terracotta-dark);
  transform: translateX(4px);
}
.map-external-link svg {
  width: 16px;
  height: 16px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
  .booking-modal-content {
    width: 95%;
    padding: 40px;
  }
  .booking-modal-body {
    grid-template-columns: 350px 1fr;
    gap: 40px;
  }
}
@media (max-width: 1024px) {
  .details-grid { grid-template-columns: 1fr; }
  .details-sidebar { position: static; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-main { height: 400px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); max-height: none; }
  .apartment-specs { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .rules-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-cards { grid-template-columns: repeat(2, 1fr); }
  .feature-letter { font-size: 160px; right: -25px; }
  .booking-modal-content { width: 95%; padding: 32px; }
  .booking-modal-body { grid-template-columns: 1fr; gap: 30px; }
  .booking-modal-photo { position: static; }
  .booking-modal-photo img { height: 280px; }
  .apartment-reviews .section-title { font-size: 32px; }
}
@media (max-width: 768px) {
  .apartment-header { flex-direction: column; }
  .apartment-header h1 { font-size: 28px; }
  .apartment-specs { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .amenity-card { padding: 16px 12px; }
  .amenity-icon { width: 32px; height: 32px; }
  .amenity-name { font-size: 12px; }
  .apartment-amenities .section-title { font-size: 22px; }
  .booking-dates { grid-template-columns: 1fr; }
  .gallery-main { height: 280px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .lightbox-prev, .lightbox-next { width: 45px; height: 45px; font-size: 24px; }
  .lightbox-prev { left: 15px; }
  .lightbox-next { right: 15px; }
  .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 20px; }
  .lightbox-info { bottom: 15px; padding: 10px 16px; font-size: 12px; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .rules-cards-grid { grid-template-columns: 1fr; }
  .rules-cta .btn-outline { width: 100%; justify-content: center; }
  .features-cards { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { min-height: 160px; padding: 24px 20px 20px; }
  .feature-letter { font-size: 140px; right: -20px; }
  .feature-content { padding-right: 40px; }
  .feature-content h4 { font-size: 15px; }
  .booking-modal-content { width: 98%; padding: 24px 20px; max-height: 95vh; }
  .booking-modal-header h2 { font-size: 24px; }
  .modal-form-row { grid-template-columns: 1fr; gap: 16px; }
  .booking-modal-photo img { height: 220px; }
  .apartment-reviews { padding: 60px 0; }
  .apartment-reviews .section-title { font-size: 28px; }
  .review-item { padding: 20px; }
  .review-avatar { width: 44px; height: 44px; font-size: 16px; }
  #show-more-reviews { width: 100%; justify-content: center; }
  #yandex-map { height: 250px; }
}


/* ===== ИСПРАВЛЕНИЕ ОГРОМНЫХ ИКОНОК В МОДАЛКЕ ===== */
.custom-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-input-wrapper .custom-input-icon {
  position: absolute;
  left: 14px;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  color: var(--gray);
  pointer-events: none;
  z-index: 2;
  flex-shrink: 0;
}

/* Принудительно ограничиваем все SVG внутри кастомных врапперов */
.custom-input-wrapper svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

/* Инпуты внутри wrapper должны иметь отступ слева под иконку */
.custom-input-wrapper .custom-input {
  padding-left: 44px !important;
}

/* Для select — добавляем отступ справа под стрелку */
.custom-input-wrapper select.custom-input {
  padding-right: 36px !important;
}
/* ===== ИСПРАВЛЕНИЕ ШИРИНЫ МОДАЛЬНОГО ОКНА ===== */
.booking-modal-content {
  width: 95% !important;
  max-width: 1200px !important; /* Делаем модалку широкой, но оставляем красивые отступы */
  min-width: auto !important;
  padding: 40px !important;
}

.booking-modal-body {
  grid-template-columns: 450px 1fr !important; /* Левая колонка с фото, правая с формой */
  gap: 40px !important;
}

.booking-modal-photo img {
  height: 400px !important; /* Увеличиваем фото квартиры */
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .booking-modal-content {
    width: 95% !important;
    padding: 32px !important;
  }
  .booking-modal-body {
    grid-template-columns: 1fr !important; /* На планшетах блоки встают друг под друга */
  }
  .booking-modal-photo img {
    height: 280px !important;
  }
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 768px) {
  .booking-modal-content {
    width: 98% !important;
    padding: 24px 20px !important;
  }
  .booking-modal-photo img {
    height: 220px !important;
  }
}


/* ===== Выбор гостей в модалке бронирования ===== */
.guests-trigger {
  text-align: left;
  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='%238B7E74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.guests-panel {
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guests-panel[hidden] { display: none; }
.guests-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guests-row-label { display: flex; flex-direction: column; gap: 2px; color: var(--chocolate); font-size: 14px; }
.guests-row-label small { color: var(--gray); font-size: 12px; }
.guests-stepper { display: flex; align-items: center; gap: 14px; }
.guests-stepper span { min-width: 20px; text-align: center; font-weight: 600; color: var(--chocolate); }
.guests-stepper button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
  background: var(--white);
  color: var(--terracotta);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.guests-stepper button:hover:not(:disabled) { background: var(--terracotta); color: var(--white); }
.guests-stepper button:disabled { opacity: 0.35; cursor: not-allowed; border-color: var(--gray-light); color: var(--gray); }
.guests-children { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--gray-light); }
.guests-child-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--chocolate); padding-top: 10px; }
.guests-age-select {
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--chocolate);
  background: var(--white);
  min-width: 130px;
  cursor: pointer;
}
.guests-hint { font-size: 12px; line-height: 1.5; color: var(--gray); margin: 0; }
.total-discount span:last-child { color: #2E7D32; font-weight: 600; }
