/* فونت IRANSansWeb */
@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb_FaNum_Bold.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_FaNum_Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansWeb';
    src: url('../fonts/IRANSansWeb_FaNum_Medium.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_FaNum_Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* استایل‌های پایه */
:root {
    --primary-color: #007BFF;
    --secondary-color: #6c757d;
}

body {
    font-family: 'IRANSansWeb', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IRANSansWeb', sans-serif;
}

/* استایل‌های هدر */
.spot-hero {
    height: 60vh;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.spot-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.spot-hero h1 {
    position: relative;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* استایل‌های اصلی */
.spot-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.spot-section {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.spot-section p {
    text-align: justify;
}

/* گرید اطلاعات */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* ویژگی‌های منحصر به فرد */
.unique-features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.unique-feature-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-right: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* دسترسی و امکانات */
.spot-access ul {
    list-style: none;
    padding: 0;
}

.spot-access li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-right: 1.5rem;
}

.spot-access li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    right: 0;
}

/* فواصل */
.distances-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.distances-container h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.distance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
}

.distance-item:last-child {
    border-bottom: none;
}

.landmark-name {
    font-weight: 500;
    color: #333;
}

.distance-value {
    color: var(--primary-color);
    font-weight: bold;
}

/* سوالات متداول */
.faq-section {
    margin: 2rem 0;
}

.faq-container {
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.faq-question {
    padding: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question span {
    font-weight: 500;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 1rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* استایل‌های موبایل */
@media (max-width: 768px) {
    .spot-hero h1 {
        font-size: 2rem;
    }
    
    .info-grid {
        gap: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .distances-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .distance-item {
        padding: 0.6rem 0;
    }
}

/* کلاس کمکی */
.mt-4 {
    margin-top: 1.5rem !important;
}

/* گالری تصاویر */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* لایت‌باکس */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 0 15px;
}

/* ناوبری */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

/* تبلیغات */
.ad-container {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.ad-banner {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ad-banner:hover {
    transform: translateY(-3px);
}

.ad-close {
    position: absolute;
    top: 5px;
    left: 10px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ad-image {
    flex: 0 0 250px;
    border-radius: 8px;
    overflow: hidden;
}

.ad-text {
    flex: 1;
    padding: 10px;
}

.ad-title {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.ad-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ad-cta {
    display: inline-block;
    background: #007BFF;
    color: white !important;
    padding: 8px 25px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.ad-cta:hover {
    background: #0056b3;
}

/* تبلیغ ثابت */
.fixed-ad {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    max-width: 90%;
    padding: 10px;
    display: none;
}

/* دکمه بازگشت به بالا */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* دکمه جاذبه‌های گردشگری */
#fixedButton {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#fixedButton:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* پنل جاذبه‌ها */
#attractionsPanel {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 250px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

#attractionsPanel.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#attractionsPanel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#attractionsPanel li {
    margin-bottom: 0.8rem;
}

#attractionsPanel li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

#attractionsPanel li a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* ناوبری */
.navigation-links {
    text-align: center;
    margin: 2rem 0;
}

.back-button {
    display: inline-block;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(135deg, #0056b3, #003f7f);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* رسپانسیو */
@media (max-width: 768px) {
    .spot-hero {
        height: 50vh;
        min-height: 300px;
        margin-top: 50px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .spot-section {
        padding: 1.5rem;
    }

    .ad-content {
        flex-direction: column;
    }
    
    .ad-image {
        width: 100%;
        max-width: 400px;
    }
    
    .ad-text {
        text-align: center;
    }

    .breadcrumb-share-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-and-print {
        margin-top: 0.5rem;
    }
}

.distances-container.error {
    background: #fff3f3;
    border: 1px solid #dc3545;
}

.distances-container.error h3 {
    color: #dc3545;
}

.distances-container.error p {
    color: #666;
    margin: 0;
} 