/**
 * WebHotelier Booking Engine Styles
 * For FollowMeToGreece
 */

/* Wrapper for booking engine to ensure proper positioning */
.booking-engine-wrapper {
    position: relative;
    display: block;
    width: 100%;
    clear: both;
    margin-top: 30px;
    margin-bottom: 30px;
    overflow: visible;
}

/* Booking Search Form */
.booking-engine-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    padding: 20px;
    position: relative; /* Ensure proper positioning */
    z-index: 1; /* Lower z-index to prevent overlapping */
    clear: both; /* Clear any floats */
}

/* Modern Date Input Container Styles */
.booking-date-range {
    flex: 2;
    min-width: 280px;
}

.date-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.date-input-container:hover {
    border-color: #0071c2;
    box-shadow: 0 0 0 1px #0071c2;
}

.date-input-container:focus-within {
    border-color: #0071c2;
    box-shadow: 0 0 0 2px rgba(0, 113, 194, 0.2);
}

.date-input-container .fa-calendar {
    padding: 0 12px;
    color: #0071c2;
    font-size: 16px;
}

.date-input-container input {
    flex: 1;
    border: none;
    padding: 14px 8px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    color: #333;
}

.date-input-container input:focus {
    outline: none;
}

.date-input-container input::placeholder {
    color: #999;
    font-weight: normal;
}

.date-separator {
    color: #666;
    font-weight: 500;
    padding: 0 8px;
    font-size: 16px;
}

.booking-section-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.booking-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.booking-form-group {
    flex: 1;
    min-width: 150px;
}

.booking-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

.booking-form-group input,
.booking-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.booking-search-btn {
    background-color: #0071c2;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    padding: 10px 20px;
    transition: background-color 0.2s;
}

.booking-search-btn:hover {
    background-color: #005999;
}

/* Booking Results */
.booking-results-container {
    margin-top: 30px;
}

.booking-dates {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.room-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.room-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

@media (min-width: 768px) {
    .room-card {
        flex-direction: row;
    }
}

.room-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.room-card-content {
    flex: 1;
    padding: 20px;
}

.room-name {
    color: #2077ba;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.room-details {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.room-price {
    color: #0071c2;
    font-size: 1.5rem;
    font-weight: 700;
}

.room-price-details {
    color: #777;
    font-size: 0.85rem;
}

.room-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.room-cancellation {
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #555;
    font-size: 0.85rem;
    padding: 10px;
}

.room-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
}

@media (min-width: 768px) {
    .room-card-actions {
        width: 200px;
        flex-direction: column;
    }
}

.book-now-btn {
    background-color: #0071c2;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    padding: 10px 20px;
    transition: background-color 0.2s;
    width: 100%;
}

.book-now-btn:hover {
    background-color: #005999;
}

/* Booking Form Modal */
.booking-form-modal .modal-header {
    background-color: #0071c2;
    color: white;
}

.booking-form-modal .modal-title {
    font-weight: 600;
}

.booking-form-modal .close {
    color: white;
}

.booking-room-summary {
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 15px;
}

.booking-room-name {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.booking-price-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.booking-price-label {
    color: #555;
    font-size: 0.9rem;
}

.booking-price-value {
    color: #0071c2;
    font-size: 1.1rem;
    font-weight: 600;
}

.booking-form-section {
    margin-bottom: 20px;
}

.booking-form-section-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.booking-submit-btn {
    background-color: #0071c2;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    padding: 10px 20px;
    transition: background-color 0.2s;
}

.booking-submit-btn:hover {
    background-color: #005999;
}

/* Alerts */
#booking-alerts {
    margin: 15px 0;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .booking-search-form {
        flex-direction: column;
    }
    
    .booking-form-group {
        width: 100%;
    }
    
    .booking-search-btn {
        width: 100%;
    }
}

/* Free cancellation badge */
.free-cancellation-badge {
    background-color: #ebf3ff;
    border-radius: 4px;
    color: #0071c2;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 10px;
    padding: 5px 10px;
}

.free-cancellation-badge i {
    margin-right: 5px;
}

/* Room Details Modal Styles */
#roomDetailsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

#roomDetailsModal .modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#roomDetailsModal .modal-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#roomDetailsModal .modal-body {
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.room-details-content {
    display: grid;
    gap: 2rem;
}

.room-image {
    margin-bottom: 1rem;
}

.room-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.room-info h6 {
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.feature-list li i {
    color: #007bff;
}

/* Room header styling */
.room-header-content {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2077ba;
    margin-bottom: 0;
    display: block;
    line-height: 1.2;
    flex-grow: 1;
}

.room-details-row {
    display: flex;
    align-items: center;
    
}

.room-occupancy {
    margin-right: 15px;
}

/* View Room Details button styled like Change search button */
.view-room-details-btn {
    background-color: #0071c2;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.view-room-details-btn:hover {
    background-color: #005999;
    color: white;
    text-decoration: none;
}

/* Room type category styling */
#roomTypeCategory {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #0071c2;
}

#roomTypeCategory i {
    font-size: 1rem;
}

#roomTypeCategoryName {
    font-size: 0.95rem;
}
