/**
 * Single Property Page
 * Mobile first
 */

.lc-property-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.lc-property-content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 420px);
    gap: 30px;
}

.lc-property-main {
    background: #1a1f24;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #505050;
}

.lc-property-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    display: block !important;
}

.lc-property-header {
    margin-bottom: 24px;
}

.lc-property-title {
    color: #E2C48E;
    font-size: 2rem;
    margin: 0 0 14px;
    font-family: 'DM Serif Display', serif;
}

.lc-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.lc-property-location,
.lc-property-rating {
    color: #C2C2C2;
}

.lc-property-location i {
    color: #E2C48E;
    margin-right: 6px;
}

.lc-rating-new {
    background: #E2C48E;
    color: #0B1014;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.lc-host-info,
.lc-property-features,
.lc-property-reviews,
.lc-property-map-section,
.lc-property-amenities,
.lc-property-description,
.lc-property-policies {
    margin-bottom: 24px;
}

.lc-host-info {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #0B1014;
    border-radius: 12px;
}

.lc-host-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.lc-host-details h4 {
    margin: 0 0 8px;
    color: #E2C48E;
}

.lc-host-details p {
    margin: 0;
    color: #C2C2C2;
}

.lc-property-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
    background: #0B1014;
    border-radius: 12px;
}

.lc-feature {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #C2C2C2;
}

.lc-feature i {
    color: #e4c792;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.lc-feature span {
    font-size: 15px;
    line-height: 1.35;
    color: #d2d2d2;
}
/* Современные объемные иконки */
.lc-feature i,
.lc-policy-block h4 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;

    background: linear-gradient(145deg, #2a2f35, #12161a);
    box-shadow:
        3px 3px 6px rgba(0,0,0,0.6),
        -2px -2px 4px rgba(255,255,255,0.05);

    color: #f0d9a5;
    font-size: 14px;
}

/* Разные цвета для разных типов */
.lc-feature:nth-child(1) i { color: #6ec1ff; }
.lc-feature:nth-child(2) i { color: #9bffb0; }
.lc-feature:nth-child(3) i { color: #ffd36e; }
.lc-feature:nth-child(4) i { color: #ff9b9b; }


.lc-policy-block h4 i {
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.25),
        inset 0 -2px 4px rgba(0,0,0,0.35),
        0 6px 14px rgba(0,0,0,0.35);

    color: #ffffff;
}


/* Entrada / Salida — синий металл */
.lc-policy-block:nth-of-type(1) h4 i {
    background: linear-gradient(145deg, #5fa8ff, #1f4ed8);
}

/* Cancelación — красный металл */
.lc-policy-block:nth-of-type(2) h4 i {
    background: linear-gradient(145deg, #ff6b6b, #b91c1c);
}

/* Mascotas — фиолетовый металл */
.lc-policy-block:nth-of-type(3) h4 i {
    background: linear-gradient(145deg, #c084fc, #7c3aed);
}

/* Menores — зелёный металл */
.lc-policy-block:nth-of-type(4) h4 i {
    background: linear-gradient(145deg, #6ee7b7, #047857);
}

/* Camas — янтарный металл */
.lc-policy-block:nth-of-type(5) h4 i {
    background: linear-gradient(145deg, #fbbf24, #b45309);
}

/* Pago — нейтральный металл */
.lc-policy-block:nth-of-type(6) h4 i {
    background: linear-gradient(145deg, #94a3b8, #475569);
}

/* Fumar — тёплый металл */
.lc-policy-block:nth-of-type(7) h4 i {
    background: linear-gradient(145deg, #fb923c, #c2410c);
}

/* Otros — холодный металл */
.lc-policy-block:nth-of-type(8) h4 i {
    background: linear-gradient(145deg, #67e8f9, #0e7490);
}

.lc-policy-block h4 i {
    width: 26px;
    height: 26px;
    color: #ffdca8;
}
.lc-property-features {
    gap: 12px;
}

.lc-feature {
    gap: 8px;
}
.lc-property-main h3 {
    color: #e4c792;
    margin: 0 0 12px;
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.lc-policy-block h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    color: #d9b06f;
    font-family: 'DM Serif Display', serif;
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.lc-policy-block h4 i {
    font-size: 16px;
    line-height: 1;
}

.lc-description-content,
.lc-property-main p {
    color: #C2C2C2;
    line-height: 1.65;
}

.lc-map {
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(226, 196, 142, 0.35);
    background: #0B1014;
}

.lc-booking-card {
    position: sticky;
    top: 24px;
    background: #1a1f24;
    border-radius: 16px;
    border: 1px solid #505050;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.lc-booking-card h3 {
    font-weight: 400;
    font-size: 1.35rem;
    color: #e4c792;
    letter-spacing: 0.01em;
}
.lc-booking-card p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cfcfcf;
    font-size: 14px;
}

.lc-booking-card p i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;

    background: linear-gradient(145deg, #6ec1ff, #2563eb);
    color: #ffffff;
    font-size: 12px;

    box-shadow:
        0 4px 10px rgba(37,99,235,0.35);
}

.lc-booking-price {
    margin-bottom: 18px;
}

.lc-price {
    color: #E2C48E;
    font-size: 2rem;
    font-weight: 700;
}

.lc-period {
    color: #C2C2C2;
}

.lc-booking-footer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #C2C2C2;
    font-size: 13px;
}
.lc-payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.lc-payment-icon {
    display: block;
    width: 58px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 4px 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.lc-booking-sheet-recommendations .lc-popular-destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.lc-booking-sheet-recommendations .lc-destination-card {
    display: block;
    width: 100%;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
}

.lc-booking-sheet-recommendations .lc-destination-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
}

.lc-booking-sheet-recommendations .lc-destination-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lc-booking-sheet-recommendations .lc-destination-card__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}
.lc-booking-sheet-recommendations {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.lc-booking-sheet-recommendations .lc-popular-destinations {
    width: 100%;
}

.lc-booking-sheet-recommendations .lc-popular-destinations-grid {
    margin: 0;
}

.lc-booking-card .lc-booking-submit,
.lc-booking-card .lc-booking-form button[type="submit"] {
    margin-bottom: 18px;
}

.lc-property-closure-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #f5d36b;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.lc-mobile-booking-bar {
    display: none;
}

.lc-booking-sheet-close {
    display: none !important;
}

.lc-booking-sheet-overlay {
    display: none;
}

.lc-mobile-booking-closure-dates {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: #E2C48E;
    opacity: 0.9;
}

.lc-mobile-booking-toggle[disabled],
.lc-mobile-booking-toggle[aria-disabled="true"] {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.15);
}

#lc-booking-card {
    scroll-margin-top: 12px;
}

@media (max-width: 992px) {
    .lc-property-content-wrapper {
        grid-template-columns: 1fr;
    }

    .lc-property-sidebar,
    .lc-booking-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .lc-property-page {
        padding: 14px 14px 92px;
    }

    .lc-property-main {
        padding: 20px;
    }

    .lc-property-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lc-property-sidebar {
        display: block !important;
    }

    .lc-mobile-booking-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #505050;
        border-top: 2px solid #E2C48E;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .lc-mobile-booking-price {
        display: flex;
        flex-direction: column;
        color: #C2C2C2;
        font-size: 13px;
        min-width: 0;
    }

    .lc-mobile-booking-price strong {
        color: #E2C48E;
        font-size: 20px;
        line-height: 1;
    }

    .lc-mobile-booking-toggle {
        background: #E2C48E !important;
        color: #0B1014 !important;
        font-weight: 700 !important;
    }

    body.lc-booking-sheet-open {
        overflow: hidden;
    }

    body.lc-booking-sheet-open .lc-mobile-booking-bar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(100%);
    }

    .lc-booking-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1300;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.lc-booking-sheet-open .lc-booking-sheet-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /*
     * ВАЖНО:
     * Не скрываем карточку через display:none,
     * иначе календарь внутри может ломать размеры и клики на мобильных.
     */
    #lc-booking-card {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1301;
        width: 100%;
        max-height: min(85vh, 720px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        margin: 0;
        padding: 44px 14px calc(18px + env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
        background: #1a1f24;
        border: 1px solid rgba(226, 196, 142, 0.18);

        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    }

    #lc-booking-card.is-mobile-sheet {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 10px;
        right: 12px;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: #E2C48E;
        font-size: 24px;
        cursor: pointer;
        z-index: 10;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-price {
        margin-bottom: 14px;
        padding-right: 44px;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-form {
        width: 100%;
    }
    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-recommendations {
        margin: 14px 0 10px;
        padding: 10px;
        border-radius: 14px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(226,196,142,0.12);
        overflow: hidden;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-recommendations .lc-popular-destinations {
        margin: 0;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-recommendations .lc-section-title {
        display: none;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-recommendations .lc-popular-destinations-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-recommendations .lc-destination-card {
        display: block;
        min-width: 0;
        border-radius: 10px;
        overflow: hidden;
        background: transparent;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-recommendations .lc-destination-card__image {
        aspect-ratio: 1 / 1;
        border-radius: 10px;
        overflow: hidden;
        background: #0B1014;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-recommendations .lc-destination-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-recommendations .lc-destination-card__content {
        display: none;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-sheet-recommendations .lc-destination-card__placeholder {
        width: 100%;
        height: 100%;
        min-height: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #lc-booking-card.is-mobile-sheet .lc-booking-form .lc-booking-calendar-wrap {
        margin-bottom: 14px;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-form .lc-price-breakdown {
        margin-bottom: 6px;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-form .lc-booking-message {
        min-height: 0;
        margin-bottom: 2px;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-form .lc-booking-submit {
        margin-top: 2px;
    }

    #lc-booking-card.is-mobile-sheet .lc-booking-calendar {
        scroll-margin-top: 12px;
    }

    /* Фикс тачей для календаря */
    #lc-booking-card.is-mobile-sheet .lc-booking-calendar,
    #lc-booking-card.is-mobile-sheet .lc-booking-calendar *,
    #lc-booking-card.is-mobile-sheet .fc,
    #lc-booking-card.is-mobile-sheet .fc * {
        touch-action: manipulation;
    }
}

@media (max-width: 640px) {
    .lc-host-info {
        flex-direction: column;
    }

    .lc-property-features {
        grid-template-columns: 1fr 1fr;
    }

    .lc-booking-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   ROOM TYPES DISPLAY
   ========================================= */

.lc-property-room-types {
    margin: 32px 0;
}

.lc-property-room-types h3 {
    margin: 0 0 18px;
    color: #E2C48E;
    font-size: 28px;
    line-height: 1.2;
}

.lc-room-types-display-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.lc-single-room-view .lc-room-types-display-grid {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
    margin: 0 auto;
}

.lc-room-type-display-card {
    background: #505050;
    border: 1px solid rgba(226, 196, 142, 0.35);
    border-radius: 18px;
    padding: 18px;
}

.lc-room-type-display-title {
    margin: 0 0 14px;
    color: #E2C48E;
    font-size: 20px;
    line-height: 1.3;
}

.lc-room-type-display-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.lc-room-type-display-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(11, 16, 20, 0.35);
    border: 1px solid rgba(226, 196, 142, 0.16);
    border-radius: 12px;
    color: #C2C2C2;
    line-height: 1.45;
}

.lc-room-type-display-item i {
    color: #E2C48E;
    flex: 0 0 auto;
    margin-top: 2px;
}

.lc-room-type-display-item strong {
    color: #E2C48E;
    font-weight: 600;
    margin-right: 6px;
}

.lc-room-type-description-text {
    padding: 10px 14px 0;
    font-size: .85rem;
    color: rgba(255,255,255,.78);
    line-height: 1.55;
    border-top: 1px solid rgba(226,196,142,.15);
    margin-top: 10px;
}
.lc-room-type-description-text p { margin: 0 0 6px; }

.lc-rt-amenity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(226, 196, 142, 0.15);
}

.lc-rt-amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(226, 196, 142, 0.12);
    border: 1px solid rgba(226, 196, 142, 0.3);
    border-radius: 20px;
    color: #E2C48E;
    font-size: 0.78rem;
    line-height: 1.3;
}

.lc-rt-bed-types {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(11, 16, 20, 0.35);
    border: 1px solid rgba(226, 196, 142, 0.16);
    border-radius: 10px;
    color: #C2C2C2;
    font-size: 0.85rem;
}

.lc-rt-bed-types i { color: #E2C48E; }
.lc-rt-bed-types strong { color: #E2C48E; font-weight: 600; }

@media (min-width: 768px) {
    .lc-room-types-display-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lc-single-room-view .lc-room-types-display-grid {
        grid-template-columns: minmax(0, 520px);
    }
}
.lc-similar-properties-section {
    overflow: hidden;
}

.lc-similar-properties-mini-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 12px 0;
    margin: 0;
    width: 100%;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
}

.lc-similar-properties-mini-row::-webkit-scrollbar {
    height: 10px;
}

.lc-similar-properties-mini-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.lc-similar-properties-mini-row::-webkit-scrollbar-thumb {
    background: rgba(226, 196, 142, 0.9);
    border-radius: 999px;
}

.lc-similar-mini-card {
    flex: 0 0 calc((100% - 24px) / 3);
    min-width: calc((100% - 24px) / 3);
    max-width: calc((100% - 24px) / 3);
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.lc-similar-mini-card__image {
    aspect-ratio: 1 / 1;
    background: #f6f6f6;
    overflow: hidden;
}

.lc-similar-mini-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lc-similar-mini-card__content {
    padding: 10px 12px 12px;
}

.lc-similar-mini-card__title {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.lc-similar-mini-card__location {
    font-size: 13px;
    line-height: 1.3;
    color: #666;
    margin-bottom: 6px;
}

.lc-similar-mini-card__price {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .lc-similar-mini-card {
        flex: 0 0 78%;
        min-width: 78%;
        max-width: 78%;
    }
}

.lc-similar-properties-mini-row::-webkit-scrollbar {
    height: 6px;
}

.lc-similar-mini-card {
    flex: 0 0 calc(33.333% - 8px);
    min-width: 260px;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

.lc-similar-mini-card__image {
    aspect-ratio: 1 / 1;
    background: #f6f6f6;
    overflow: hidden;
}

.lc-similar-mini-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lc-similar-mini-card__content {
    padding: 10px 12px 12px;
}

.lc-similar-mini-card__title {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.lc-similar-mini-card__location {
    font-size: 13px;
    line-height: 1.3;
    color: #666;
    margin-bottom: 6px;
}

.lc-similar-mini-card__price {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 767px) {
    /* 4 tarjetas visibles en el móvil + deslizamiento horizontal cómodo. */
    .lc-similar-properties-mini-row {
        gap: 8px;
        scroll-snap-type: x mandatory;
    }
    .lc-similar-mini-card {
        flex: 0 0 calc((100% - 24px) / 4);
        min-width: calc((100% - 24px) / 4);
        max-width: calc((100% - 24px) / 4);
        border-radius: 10px;
    }
    .lc-similar-mini-card__content {
        padding: 5px 5px 7px;
    }
    .lc-similar-mini-card__title {
        font-size: 10px;
        line-height: 1.2;
        margin: 0 0 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .lc-similar-mini-card__location {
        font-size: 9px;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    .lc-similar-mini-card__price {
        font-size: 10px;
        line-height: 1.2;
    }
}