/* --- Layout, Utility, Typography --- */
@font-face {
    font-family: 'YekanBakhFaNum2';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/eot/YekanBakhFaNum-Regular.eot');
    src: url('/assets/fonts/woff/YekanBakhFaNum-Regular.woff') format('woff'),
        url('/assets/fonts/ttf/YekanBakhFaNum-Regular.ttf') format('truetype'),
        url('/assets/fonts/woff2/YekanBakhFaNum-Regular.woff2') format('woff2');
}

* {
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f9f9f9;
    margin: 0;
    direction: rtl;
}

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

/* --- Header --- */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-size: 24px;
    font-weight: bolder;
    color: #28a745;
}

nav {
    display: flex;
    gap: 22px;
}

nav a {
    text-decoration: none;
    color: #444;
    font-size: 16px;
}

nav .nav-icon {
    display: none;
    font-size: 20px;
    color: #28a745;
}

/* --- Hero --- */
.hero {
    background: url('https://aghaz24.com/storage/images/bgbanner.webp') no-repeat center top;
    background-size: cover;
    height: 250px;
    position: relative;
}

.hero h1 {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
}

/* --- Search Section & Tabs --- */
.search-section {
    background: #fff;
    margin-top: -40px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #28a745;
    padding: 20px;
    position: relative;
    z-index: 5;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.tabs button {
    padding: 8px 16px;
    background: #eee;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    min-width: 90px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.tabs button:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.tabs button.active {
    background: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.tabs button i {
    font-size: 18px;
    margin-left: 4px;
}

.subtabs {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
    display: none;
}

.subtabs.active {
    display: block;
}

/* --- Search Box --- */
.search-box,
.tab-content {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.search-box.active,
.tab-content.active {
    display: flex;
}

.search-box input,
.search-box select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 160px;
    flex: 1;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.search-box input:focus,
.search-box select:focus {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
}

.search-box input:hover,
.search-box select:hover {
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.25);
}

.search-box button {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    max-width: 150px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.search-box button:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* --- Features --- */
.features {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 300px;
}

.feature-card img {
    width: 100%;
    height: 170px;
    object-fit: fill;
}

.feature-card .info {
    padding: 10px;
}

/* --- Pre Footer --- */
.pre-footer {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 40px 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.pre-footer .box {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.pre-footer img {
    width: 100px;
    margin-bottom: 10px;
}

/* --- Footer --- */
footer {
    background: #f1f1f1;
    padding: 40px 20px 10px;
    font-size: 14px;
    color: #333;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-col ul {
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-copy {
    text-align: center;
    font-size: 13px;
    color: #777;
    padding: 10px 0;
}

/* --- Footer Form Styles --- */
.footer-col input[type="email"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
}

.footer-col input[type="email"]:hover {
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.25);
}

.footer-col button:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* --- Promo Menu (Banner Panel) --- */
.promo-menu {
    display: flex;
    gap: 20px;
    margin: 40px 0 40px 0;
    width: 100%;
    justify-content: center;
}

.promo-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 260px;
    max-width: 320px;
}

.promo-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.promo-card img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.promo-card.small {
    height: 170px;
}

.promo-card.large {
    flex: 2 1 600px;
    min-width: 400px;
    max-width: 800px;
    height: 360px;
    overflow: hidden;
    position: relative;
}

.promo-card.large img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.promo-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 24px 18px 24px;
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.promo-info.purple {
    background: linear-gradient(90deg, #5a3e8e 80%, transparent);
}

.promo-info.blue {
    background: linear-gradient(90deg, #3b82c4 80%, transparent);
}

.promo-info.dark {
    background: linear-gradient(90deg, #23406e 80%, transparent);
}

.promo-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.promo-title.big {
    font-size: 28px;
}

.promo-desc {
    font-size: 16px;
    margin-bottom: 12px;
}

.promo-btn {
    background: #28a745;
    color: #fff;
    border-radius: 8px;
    padding: 6px 18px;
    text-decoration: none;
    font-size: 15px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-card.mobile-large {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .promo-card.large {
        height: 300px;
    }
}

@media (max-width: 900px) {
    .promo-menu {
        flex-direction: column;
        gap: 0;
        margin: 0;
        align-items: stretch;
    }

    .promo-left {
        flex-direction: row;
        gap: 0;
        max-width: unset;
    }

    .promo-card.small {
        flex: 1 1 48%;
        height: 120px;
    }

    .promo-card.large {
        min-width: unset;
        max-width: unset;
        height: 220px;
    }

    .promo-card img,
    .promo-card.large img {
        height: 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    nav .nav-link {
        display: none;
    }

    nav .nav-icon {
        display: block;
    }

    nav {
        gap: 15px;
    }

    .search-section {
        width: 95%;
        min-width: unset;
        max-width: unset;
    }

    .search-box,
    .tab-content {
        width: 95%;
        min-width: unset;
        max-width: unset;
    }

    .search-box {
        flex-direction: column !important;
        align-items: center;
    }

    .search-box input,
    .search-box select,
    .search-box button {
        width: 90%;
        min-width: unset;
        max-width: unset;
        margin: 0 auto 10px auto;
        display: block;
    }

    .search-box button {
        margin-bottom: 0;
    }

    .tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .tabs button {
        flex: 1 1 18%;
        min-width: 0;
        margin-bottom: 8px;
        max-width: calc(20% - 6px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        padding: 8px 2px;
    }

    .tabs button i {
        margin-left: 0;
        margin-bottom: 2px;
        font-size: 20px;
    }

    .features,
    .pre-footer {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        background-image: url('https://aghaz24.com/images/bgbanner2.png');
    }

    .promo-menu {
        flex-direction: column;
        gap: 0;
        margin: 0;
        align-items: stretch;
        padding: 0;
    }

    .promo-left {
        display: none !important;
    }

    .promo-card.small {
        display: none !important;
    }

    .promo-slider {
        max-width: 600px;
        margin: 24px auto 0 auto !important;
        margin-bottom: 0 !important;
    }

    .main-content {
        padding-bottom: 80px !important;
    }

    .footer-badges,
    .footer-copy {
        padding-bottom: 80px !important;
    }
}

@media (max-width: 767px) {
    .update-date-btn {
        min-height: 48px;
    }
}

/* شناسه هتل */
.hotel-id-box {
    background: #d32f2f;
    color: #fff;
    border-radius: 10px;
    padding: 2px 16px;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 0;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .hotel-id-box {
        display: block;
        margin: 10px auto 0 auto;
        text-align: center;
        width: fit-content;
        float: none;
    }
}

/* علاقه‌مندی */
.hotel-fav-box {
    color: black;
    border-radius: 10px;
    padding: 6px 18px;
    font-size: 15px;

}

@media (max-width: 767px) {
    .hotel-fav-box {
        display: flex;
        margin: 10px auto 0 auto;
        justify-content: center;
        float: none;
    }
}

/* سایز آیکون‌ها و فونت شناسه و علاقه‌مندی */
.hotel-id-box i,
.hotel-fav-box i {
    font-size: 15px !important;
}

.hotel-id-box,
.hotel-fav-box {
    font-size: 14px;
}

@media (max-width: 767px) {
    .hotel-fav-box {
        margin-bottom: 14px;
    }
}

/* دکمه بروزرسانی تاریخ */
.update-date-btn {
    flex: 1 1 0;
    min-width: 160px;
    max-width: 100%;
    margin: 0 10px 0 0;
    padding: 10px 0;
    background: #28a745;
    color: #fff;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-family: YekanBakhFaNum2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    transition: background 0.2s;
    display: block;
}

.update-date-btn:hover {
    background: #125ea7;
}

@media (max-width: 767px) {
    .update-date-btn {
        width: 100%;
        margin: 14px auto 0 auto;
        min-height: 48px;
        padding: 14px 0;
        font-size: 15px;
        display: block;
    }
}

/* User Menu Styles */
.user-menu-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #3B82F622;
    padding: 24px 18px;
    text-align: center;
    margin: 0 auto 24px auto;
    max-width: 350px;
}

.user-menu-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 18px;
    color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.user-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-menu-btn {
    background: #f5f5f5;
    color: #333;
    border-radius: 8px;
    padding: 10px 0;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.user-menu-btn.logout {
    background: #d32f2f;
    color: #fff;
}

.user-menu-btn:hover {
    background: #e3e3e3;
}

.user-menu-btn.logout:hover {
    background: #b71c1c;
}