/* Стили для страницы детального просмотра услуги */
.header {
    border-bottom: none;
}

.extra-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Стили для блока с информацией об объекте */
.reviews-title {
    font-size: 28px;
    font-weight: 400;
    margin: -100px 0 10px 0;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

.property-image img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 10px;
}

/* Стили для галереи изображений - скопированы из guest-ads-detail.css */
.photo-gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.main-photos {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

.photo-wrapper {
    position: relative;
    flex: 1;
    /* Раньше была фиксированная высота 400px, из‑за чего портретные фото выглядели узкими.
       Переключаемся на соотношение сторон, чтобы блоки всегда тянулись на всю ширину,
       а изображение заполняло их без «письма» по бокам. */
    aspect-ratio: 3 / 4;
    height: auto;
    overflow: hidden;
    border-radius: 20px;
}

/* Ориентации: тянем блоки до нужного соотношения, чтобы меньше кадрировать центр */
.photo-wrapper.landscape { aspect-ratio: 16 / 9; }
.photo-wrapper.portrait  { aspect-ratio: 3 / 4; }

/* В десктопной галерее все изображения всегда горизонтальные */
.hide-mobile .photo-wrapper {
    aspect-ratio: 16 / 9 !important;
}

/* Фолбэк для старых браузеров без aspect-ratio */
@supports not (aspect-ratio: 1) {
    .photo-wrapper {
        height: 420px;
    }
    .photo-wrapper.landscape { height: 360px; }
    .photo-wrapper.portrait  { height: 480px; }
    
    /* Для десктопной версии */
    .hide-mobile .photo-wrapper {
        height: 360px !important;
    }
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-wrapper.left::before,
.photo-wrapper.right::before {
    content: "";
    position: absolute;
    top: 0;
    width: 70px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.photo-wrapper.left::before {
    left: 0;
    background: linear-gradient(to right, #f5f5f5, transparent);
}

.photo-wrapper.right::before {
    right: 0;
    background: linear-gradient(to left, #f5f5f5, transparent);
}

body.dark-theme .photo-wrapper.left::before {
    background: linear-gradient(to right, #383a3f, transparent);
}

body.dark-theme .photo-wrapper.right::before {
    background: linear-gradient(to left, #383a3f, transparent);
}

.photo-wrapper.center {
    flex: 2;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scroll-button.left {
    left: 10px;
}

.scroll-button.right {
    right: 10px;
}

/* Стили для gallery-module - должны быть доступны всегда */
.gallery-module {
    margin: 0px;
    padding: 0px;
}

.module {
    margin: 0px;
}

@media (max-width: 768px) {
    .gallery-module {
        margin: 0px;
        padding: 0px;
        display: block !important;
    }
    
}

/* Мобильная галерея - точно скопирована из guest-ads-detail.css */
@media (max-width: 768px) {
    .mobile-gallery {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 300px; /* Высота галереи */
        overflow: hidden;
        margin-top: -65px;
        margin-bottom: 30px;
        display: block !important;
    }

    .gallery-wrapper {
        display: flex;
        width: 100%;
        flex-direction: row;
        transition: transform 0.3s ease-in-out;
        touch-action: pan-x;
    }

    .gallery-item {
        flex: 0 0 100%; /* Каждое изображение занимает 100% ширины экрана */
        height: 100%;
        width: 100%;
    }

    .gallery-item img {
        width: 100%;
        height: 300px; /* Фиксированная высота для всех изображений */
        object-fit: cover; /* Обрезка для сохранения пропорций */
        object-position: center; /* Центрирование изображения */
    }

    /* Счетчик фотографий в правом нижнем углу */
    .gallery-counter {
        position: absolute;
        bottom: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 14px;
        font-weight: 500;
        z-index: 10;
    }

    .gallery-back, .gallery-wishlist {
        position: fixed;
        top: 10px;
        z-index: 10;
        background: #fff;
        box-shadow: 0 1px 10px #a3a3a3;
        border: none;
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .gallery-back {
        left: 10px;
    }

    .gallery-wishlist {
        right: 10px;
    }

    .fa-heartbeat {
        color: #228B22;
    }
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Основной макет */
.extra-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .extra-detail-layout {
        gap: 20px;
    }
}

/* Левая колонка - основное содержимое */
.extra-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Галерея изображений */
.image-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.no-image-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #999;
    font-size: 48px;
}

.no-image-placeholder p {
    margin-top: 10px;
    font-size: 16px;
}

/* Навигация по галерее */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

/* Миниатюры */
.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #228B22;
}

.thumbnail:hover {
    border-color: #228B22;
    opacity: 0.8;
}

/* Описание услуги */
.service-description {
    background: white;
    padding: 20px 0;
}

.service-main-title {
    font-size: 20px;
    font-weight: 600;
    color: #383a3f;
    margin-bottom: 15px;
    line-height: 1.3;
}

.description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #383a3f;
}

/* Блок информации о бронировании */
.booking-info-block {
    margin: 20px 0;
}

.booking-info-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.booking-info-text p {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.booking-info-text strong {
    color: #228B22;
    font-weight: 600;
}

/* Форма выбора дат бронирования */
.booking-dates-form {
    margin: 0;
}

.booking-dates-form h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Стили формы поиска с главной страницы */
.search-mainform-container {
    background-color: rgba(255, 255, 255, 1);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #228B22;
    box-shadow: 0 2px 4px rgba(34, 139, 34, 0.2);
    height: 65px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
    margin: 0 auto;
}

.input-mainform-group {
    background-color: #fff;
    color: #383a3f;
    position: relative;
    flex: 1;
}

.input-mainform-group:last-child {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Добавляем вертикальные линии через ::after */
.input-mainform-group:nth-last-child(n+3)::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
}

.input-mainform-group input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 14px;
    color: #383a3f;
    background: transparent;
}

.input-mainform-group input::placeholder {
    color: #999;
}

.search-btn {
    background: #228B22;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #1b6f1b;
}



/* Стили для планшетов */
@media (max-width: 1024px) and (min-width: 769px) {
    .search-mainform-container {
        max-width: 600px;
    }
}

/* Мобильные стили для блока бронирования */
@media (max-width: 768px) {
    .booking-info-block {
        margin: 15px 0;
    }
    
    .booking-info-text {
        padding: 15px;
    }
    
    .booking-info-text p {
        margin: 0 0 15px 0;
        font-size: 14px;
    }
    
    .booking-dates-form {
        margin: 0;
    }
    
    .booking-dates-form h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .search-mainform-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 12px;
        max-width: 100%;
    }
    
    .input-mainform-group {
        height: 45px;
    }
    
    .input-mainform-group:last-child {
        margin-left: 0;
    }
    
    .input-mainform-group:nth-last-child(n+3)::after {
        display: none;
    }
    
    .search-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Стили для развертывания описания */
.description-container {
    margin-top: 15px;
}

.description-text {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    line-height: 1.6;
    color: #383a3f;
}

.description-text p {
    margin: 0 0 15px 0;
    text-align: justify;
}

.description-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.description-text li {
    margin: 8px 0;
    line-height: 1.5;
}

.description-text strong {
    font-weight: bold;
    color: #383a3f;
}

.description-text.expanded {
    max-height: none;
}

.toggle-description {
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    margin-top: 5px;
    text-align: left;
    color: #666;
}

.toggle-description:hover {
    color: #228B22;
}

/* Блок с опциями */
.options-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 30px;
}

.options-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Карточки опций */
.option-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #228B22;
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.1);
}

.option-card.main-service {
    background: transparent;
    border-color: #e5e5e5;
}

/* Чекбокс */
.option-checkbox {
    margin-top: 5px;
}

/* Прячем чекбокс у основной услуги — она выбрана всегда по умолчанию */
.option-card.main-service .option-checkbox {
    display: none;
}

.option-checkbox input[type="checkbox"] {
    display: none;
}

.option-checkbox label {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.option-checkbox input[type="checkbox"]:checked + label {
    background: #228B22;
    border-color: #228B22;
}

.option-checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.option-checkbox input[type="checkbox"]:disabled + label {
    background: #228B22;
    border-color: #228B22;
    cursor: not-allowed;
}

.option-checkbox input[type="checkbox"]:disabled + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Изображение опции */
.option-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
}

/* Содержимое опции */
.option-content {
    flex: 1;
    min-width: 0;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.option-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

.option-quantity {
    flex-shrink: 0;
}

.option-price-section {
    flex-shrink: 0;
    text-align: right;
    min-width: 120px;
}

.option-price {
    font-size: 18px;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 4px;
}

.option-tariff {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Управление количеством и ценой */
.option-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
}

.qty-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #228B22;
}

.qty-btn:disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

.qty-input {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.qty-input:disabled {
    background: #f8f9fa;
    color: #ccc;
}

.option-price {
    font-size: 16px;
    font-weight: 600;
    color: #228B22;
    white-space: nowrap;
}

/* Итого и кнопка бронирования */
.booking-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.total-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.total-label {
    font-size: 18px;
    font-weight: 600;
    color: #228B22;
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #228B22;
}

.book-button {
    width: auto;
    max-width: 300px;
    padding: 15px 20px;
    background: #228B22;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.book-button:hover {
    background: #1e7a1e;
}

.book-button i {
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .service-title {
        font-size: 24px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .no-image-placeholder {
        height: 300px;
    }
    
    .option-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .option-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .option-content {
        text-align: center;
    }
    
    .option-quantity {
        display: flex;
        justify-content: center;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .option-price-section {
        text-align: center;
        min-width: auto;
    }
    
    .option-title {
        font-size: 16px;
    }
    
    .option-description {
        font-size: 14px;
    }
    
    .option-price {
        font-size: 16px;
    }
    
    .option-tariff {
        font-size: 11px;
    }
    
    .total-amount {
        font-size: 20px;
    }
    
    .book-button {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .option-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .option-price {
        text-align: center;
    }
    
    /* Мобильные стили для блока с информацией об объекте */
    .reviews-title {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: flex-start;
        font-size: 20px;
        margin-top: -4px;
        gap: 8px;
    }

    .ad-image img {
        width: 60%;
        height: auto;
        max-height: 180px;
        object-fit: cover;
        margin-right: 0;
        margin-bottom: 8px;
        border-radius: 12px;
    }

    /* Мобильные стили для галереи */
    .main-photos {
        flex-direction: column;
        gap: 5px;
    }
    
    .photo-wrapper {
        height: 200px;
        border-radius: 10px;
    }
    
    .photo-wrapper.center {
        flex: 1;
    }
    
    .scroll-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .scroll-button.left {
        left: 5px;
    }
    
    .scroll-button.right {
        right: 5px;
    }
}

/* Стили для блока объекта (точно скопированы из cart.css) */
.booking-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin: -10px 0 30px 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.booking-info-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.booking-info-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.booking-info-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.property-image {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-details {
    flex: 1;
}

.property-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.booking-dates {
    margin-bottom: 15px;
}

.date-item {
    display: flex;
    margin-bottom: 5px;
}

.date-label {
    font-weight: 500;
    color: #666;
    margin-right: 10px;
    min-width: 120px;
}

.date-value {
    color: #333;
}

.booking-actions {
    display: flex;
    gap: 10px;
}

.property-price {
    font-size: 20px;
    font-weight: 600;
    color: #228B22;
    text-align: right;
    min-width: 100px;
}

.reservation-timer {
    color: #666;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.reservation-timer i {
    margin-right: 8px;
    font-size: 18px;
}


.booking-info-text p {
    margin: 0;
    color: #383a3f;
    font-size: 16px;
    line-height: 1.5;
}

.edit-button, .delete-button {
    background: none;
    border: none;
    color: #383a3f;
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 0;
    margin-right: 18px;
    padding: 0;
}

.delete-button {
    color: #c7c7c7;
    margin-right: 0;
    text-decoration: none;
}

/* Стили для модального окна отмены резервирования (скопированы из cart.css) */
.cancel-reservation-modal {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.cancel-modal-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 24px 16px 24px;
}

.cancel-modal-title {
    color: #dc3545;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.cancel-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999999;
    opacity: 1;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cancel-modal-close:hover {
    color: #666666;
}

.cancel-modal-body {
    background: #ffffff;
    padding: 16px 24px 20px 24px;
}

.cancel-modal-question {
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.cancel-modal-footer {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px 20px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn-secondary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cancel-btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #5a6268;
}

.cancel-btn-danger {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cancel-btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: #ffffff;
}

/* Адаптивность для мобильных устройств (точно как в cart.css) */
@media (max-width: 768px) {
    .booking-info-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .property-image {
        width: 100%;
        height: 200px;
    }
    
    .property-price {
        text-align: left;
        margin-top: 15px;
    }
    
    /* Меняем порядок блоков на мобильном экране */
    .extra-detail-container {
        display: flex;
        flex-direction: column;
    }
    
    /* Порядок блоков на мобильном экране */
    .service-description {
        order: 1; /* Описание услуги - первый */
        margin-top: -40px !important; /* Уменьшенный верхний отступ */
    }
    
    .booking-info-card {
        order: 2; /* Блок объекта - второй */
    }
    
    /* Мобильные стили для таймера резервирования */
    .reservation-timer {
        font-size: 12px;
        padding: 6px 8px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    .reservation-timer i {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .photo-gallery-container {
        order: 3; /* Десктопная галерея - третий */
    }
    
    .options-container {
        order: 4; /* Блок с опциями - четвертый */
    }
    
    .services-section {
        order: 5; /* Слайдер других услуг - пятый */
    }
}

/* Стили для ссылки "цена зависит от дня" */
.flex-price-toggle {
    color: #228B22;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 5px;
    display: inline-block;
}

.flex-price-toggle:hover {
    color: #1b6f1b;
    text-decoration: none;
}

/* Стили для таблицы гибких цен */
.flex-price-table {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0;
    margin-top: 10px;
    overflow: hidden;
}

.flex-price-table-header {
    background: none;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
}

.flex-price-close-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
    line-height: 1;
}

.flex-price-close-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.flex-price-close-btn i {
    font-size: 16px;
}

.flex-price-table table {
    width: 100%;
    margin-bottom: 0;
    padding: 15px;
    background: white;
}

.flex-price-table tbody tr:last-child td {
    border-bottom: none;
}

.flex-price-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 8px 12px;
    font-weight: 400;
    text-align: left;
    font-size: 16px;
}

.flex-price-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
    font-size: 16px;
    font-weight: 400;
    border: none;
}

.flex-price-table tr:last-child td {
    border-bottom: none;
}

/* Анимация появления/скрытия таблицы */
.flex-price-table {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
}

.flex-price-table[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
}

/* Плавное появление таблицы */
.flex-price-table.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Стили для кнопки "Добавить" */
.add-button-container {
    text-align: right;
}

/* Стили для статуса услуги */
.service-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

.service-status.added-to-reservation {
    color: #28a745;
}

.service-status.added-to-reservation i {
    font-size: 14px;
}

/* Стили для действий с услугой */
.service-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.remove-service-link {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.remove-service-link:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Стили для кнопки обновления */
.update-service-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    animation: blink 1s infinite;
    transition: background-color 0.3s ease;
}

.update-service-btn:hover {
    background: #c82333;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Стили для модального окна требования бронирования */
.booking-required-modal {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
    background: white;
}

.booking-modal-header {
    background: white;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    padding: 25px 30px 20px;
}

.booking-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.booking-modal-close {
    font-size: 24px;
    color: #999;
    opacity: 0.7;
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-modal-close:hover {
    opacity: 1;
    color: #333;
}

.booking-modal-body {
    padding: 30px;
    text-align: center;
    background: white;
}

.booking-modal-icon {
    font-size: 48px;
    color: #228B22;
    margin-bottom: 20px;
    display: inline-block;
}

.booking-modal-text {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 25px 0;
    font-weight: 400;
}

.booking-modal-text strong {
    color: #228B22;
    font-weight: 600;
}

.booking-modal-footer {
    background: white;
    border-top: 1px solid #e5e5e5;
    padding: 20px 30px 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.booking-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.booking-btn-primary {
    background: #228B22;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.booking-btn-primary:hover {
    background: #1e7a1e;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Стили для кнопки обновления услуги */
.update-service-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    border: 1px solid #ff6b6b !important;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: pulse-booking 1.5s infinite;
}

.update-service-btn:hover {
    background: linear-gradient(135deg, #ff5252, #e64a19) !important;
    border-color: #ff5252 !important;
    color: #ffffff !important;
}

@keyframes pulse-booking {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Стили для добавленных опций - используем те же стили что и для основной услуги */
.option-card.added-to-reservation {
    background: #f8fff8;
    border: 1px solid #228B22;
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.15);
}

.option-card.added-to-reservation .option-title {
    color: #333;
}

.option-card.added-to-reservation .option-price {
    color: #228B22;
    font-weight: 600;
}

/* Анимация появления модального окна */
.modal.fade .booking-required-modal {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .booking-required-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Дополнительные эффекты */
.booking-required-modal .modal-dialog {
    margin: 1.75rem auto;
    max-width: 450px;
}

.booking-required-modal .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Адаптивность */
@media (max-width: 576px) {
    .booking-modal-body {
        padding: 25px 20px;
    }
    
    .booking-modal-header {
        padding: 20px 25px 15px;
    }
    
    .booking-modal-footer {
        padding: 15px 25px 20px;
        flex-direction: column;
    }
    
    .booking-btn-secondary,
    .booking-btn-primary {
        width: 100%;
        margin: 5px 0;
    }
}

/* Стили для расшифровки стоимости */
.property-price .total-cost {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.reservation-breakdown {
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: #666;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 3px 0;
}

.breakdown-item.collapsible {
    cursor: pointer;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.breakdown-label {
    font-weight: 500;
}

.breakdown-value {
    font-weight: 600;
    color: #333;
}

.expand-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
    margin-left: 10px;
}

.expand-link:hover {
    text-decoration: underline;
}

.services-details {
    margin-top: 5px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

.service-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    font-size: 13px;
    color: #555;
}

.service-cost {
    font-weight: 500;
}

.services-section {
    margin-top: 20px;
}

/* Стили для мобильного слайдера других услуг */
@media (max-width: 768px) {
    /* Переопределяем display для show-mobile контейнера слайдера */
    .services-section .show-mobile {
        display: block !important;
    }

    .mobile-tile {
        flex: 0 0 auto;
        width: calc(50% - 5px); /* Две плитки в ширину с отступом */
        max-width: none;
        margin-right: 10px;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Cтили мобильного слайдера */
    .collections-slider {
        overflow: hidden;
        width: 100%;
        position: relative;
        padding: 0 0 10px 0;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        display: block;
    }

    /* Трек, который перемещается */
    .collections-track {
        display: flex;
        gap: 10px;
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        padding-right: 20px; /* Показываем часть третьей плитки */
        /* Убираем transition для лучшего контроля через JavaScript */
    }

    /* Состояние активного слайдера */
    .collections-slider.active .collections-track {
        transition: none; /* Убираем transition для точного контроля */
    }

    /* Стили слайдера объявлений */
    .properties-track-tile {
        flex: 0 0 auto;
        width: 100%;
        height: 0;
        padding-bottom: 100%; /* Делаем квадратную плитку */
        background-size: cover;
        background-position: center;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        position: relative;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Ссылка покрывает всю плитку */
    .properties-track-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    /* Стили для информации о свойствах под плитками */
    .property-info {
        margin-top: 8px;
        padding: 0 5px;
    }

    .property-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 4px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .news_info {
        font-size: 14px;
        color: #666;
    }
}

/* Скрываем container-area left-sidebar на десктопе только на странице extra_detail */
@media (min-width: 769px) {
    .container-area.left-sidebar {
        display: none !important;
    }
}