@font-face {
    font-family: 'Vazir';
    src: local('Vazir'), url('/fonts/Vazir.woff2') format('woff2'), 
         url('/fonts/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: 'Vazir', tahoma, Arial, sans-serif;
}

body {
    background-color: #f7f3eb;
    direction: rtl;
    text-align: right;
}

/* منوی ناوبری */
.navbar {
    background-color: rgba(0, 100, 0, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 100, 0, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* هدر اصلی */
.main-header {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    height: 100vh;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 60, 0, 0.7);
    border-radius: 1rem;
}

.header-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* بخش معرفی */
.intro-section {
    padding: 5rem 0;
}

.intro-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.garden-features-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 25px;
}

.garden-features-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: #38a169;
}

/* گالری */
.gallery-section {
    padding: 5rem 0;
    background-color: #f0f7f0;
}

.gallery-container {
    position: relative;
    margin-bottom: 3rem;
}

.main-slider {
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.main-slider .slick-list, 
.main-slider .slick-track {
    height: 400px !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.main-slider .slick-slide {
    float: left !important;
    height: 400px !important;
    min-height: 200px !important;
    width: 100% !important;
    position: relative !important;
    transition: all 0.5s ease;
    transform: scale(0.95);
}

.main-slider .slick-current {
    opacity: 1;
    transform: scale(1);
}

.main-slider .slick-slide img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    display: block !important;
}

.slick-prev, .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slick-prev:hover, .slick-next:hover {
    background-color: rgba(56, 161, 105, 0.8);
}

.slick-prev {
    right: 20px;
}

.slick-next {
    left: 20px;
}

.thumbnail-slider {
    margin: 0 auto;
    max-width: 90%;
}

.thumbnail-slider .slick-slide {
    padding: 5px;
    opacity: 0.6;
    transition: all 0.3s ease;
    transform: scale(0.85);
}

.thumbnail-slider .slick-current {
    opacity: 1;
    transform: scale(1);
}

.thumbnail-slider .slick-slide img {
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-slider .slick-current img {
    border-color: #38a169;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ویدیوها */
.videos-section {
    padding: 5rem 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* رزرو */
.reservation-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.calendar-container {
    background-color: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f5f5f5;
}

.calendar-month {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2d3748;
}

.calendar-actions button {
    background-color: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-actions button:hover {
    background-color: #cbd5e0;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 0.5rem 0;
    background-color: #edf2f7;
}

.calendar-days-header div {
    font-weight: bold;
    color: #4a5568;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
    padding: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: 9999px;
    cursor: default;
    transition: all 0.2s;
    position: relative;
    margin: 0.125rem;
}

.calendar-day.empty {
    background-color: transparent;
}

.calendar-day.available {
    background-color: #e6fffa;
    color: #2c7a7b;
    cursor: pointer;
}

.calendar-day.available:hover {
    background-color: #b2f5ea;
}

.calendar-day.booked {
    background-color: #fed7d7;
    color: #c53030;
}

.calendar-day.selected {
    background-color: #4299e1;
    color: white;
    font-weight: bold;
}

.calendar-day.check-in {
    background-color: #38a169;
    color: white;
}

.calendar-day.check-out {
    background-color: #e53e3e;
    color: white;
}

.calendar-day.in-range {
    background-color: #bee3f8;
    color: #2b6cb0;
}

.calendar-day.past {
    background-color: #edf2f7;
    color: #a0aec0;
    cursor: not-allowed;
}

/* اضافه کردن نوار بین روزهای انتخاب شده */
.calendar-day.in-range::before {
    content: "";
    position: absolute;
    top: 0;
    left: -0.125rem;
    right: -0.125rem;
    height: 100%;
    background-color: #bee3f8;
    z-index: -1;
}

#adminCalendarDays .calendar-day {
    font-size: 0.75rem;
}

.reservation-info {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.garden-selection {
    margin-bottom: 1.5rem;
}

.reservation-form {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 0.25rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #38a169;
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2);
}

.form-submit-btn {
    background-color: #38a169;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit-btn:hover {
    background-color: #2f855a;
}

/* تماس با ما */
.contact-section {
    padding: 5rem 0;
}

.contact-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info li {
    margin-bottom: 1rem;
    padding-right: 30px;
    position: relative;
}

.contact-info li i {
    position: absolute;
    right: 0;
    top: 5px;
    color: #38a169;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #38a169;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #2f855a;
    transform: translateY(-3px);
}

/* فوتر */
.footer {
    background-color: #1a202c;
    color: white;
    padding: 3rem 0;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* مودال */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    margin: 10% auto;
    padding: 2rem;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #2d3748;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .calendar-day {
        height: 40px;
    }
    
    .modal-content {
        width: 90%;
        padding: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .main-header {
        height: 70vh;
    }
    
    .header-content {
        width: 90%;
    }
    
    .reservation-form, 
    .reservation-info {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.5rem;
    }
    
    .main-slider .slick-list, 
    .main-slider .slick-track,
    .main-slider .slick-slide {
        height: 220px !important;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: 1.75rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .intro-section,
    .gallery-section,
    .videos-section,
    .reservation-section,
    .contact-section {
        padding: 2rem 0;
    }
    
    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .calendar-day {
        height: 35px;
        font-size: 0.8rem;
    }
    
    .calendar-days-header div {
        font-size: 0.8rem;
    }
    
    .garden-selection label {
        font-size: 0.9rem;
    }
    
    .garden-selection .text-sm {
        font-size: 0.8rem;
    }
    
    .video-container {
        height: 200px;
    }
    
    .form-submit-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .calendar-actions button {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .calendar-month {
        font-size: 1rem;
    }
    
    .main-slider .slick-list, 
    .main-slider .slick-track,
    .main-slider .slick-slide {
        height: 140px !important;
    }
    
    .thumbnail-slider .slick-slide img {
        height: 50px !important;
    }
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

/* صفحه مدیریت */
.admin-section {
    padding: 5rem 0;
}

.admin-header {
    background-color: #2d3748;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.admin-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    white-space: nowrap;
}

.admin-action-btn {
    padding: 0.4rem 0.6rem;
    margin: 0 0.1rem;
    border-radius: 0.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-approve {
    background-color: #38a169;
    color: white;
    border: none;
}

.btn-approve:hover {
    background-color: #2f855a;
}

.btn-reject {
    background-color: #e53e3e;
    color: white;
    border: none;
}

.btn-reject:hover {
    background-color: #c53030;
}

.btn-edit {
    background-color: #4299e1;
    color: white;
    border: none;
}

.btn-edit:hover {
    background-color: #3182ce;
}

/* صفحه ورود مدیر */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f3eb;
}

.login-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #2d3748;
}

.login-btn {
    background-color: #38a169;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #2f855a;
}

/* پیجینیشن */
.pagination-btn {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #4a5568;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.pagination-btn.active {
    background-color: #38a169;
    color: white;
    border-color: #38a169;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* استایل‌های مربوط به جزئیات باغ */
.garden-details-btn {
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.garden-details-btn:hover {
    transform: translateY(-1px);
}

#gardenDetailsContent .bg-gray-50 {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#gardenDetailsContent .bg-gray-50:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f9fdf9;
}

#gardenDetailsContent .bg-green-50 {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#gardenDetailsContent .bg-green-50:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Additional fixes for gallery slider */
.main-slider .slick-dots {
    position: absolute !important;
    bottom: 10px !important;
    width: 100% !important;
    text-align: center !important;
    z-index: 2 !important;
}

@media (max-width: 768px) {
    .main-slider .slick-list, 
    .main-slider .slick-track,
    .main-slider .slick-slide {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .main-slider .slick-list, 
    .main-slider .slick-track,
    .main-slider .slick-slide {
        height: 140px !important;
    }
}

/* Fix for mobile menu */
#mobileMenu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobileMenu.show {
    max-height: 500px;
}

/* Fix for contact info icons on mobile */
.contact-info li {
    padding-right: 30px;
    position: relative;
    margin-bottom: 10px;
}

.contact-info li i {
    position: absolute;
    right: 0;
    top: 4px;
}

/* Force main slider and its children to always be visible and have height */
.main-slider, .main-slider .slick-track, .main-slider .slick-slide {
    min-height: 200px !important;
    height: 400px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .main-slider, .main-slider .slick-track, .main-slider .slick-slide {
        min-height: 120px !important;
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .main-slider, .main-slider .slick-track, .main-slider .slick-slide {
        min-height: 80px !important;
        height: 140px !important;
    }
}

#servicesDropdown, #servicesDropdownMobile {
    max-height: 300px;
    overflow-y: auto;
    width: 250px;
    right: auto;
    left: 0;
}

#servicesDropdownMobile {
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    right: 0;
    left: 0;
    position: static;
} 