/* General Styles */
body {
    background: #d4f1f9; /* Light blue background inspired by the water */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333; /* Ensures consistent text color */
}

/* Header Styles */
header {
    width: 100%;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white for a modern look */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Adds subtle shadow for depth */
}

/* Navigation Styles */
nav {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.9); /* Matches header background */
    padding: 10px;
    border-radius: 5px;
}

nav a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #005f73; /* Dark teal inspired by water shadows */
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

nav a:hover {
    color: #0a9396;
    font-weight: 600;
}

/* Hero Section */
.hero img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}


footer {
    background: #005f73; /* Dark teal for contrast */
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    font-weight: 500; /* Medium weight for footer text */
}

footer p {
    margin: 0;
    font-size: 1rem;
}


.main {
    width: 90%;
    max-width: 980px;
    padding: 30px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.9); /* Light background for readability */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333; /* Dark text for readability */
    overflow: hidden;
}

/* ------ Welcome Page (Index Page)  ------*/
.welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8); /* Slightly transparent white background */
    padding: 20px;
}

.welcome-card {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    font-size: 1.1rem;
}

.welcome-card h1 {
    font-size: 2.5rem;
    color: #005f73;
    margin-bottom: 20px;
}

.welcome-card p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 30px;
}


.btn {
    font-family: 'Poppins', sans-serif; /* Ensure buttons use the same font */
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background-color: #0a9396;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #005f73;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}





/* ------ Room Search Page ------ */
.room-search-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Page Title */
.page-title {
    font-size: 2.5rem;
    color: #005f73;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Form Labels */
.form-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #005f73;
}

.form-control {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.results-title {
    text-align: center;
    color: #005f73;
    margin-top: 20px;
    font-size: 1.8rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table th, .table td {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem; /* Standard size for tables */
}

.table th {
    background-color: #0a9396;
    color: white;
    font-weight: bold;
}

.table tr:hover {
    background-color: #f1f1f1;
}


.btn-success {
    background-color: #52b788; /* Green for success */
    color: white;
}

.btn-success:hover {
    background-color: #40916c;
    transform: translateY(-2px);
}


.room-image-search {
    width: 150px;
    height: 100px;
    object-fit: cover; /* Ensures the image is cropped proportionally */
    border-radius: 5px;
    margin-bottom: 10px;
}


.room-details {
    padding: 10px;
    font-size: 1rem;
    color: #333;
}

.room-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: #005f73; /* Dark teal for the title */
    margin-bottom: 5px;
}

.room-description {
    font-size: 1rem;
    color: #555; /* Slightly lighter text for the description */
    line-height: 1.5;
}

.room-availability {
    margin-top: 8px;
    color: #d9534f; /* Bootstrap red-like color */
    font-weight: bold;
}


.no-results-message {
    text-align: center;
    color: #d9534f; /* Red for emphasis */
    font-size: 1.2rem;
    margin-top: 20px;
}

.text-error {
    color: #d9534f;
    padding-top: 5px;
}


/* ------ Book Room Page (Summary Page) Container ------ */
.book-room-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    color: #333;
    text-align: center; /* Centers all text inside this container */
}

.room-details-card {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    font-size: 1.1rem;
}

/* Room Image on Book Room Page */
.room-image-summary {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 20px auto; /* Centers the image */
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Room Title */
.room-details-card .room-title {
    font-size: 1.8rem;
    color: #005f73; /* Dark teal for titles */
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center; /* Explicitly center the title */
}

/* Room Description */
.room-details-card .room-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: center; /* Explicitly center the description */
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center; /* Centers the form within its container */
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
}

.booking-form .form-label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #005f73;
}

.booking-form .form-control {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
    margin: 0 auto; /* Centers the input fields */
    max-width: 400px; /* Optional: restrict the width of inputs */
}

.booking-form .form-control:focus {
    border-color: #005f73;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 95, 115, 0.5); /* Subtle glow effect */
}

/* Submit Button */
.btn-submit {
    margin-top: 20px;
    align-self: center; /* Centers the button */
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #0a9396; /* Bright teal */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: #005f73;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}






/* ---------- Booking Confirmation Page ------------ */
.confirmation-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
}

.confirmation-card {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    font-size: 1.1rem;
}

.confirmation-card p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.confirmation-container .btn {
    margin-top: 20px;
}
