/* ========== GLOBAL STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
  background: #2c3e50;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 500;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3498db;
}

/* ========== HERO ========== */
.hero {
  background: url('images/background01.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: rgba(0,0,0,0.5);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.6); }
.hero p { font-size: 1.3rem; margin-bottom: 25px; }

.search-bar input {
  padding: 12px 20px;
  width: 350px;
  max-width: 90vw;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.3s;
}
.search-bar input:focus { box-shadow: 0 0 10px rgba(255,255,255,0.8); }

/* ========== CONTAINER ========== */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 30px; font-size: 2rem; }

/* ========== HOTEL GRID ========== */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.hotel-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.hotel-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.hotel-card img { width: 100%; height: 200px; object-fit: cover; }

.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 8px; color: #2c3e50; }
.location { color: #7f8c8d; font-size: 0.95rem; margin-bottom: 10px; }
.price { font-weight: bold; font-size: 1.2rem; color: #e67e22; margin-bottom: 15px; }

.btn-primary {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: auto;
}
.btn-primary:hover { background: #2980b9; }

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: modalopen 0.4s;
}
@keyframes modalopen {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-button {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}
.close-button:hover { color: #333; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
.form-group input, .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: #3498db; outline: none; }

.modal-message { margin-top: 15px; font-weight: 600; text-align: center; }
.modal-message.success { color: #27ae60; }
.modal-message.error { color: #e74c3c; }

/* ========== AUTH PAGES (Login / Signup) ========== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.auth-card {
  background: white;
  padding: 30px 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
}
.auth-link a {
  color: #3498db;
  text-decoration: none;
}
.auth-link a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .navbar { flex-direction: column; gap: 10px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
}

/* ========== BOOKINGS TABLE ========== */
.bookings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.bookings-table th, .bookings-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.bookings-table th {
  background-color: #3498db;
  color: white;
}

.bookings-table tr:hover {
  background-color: #f1f1f1;
}

/* Small action buttons */
.btn-small {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 5px;
}

.btn-edit {
  background-color: #f39c12;
  color: white;
}

.btn-edit:hover {
  background-color: #e67e22;
}

.btn-delete {
  background-color: #e74c3c;
  color: white;
}

.btn-delete:hover {
  background-color: #c0392b;
}