﻿.stay-detail {
    direction: rtl;
    font-family: IRANSans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 24px 16px 40px;
    min-height: 100vh;
    color: #0f172a;
font-family:Peyda;
direction:rtl;
}

.stay-detail__hero {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 20px;
}

/* گالری */
.stay-detail__gallery-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #020617;
    height: 340px;
    box-shadow: 0 24px 50px rgba(15,23,42,.55);
}

    .stay-detail__gallery-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
        transition: transform .35s ease;
    }

    .stay-detail__gallery-main:hover img {
        transform: scale(1.1);
    }

.stay-detail__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(15,23,42,.9);
    color: #f9fafb;
}

.stay-detail__badge--flash {
    top: 44px;
    background: linear-gradient(135deg,#22c55e,#16a34a);
}

.stay-detail__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.stay-detail__thumb {
    flex: 1;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    position: relative;
    height: 80px;
}

    .stay-detail__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(.75);
        transition: filter .25s ease, transform .25s ease;
    }

    .stay-detail__thumb.is-active img,
    .stay-detail__thumb:hover img {
        filter: brightness(1);
        transform: scale(1.05);
    }

    .stay-detail__thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        border: 2px solid transparent;
        transition: border-color .25s ease;
    }

    .stay-detail__thumb.is-active::after {
        border-color: #f97316;
    }

/* کارت رزرو */
.stay-detail__booking {
    position: relative;
}

.stay-detail__booking-card {
    position: sticky;
    top: 84px;
    border-radius: 20px;
    background: rgba(248,250,252,.98);
    box-shadow: 0 20px 40px rgba(15,23,42,.45);
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stay-detail__booking-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.stay-detail__price-label {
    font-size: 11px;
    color: #6b7280;
}

.stay-detail__price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stay-detail__price {
    font-size: 22px;
    font-weight: 700;
}

.stay-detail__price-unit {
    font-size: 12px;
}

.stay-detail__rating {
    text-align: left;
    direction: ltr;
    font-size: 11px;
}

.stay-detail__rating-main {
    display: flex;
    gap: 6px;
    align-items: center;
}

.stay-detail__rating .score {
    border-radius: 999px;
    padding: 3px 9px;
    background: #0f766e;
    color: #ecfdf5;
}

.stay-detail__rating .stars {
    color: #facc15;
}

.stay-detail__rating-count {
    color: #6b7280;
}

.stay-detail__booking-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stay-detail__dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stay-detail__field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .stay-detail__field label {
        font-size: 11px;
        color: #4b5563;
    }

    .stay-detail__field input {
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid #cbd5f5;
    }

.stay-detail__field--full {
    grid-column: 1 / -1;
}

.stay-detail__counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    padding: 4px 10px;
    font-size: 12px;
}

    .stay-detail__counter button {
        border-radius: 999px;
        border: none;
        width: 24px;
        height: 24px;
        font-size: 15px;
        background: #e5e7eb;
        cursor: pointer;
    }

.stay-detail__summary .row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #4b5563;
    margin-bottom: 3px;
}

    .stay-detail__summary .row.total {
        font-weight: 600;
        color: #111827;
        border-top: 1px dashed #e5e7eb;
        padding-top: 4px;
    }

.stay-detail__booking-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stay-detail__btn-primary,
.stay-detail__btn-outline {
    border-radius: 999px;
    border: none;
    padding: 7px 14px;
    font-size: 12px;
    cursor: pointer;
}

.stay-detail__btn-primary {
    background: linear-gradient(135deg,#2563eb,#22c55e);
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(37,99,235,.5);
}

.stay-detail__btn-outline {
    background: transparent;
    border: 1px solid #cbd5f5;
}

.stay-detail__secure {
    font-size: 10px;
    color: #6b7280;
}

/* بدنه اصلی */
.stay-detail__content {
    max-width: 1260px;
    margin: 26px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stay-detail__main h1 {
    font-size: 22px;
}

.stay-detail__location {
    font-size: 12px;
    color: #4b5563;
    margin-top: 4px;
}

.stay-detail__desc {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.9;
    color: #374151;
}

/* ویژگی‌ها */
.stay-detail__features {
    margin-top: 16px;
}

    .stay-detail__features h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

.stay-detail__features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.stay-detail__feature {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(248,250,252,.92);
    box-shadow: 0 8px 16px rgba(15,23,42,.18);
}

    .stay-detail__feature .icon {
        font-size: 20px;
    }

/* نقشه */
.stay-detail__map h2,
.stay-detail__video h2,
.stay-detail__rules h2,
.stay-detail__reviews h2 {
    font-size: 16px;
    margin-bottom: 6px;
}

.stay-detail__map-text {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.stay-detail__map-embed {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15,23,42,.45);
}

    .stay-detail__map-embed iframe {
        border: 0;
        width: 100%;
        height: 260px;
    }

/* ویدیو */
.stay-detail__video {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.stay-detail__video-main {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(15,23,42,.6);
}

.stay-detail__video video {
    width: 100%;
    display: block;
}

.stay-detail__video-play {
    position: absolute;
    inset: auto 50% 16px auto;
    transform: translateX(50%);
    border-radius: 999px;
    border: none;
    width: 54px;
    height: 54px;
    font-size: 20px;
    background: rgba(15,23,42,.9);
    color: #f9fafb;
    cursor: pointer;
}

.stay-detail__video-text p {
    font-size: 13px;
    color: #374151;
}

/* قوانین */
.stay-detail__rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
}

    .stay-detail__rules-grid h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .stay-detail__rules-grid ul {
        margin: 0;
        padding-right: 18px;
        font-size: 12px;
        color: #4b5563;
    }

/* نظرات */
.stay-detail__reviews-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

    .stay-detail__reviews-head p {
        font-size: 12px;
        color: #4b5563;
    }

.stay-detail__reviews-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .stay-detail__reviews-filter button {
        border-radius: 999px;
        border: 1px solid #cbd5f5;
        padding: 4px 10px;
        font-size: 11px;
        background: #f9fafb;
        cursor: pointer;
    }

        .stay-detail__reviews-filter button.is-active {
            background: #0f172a;
            color: #f9fafb;
        }

.stay-detail__reviews-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.stay-detail__review {
    background: rgba(248,250,252,.96);
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 12px 26px rgba(15,23,42,.25);
    font-size: 12px;
}

    .stay-detail__review header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4px;
    }

.stay-detail__review-date {
    font-size: 11px;
    color: #6b7280;
}

.stay-detail__review-score {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #facc15;
}

/* اسکرول ریویل */
.js-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

    .js-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ریسپانسیو */
@media (max-width: 992px) {
    .stay-detail {
        padding-inline: 10px;
    }

    .stay-detail__hero {
        grid-template-columns: minmax(0,1fr);
    }

    .stay-detail__booking-card {
        position: static;
    }

    .stay-detail__video {
        grid-template-columns: minmax(0,1fr);
    }

    .stay-detail__rules-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .stay-detail__reviews-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .stay-detail__gallery-main {
        height: 260px;
    }

    .stay-detail__features-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .stay-detail__rules-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .stay-detail__reviews-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .stay-detail__reviews-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
