/*
Theme Name: آقازنت فاینال - Aghaznet Final Edition
Theme URI: https://aghaznet.ir
Author: Aghaznet Development Team
Author URI: https://aghaznet.ir
Description: نسخه نهایی و تست شده قالب رزرو اقامتگاه | 30+ امکانات | چند زبانه | چند ارز | بدون خطا | تضمینی
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aghaznet-final
Tags: accommodation, booking, hotel, villa, rental, responsive, rtl, persian

نسخه فاینال - بدون هیچ خطا - تضمینی
*/

/* ============================================
   استایل‌های امکانات پیشرفته
   ============================================ */

/* سوییچر زبان و ارز */
.language-switcher, .currency-switcher {
    position: relative;
    display: inline-block;
}

.current-language, .current-currency {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-dropdown, .currency-dropdown {
    display: none;
    position: absolute;
    background: white;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    z-index: 1000;
    top: 45px;
    right: 0;
}

.language-switcher:hover .language-dropdown,
.currency-switcher:hover .currency-dropdown {
    display: block;
}

.language-dropdown li, .currency-dropdown li {
    list-style: none;
}

.language-option, .currency-option {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.language-option:hover, .currency-option:hover {
    background: #f5f5f5;
}

/* نقشه */
#accommodation-map {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-popup {
    max-width: 250px;
}

.map-popup h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.map-popup img {
    margin: 10px 0;
}

/* فیلترها */
.advanced-filters {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.filter-item select, .filter-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.price-range-filter {
    grid-column: span 2;
}

#price-slider {
    margin: 20px 0;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #666;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.facility-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border-radius: 5px;
    cursor: pointer;
}

.facility-checkbox input {
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* نتایج فیلتر */
.filter-results {
    margin-top: 30px;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 5px;
}

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

/* مقایسه */
.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.comparison-table th {
    background: #0073aa;
    color: white;
    font-weight: 600;
}

.compare-item-header img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.compare-btn, .wishlist-btn {
    background: white;
    border: 2px solid #0073aa;
    color: #0073aa;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-btn:hover, .wishlist-btn:hover {
    background: #0073aa;
    color: white;
    transform: scale(1.1);
}

.compare-btn.active, .wishlist-btn.active {
    background: #0073aa;
    color: white;
}

.remove-compare {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
}

/* Wishlist */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* کوپن */
.coupon-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.coupon-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.coupon-form button {
    padding: 12px 30px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#coupon-message {
    margin-top: 10px;
}

#coupon-message .success {
    color: #27ae60;
    font-weight: 600;
}

#coupon-message .error {
    color: #e74c3c;
    font-weight: 600;
}

/* وفاداری */
.loyalty-dashboard {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loyalty-header {
    text-align: center;
    margin-bottom: 30px;
}

.points-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    display: inline-block;
    min-width: 200px;
}

.points-number {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.points-label {
    font-size: 18px;
    opacity: 0.9;
}

.loyalty-level {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.level-progress {
    background: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    height: 100%;
    transition: width 0.5s;
}

.points-benefits ul {
    list-style: none;
    padding: 0;
}

.points-benefits li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.points-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.points-history th, .points-history td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.points-history th {
    background: #f5f5f5;
    font-weight: 600;
}

.earned {
    color: #27ae60;
    font-weight: 600;
}

.spent {
    color: #e74c3c;
    font-weight: 600;
}

/* چت */
.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.chat-button {
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #0073aa;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f5f5f5;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 50%;
    cursor: pointer;
}

/* آب و هوا */
.weather-widget {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    min-height: 150px;
}

.weather-forecast {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.weather-day {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    min-width: 100px;
}

.weather-day img {
    width: 50px;
    height: 50px;
}

.temp {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.day-name, .desc {
    font-size: 14px;
    opacity: 0.9;
}

/* اشتراک‌گذاری */
.social-share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #666;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.pinterest { background: #e60023; }
.share-btn.copy-link { background: #6c757d; }

/* بیمه */
.insurance-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insurance-plan {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.insurance-plan:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,115,170,0.1);
}

.insurance-plan input {
    margin-left: 15px;
}

.plan-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .price-range-filter {
        grid-column: span 1;
    }
    
    .accommodations-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-window {
        width: 300px;
    }
    
    .comparison-table {
        font-size: 12px;
    }
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

a:hover {
    color: #3498db;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo h1 {
    font-size: 24px;
    color: #2c3e50;
}

.site-logo a {
    color: #2c3e50;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    padding: 10px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Search Form */
.search-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    font-size: 14px;
}

.btn-search {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-search:hover {
    background: #2980b9;
}

/* Accommodation Grid */
.accommodation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.accommodation-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accommodation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.accommodation-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.accommodation-content {
    padding: 20px;
}

.accommodation-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.accommodation-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.accommodation-price {
    font-size: 24px;
    color: #27ae60;
    font-weight: bold;
}

.accommodation-price small {
    font-size: 14px;
    color: #7f8c8d;
}

/* Dashboard */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px 0;
}

.dashboard-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    height: fit-content;
}

.dashboard-menu {
    list-style: none;
}

.dashboard-menu li {
    margin-bottom: 10px;
}

.dashboard-menu a {
    display: block;
    padding: 12px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.dashboard-menu a:hover,
.dashboard-menu a.active {
    background: #ecf0f1;
    color: #3498db;
}

.dashboard-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ecf0f1;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* Calendar Styles */
.booking-calendar {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border: 1px solid #ecf0f1;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: #ecf0f1;
}

.calendar-day.booked {
    background: #e74c3c;
    color: white;
    cursor: not-allowed;
}

.calendar-day.available {
    background: #27ae60;
    color: white;
}

.calendar-day.selected {
    background: #3498db;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
}
