/* A!thera — Guest booking site
   Premium, restrained, editorial. Deep navy / warm sand / muted gold.
   Serif display (system Mac serifs) + clean sans for UI. Calm motion only. */

:root {
  --navy: #15293c;
  --navy-deep: #0d1c2b;
  --navy-soft: #21405b;
  --sand: #f6f1e8;
  --sand-warm: #efe6d6;
  --sand-deep: #e4d8c2;
  --paper: #fbf8f2;
  --ink: #23211d;
  --ink-soft: #595650;
  --muted: #8a857c;
  --gold: #b08a4f;
  --gold-soft: #c8a874;
  --line: rgba(35, 33, 29, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --serif: 'Hoefler Text', 'Baskerville', 'Big Caslon', Garamond, Georgia, serif;
  --sans: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 50px -28px rgba(13, 28, 43, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 241, 232, 0.94);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.wordmark { display: flex; align-items: baseline; gap: 8px; }
.wordmark-mark {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.18em;
  color: var(--navy);
}
.wordmark-sub {
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
}
.site-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.site-nav a:hover { color: var(--navy); }
.site-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; }
.currency-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.4);
}
.currency-option {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.4s var(--ease);
}
.currency-option.is-active {
  background: var(--navy);
  color: var(--sand);
}
.currency-divider { width: 1px; height: 14px; background: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 96px 40px;
  overflow: hidden;
  color: var(--sand);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(176, 138, 79, 0.32) 0%, transparent 55%),
    radial-gradient(140% 120% at 12% 92%, rgba(33, 64, 91, 0.65) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 58%, #173247 100%);
}
.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 28, 43, 0.55) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 26px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin: 0 0 28px;
}
.hero-lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(246, 241, 232, 0.82);
  max-width: 46ch;
  margin: 0 0 40px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  padding: 15px 30px;
  border: 1px solid rgba(246, 241, 232, 0.42);
  border-radius: 999px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.hero-cta:hover {
  background: var(--sand);
  color: var(--navy);
  border-color: var(--sand);
}

/* ---------- Stays ---------- */
.stays {
  max-width: 1240px;
  margin: 0 auto;
  padding: 92px 40px 40px;
}
.stays-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  color: var(--navy);
  max-width: 18ch;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(176, 138, 79, 0.5);
  animation: pulse 2.8s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(176, 138, 79, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(176, 138, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 138, 79, 0); }
}

.grid-loading {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Hotel grid ---------- */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.hotel-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s var(--ease) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
.hotel-visual {
  position: relative;
  height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--sand);
}
.hotel-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 28, 43, 0) 28%, rgba(13, 28, 43, 0.5) 100%);
}
.hotel-visual > * { position: relative; z-index: 1; }
.hotel-location {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.9);
}

/* Per-destination visual themes (CSS only — no external images) */
.theme-redsea    { background: radial-gradient(120% 130% at 80% 0%, #2f8f96 0%, #1d5f73 42%, #123c52 100%); }
.theme-redsea-2  { background: radial-gradient(120% 130% at 20% 0%, #3aa0a0 0%, #226b6f 45%, #16414f 100%); }
.theme-redsea-3  { background: radial-gradient(120% 130% at 70% 10%, #4bb1a4 0%, #2a7d78 48%, #1a4a4d 100%); }
.theme-cairo     { background: radial-gradient(120% 130% at 78% 0%, #c79a5a 0%, #9a6f3c 44%, #5d3f22 100%); }
.theme-cairo-2   { background: radial-gradient(120% 130% at 22% 0%, #d2a766 0%, #a87a40 46%, #6a4727 100%); }
.theme-london    { background: radial-gradient(120% 130% at 75% 0%, #5d7186 0%, #36506a 46%, #1d3145 100%); }

.hotel-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hotel-name {
  font-size: 1.5rem;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 8px;
}
.hotel-stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 16px;
}
.hotel-stars .star {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}
.hotel-desc {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.62;
  margin-bottom: 24px;
}

.room-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.room-info { min-width: 0; }
.room-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.room-meta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.room-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}
.room-rack {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.room-rack.is-visible { opacity: 1; }
.room-price {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  transition: color 0.6s var(--ease);
}
.room-price [data-value] {
  display: inline-block;
  transition: opacity 0.45s var(--ease);
}
.room-price .per { font-size: 0.66rem; letter-spacing: 0.08em; color: var(--muted); }
.room-price.is-updating { color: var(--gold); }

.reserve-cell { flex-shrink: 0; }
.reserve-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.reserve-btn:hover {
  background: var(--navy);
  color: var(--sand);
  border-color: var(--navy);
}

.room-row {
  flex-wrap: wrap;
}
.room-tail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(246, 241, 232, 0.82);
  margin-top: 88px;
  padding: 72px 40px 32px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand .wordmark-mark { color: var(--sand); font-size: 1.5rem; }
.footer-brand .wordmark-sub { color: var(--gold-soft); }
.footer-note {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(246, 241, 232, 0.6);
}
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li {
  font-size: 0.9rem;
  color: rgba(246, 241, 232, 0.66);
  margin-bottom: 11px;
}
.footer-base {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(246, 241, 232, 0.5);
}

/* ---------- Modal ---------- */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 28, 43, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: fade 0.4s var(--ease) forwards;
}
@keyframes fade { to { opacity: 1; } }
.modal {
  position: relative;
  background: var(--paper);
  max-width: 460px;
  width: 100%;
  border-radius: 5px;
  padding: 44px 40px 40px;
  box-shadow: 0 40px 90px -40px rgba(13, 28, 43, 0.7);
  transform: translateY(12px);
  animation: rise 0.5s var(--ease) forwards;
}
.modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.modal-close:hover { color: var(--navy); }
.modal-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.modal-title {
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.modal-body {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.66;
  margin: 0 0 26px;
}
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  transition: border-color 0.3s var(--ease);
}
.field input:focus { outline: none; border-color: var(--gold); }
.modal-submit {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.35s var(--ease);
}
.modal-submit:hover { background: var(--navy-soft); }
.modal-confirm {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 8px 0 0;
}

/* ---------- Big-screen / projection readability ---------- */
@media (min-width: 1600px) {
  body { font-size: 18px; }
  .header-inner,
  .stays,
  .hero-content,
  .footer-inner,
  .footer-base { max-width: 1440px; }
  .hotel-grid { gap: 44px; }
  .hotel-name { font-size: 1.7rem; }
  .hotel-desc { font-size: 1.02rem; }
  .room-name { font-size: 1.2rem; }
  .room-meta { font-size: 0.78rem; }
  .room-price { font-size: 1.5rem; }
  .room-rack { font-size: 0.8rem; }
  .live-indicator { font-size: 0.86rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .header-inner { padding: 16px 22px; gap: 18px; }
  .brand-logo img { height: 36px; }
  .site-nav { display: none; }
  .hero { padding: 80px 22px; min-height: 70vh; }
  .stays { padding: 64px 22px 24px; }
  .hotel-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding: 56px 22px 28px; }
  .footer-inner { gap: 36px; }
}
@media (max-width: 460px) {
  .room-row { align-items: flex-start; }
  .room-tail { width: 100%; justify-content: space-between; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
