/* CSS برای بخش Important Places - بدون تداخل با فوتر */
.important-places-section .important-places-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 36px;
}

@media (min-width: 640px) {
    .important-places-section .important-places-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .important-places-section .important-places-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 32px;
        row-gap: 40px;
    }
}

@media (min-width: 1280px) {
    .important-places-section .important-places-grid {
        column-gap: 36px;
        row-gap: 44px;
    }
}

.important-places-section .important-place-card {
    min-width: 0;
}

.important-places-section .important-places-grid {
    perspective: 1200px;
}

.important-places-section .important-place-card {
    isolation: isolate;
    transform: translateY(0) scale(1);
    transform-style: preserve-3d;
    will-change: transform, box-shadow, border-color;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 450ms cubic-bezier(0.22, 1, 0.36, 1), border-color 450ms ease, background-color 450ms ease;
}

    .important-places-section .important-place-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, rgba(194, 65, 12, 0), rgba(194, 65, 12, 0.65), rgba(180, 83, 9, 0.18), rgba(194, 65, 12, 0));
        opacity: 0;
        transition: opacity 450ms ease;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }

    .important-places-section .important-place-card::after {
        content: "";
        position: absolute;
        top: -35%;
        right: -85%;
        z-index: 3;
        width: 55%;
        height: 170%;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
        transform: rotate(18deg);
        opacity: 0;
        transition: right 850ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
    }

    .important-places-section .important-place-card:hover {
        transform: translateY(-12px) scale(1.015);
        border-color: rgba(194, 65, 12, 0.55);
        box-shadow: 0 28px 70px rgba(120, 53, 15, 0.18), 0 14px 32px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(194, 65, 12, 0.08);
    }

        .important-places-section .important-place-card:hover::before {
            opacity: 1;
        }

        .important-places-section .important-place-card:hover::after {
            right: 135%;
            opacity: 1;
        }

    .important-places-section .important-place-card img {
        will-change: transform, filter;
        transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease;
    }

    .important-places-section .important-place-card:hover img {
        transform: scale(1.12);
        filter: saturate(1.08) contrast(1.04);
    }

    .important-places-section .important-place-card > div:first-child::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.24), transparent 30%), linear-gradient(to top, rgba(67, 20, 7, 0.35), transparent 58%);
        opacity: 0;
        transition: opacity 450ms ease;
    }

    .important-places-section .important-place-card:hover > div:first-child::after {
        opacity: 1;
    }

    .important-places-section .important-place-card h3 {
        transition: color 300ms ease, transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .important-places-section .important-place-card:hover h3 {
        transform: translateX(-3px);
    }

    .important-places-section .important-place-card p,
    .important-places-section .important-place-card .text-mahal-muted {
        transition: color 300ms ease;
    }

    .important-places-section .important-place-card:hover p {
        color: rgba(68, 64, 60, 0.88);
    }

    .important-places-section .important-place-card span[class*="rounded-full"] {
        transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), background-color 350ms ease, color 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
    }

    .important-places-section .important-place-card:hover > div:first-child > span {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.75);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    }

    .important-places-section .important-place-card:focus-visible {
        outline: none;
        transform: translateY(-8px) scale(1.01);
        border-color: rgba(194, 65, 12, 0.75);
        box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.16), 0 24px 60px rgba(120, 53, 15, 0.16);
    }

@media (prefers-reduced-motion: reduce) {
    .important-places-section .important-place-card,
    .important-places-section .important-place-card::before,
    .important-places-section .important-place-card::after,
    .important-places-section .important-place-card img,
    .important-places-section .important-place-card h3,
    .important-places-section .important-place-card span[class*="rounded-full"] {
        transition: none;
    }

        .important-places-section .important-place-card:hover,
        .important-places-section .important-place-card:focus-visible {
            transform: none;
        }

            .important-places-section .important-place-card:hover img {
                transform: none;
            }
}

/* کلاس‌های عمومی - بدون تداخل */
.page-reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.page-reveal-ready .page-reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.page-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .page-reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* ریسپانسیو فوتر محلستان - راست‌چین */
.footer-container {
    position: relative;
    overflow: hidden;
    background-color: #1E3A5F; /* bg-mahal-secondary */
    padding-top: 3.5rem;
    direction: rtl;
}

/* پس‌زمینه تزئینی */
.footer-bg {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

    .footer-bg .decoration-1 {
        position: absolute;
        right: -8rem;
        top: 2.5rem;
        width: 24rem;
        height: 24rem;
        border-radius: 50%;
        background-color: rgba(194, 65, 12, 0.1); /* bg-mahal-primary/10 */
        filter: blur(3rem);
    }

    .footer-bg .decoration-2 {
        position: absolute;
        left: -8rem;
        bottom: 2.5rem;
        width: 24rem;
        height: 24rem;
        border-radius: 50%;
        background-color: rgba(180, 83, 9, 0.25); /* bg-mahal-accent/25 */
        filter: blur(3rem);
    }

    .footer-bg .top-line {
        position: absolute;
        inset: 0;
        top: 0;
        height: 1px;
        background: linear-gradient(to left, transparent, #e7e5e4, transparent); /* via-mahal-border */
    }

/* محتوای اصلی فوتر */
.footer-content {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-main {
    border-top: 1px solid #e7e5e4; /* border-mahal-border */
    padding: 3rem 0;
}

/* سیستم ریسپانسیو ستون‌ها */
.footer-columns {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* موبایل: همه زیر هم */
@media (max-width: 639px) {
    .footer-columns {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
        text-align: right; /* راست‌چین در موبایل */
    }
}

/* تبلت: ۲ ستون */
@media (min-width: 640px) and (max-width: 1023px) {
    .footer-columns {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-column {
        width: calc(50% - 1rem);
        text-align: right; /* راست‌چین در تبلت */
    }

        .footer-column:nth-child(3) {
            width: 100%;
            margin-top: 2rem;
        }
}

/* دسکتاپ: ۳ ستون کنار هم */
@media (min-width: 1024px) {
    .footer-columns {
        flex-direction: row;
        gap: 2rem;
    }

    .footer-column {
        flex: 1;
        min-width: 0;
        text-align: right; /* همه ستون‌ها راست‌چین */
    }
}

/* استایل ستون‌ها */
.footer-column {
    padding: 0 0.5rem;
}

/* برند */
.brand-section a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo {
    display: flex;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background-color: #c2410c; /* bg-mahal-primary */
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-soft */
}

.brand-name {
    display: block;
    font-family: 'Morabba', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e7e5e4; /* text-mahal-border */
}

.brand-tagline {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #78716c; /* text-mahal-muted */
}

.brand-description {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    line-height: 2rem;
    color: #78716c; /* text-mahal-muted */
    text-align: right; /* راست‌چین */
}

/* لینک‌های سریع */
.quick-links h3 {
    font-family: 'Morabba', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #e7e5e4; /* text-mahal-border */
    margin-bottom: 1.75rem;
    text-align: right; /* راست‌چین */
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right; /* راست‌چین */
}

.quick-links li {
    margin-bottom: 0.625rem;
}

.quick-links a {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #78716c; /* text-mahal-muted */
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: right; /* راست‌چین */
}

    .quick-links a:hover {
        color: #c2410c; /* hover:text-mahal-primary */
    }

/* اطلاعات تماس - ستون سوم */
.contact-section h3 {
    font-family: 'Morabba', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #e7e5e4; /* text-mahal-border */
    margin-bottom: 1rem;
    text-align: right; /* راست‌چین */
}

.contact-description {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 2rem;
    color: #78716c; /* text-mahal-muted */
    text-align: right; /* راست‌چین */
}

.contact-info {
    margin-top: 1.25rem;
    text-align: right; /* راست‌چین */
}

.contact-item {
    margin-bottom: 1rem;
    text-align: right; /* راست‌چین */
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #78716c; /* text-mahal-muted */
    text-align: right; /* راست‌چین */
}

.contact-value {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #e7e5e4; /* text-mahal-border */
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: right; /* راست‌چین */
}

    .contact-value:hover {
        color: #c2410c; /* hover:text-mahal-primary */
    }

/* نوار پایینی */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e7e5e4; /* border-mahal-border */
    padding: 1.5rem 0;
    text-align: center;
}

/* ریسپانسیو نوار پایینی */
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        text-align: right; /* راست‌چین در دسکتاپ */
    }
}

.copyright {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.75rem;
    color: #78716c; /* text-mahal-muted */
    text-align: right; /* راست‌چین */
}

    .copyright strong {
        font-weight: 700;
        color: #e7e5e4; /* text-mahal-border */
    }

.design-credit {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.75rem;
    color: #78716c; /* text-mahal-muted */
    text-align: right; /* راست‌چین */
}

    .design-credit a {
        font-weight: 700;
        color: #c2410c; /* text-mahal-primary */
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .design-credit a:hover {
            color: #9a3412; /* hover:text-mahal-primaryDark */
        }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 1.25rem;
}

@media (min-width: 768px) {
    .footer-links {
        flex-wrap: nowrap;
        justify-content: flex-start; /* شروع از راست */
    }
}

.footer-links a {
    font-size: 0.75rem;
    font-weight: 700;
    color: #78716c; /* text-mahal-muted */
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-links a:hover {
        color: #c2410c; /* hover:text-mahal-primary */
    }
/* تم آجری */
[data-dropdown-menu] button[data-value] {
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    color: #4a3f35; /* قهوه‌ای خیلی تیره برای متن */
}

    /* نقطه آجری کنار آیتم */
    [data-dropdown-menu] button[data-value]::before {
        content: "";
        position: absolute;
        right: 14px;
        top: 50%;
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background-color: #c2410c; /* آجری تیره */
        opacity: 0;
        transform: translateY(-50%) scale(0.4);
        transition: all 0.25s ease;
    }

    [data-dropdown-menu] button[data-value]:hover {
        padding-right: 32px;
        background-color: rgba(194, 65, 12, 0.08); /* پس‌زمینه آجری بسیار ملایم */
        color: #c2410c; /* متن آجری */
        box-shadow: inset 3px 0 0 rgba(194, 65, 12, 0.4); /* خط عمودی آجری */
    }

        [data-dropdown-menu] button[data-value]:hover::before {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }

    [data-dropdown-menu] button[data-value]:active {
        transform: scale(0.98);
    }

.results-header-animate {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    animation: resultsHeaderFadeIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes resultsHeaderFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-state-icon {
    animation: emptyIconFloat 3s ease-in-out infinite;
}

@keyframes emptyIconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.faq-item {
    animation: faqItemIn 0.6s ease both;
}

    .faq-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .faq-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .faq-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .faq-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    .faq-item:nth-child(5) {
        animation-delay: 0.25s;
    }

    .faq-item:nth-child(6) {
        animation-delay: 0.3s;
    }

@keyframes faqItemIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(194, 65, 12, 0.12), transparent 32%), radial-gradient(circle at bottom left, rgba(30, 58, 95, 0.07), transparent 30%), linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.auth-card {
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 55px rgba(30, 58, 95, 0.10);
}

.auth-form-wrap {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
}

.auth-input {
    height: 48px;
}

.auth-icon-box {
    box-shadow: 0 12px 26px rgba(194, 65, 12, 0.18);
}

@media (max-width: 420px) {
    .auth-card {
        max-width: 100%;
    }

    .auth-form-wrap {
        max-width: 100%;
    }

    .auth-input {
        height: 46px;
    }
}

.place-slider-track {
    display: flex;
    width: 100%;
}

.place-slider-slide {
    flex: 0 0 100%;
    width: 100%;
}

    .place-slider-slide img {
        display: block;
        width: 100%;
    }

/* Stories scroller (Instagram-like) */
.stories-track {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

    .stories-track::-webkit-scrollbar {
        display: none;
    }

.story-item {
    cursor: pointer;
}

    .story-item:focus {
        outline: none;
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        transform: translateY(-4px);
    }

/* Modal */
#story-modal {
    display: none;
}

    #story-modal.show {
        display: flex;
    }

    #story-modal .max-w-xl {
        animation: modalIn 220ms cubic-bezier(0.22,1,0.36,1) both;
    }

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #story-modal .max-w-xl {
        animation: none;
    }
}
#argbam {
    background-image: url('/src/img/arg-bam.jpg');
    background-size:100%;
}

#biston {
    background-image: url('/src/img/biston.jpg');
    background-size: 100%;
}