:root {
  --bg: #f8f8f8;
  --panel: #ffffff;
  --text: #222;
  --muted: #666;
  --gold: #c6a449;
  --gold-2: #a99136;
  --card: #ffffff;
  --border: #e5e5e5;

  --card-bg: #ffffff;
  --card-border: #eaeaea;
  --shadow: rgba(0,0,0,0.06);
  --font-heading: "Playfair Display", serif;
  --font-body: "Nunito Sans", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.brand { font-weight: 700; font-family: var(--font-heading); font-size: 22px; }
.brand span { color: var(--gold); }
.nav a { margin-left: 20px; color: var(--muted); font-weight: 500; }
.nav a.active { color: var(--gold); }

/* Hero */
.page-header {
  position: relative;
  height: 260px;
  background: url('https://source.unsplash.com/1600x900/?luxury,hotel') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  transition: background-image 0.6s ease-in-out;
  min-height: 300px;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.15));
}
.page-header .header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.page-header p {
  font-family: var(--font-body);
  font-size: 17px;
  color: #f2f2f2;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #111;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--gold-2); }

/* Filters */
.filters {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 24px 0 16px;
  box-shadow: 0 4px 10px var(--shadow);
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.select, .input {
  appearance: none;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.select:focus, .select:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(198,164,73,0.15);
  outline: none;
}
.select option:first-child { color: var(--muted); }

.filters .amenities {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}
.filters .amenities label {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.filters .amenities input {
  accent-color: var(--gold);
  transform: scale(1.1);
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding: 0 20px;
}
#reset-filters {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
}
#reset-filters:hover { background: var(--gold); color: #fff; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Tiles */
.tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.tile-image { width: 100%; height: 220px; overflow: hidden; }
.tile-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover .tile-image img { transform: scale(1.05); }

.tile-body {
  padding: 1.25rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tile-title {
  font-family: var(--font-heading);
  font-size: 19px;
  margin: 0 0 .4rem;
  font-weight: 600;
  color: #111;
}
.tile-sub {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.tile-price {
  margin: 0.25rem 0 0.75rem;
  font-weight: 700;
  color: var(--gold);
  font-size: 16px;
}
.tile .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
}
.tile .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.tile .btn:hover { background: var(--gold-2); }

/* Reviews & amenities row */
.trip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  font-size: 0.9em;
}
.trip-logo { height: 18px; width: auto; opacity: 0.9; transform: translateY(1px); }
.trip-score {
  background: #34e0a1;
  color: #000;
  font-weight: 700;
  padding: 2px 8px 3px;
  border-radius: 12px;
  font-size: 0.85em;
  line-height: 1;
}
.trip-reviews { color: #666; font-size: 0.85em; }

.amenities-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
  color: #444;
  font-size: 1rem;
}
.amenities-row i { color: #333; opacity: 0.85; transition: opacity 0.2s ease; }
.amenities-row i:hover { opacity: 1; }

.tile-stars { color: #f9a825; font-size: 14px; margin-bottom: 4px; }
.tile-stars .fa-star { margin-right: 1px; }
.tile-nights { font-size: 0.9em; color: var(--gold); margin: 0.25rem 0 0; font-weight: 400; font-style: italic; }
#results-title { transition: opacity 0.3s ease; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
}
.footer a { color: var(--gold); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
}
.close-btn {
  position: absolute;
  right: 12px; top: 10px;
  font-size: 24px;
  cursor: pointer;
}
.modal-content label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-top: 10px;
}
.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
#submit-quote { margin-top: 15px; width: 100%; }

/* Responsive */
@media(max-width:900px) { .filter-row { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px) {
  .filter-row { grid-template-columns: 1fr; }
  .filters .amenities { justify-content: flex-start; }
}
.filters .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.filters .select {
  flex: 1 1 160px;
  min-width: 150px;
}
/* =======================
   FILTERS CLEAN 2x2 GRID
======================= */
.filters {
  margin: 25px auto;
  max-width: 1200px;
  text-align: center;
}

.filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.filter-row select.select {
  flex: 1 1 200px;
  max-width: 230px;
  min-width: 180px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.amenities {
  margin-top: 10px;
}

.amenity-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}

.amenity-row label {
  font-size: 0.95rem;
  color: #333;
  white-space: nowrap;
}

.filter-actions {
  text-align: center;
  margin-top: 15px;
}

#reset-filters {
  background-color: #c7a349;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
#reset-filters:hover {
  background-color: #b28f37;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.modal.hidden { display: none; }

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.close-modal {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.amenity-tag {
  display: inline-block;
  background: #f2f2f2;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 3px;
  font-size: 13px;
}
.tile-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  align-items: stretch; /* ensures both buttons align to full equal height */
}

.btn-details,
.btn-quote {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  transition: all 0.2s ease;
  height: 45px; /* 👈 fixed height to guarantee identical size */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* includes borders in total height */
}

/* Outlined (More Details) */
.btn-details {
  background: #fff;
  color: #c7a546;
  border: 2px solid #c7a546;
}

.btn-details:hover {
  background: #c7a546;
  color: #fff;
}

/* Filled (Request Quote) */
.btn-quote {
  background: #c7a546;
  color: #fff;
  border: 2px solid #c7a546;
}

.btn-quote:hover {
  background: #b6973e;
  border-color: #b6973e;
}
.hud {
  position: fixed; left: 12px; bottom: 12px;
  background: rgba(0,0,0,.6); color: #fff;
  padding: 8px 10px; border-radius: 10px;
  font: 12px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  z-index: 9999; pointer-events: none;
}
/* --- DEV HUD --- */
.hud {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: rgba(34, 34, 34, 0.85);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.3px;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  font-family: "Nunito Sans", sans-serif;
  transition: opacity 0.3s ease;
}
.hud {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: all 0.3s ease;
}
/* ==========================================
   VIP Jet Club – Filter Layout Refinement
   ========================================== */
.filter-row.top-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 18px;
  max-width: 1200px;
  margin: 0 auto 12px;
  padding: 0 20px;
}

.filter-row.second-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 18px;
  max-width: 1200px;
  margin: 0 auto 12px;
  padding: 0 20px;
}

.select {
  appearance: none;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}

.select:focus,
.select:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(198, 164, 73, 0.15);
  outline: none;
}
.filter-row.second-row {
  border-top: 1px solid #eee;
  padding-top: 14px;
}
/* HUD status display */
#hud {
  position: fixed;
  bottom: 10px;
  left: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #b9935a;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.4s ease;
}
/* ---------- Tile Fade-In Animation ---------- */
.tile {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tile.visible {
  opacity: 1;
  transform: translateY(0);
}
.lazy-image {
  filter: blur(6px);
  transition: filter 0.6s ease;
}

.lazy-image:not([data-src]) {
  filter: blur(0);
}
.page-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease;
  opacity: 1;
}

.page-header.loading {
  opacity: 0;
}
.page-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease;
  opacity: 1;
}

.page-header.loading {
  opacity: 0;
}
/* optional small helper grid */
.quote-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.quote-grid label { font-weight:600; }
@media (max-width:600px){ .quote-grid { grid-template-columns: 1fr; } }
