/* Paradise-style Hotel Frontend - Luxury hotel UI */
:root {
  --hotel-primary: #c9a962;
  --hotel-primary-dark: #a88b45;
  --hotel-dark: #1a1a1a;
  --hotel-text: #333;
  --hotel-text-light: #666;
  --hotel-white: #fff;
  --hotel-overlay: rgba(0,0,0,0.4);
}

body { font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--hotel-text); margin: 0; }
h1, h2, h3, .hotel-heading { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }

/* Header - fixed, transparent over hero */
.hotel-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}
.hotel-header.scrolled { background: var(--hotel-dark); }
/* Booking page with room card: first section is light, so header is dark from start */
.hotel-body.booking-page-with-room .hotel-header { background: var(--hotel-dark); }
/* Space between header and room section on booking page */
.hotel-body.booking-page-with-room .hotel-rooms-list { padding-top: 8rem; }
.hotel-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  color: var(--hotel-white);
}
.hotel-logo .brand-main { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 600; letter-spacing: 0.02em; }
.hotel-logo .brand-sub { font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.9; }
.hotel-nav { display: flex; align-items: center; gap: 1.5rem; }
.hotel-nav a { color: var(--hotel-white); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.05em; }
.hotel-nav a:hover { color: var(--hotel-primary); }
.hotel-btn-book {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--hotel-primary);
  color: var(--hotel-white) !important;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
}
.hotel-btn-book:hover { background: var(--hotel-primary-dark); color: var(--hotel-white); }
.hotel-menu-toggle { display: none; background: none; border: none; color: var(--hotel-white); font-size: 1.5rem; cursor: pointer; padding: 0.25rem; }

/* Hero */
.hotel-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 50%, #0f1419 100%);
  background-size: cover;
  background-position: center;
  background-image: url('https://images.unsplash.com/photo-1582719508461-905c673771fd?w=1920');
  background-repeat: no-repeat;
  background-size: cover;
}
.hotel-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hotel-overlay);
  z-index: 0;
}
.hotel-hero-content { position: relative; z-index: 1; text-align: center; padding: 2rem; width: 100%; max-width: 900px; }
.hotel-hero-label { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--hotel-white); opacity: 0.9; margin-bottom: 0.5rem; }
.hotel-hero-title { font-size: clamp(2.5rem, 6vw, 4rem); color: var(--hotel-white); margin-bottom: 2rem; line-height: 1.15; }
.hotel-hero-title span { display: block; }

/* Search / Booking strip */
.hotel-search-strip {
  background: var(--hotel-white);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  max-width: 800px;
  margin: 0 auto;
}
.hotel-search-strip input[type="date"],
.hotel-search-strip input[type="number"] { border: 1px solid #ddd; border-radius: 6px; padding: 0.6rem 1rem; font-size: 0.95rem; }
.hotel-search-strip .form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.hotel-search-strip label { font-size: 0.75rem; color: var(--hotel-text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.hotel-search-strip .btn-search {
  padding: 0.7rem 1.75rem;
  background: var(--hotel-dark);
  color: var(--hotel-white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
}
.hotel-search-strip .btn-search:hover { background: #333; color: #fff; }

/* Sections */
.hotel-section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.hotel-section-alt { background: #f8f8f8; }
.hotel-section-title { text-align: center; margin-bottom: 2.5rem; }
.hotel-section-title h2 { font-size: 2rem; color: var(--hotel-dark); margin-bottom: 0.5rem; }
.hotel-section-title p { color: var(--hotel-text-light); font-size: 1rem; }

/* Room cards */
.hotel-rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.hotel-room-card {
  background: var(--hotel-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hotel-room-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.hotel-room-card .img-wrap {
  height: 220px;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  background-size: cover;
  background-position: center;
}
.hotel-room-card .body { padding: 1.5rem; }
.hotel-room-card .price { font-size: 0.8rem; color: var(--hotel-primary); font-weight: 600; margin-bottom: 0.25rem; }
.hotel-room-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.hotel-room-card a { color: var(--hotel-primary); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.hotel-room-card a:hover { text-decoration: underline; }

/* Facilities */
.hotel-facilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; text-align: center; }
.hotel-facility { padding: 1rem; }
.hotel-facility-icon { width: 56px; height: 56px; margin: 0 auto 1rem; background: var(--hotel-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--hotel-white); font-size: 1.5rem; }
.hotel-facility h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.hotel-facility p { font-size: 0.9rem; color: var(--hotel-text-light); margin: 0; line-height: 1.5; }

/* About block */
.hotel-about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 768px) { .hotel-about { grid-template-columns: 1fr; } }
.hotel-about h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.hotel-about p { color: var(--hotel-text-light); line-height: 1.7; }

/* Check availability strip */
.hotel-availability {
  background: var(--hotel-dark);
  color: var(--hotel-white);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
}
.hotel-availability h2 { color: var(--hotel-white); margin-bottom: 0.5rem; }
.hotel-availability p { opacity: 0.85; margin-bottom: 1.5rem; }
.hotel-availability .hotel-search-strip { margin-top: 1rem; }

/* Footer */
.hotel-footer {
  background: var(--hotel-dark);
  color: var(--hotel-white);
  padding: 3rem 2rem 2rem;
  margin-top: 3rem;
}
.hotel-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.hotel-footer h5 { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; opacity: 0.9; }
.hotel-footer ul { list-style: none; padding: 0; margin: 0; }
.hotel-footer a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.hotel-footer a:hover { color: var(--hotel-primary); }
.hotel-footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; opacity: 0.7; }

/* Booking page */
.hotel-page-hero { min-height: 50vh; background: linear-gradient(135deg, #2c3e50, #1a252f); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--hotel-white); padding: 4rem 2rem 2rem; }
.hotel-page-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hotel-page-hero p { opacity: 0.9; margin: 0; }
.hotel-booking-form { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.hotel-booking-form .card { border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-radius: 8px; padding: 2rem; }
.hotel-booking-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.hotel-form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.hotel-form-row .form-group { flex: 1; min-width: 120px; }
.hotel-form-row .form-group input { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 0.6rem 1rem; font-size: 0.95rem; }
.hotel-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.hotel-form-grid .form-group input { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 0.6rem 1rem; }
.hotel-availability-result { margin-top: 1.5rem; }
.hotel-rooms-choice h4 { margin-bottom: 1rem; }
.hotel-room-option { display: block; padding: 0.75rem 1rem; border: 1px solid #eee; border-radius: 6px; margin-bottom: 0.5rem; cursor: pointer; }
.hotel-room-option:hover { border-color: var(--hotel-primary); }
.hotel-room-option input { margin-right: 0.5rem; }
.hotel-guest-form { margin-top: 1.5rem; }
.hotel-confirmation { margin-top: 1.5rem; }
.hotel-error { color: #c00; }
.hotel-success { color: #0a0; margin: 0; }

/* Rooms & Suites page - full-width rows, image + white info panel (alternating) */
.hotel-rooms-hero { min-height: 10vh; }
.hotel-rooms-list { background: #fff; }
.hotel-room-row {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 20px;
}
.hotel-room-row--panel-left { flex-direction: row; }
.hotel-room-row--panel-right { flex-direction: row-reverse; }
.hotel-room-row__image {
  flex: 1;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-color: #e5e5e5;
}
.hotel-room-row__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 2.5rem 2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
}
.hotel-room-row__panel::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 80px;
  height: 80px;
  background: rgba(169, 139, 69, 0.15);
  transform: rotate(12deg);
  z-index: -1;
  border-radius: 4px;
}
.hotel-room-row--panel-left .hotel-room-row__panel { padding-left: 3rem; }
.hotel-room-row--panel-right .hotel-room-row__panel { padding-right: 3rem; }
.hotel-room-row__price {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hotel-primary);
  margin-bottom: 0.35rem;
}
.hotel-room-row__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #3d3d3d;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.hotel-room-row__desc {
  font-size: 0.95rem;
  color: var(--hotel-text-light);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}
.hotel-room-row__amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--hotel-text);
}
.hotel-room-row__amenities li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hotel-room-row__icon { font-size: 1rem; line-height: 1; }
.hotel-room-row__details {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d3d3d;
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
}
.hotel-room-row__details:hover { color: var(--hotel-primary); }
.hotel-room-row__book-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--hotel-primary);
  color: var(--hotel-white) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  transition: background 0.2s;
  align-self: flex-start;
}
.hotel-room-row__book-btn:hover { background: var(--hotel-primary-dark); color: #fff; }

#booking-form { scroll-margin-top: 6rem; }

@media (max-width: 900px) {
  .hotel-room-row { flex-direction: column !important; min-height: 0; }
  .hotel-room-row__image { min-height: 280px; }
  .hotel-room-row__panel { max-width: none; padding: 2rem 1.5rem; box-shadow: none; }
  .hotel-room-row--panel-left .hotel-room-row__panel,
  .hotel-room-row--panel-right .hotel-room-row__panel { padding: 2rem 1.5rem; }
}

/* Scroll hint */
.hotel-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1; color: var(--hotel-white); opacity: 0.8; }
.hotel-scroll-hint a { color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Calendar widget - single month, arrows, selected/today states */
.hotel-calendar-wrap { position: relative; display: inline-block; }
#hero-search { position: relative; }
#hero-search .hotel-calendar-dropdown {
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
}
.hotel-calendar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  z-index: 200;
  background: var(--hotel-white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid #e8e8e8;
  padding: 1rem;
  min-width: 280px;
}
.hotel-calendar-dropdown.hidden { display: none !important; }
.hotel-calendar {
  font-size: 0.9rem;
  color: var(--hotel-text);
}
.hotel-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--hotel-dark);
}
.hotel-calendar-prev,
.hotel-calendar-next {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f0f0f0;
  color: #666;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.hotel-calendar-prev:hover,
.hotel-calendar-next:hover { background: #e0e0e0; color: var(--hotel-dark); }
.hotel-calendar-month { flex: 1; text-align: center; }
.hotel-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  color: #999;
  font-size: 0.75rem;
  text-align: center;
}
.hotel-calendar-weekdays span { padding: 0.25rem 0; }
.hotel-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.hotel-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}
.hotel-calendar-day.other-month { color: #bbb; cursor: default; }
.hotel-calendar-day.current-month { color: var(--hotel-text); }
.hotel-calendar-day.current-month:hover { background: #f0f0f0; }
.hotel-calendar-day.today { color: #5a67d8; font-weight: 600; }
.hotel-calendar-day.today:hover { background: #eef2ff; }
.hotel-calendar-day.selected { background: var(--hotel-dark); color: var(--hotel-white); font-weight: 600; }
.hotel-calendar-day.selected:hover { background: #333; color: #fff; }
.hotel-calendar-day.disabled { color: #ccc; cursor: not-allowed; pointer-events: none; }
.hotel-date-trigger { cursor: pointer; }

@media (max-width: 768px) {
  .hotel-nav .nav-links { display: none; }
  .hotel-menu-toggle { display: block; }
  .hotel-search-strip { flex-direction: column; align-items: stretch; }
  .hotel-hero-title { font-size: 2rem; }
}
