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


body {
    min-height: 100vh;
    font-family: 'Vazirmatn', sans-serif;
    color: white;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s;
}

a:hover {
    transition: 0.3s;
    text-decoration: none;
    color: #c4c4c4;
}

body::before {
    content: "";
    position: fixed;
    /* همیشه کل صفحه رو بگیره */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/back.jpg');
    background-color: #222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Fixed for desktop */
    min-height: 100vh;
    overflow-x: hidden;
    filter: blur(10px);
    /* مقدار بلور */
    z-index: -1;
    /* پشت محتوای اصلی */
}
.navItem:hover {
    transform: translateY(-3px);

}

.navItem {
    transition: .3s;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
}


/* --- نوار ناوبری شیشه‌ای --- */
.glass-nav {
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-container span {
    font-size: 1.2rem;
    font-weight: 700;
}

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

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.icons-nav a {
    color: white;
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
}

.menu-toggle-btn {
    display: none;
    cursor: pointer;
}

/* --- بخش جستجو و دسته‌بندی --- */
.search-section {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    /* Stack elements vertically */
    align-items: center;
    /* Center the components */
    padding: 0 20px;
}

/* دکمه‌های دسته‌بندی جدید - استایل‌های یکنواخت و زیبا */
.category-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
    max-width: 600px;
    /* Match search-box max-width */
}

.category-selector button{
    flex-grow: 1;
    padding: 12px 10px;
    /* کاهش padding افقی برای جا شدن ۳ دکمه */
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.877) !important;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, opacity 0.3s, box-shadow 0.3s;
    border-radius: 30px;
    margin: 0 5px;
    opacity: 0.7;
    background-color: #0000003d !important;
    /* Inactive opacity - کمی بیشتر از قبل برای زیبایی */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* سایه ظریف برای همه دکمه‌ها */
}

.category-selector button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.category-selector button.active {
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    /* سایه درخشان‌تر برای دکمه فعال */
    transform: translateY(-3px);
    /* جابجایی بیشتر برای دکمه فعال */
}

#btn-tourism {
    background-color: #17c400;
    /* Green color (سبز) */
}

#btn-construction {
    background-color: #ffc400;
    /* Yellow color (زرد) */
    color: #111;
    /* Dark text for contrast */
}

#btn-commercial {
    background-color: #0084ff;
    /* Blue color (آبی) */
}


.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

#search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 35px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.856);
    transition: background 0.3s, box-shadow 0.3s;
}

#search-input::placeholder {
    color: #ccc;
}

#search-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(10, 220, 120, 0.5);
}

.search-box .fa-search {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #ccc;
}

/* --- گالری کارت‌های جدید --- */
.locations-container {
    padding: 0 20px;
}

.locations-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* گروه کارت‌های غیرفعال را مخفی کن */
.locations-gallery.hidden {
    display: none;
}


.location-card {
    position: relative;
    height: 250px;
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.location-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.location-card .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.location-card:hover .bg-image {
    transform: scale(1.1);
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background 0.4s ease;
}

.location-card:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.location-card h3 {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* --- منوی موبایل --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.show {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 25px;
    left: 35px;
    color: white;
    font-size: 3rem;
    text-decoration: none;
    cursor: pointer;
}

.mobile-main-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-main-nav ul li {
    margin: 25px 0;
}

.mobile-main-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
}

/* --- طراحی واکنش‌گرا --- */
@media (max-width: 992px) {

    .menu-toggle-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .logo-container span {
        font-size: 1rem;
    }

    .glass-nav {
        padding: 15px 20px;
    }

    .locations-gallery {
        /* نمایش دو ستون در موبایل */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .location-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .locations-gallery {
        /* نمایش یک ستون در موبایل های خیلی کوچک */
        grid-template-columns: 1fr;
    }
}