@font-face {
    font-family: 'Vazirmatn';
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;

    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

:root {

    /* فونت‌های پایه */
    --fs-body: 1rem; /* 16px */
    --fs-small: 0.95rem; /* 15.2px */

    /* عنوان‌ها */
    --fs-h1: 2rem; /* 32px */
    --fs-h2: 1.7rem; /* 27px */
    --fs-h3: 1.3rem; /* 21px */

    /* منو */
    --fs-nav: 1rem;

}

@media (max-width: 768px) {

    :root {

        /* متن‌ها */
        --fs-body: 1rem;
        --fs-small: 0.95rem;

        /* عنوان‌ها */
        --fs-h1: 1.8rem; /* حدود 29px */
        --fs-h2: 1.5rem; /* 24px */
        --fs-h3: 1.2rem; /* 19px */

        /* منو */
        --fs-nav: 1.05rem; /* حدود 17px */

    }

}

.breadcrumb {
    font-size: var(--fs-body);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0 32px;
    line-height: 1.8;
}

.breadcrumb a {
    color: #0A4B6B;
    text-decoration: none;
    transition: .2s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #999;
}

@media (max-width: 768px) {

    .breadcrumb {
        font-size: var(--fs-body);
        margin: 18px 0 24px;
        gap: 4px;
    }

}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn';
    font-size: var(--fs-body);
    background-color: #F9FAFB;
    color: #1F2937;
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;

}

img, iframe, video {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* استایل دکمه همبرگر */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 2px;
}

/* هدر و نویگیشن */
.header {
    background-color: #0A4B6B;
    color: white;
    padding: 4px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav img {
    border-radius: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-size: var(--fs-nav);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #38BDF8;
}


/* فوتر */
.footer {
    font-size: var(--fs-small);
    background-color: #1F2937;
    color: white;
    padding: 40px 0;
}

.footer h3 {
    font-size: var(--fs-h3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-content h3 {
    margin-bottom: 10px;
}

.footer-address p {
    padding-top: 15px;
}

.footer-address a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-address a:hover {
    color: #38BDF8;
}

.footer-bottom {
    font-size: 14px;
    text-align: center;
    padding-top: 20px;
    margin-top: 50px;
    color: gray;
    border-top: 1px solid #333;
}

.map-box {
    margin-top: 20px;
}

.map-box img {
    width: 100% !important;
    max-width: 100%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.map-box img:hover {
    transform: scale(1.03);
}

.socials {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.social-icon:hover img {
    transform: scale(1.15);
}

.fast-link a {
    font-size: 0.95rem;
}

.fast-link, .fast-link a {
    list-style: none;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.fast-link a:hover {
    color: #38BDF8;
}

/* ========== ریسپانسیو برای موبایل (عرض کمتر از 768px) ========== */
@media (max-width: 768px) {

    .header .container {
        padding: 0 20px;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .brand img {
        width: 120px;
        height: auto;
    }

    .logo {
        display: none;
    }

    .hamburger {
        display: flex;
        margin: 0;
        padding: 8px;
    }

    .nav-links {
        font-size: 1.05rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        background: #0A4B6B;
        padding-top: 90px;
        transform: translateX(-100%);
        transition: transform .4s ease;
        z-index: 2000;
        pointer-events: none;
        visibility: hidden;
        box-shadow: 8px 0 25px rgba(0, 0, 0, .25);
    }

    .nav-links a {
        display: block;
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        color: white;
        text-decoration: none;
        font-size: 17px;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, .08);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links.active {

        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;

    }

    .nav-links li {
        list-style: none;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);

        opacity: 0;
        visibility: hidden;

        transition: .3s;

        z-index: 1500;
    }

    .menu-overlay {
        pointer-events: none;
    }

    .menu-overlay.active {
        pointer-events: auto;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ========== انیمیشن تبدیل به X برای دکمه همبرگر ========== */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 769px) and (max-width: 1024px) {

    .logo {
        font-size: 20px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 15px;
    }

}


/* ========== بهینه‌سازی برای Nest Hub Max ========== */
@media (max-width: 1280px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

/* ========== رفع متن‌های بلند در فوتر (برای همه دستگاه‌ها) ========== */
.footer-address p,
.fast-link li {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}


#toast-container {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 9999;
}

.toast {
    min-width: 280px;
    max-width: 360px;
    background: #ffffff;
    color: #333;
    border-right: 5px solid #0A4B6B;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    padding: 16px 18px;
    margin-bottom: 12px;

    opacity: 0;
    transform: translateY(-15px);
    transition: opacity .35s ease, transform .35s ease;
}

.toast.success {
    border-right-color: #2e7d32;
    background: #edf7ed;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: translateY(-15px);
}

.toast.error {
    border-right-color: #c62828;
    background: #fdecec;
}

.toast.warning {
    border-right-color: #ed6c02;
    background: #fff4e5;
}

.toast.info {
    border-right-color: #0288d1;
    background: #e8f4fd;
}

@media (max-width: 768px) {

    #toast-container {
        top: 15px;
        left: 15px;
        right: 15px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

}

@media (max-width: 320px) {

    .container {
        padding: 0 12px;
    }

    .logo {
        font-size: 1rem;
    }

    .home-btn,
    .booking-btn {
        padding: 10px 18px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

}