/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #F8F8F8;
    color: #333;
}

/* Header */
header {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 2.5rem;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
}

header nav ul li a:hover {
    color: #FFD700; /* Gold */
}

/* Hero Section */
.hero {
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c') center/cover no-repeat;
    padding: 100px 20px;
    color: white;
    text-align: center;
    background-color: #333; /* Fallback color */
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #FFD700; /* Gold */
    color: #333;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #ff6a00; /* Orange */
}

/* Rooms Section */
.rooms-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff5f0; /* Light Cream */
}

.rooms-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #4CAF50; /* Green */
}

.room-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.room {
    background-color: rgb(87, 236, 87);/* Cornsilk */
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.room:hover {
    transform: translateY(-10px);
}

.room h3 {
    font-size: 1.8rem;
    color: #FF6347; /* Tomato */
    margin-bottom: 10px;
}

.room p {
    font-size: 1rem;
    color: #555;
}

/* Booking Section */
.booking-section {
    background-color: #FFF8DC;
    padding: 50px 20px;
    text-align: center;
}

.booking-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* Booking Form */
.booking-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Input Fields and Select Field Styling */
.booking-form input,
.booking-form select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    outline: none;
}

/* Button Styling */
.booking-form button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.booking-form button:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #4CAF50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 1rem;
}


/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    text-align: center;
  }
  
  h1 {
    margin-top: 20px;
    color: #333;
  }
  
  /* Rooms Grid */
  .rooms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }
  
  .room-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .room-card:hover {
    transform: scale(1.05);
  }
  
  .room-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  
  .room-details {
    padding: 10px;
  }
  
  .room-details h2 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
  }
  
  .room-details p {
    margin: 5px 0;
    color: #555;
  }
  
  /* Popup Modal */
  .popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
  }
  
  .popup-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
  }
  
  .popup-content h2 {
    margin-top: 15px;
    color: #333;
  }
  
  .popup-content p {
    color: #555;
    margin: 10px 0;
  }
  

  .room.booked {
    opacity: 0.6;
    background-color: #f0f0f0;
}

.room.booked .status {
    color: red;
}


/* Add styles for the cancel booking form */
.cancel-booking-section {
    padding: 40px;
    background-color: #f1f1f1;
    margin-top: 40px;
    border-radius: 10px;
}

.cancel-booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.cancel-booking-form input,
.cancel-booking-form select,
.cancel-booking-form button {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.cancel-booking-form button {
    background-color: #f44336;
    color: white;
    border: none;
    cursor: pointer;
}

.cancel-booking-form button:hover {
    background-color: #d32f2f;
}
