/**
 * استایل فرم رزرو اقامتگاه - بخش عمومی
 * @package Hotel Booking Iran
 */

.hbi-booking-container {
    margin: 25px 0;
    padding: 0;
    direction: rtl;
}

.hbi-booking-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.hbi-form-title {
    color: #1e3c72;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #28a745;
}

/* چیدمان دو ستونی برای فرم اصلی */
.hbi-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* ستون راست و چپ */
.hbi-column-right,
.hbi-column-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* برای موبایل به یک ستون تبدیل شود */
@media (max-width: 768px) {
    .hbi-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* امکانات ویژه */
.hbi-amenities {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 0;
    font-size: 14px;
}

.hbi-amenity-tag {
    display: inline-block;
    margin-left: 8px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid #ddd;
}

/* فرم فیلدها */
.hbi-form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.hbi-form-field:last-child {
    margin-bottom: 0;
}

.hbi-field-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.hbi-field-label .required {
    color: #dc3545;
    margin-right: 3px;
}

.hbi-form-field input,
.hbi-form-field select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
}

.hbi-form-field input:focus,
.hbi-form-field select:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.hbi-field-note {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.extra-price-note {
    color: #e67e22;
}

/* خدمات اضافی */
.hbi-extra-services {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 0;
}

.hbi-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.hbi-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 25px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hbi-service-item:hover {
    border-color: #28a745;
    background: #f0fff4;
}

.hbi-service-item input {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.service-price {
    color: #28a745;
    font-weight: 500;
    font-size: 12px;
}

/* اطلاعات کاربر */
.hbi-user-info {
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
}

.hbi-section-title {
    color: #1e3c72;
    font-size: 16px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* نمایش قیمت */
.hbi-price-details {
    background: #f0f8ff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 0;
}

.hbi-price-header h4 {
    margin: 0 0 10px 0;
    color: #1e3c72;
}

.hbi-price-breakdown {
    border-top: 1px solid #d0e0f0;
    padding-top: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e8f0;
}

.total-row {
    border-bottom: none;
    padding-top: 12px;
    font-size: 18px;
    color: #2e7d32;
}

.hbi-nights-info {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #d0e0f0;
}

/* پیام خطا */
.hbi-error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    border-right: 3px solid #c62828;
}

/* دکمه افزودن به سبد خرید */
#hbi_add_to_cart_btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: #28a745;
    border-color: #28a745;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#hbi_add_to_cart_btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#hbi_add_to_cart_btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* تقویم شمسی */
.persian-datepicker {
    z-index: 9999 !important;
    font-family: 'Vazir', Tahoma, 'Segoe UI', sans-serif !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15) !important;
}

.persian-datepicker .picker-header {
    background: #1e3c72 !important;
    border-radius: 12px 12px 0 0 !important;
}

.persian-datepicker .picker-header .picker-title {
    color: white !important;
}

.persian-datepicker .picker-toolbar .picker-today,
.persian-datepicker .picker-toolbar .picker-close {
    background: #28a745 !important;
    color: white !important;
}

.persian-datepicker .picker-day.selected {
    background: #28a745 !important;
    color: white !important;
}

/* تاریخ‌های غیرقابل انتخاب (رزرو شده) */
.hbi-disabled-date,
.persian-datepicker .picker-day.disabled-date,
.persian-datepicker .picker-day.unavailable {
    background: #ffebee !important;
    color: #c62828 !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.hbi-disabled-date:hover,
.persian-datepicker .picker-day.disabled-date:hover {
    background: #ffcdd2 !important;
    cursor: not-allowed !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hbi-booking-form {
        padding: 15px;
    }
    
    .hbi-services-list {
        flex-direction: column;
        gap: 8px;
    }
    
    .hbi-service-item {
        width: 100%;
    }
}

/* مخفی کردن المان‌های پیش‌فرض ووکامرس برای محصولات رزرو */
.hbi-booking-container ~ .single_add_to_cart_button,
.hbi-booking-container ~ .quantity,
.single-product .product .summary p.price {
    display: none !important;
}

.hbi-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 15px;
}

.hbi-column-left,
.hbi-column-right {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.hbi-section-title {
    margin-top: 0;
    margin-bottom: 18px;
    color: #1e3c72;
    font-size: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hbi-two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ========================================
   امکانات اقامتگاه زیر عکس شاخص
   ======================================== */

.hbi-amenities-below-gallery {
    margin: 20px 0 0 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    clear: both;
}

.hbi-amenities-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e3c72;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #28a745;
    display: inline-block;
}

.hbi-amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.hbi-amenity-item-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 65px;
    padding: 10px 6px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.hbi-amenity-item-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hbi-amenity-icon-large {
    font-size: 38px !important;
    line-height: 1;
    margin-bottom: 6px;
    display: block;
}

.hbi-amenity-name-large {
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

/* واکنشگرایی */
@media (max-width: 576px) {
    .hbi-amenities-grid {
        gap: 10px;
    }
    
    .hbi-amenity-item-large {
        min-width: 55px;
        padding: 8px 4px;
    }
    
    .hbi-amenity-icon-large {
        font-size: 30px !important;
    }
    
    .hbi-amenity-name-large {
        font-size: 11px;
    }
}

/* ========================================
   روزهای رزرو شده در تقویم
   ======================================== */

.persian-datepicker .picker-day.hbi-booked-day {
    background: #ffebee !important;
    color: #c62828 !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    position: relative;
}

.persian-datepicker .picker-day.hbi-booked-day:hover {
    background: #ffcdd2 !important;
    cursor: not-allowed !important;
}

.persian-datepicker .picker-day.hbi-booked-day:after {
    content: '🚫';
    position: absolute;
    font-size: 9px;
    bottom: 2px;
    left: 2px;
    opacity: 0.8;
}

.persian-datepicker .picker-day.hbi-invalid-day {
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.persian-datepicker .picker-day.hbi-invalid-day:hover {
    background: #eeeeee !important;
    cursor: not-allowed !important;
}

/* روز جاری در تقویم */
.persian-datepicker .picker-day.today {
    background: #e8f5e9 !important;
    border: 1px solid #28a745 !important;
    font-weight: bold !important;
}

/* روز انتخاب شده */
.persian-datepicker .picker-day.selected {
    background: #28a745 !important;
    color: white !important;
    font-weight: bold !important;
}


/* ========================================
   مخفی کردن دکمه پیش‌فرض ووکامرس
   ======================================== */

.single-product .product .summary .cart .single_add_to_cart_button,
.single-product .product .summary .cart .quantity,
.single-product .product .summary p.price {
    display: none !important;
}

#hbi_add_to_cart_btn {
    display: inline-block !important;
}

/* ========================================
   روزهای رزرو شده در تقویم
   ======================================== */

.persian-datepicker .picker-day.hbi-booked-day {
    background: #ffebee !important;
    color: #c62828 !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    position: relative;
}

.persian-datepicker .picker-day.hbi-booked-day:hover {
    background: #ffcdd2 !important;
    cursor: not-allowed !important;
}

.persian-datepicker .picker-day.hbi-booked-day:after {
    content: '🚫';
    position: absolute;
    font-size: 9px;
    bottom: 2px;
    left: 2px;
    opacity: 0.8;
}

.persian-datepicker .picker-day.hbi-invalid-day {
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.persian-datepicker .picker-day.hbi-invalid-day:hover {
    background: #eeeeee !important;
    cursor: not-allowed !important;
}

.persian-datepicker .picker-day.today {
    background: #e8f5e9 !important;
    border: 1px solid #28a745 !important;
    font-weight: bold !important;
}

.persian-datepicker .picker-day.selected {
    background: #28a745 !important;
    color: white !important;
    font-weight: bold !important;
}