/* جلوگیری از جابجایی صفحه در کل سایت */
html {
    overflow-x: hidden;
}


/* برای مرورگرهایی که اسکرول بار سفارشی دارند *
/* ==================== تنظیمات کلی صفحه اصلی ==================== */

.pom-homepage {
    background: #f8fafc;
}

/* ==================== بخش هیرو (تیتر و شعار) ==================== */

.pom-hero-section {
    background: linear-gradient(135deg, var(--pom-primary) 0%, var(--pom-secondary) 100%);
    background: radial-gradient(ellipse at center, var(--pom-primary) 0%, var(--pom-secondary) 100%);
    background: radial-gradient(ellipse at center, rgba(10, 17, 87, 0.3) 0%, var(--pom-primary) 0%, rgba(10, 17, 87, 0.9) 100%);
    padding: 20px;
    text-align: center;
    color: white;
}

.pom-hero-title {
    font-size: 36px;
    font-weight: 700;
}

.pom-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pom-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--pom-primary);
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pom-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
/* ==================== فرم جستجو - نسخه ساده و حرفه‌ای ==================== */
.pom-search-trigger-section {
    padding: 20px;
    background: #fff;
}

.pom-search-trigger-card {
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pom-search-trigger-card:hover {
    border-color: var(--pom-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* سمت چپ - آیکون و متن جستجو */
.pom-search-trigger-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pom-search-trigger-left i.icon-search {
    font-size: 18px;
    color: #94a3b8;
}

.pom-search-trigger-text {
    font-size: 14px;
    color: #64748b;
}

/* سمت راست - آیکون شهر و نام شهر */
.pom-search-trigger-right {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s;
}

.pom-search-trigger-card:hover .pom-search-trigger-right {
    background: var(--pom-primary);
}

.pom-search-trigger-right i.icon-location {
    font-size: 14px;
    color: var(--pom-primary);
}

.pom-search-trigger-card:hover .pom-search-trigger-right i.icon-location {
    color: white;
}

.pom-search-trigger-right span {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

.pom-search-trigger-card:hover .pom-search-trigger-right span {
    color: white;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .pom-search-trigger-section {
        padding: 15px;
    }
    
    .pom-search-trigger-card {
        padding: 5px 5px 5px 15px;
    }
    
    .pom-search-trigger-left i.icon-search {
        font-size: 16px;
    }
    
    .pom-search-trigger-text {
        font-size: 13px;
    }
    
    .pom-search-trigger-right {
        padding: 6px 12px;
    }
    
    .pom-search-trigger-right i.icon-location {
        font-size: 12px;
    }
    
    .pom-search-trigger-right span {
        font-size: 12px;
    }
}
/* ==================== اسلایدر با Swiper ==================== */

.pom-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pom-main-slider {
    width: 100%;
    height: auto;
}

.pom-main-slider .swiper-slide {
    position: relative;
}

.pom-slide-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pom-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 60px 20px 30px;
    text-align: center;
}

.pom-slide-caption h3 {
    color: white;
    font-size: 28px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* استایل دکمه‌های ناوبری Swiper */
.pom-main-slider .swiper-button-prev,
.pom-main-slider .swiper-button-next {
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: all 0.3s;
}

.pom-main-slider .swiper-button-prev:hover,
.pom-main-slider .swiper-button-next:hover {
    background: var(--pom-primary);
}

.pom-main-slider .swiper-button-prev:after,
.pom-main-slider .swiper-button-next:after {
    font-size: 18px;
    color: white;
}

/* استایل دات‌های Swiper */
.pom-main-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.pom-main-slider .swiper-pagination-bullet-active {
    background: white;
    width: 25px;
    border-radius: 10px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .pom-slide-image {
        height: 300px;
    }
    
    .pom-slide-caption h3 {
        font-size: 18px;
    }
    
    .pom-main-slider .swiper-button-prev,
    .pom-main-slider .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .pom-main-slider .swiper-button-prev:after,
    .pom-main-slider .swiper-button-next:after {
        font-size: 14px;
    }
}
/* ==================== بخش دسته‌بندی‌ها ==================== */

.pom-categories-section {
    padding: 20px;
    background: #fff;
}

.pom-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pom-section-title {
    font-size: 24px;
    color: #1e293b;
    margin: 0;
}

.pom-section-link {
    color: var(--pom-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.pom-section-link:hover {
    color: var(--pom-secondary);
}

.pom-categories-grid {
    display: grid;
    gap: 25px;
}

.pom-categories-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.pom-categories-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.pom-categories-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.pom-categories-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }
.pom-categories-grid.columns-6 { grid-template-columns: repeat(6, 1fr); }

.pom-category-card {
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.pom-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--pom-primary);
}


.pom-category-name {
    margin: 0 0 8px;
}

.pom-category-count {
    font-size: 12px;
    color: #64748b;
}

/* ==================== بخش جدیدترین مکان‌ها ==================== */

.pom-latest-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.pom-latest-grid {
    display: grid;
    gap: 25px;
}

.pom-latest-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.pom-latest-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.pom-latest-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

.pom-location-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pom-location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pom-card-link {
    text-decoration: none;
    color: inherit;
}

.pom-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.pom-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pom-location-card:hover .pom-card-image img {
    transform: scale(1.05);
}

.pom-card-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #94a3b8;
}

.pom-card-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pom-card-content {
    padding: 15px;
}

.pom-card-category {
    display: inline-block;
    background: #e5e8ff;
    color: var(--pom-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 10px;
}

.pom-card-title {
    font-size: 16px;
    font-weight: 400;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.4;
}

.pom-card-address {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pom-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.pom-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pom-rating-stars {
    display: flex;
    gap: 2px;
    direction: ltr;
}

.pom-rating-stars i {
    font-size: 12px;
    color: #cbd5e1;
}

.pom-rating-stars i.active {
    color: #fbbf24;
}

.pom-rating-number {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.pom-no-rating {
    font-size: 11px;
    color: #94a3b8;
}

.pom-card-more {
    font-size: 12px;
    color: var(--pom-primary);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ==================== ریسپانسیو ==================== */

@media (max-width: 992px) {
    .pom-categories-grid.columns-4,
    .pom-categories-grid.columns-5,
    .pom-categories-grid.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pom-latest-grid.columns-3,
    .pom-latest-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pom-hero-title {
        font-size: 24px;
    }
    
    .pom-hero-subtitle {
        font-size: 12px;
    }
    
    .pom-slide-image {
        height: 300px;
    }
    
    .pom-slide-caption h3 {
        font-size: 18px;
    }
    
    .pom-categories-grid.columns-2,
    .pom-categories-grid.columns-3,
    .pom-categories-grid.columns-4,
    .pom-categories-grid.columns-5,
    .pom-categories-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pom-latest-grid.columns-2,
    .pom-latest-grid.columns-3,
    .pom-latest-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .pom-search-wrapper {
        border-radius: 16px;
    }
    
    .pom-search-submit {
        justify-content: center;
    }
    
    .pom-section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pom-categories-grid {
    }
    
    .pom-slider-prev,
    .pom-slider-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 3 ستون برای دسته‌بندی‌ها در موبایل */
@media (max-width: 768px) {
    .pom-categories-grid.columns-4 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .pom-category-card {
        padding: 8px 5px !important;
        border-radius: 10px !important;
        background: #fff !important;
    }
    
    .pom-category-icon {
        width: 42px !important;
        height: 42px !important;
        margin: 0 auto 6px !important;
    }
    
    .pom-category-icon i {
        font-size: 18px !important;
    }
    
    .pom-category-name {
        font-size: 11px !important;
        font-weight: 500 !important;
    }
    
    .pom-category-count {
        font-size: 9px !important;
        color: #999 !important;
    }
}

@media (max-width: 380px) {
    .pom-categories-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
