/* ============================================
   Hotel Booking Section - Enhanced UI
   Green/Red color scheme matching site style
   ============================================ */

/* Main booking container */
.hotel-booking-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Section header with icon */
.booking-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.booking-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
}

.booking-section-header .header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #059669 0%, #04815c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

/* Date selection card */
.date-selection-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    padding: 0;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.date-selection-card:hover,
.date-selection-card:focus-within {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.date-selection-row {
    display: flex;
    align-items: stretch;
}

.date-field {
    flex: 1;
    padding: 16px 20px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.date-field:hover {
    background: #fafafa;
}

.date-field:first-child {
    border-right: 1px solid #e8e8e8;
}

.date-field .field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 4px;
}

.date-field .field-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-field .field-value i {
    color: #059669;
    font-size: 18px;
}

.date-field .field-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.date-field:hover .field-arrow {
    color: #059669;
}

/* Date divider arrow */
.date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: #f8f9fa;
    color: #999;
    font-size: 16px;
}

/* Check availability button - Green */
.btn-check-availability {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669 0%, #04815c 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Hover - Red */
.btn-check-availability:hover {
    background: linear-gradient(135deg, #ea2330 0%, #DC2626 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.btn-check-availability:active {
    transform: translateY(0);
}

.btn-check-availability.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-check-availability i {
    font-size: 18px;
}

/* Room list section */
.room-list-section {
    margin-top: 24px;
}

.room-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.room-list-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.room-count-badge {
    background: #e8f4e8;
    color: #059669;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Room card enhanced */
.room-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.room-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.room-card .room-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.room-card .room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.room-card .image-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.room-card .room-content {
    padding: 16px;
}

.room-card .room-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    cursor: pointer;
}

.room-card .room-title:hover {
    color: #059669;
}

.room-card .room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.room-card .feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.room-card .feature-item i {
    color: #059669;
    font-size: 14px;
}

/* Room selection control */
.room-select-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

.room-select-control .room-price-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.room-select-control select {
    padding: 8px 32px 8px 12px;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.room-select-control select:focus {
    outline: none;
    border-color: #059669;
}

/* Book now floating bar */
.book-now-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0.98) 100%);
    padding: 16px 24px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 16px 16px 0 0;
    margin-top: 16px;
}

.book-now-bar .summary {
    display: flex;
    flex-direction: column;
}

.book-now-bar .summary-label {
    font-size: 13px;
    color: #666;
}

.book-now-bar .summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Book Now Button - Green with Red hover */
.book-now-bar .btn-book-now {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669 0%, #04815c 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-now-bar .btn-book-now:hover {
    background: linear-gradient(135deg, #ea2330 0%, #DC2626 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: scale(1.02);
}

/* Loading state */
.room-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.room-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #059669;
}

/* No rooms available */
.no-rooms-alert {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #e65100;
}

.no-rooms-alert i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

/* ============================================
   Key Info Module (Hotel Service Features)
   Matching Event page style
   ============================================ */
.hotel-service-feature {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.hotel-service-feature .row {
    margin: 0 -10px;
}

.hotel-service-feature .item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
}

.hotel-service-feature .item .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #059669 0%, #04815c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.hotel-service-feature .item .info {
    flex: 1;
}

.hotel-service-feature .item .info .name {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
}

.hotel-service-feature .item .info .value {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hotel-booking-widget {
        padding: 16px;
        border-radius: 12px;
    }

    .date-selection-row {
        flex-direction: column;
    }

    .date-field:first-child {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }

    .date-divider {
        display: none;
    }

    .book-now-bar {
        padding: 12px 16px;
    }

    .book-now-bar .btn-book-now {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hotel-service-feature .item {
        padding: 8px 0;
    }
}
