﻿.stay-page {
    direction: rtl;
    font-family:Peyda;
    padding: 24px 16px 40px;
    color: #0f172a;
}

.stay-layout {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.25fr);
    gap: 20px;
}

/* هدر صفحه */
.stay-header {
    max-width: 1260px;
    margin: 0 auto 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
}

.stay-header__main h1 {
    font-size: 24px;
    margin: 4px 0;
}

.stay-header__main p {
    font-size: 12px;
    color: #4b5563;
}

.stay-header__chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(248,250,252,.8);
    border: 1px solid rgba(148,163,184,.7);
}

.stay-header__tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.stay-header__filter-btn {
    display: none;
    border-radius: 999px;
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    background: #0f172a;
    color: #f9fafb;
    cursor: pointer;
}

.stay-header__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

    .stay-header__meta select {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid #cbd5f5;
        background: rgba(248,250,252,.95);
    }

/* لیست اقامتگاه‌ها */
.stay-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* کارت اقامتگاه */
.stay-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: rgba(248,250,252,.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15,23,42,.3);
    transition: transform .18s ease, box-shadow .18s ease;
}

    .stay-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 50px rgba(15,23,42,.55);
    }

.stay-card__media {
    position: relative;
    background: #020617;
}

.stay-card__img-main {
    position: relative;
    height: 190px;
    overflow: hidden;
}

    .stay-card__img-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.04);
        transition: transform .3s ease;
    }

.stay-card:hover .stay-card__img-main img {
    transform: scale(1.12);
}

.stay-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    font-size: 10px;
    padding: 3px 9px;
    background: rgba(15,23,42,.86);
    color: #f9fafb;
}

.stay-card__badge--flash {
    background: linear-gradient(135deg,#22c55e,#16a34a);
}

.stay-card__badge--special {
    top: 36px;
    background: linear-gradient(135deg,#f97316,#facc15);
    color: #111827;
}

.stay-card__thumbs {
    display: flex;
    justify-content: center;
    padding: 6px 0 8px;
    gap: 4px;
    background: rgba(15,23,42,.94);
}

.stay-card__thumb-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(148,163,184,.7);
}

    .stay-card__thumb-dot.is-active {
        background: #f97316;
    }

/* بدنه کارت */
.stay-card__body {
    padding: 12px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stay-card__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

    .stay-card__head h2 {
        font-size: 14px;
        margin-bottom: 3px;
    }

.stay-card__loc {
    font-size: 11px;
    color: #6b7280;
}

.stay-card__rating {
    text-align: left;
    direction: ltr;
    font-size: 10px;
}

.stay-card__rating-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 7px;
    background: #0f766e;
    color: #ecfdf5;
    margin-left: 4px;
}

.stay-card__rating-stars {
    color: #fbbf24;
}

.stay-card__rating-count {
    color: #6b7280;
}

.stay-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #4b5563;
}

    .stay-card__meta span::before {
        content: "•";
        margin-left: 4px;
        color: #9ca3af;
    }

    .stay-card__meta span:first-child::before {
        content: "";
        margin: 0;
    }

.stay-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

    .stay-card__tags span {
        font-size: 10px;
        padding: 2px 8px;
        border-radius: 999px;
        background: rgba(226,232,240,.9);
        color: #111827;
    }

.stay-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.stay-card__price-label {
    display: block;
    font-size: 10px;
    color: #6b7280;
}

.stay-card__price-value {
    font-size: 16px;
    font-weight: 700;
}

.stay-card__price-unit {
    font-size: 11px;
    margin-right: 4px;
}

.stay-card__cta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stay-card__btn-primary,
.stay-card__btn-outline {
    border-radius: 999px;
    border: none;
    padding: 6px 13px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.stay-card__btn-primary {
    background: linear-gradient(135deg,#2563eb,#22c55e);
    color: #f9fafb;
    box-shadow: 0 8px 22px rgba(37,99,235,.45);
}

.stay-card__btn-outline {
    background: transparent;
    border: 1px solid #cbd5f5;
    color: #0f172a;
}

/* فیلترها */
.stay-filters-wrap {
    position: relative;
}

.stay-filters-backdrop {
    display: none;
}

.stay-filters {
    position: sticky;
    top: 76px;
    background: rgba(248,250,252,.98);
    border-radius: 20px;
    padding: 14px 14px 16px;
    box-shadow: 0 18px 36px rgba(15,23,42,.32);
    max-height: calc(100vh - 96px);
    overflow: auto;
}

.stay-filters__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .stay-filters__head h3 {
        font-size: 14px;
    }

.stay-filters__close {
    display: none;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}

.stay-filters__section + .stay-filters__section {
    margin-top: 12px;
}

.stay-filters__section h4 {
    font-size: 12px;
    margin-bottom: 6px;
}

.stay-filters__search input {
    width: 100%;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
}

.stay-filters__mappeek {
    margin-top: 8px;
}

.stay-filters__mapthumb {
    height: 120px;
    border-radius: 14px;
    background-image: url("image/map-thumb.png");
    background-size: cover;
    background-position: center;
    position: relative;
}

.stay-filters__maptag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,.8);
    color: #e5e7eb;
}

.stay-filters__mapbtn {
    margin-top: 8px;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 6px 10px;
    font-size: 11px;
    background: #0f172a;
    color: #f9fafb;
    cursor: pointer;
}

/* چیپ‌ها */
.stay-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .stay-filters__chips button {
        border-radius: 999px;
        border: 1px solid #cbd5f5;
        background: #f9fafb;
        font-size: 11px;
        padding: 4px 10px;
        cursor: pointer;
    }

        .stay-filters__chips button.is-active,
        .stay-filters__chips button:hover {
            background: #0f172a;
            color: #f9fafb;
        }

/* رنج قیمت */
.stay-range__labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 4px;
}

.stay-range__input {
    width: 100%;
}

/* گرید امکانات */
.stay-filters__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 4px 10px;
    font-size: 11px;
}

    .stay-filters__grid input {
        margin-left: 4px;
    }

/* شمارنده مهمان */
.stay-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    padding: 4px 10px;
    font-size: 11px;
}

    .stay-counter button {
        border-radius: 999px;
        border: none;
        width: 22px;
        height: 22px;
        font-size: 14px;
        cursor: pointer;
        background: #e5e7eb;
    }

/* فوتر فیلترها */
.stay-filters__footer {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.stay-filters__reset,
.stay-filters__apply {
    flex: 1;
    border-radius: 999px;
    border: none;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
}

.stay-filters__reset {
    background: #e5e7eb;
}

.stay-filters__apply {
    background: linear-gradient(135deg,#2563eb,#22c55e);
    color: #f9fafb;
}

/* صفحه‌بندی */
.stay-pagination {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.stay-pagination__btn {
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    background: rgba(248,250,252,.9);
    padding: 4px 9px;
    font-size: 11px;
    cursor: pointer;
}

    .stay-pagination__btn.is-active {
        background: #0f172a;
        color: #f9fafb;
    }

/* انیمیشن اسکرول ریویل */
.js-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}

    .js-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ریسپانسیو */
@media (max-width: 992px) {
    .stay-layout {
        grid-template-columns: minmax(0,1fr);
    }

    .stay-filters {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        top: auto;
        transform: translateY(100%);
        max-height: 75vh;
        border-radius: 18px 18px 0 0;
        z-index: 40;
        transition: transform .35s ease;
    }

        .stay-filters.is-open {
            transform: translateY(0);
        }

    .stay-filters-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,.45);
        z-index: 30;
        display: none;
    }

        .stay-filters-backdrop.is-open {
            display: block;
        }

    .stay-filters__close {
        display: inline-block;
    }

    .stay-header__filter-btn {
        display: inline-flex;
    }

    .stay-header__tools {
        align-items: flex-start;
    }

    .stay-card {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width: 640px) {
    .stay-page {
        padding: 16px 10px 28px;
    }

    .stay-header__main h1 {
        font-size: 20px;
    }
}
