/* ===================================================================
   Pressvik Availability Checker Stylesheet v1.0.5
   =================================================================== */

/* --- Main Container & Filters --- */
.room-availability-checker-container {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.room-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 200px;
}

.filter-item label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.filter-item input[type="text"],
.filter-item select {
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
}

#check-availability-btn {
    background-color: #E6007E; /* Primary color */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    height: 48px; /* Matches input height */
}

#check-availability-btn:hover {
    background-color: #C00069; /* Primary color dark */
}

#check-availability-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* --- Results Area: Grid and Messages --- */
.room-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    position: relative;
    min-height: 150px;
}

.initial-message,
.error-message,
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #555;
    background-color: #fff;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.loading-message::after {
    content: ' .';
    animation: pac-dots 1.4s steps(5, end) infinite;
}

@keyframes pac-dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: #555; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 #555, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 #555, .5em 0 0 #555; }
}

/* --- Room Card --- */
.room-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.room-card-image {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    object-fit: cover;
}

.room-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.room-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #121212;
    margin: 0 0 10px 0;
}

.room-card-price {
    font-size: 16px;
    color: #555;
    margin: 0 0 15px 0;
}

.room-card-price .amount {
    font-weight: 700;
    color: #1E8449; /* Success color */
}

.room-card-availability {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.room-card-availability .beds-available {
    font-weight: 700;
    font-size: 22px;
    color: #E6007E; /* Primary color */
    margin: 0 5px;
}

/* --- "Book Now" Button in Card --- */
.room-card-actions {
    margin-top: auto; /* Pushes button to the bottom */
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.book-now-btn {
    display: block;
    width: 100%;
    background-color: #E6007E; /* Primary color */
    color: #ffffff;
    text-align: center;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.book-now-btn:hover {
    background-color: #C00069; /* Primary color dark */
    transform: translateY(-2px);
    color: #ffffff;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    .room-listing-grid {
        grid-template-columns: 1fr;
    }
    .room-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-item {
        min-width: 100%;
    }
}