/* Error message styling */
.search_compo {
    max-width: 800px;
    margin: 0 auto;
}

/* Form styling */
#booking_res {
    padding: 0;
}

/* Date selection styling */
.checkdates {
    display: flex;
    /* border-bottom: 1px solid #e0e0e0; */
}

.t-datepicker {
    display: flex;
    width: 100%;
    position: relative;
}

.t-check-in, .t-check-out {
    flex: 1;
    position: relative;
}

.t-dates {
    display: flex;
    align-items: center;
}

.t-dates i.material-icons {
    margin-left: 8px;
    color: #666;
}

.t-date-info-title {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Passenger selection styling */
.pax {
    display: flex;
    padding: 10px 0;
}

.pax_adults, .pax_children, .pax_infants {
    flex: 1;
    padding: 3px;
    text-align: right;
}

.pax label {
    display: block;
    font-weight: bold;
    color: #222;
    position: absolute;
    width: 100%;
    padding: 11px;
    line-height: 1;
    z-index: -1;
}

.pax span {
    font-size: 11px;
    color: #a5a5a5;
    width: 100%;
    display: inline-block;
}

.pax select {
    width: 100%;
    height: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 5px center;
    background-size: 16px;
    padding-left: 24px;
    text-align: left;
}
#sidebar .t-check-in, #sidebar .t-check-out {
    border: 1px solid #dedede !important;
    box-shadow: none !important;
}
/* Button styling */
#sidebar .search {
    display: block;
    width: calc(100% - 10px);
    padding: 0;
    background: var(--color-orange);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    height: 50px;
    margin: 0 5px;
}

.search:hover {
    background-color: #e64a19;
}

/* Date display styling for the mockup */
.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
}

.date-day {
    font-size: 24px;
    font-weight: bold;
}

.date-month {
    font-size: 14px;
}

/* Error message styling from your CSS */
.date-validation-error {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: right;
    font-weight: bold;
    font-size: 14px;
    border-right: 4px solid #d32f2f;
    direction: rtl;
}

/* Loading overlay from your CSS */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

#loading-overlay .loading-box {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    direction: rtl;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin: 0 auto 15px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom styling to match screenshot */
.booking-grid {
    display: flex;
}

.date-column {
    flex: 3;
    display: flex;
}

.date-box {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px;
    padding: 10px;
    text-align: center;
    background-color: white;
}

.pax-column {
    flex: 5;
    display: flex;
}

.pax-box {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.pax-box-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.pax-box-range {
    font-size: 12px;
    color: #666;
}

.pax-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.pax-value {
    font-size: 18px;
    font-weight: bold;
    margin: 0 15px;
}

.dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-button {
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-weight: bold;
    margin: 10px;
    width: calc(100% - 20px);
    cursor: pointer;
    text-align: center;
    font-size: 18px;
}


/* Loading Popup Styles */
.loading-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    direction: rtl; /* For RTL text */
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.animated-text {
    min-height: 1.5em; /* Prevent layout shift during animation */
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

