/* ============================================
   LAST‑MINUTE HOTEL DEALS – CONSUMER THEME
   ============================================ */

:root {
  --primary: #ff5a5f;
  --primary-dark: #e04e52;
  --accent: #ffaa00;
  --bg: #f7f7f7;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --danger: #e74c3c;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header h1 a {
  font-size: 2rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -1px;
  font-weight: 800;
}

.site-header h1 a::after {
  content: "⚡";
  margin-left: 10px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Main Grid ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 30px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Room Card ---------- */
.room-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

.room-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s;
}

.room-card:hover img {
  transform: scale(1.03);
}

.room-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-info h2 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: var(--text);
}

.room-info .hotel {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* Pricing */
.pricing {
  margin: 12px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing .original {
  text-decoration: line-through;
  color: #bdc3c7;
  font-size: 0.95rem;
}

.pricing .discounted {
  color: var(--danger);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}

/* Countdown */
.countdown {
  background: #fff5f5;
  color: var(--danger);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 30px;
  display: inline-block;
  font-size: 0.9rem;
  margin: 10px 0;
  width: fit-content;
  border: 1px dashed var(--danger);
}

/* Button */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  margin-top: auto;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  align-self: flex-start;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---------- Room Detail Page ---------- */
.room-detail {
  max-width: 900px;
  margin: 30px auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 25px;
  border-radius: var(--radius);
}

.gallery img {
  height: 250px;
  border-radius: 10px;
  flex-shrink: 0;
}

.room-detail h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.room-detail .pricing {
  font-size: 1.2rem;
  margin: 15px 0;
}

.booking-form {
  margin-top: 30px;
  border-top: 1px solid #ecf0f1;
  padding-top: 25px;
}

.booking-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.2s;
}

.booking-form input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.2);
}

.booking-form fieldset {
  border: 1px solid #ecf0f1;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
}

.booking-form legend {
  font-weight: 600;
  color: var(--text);
}

.total-price {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 20px 0;
  color: var(--primary);
}

/* ---------- Callback (success/cancel) ---------- */
.callback {
  max-width: 600px;
  margin: 60px auto;
  background: var(--card-bg);
  text-align: center;
  padding: 50px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.callback h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
  backdrop-filter: blur(5px);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .room-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .site-header h1 a {
    font-size: 1.5rem;
  }
  .room-detail {
    padding: 15px;
  }
}