.property-card {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Montserrat', sans-serif;
    color: #1f1f1f;
}

/* Заголовок */
.property-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Верхняя часть */
.property-top {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.property-slider-box {
    width: 66.666%;
    max-width: 800px;
    position: relative;
}

.property-booking {
    width: 33.333%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
}

.booking-price {
    background-color: #8B0000;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 16px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.booking-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.booking-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.booking-field {
    margin-bottom: 12px;
}

.booking-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    display: block;
    max-width: 100%;
}

.booking-field input:focus {
    outline: none;
    border-color: #8B0000;
}

/* Слайдер */
.mainSwiper {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.mainSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.thumbsSwiper {
    height: 80px;
}

.thumbsSwiper .swiper-slide {
    width: auto;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.thumbsSwiper .swiper-slide-thumb-active {
    opacity: 1;
}

.thumbsSwiper .swiper-slide img {
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Контент */
.property-content {
    font-size: 16px;
    line-height: 1.6;
}

.property-location,
.property-price {
    font-size: 18px;
    margin-bottom: 10px;
}

.property-price {
    color: #8B0000;
    font-weight: bold;
}

.property-description {
    margin: 20px 0;
}

.property-details {
    margin-bottom: 30px;
}

.property-details h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.property-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.property-details li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

/* Кнопка */
.btn-red {
    background-color: #8B0000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    font-weight: bold;
}

.btn-red:hover {
    background-color: #a30000;
}

.btn-red.full {
    width: 100%;
    text-align: center;
}

/* Рейтинг */
.property-rating {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #8B0000;
    /* тёмно-красный */
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #fff;
    /* белый текст */
}

.property-rating .stars img {
    width: 18px;
    height: 18px;
    filter: brightness(1.1);
}

.amenities-wrapper {
    max-width: 800px;
    width: 100%;
}

.amenities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.amenities li {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #1f1f1f;
}

.amenities li i {
    color: #8B0000;
    font-size: 18px;
    margin-right: 10px;
}


.property-map {
    margin-top: 30px;
}

.property-map h2 {
    font-size: 20px;
    color: #1f1f1f;
    /* черный */
    margin-bottom: 8px;
}

.map-address {
    font-size: 15px;
    color: #8B0000;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-address i {
    color: #8B0000;
    font-size: 16px;
}

.property-host {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.host-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.host-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1f1f1f;
}

.host-contact {
    margin: 6px 0;
    font-size: 14px;
    color: #8B0000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.host-contact i {
    color: #8B0000;
}

.host-contact a {
    color: #8B0000;
    text-decoration: none;
}

.host-contact a:hover {
    text-decoration: underline;
}

.host-rating {
    margin-top: 14px;
    font-size: 14px;
    color: #1f1f1f;
}

.host-rating .stars {
    margin-top: 4px;
}

.host-rating .stars img {
    width: 16px;
    height: 16px;
}

.slider-description {
    margin-top: 20px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    color: #1f1f1f;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.slider-description h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #8B0000;
}

.property-reviews {
    margin-top: 40px;
}

.property-reviews h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1f1f1f;
}

.review-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info strong {
    font-size: 16px;
    color: #1f1f1f;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0;
}

.review-rating img {
    width: 16px;
    height: 16px;
}

.review-rating span {
    font-size: 13px;
    color: #555;
    margin-left: 6px;
}

.review-date {
    font-size: 13px;
    color: #888;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #1f1f1f;
}

.section-heading i {
    color: #8B0000;
    margin-right: 8px;
}

.amenities.columns-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* ← было 3, стало 4 */
    gap: 12px 30px;
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

.amenities.columns-3 li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.amenities.columns-3 li i {
    color: #8B0000;
    min-width: 20px;
}

.property-details .amenities.columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* ← тоже 4 */
    gap: 12px 30px;
    max-width: 800px;
    padding: 0;
    margin: 0;
}


.discount-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 12px;
}

.discount-badge {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #1f1f1f;
}

.discount-days {
    font-size: 15px;
}

.discount-value {
    background: #8B0000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

/* Выровнять блок бронирования */
.property-booking {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
}

.booking-price {
    background-color: #8B0000;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 16px;
    text-align: center;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #eee;
}

/* Убираем тень снизу у booking-box, чтобы не выбивалась */
.booking-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    border: 1px solid #eee;
    border-top: none;
    box-shadow: none;
}

/* Выровнять кнопку */
.btn-red.full {
    width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
    margin-top: 12px;
}

.section-divider {
    height: 2px;
    background-color: #8B0000;
    margin: 40px 0 24px 0;
    width: 100%;
    border: none;
    border-radius: 1px;
}


.property-map iframe {
    border-radius: 12px;
    overflow: hidden;
    display: block;

}

.review-rating span {
    font-family: sans-serif !important;
    font-style: normal !important;
    font-weight: normal !important;
    display: inline-block;
    vertical-align: middle;
}

/* Сброс дефолтных стрелок Swiper */
.swiper-button-prev::after,
.swiper-button-next::after {
    content: none !important;
}

/* Кастомные стрелки-кнопки */
.custom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background-color: #8B0000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    border: none;
    box-sizing: border-box;
}

/* Ховер эффект */
.custom-arrow:hover {
    opacity: 1;
    background-color: #a30000;
}

/* Иконка внутри стрелки */
.custom-arrow i {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* Позиции стрелок */
.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}


.accordion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.accordion-section {
    display: flex;
    flex-direction: column;
    border: 1px solid #8B0000;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

/* Заголовок секции */
.accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #8B0000;
    cursor: pointer;
    margin-bottom: 10px;
}

.accordion-header i {
    font-size: 18px;
    color: #8B0000;
    transition: transform 0.3s ease;
}

/* Поворот иконки при открытии */
.accordion-section.open .accordion-header i {
    transform: rotate(180deg);
}

/* Тело секции */
.accordion-body {
    display: none;
    padding-top: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.accordion-section.open .accordion-body {
    display: block;
}

/* Кнопка "Развернуть все" */
.accordion-controls {
    margin-bottom: 20px;
    text-align: left;
}

.btn-toggle-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #8B0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-toggle-all:hover {
    background-color: #a30000;
}

.btn-toggle-all i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-toggle-all.expanded i {
    transform: rotate(180deg);
}

/* Списки удобств */
.amenities.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.accordion-section {
    align-self: start;
    /* ключевая строка */
}

.amenities.columns-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.amenities.columns-3 li {
    word-break: break-word;
    white-space: normal;
    width: 100%;
    display: flex;
    align-items: center;
}

.amenities.columns-3 li i {
    margin-right: 8px;
    min-width: 18px;
    text-align: center;
}

/* ✨ Новый стиль секций */
.accordion-section {
    background-color: #FFF8F7;
    border: 1px solid #F5D9D7;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
}

.accordion-section:hover {
    border-color: #E5B4B2;
    box-shadow: 0 0 10px rgba(185, 74, 72, 0.15);
}

/* 🎯 Заголовки секций */
.accordion-header {
    color: #4A2C2A;
    font-weight: 600;
}

/* 🍒 Иконки заголовков и дефолт */
.accordion-header i,
.amenities li i {
    color: #B94A48;
}

/* 🧱 Фон и граница кнопки "Развернуть все" */
.btn-toggle-all {
    background-color: #B94A48;
    color: #fff;
}

.btn-toggle-all:hover {
    background-color: #992C2C;
}

/* 🌈 Цвета иконок: .amenities */
.amenities li:nth-child(10n+1) i {
    color: #B94A48;
}

/* тёпло-красный */
.amenities li:nth-child(10n+2) i {
    color: #0077B6;
}

/* синий */
.amenities li:nth-child(10n+3) i {
    color: #43AA8B;
}

/* зелёный */
.amenities li:nth-child(10n+4) i {
    color: #F9A825;
}

/* жёлтый */
.amenities li:nth-child(10n+5) i {
    color: #C44536;
}

/* кирпичный */
.amenities li:nth-child(10n+6) i {
    color: #6D6875;
}

/* лиловый */
.amenities li:nth-child(10n+7) i {
    color: #DB7093;
}

/* розовый */
.amenities li:nth-child(10n+8) i {
    color: #795548;
}

/* коричневый */
.amenities li:nth-child(10n+9) i {
    color: #3F51B5;
}

/* индиго */
.amenities li:nth-child(10n+10) i {
    color: #009688;
}

/* бирюзовый */

/* 🌈 Цвета иконок: .columns-3 */
.amenities.columns-3 li:nth-child(10n+1) i {
    color: #FF7043;
}

.amenities.columns-3 li:nth-child(10n+2) i {
    color: #AB47BC;
}

.amenities.columns-3 li:nth-child(10n+3) i {
    color: #26C6DA;
}

.amenities.columns-3 li:nth-child(10n+4) i {
    color: #66BB6A;
}

.amenities.columns-3 li:nth-child(10n+5) i {
    color: #FFA726;
}

.amenities.columns-3 li:nth-child(10n+6) i {
    color: #EC407A;
}

.amenities.columns-3 li:nth-child(10n+7) i {
    color: #5C6BC0;
}

.amenities.columns-3 li:nth-child(10n+8) i {
    color: #8D6E63;
}

.amenities.columns-3 li:nth-child(10n+9) i {
    color: #42A5F5;
}

.amenities.columns-3 li:nth-child(10n+10) i {
    color: #26A69A;
}

.calendar-flex-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-top: 24px;
}

.calendar-legend {
    min-width: 160px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-square {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 0 0 1px #ccc inset;
    margin-right: 8px;
}

.legend-square.booked {
    background-color: #8B0000;
}

.legend-square.available {
    background-color: #ffffff;
}

.calendar-wrapper {
    flex-grow: 1;
    min-width: 600px;
    max-width: 720px;
}

.calendar-booking-box {
    min-width: 250px;
    max-width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.calendar-price {
    background-color: #8B0000;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
    font-size: 18px;
}

.calendar-booking-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.calendar-booking-box input[type="text"] {
    width: 100%;
    max-width: 280px;
    min-width: 260px;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #a3080b;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    outline: none;
    transition: box-shadow 0.2s ease;
    margin-bottom: 12px;
}

.calendar-booking-box input[type="text"]:focus {
    border-color: #a3080b;
    box-shadow: 0 0 0 2px rgba(163, 8, 11, 0.2);
}

.calendar-booking-box .calendar-submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    background-color: #8B0000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-booking-box .calendar-submit:hover {
    background-color: #a30000;
}

/* Стилизация самого выпадающего календаря (flatpickr) */
.flatpickr-calendar {
    width: 100% !important;
    max-width: 280px;
    box-sizing: border-box;
}

/* Глобально: все flatpickr-инпуты — красная рамка при фокусе */
.flatpickr-input:focus {
    border-color: #a3080b !important;
    box-shadow: 0 0 0 2px rgba(163, 8, 11, 0.2) !important;
}

/* 🔧 Починка ширины маленького календаря */
.flatpickr-calendar {
    width: auto !important;
    min-width: 280px;
    max-width: none !important;
}

/* Убедись, что 7 ячеек умещаются */
.flatpickr-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
}

.custom-booking-popup {
    border-radius: 16px;
    padding: 24px;
    background-color: #fff;
    border: 2px solid #a30000;
}

.custom-booking-title {
    color: #a30000;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin-bottom: 12px;
}

.custom-booking-text {
    color: #333;
    font-size: 16px;
}

.swal2-confirm.btn-red {
    background-color: #a30000 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

/* отключаем дефолтные стрелки Swiper */
.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}

.nearby-flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nearby-block {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.nearby-block h3 {
    color: #8B0000;
    font-size: 1.05rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nearby-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-block li {
    margin: 6px 0;
    font-size: 0.95rem;
}

.nearby-block li span {
    color: #666;
    font-size: 0.85rem;
}

.nearby-block:hover {
    border-color: #8B0000;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.15);
}