﻿:root {
  --ink: #071a3d;
  --muted: #5e6b82;
  --paper: #ffffff;
  --soft: #f3f6fb;
  --line: #d8e1ef;
  --gold: #dce9ff;
  --green: #023b96;
  --navy: #023b96;
  --navy-dark: #06245c;
  --navy-soft: #eaf1fb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(2, 59, 150, 0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Alexandria", Arial, sans-serif;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
button, input, select, a { font: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: transform .28s ease, box-shadow .28s ease;
}
.topbar.is-hidden-mobile { transform: translateY(-105%); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 230px; }
.brand img { width: 176px; height: 64px; object-fit: contain; background: #ffffff; border-radius: 4px; }
.brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand span { display: grid; line-height: 1.25; }
.brand small { color: var(--muted); }
nav { display: flex; gap: 24px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
nav a:hover { color: var(--navy); }
.actions { display: flex; align-items: center; gap: 10px; }
button { cursor: pointer; border: 0; }
.primary, .secondary, .ghost, .lang, .link-button, .icon-button {
  min-height: 44px;
  border-radius: 6px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.primary { background: var(--green); color: white; padding: 0 20px; font-weight: 800; }
.primary:hover, .secondary:hover, .ghost:hover, .lang:hover { transform: translateY(-1px); }
.primary.large { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.secondary, .ghost { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.secondary { background: transparent; border: 1px solid var(--green); color: var(--green); padding: 0 20px; font-weight: 800; }
.ghost { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.56); color: white; padding: 0 22px; font-weight: 800; }
.ghost.large { min-height: 54px; }
.whatsapp { background: #25d366; border-color: #25d366; color: white; }
.whatsapp:hover { background: #1fb85a; border-color: #1fb85a; }
.icon-link {
  width: 48px;
  padding: 0;
  flex: 0 0 48px;
}
.icon-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.call-button {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.7);
}
.lang { width: 48px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 900; }
.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 76px) 34px;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 34px;
  background: linear-gradient(90deg, rgba(6,36,92,.82), rgba(2,59,150,.30), rgba(2,59,150,.02)), url("assets/hero-building.png") center/cover;
  color: white;
}
[dir="rtl"] .hero { background: linear-gradient(270deg, rgba(6,36,92,.82), rgba(2,59,150,.30), rgba(2,59,150,.02)), url("assets/hero-building.png") center/cover; }
.hero-copy { max-width: 720px; padding-bottom: 48px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eyebrow { color: var(--navy); font-weight: 900; margin: 0 0 8px; letter-spacing: 0; }
.hero .eyebrow { color: #ffffff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
h1 { font-size: clamp(2.45rem, 6.3vw, 5rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: 0; font-weight: 900; }
h2 { font-size: clamp(1.55rem, 2.55vw, 2.55rem); line-height: 1.25; margin: 0; letter-spacing: 0; font-weight: 800; }
h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; }
p { margin: 0; }
.hero-copy p:not(.eyebrow) { max-width: 610px; font-size: clamp(.98rem, 1.65vw, 1.18rem); margin-bottom: 28px; color: rgba(255,255,255,.9); }
.availability {
  align-self: end;
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.availability div { display: grid; gap: 2px; padding: 20px; background: rgba(6,36,92,.62); }
.availability strong { font-size: 1.2rem; }
.availability span { color: rgba(255,255,255,.78); }
.section { padding: clamp(54px, 8vw, 92px) clamp(20px, 5vw, 76px); }
.section, .hero { scroll-margin-top: 190px; }
.intro, .location { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 34px; align-items: center; }
.location { grid-template-columns: minmax(0, 1fr) 220px; }
.intro > p, .location p { color: var(--muted); font-size: 1.08rem; }
.section-head { margin-bottom: 26px; max-width: 760px; }
.grid { display: grid; gap: 18px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  min-height: 170px;
  box-shadow: 0 12px 34px rgba(30,37,40,.06);
  overflow: hidden;
}
.card p { color: var(--muted); }
.room-card { padding: 0; display: grid; grid-template-rows: 220px 1fr; }
.room-card.is-unavailable { opacity: .58; }
.room-card.is-unavailable::after {
  content: "غير متاح حاليا";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 26, 61, .92);
  color: white;
  font-weight: 900;
  font-size: .82rem;
}
.room-card-gallery { cursor: zoom-in; }
.room-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-card div { padding: 22px; }
.room-card h3 { min-height: 58px; }
.room-price {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 900;
  font-size: .9rem;
}
.room-gallery { position: relative; padding: 0 !important; min-height: 220px; overflow: hidden; }
.room-gallery .room-main-image { width: 100%; height: 220px; object-fit: cover; display: block; }
.room-thumbs {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 !important;
}
.room-thumbs button {
  height: 42px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 6px;
  overflow: hidden;
  background: white;
  opacity: .82;
}
.room-thumbs button.is-active { border-color: var(--navy); opacity: 1; }
.room-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.image-lightbox {
  width: min(1120px, calc(100vw - 28px));
  height: min(820px, calc(100vh - 28px));
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}
.image-lightbox::backdrop { background: rgba(4, 14, 33, .84); backdrop-filter: blur(4px); }
.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: calc(100vh - 64px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: white;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
[dir="rtl"] .lightbox-close {
  right: auto;
  left: 12px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 64px;
  border-radius: 6px;
  background: rgba(255,255,255,.9);
  color: var(--navy-dark);
  font-size: 2.5rem;
  line-height: 1;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
[dir="rtl"] .lightbox-prev { left: auto; right: 12px; }
[dir="rtl"] .lightbox-next { right: auto; left: 12px; }
.band { background: var(--soft); }
.amenities { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px; }
.amenities span { min-height: 68px; display: grid; place-items: center; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; text-align: center; color: var(--navy-dark); }
.location { background: var(--ink); color: white; }
.location .eyebrow { color: #ffffff; }
.location p { color: rgba(255,255,255,.72); }
.location .secondary { color: white; border-color: rgba(255,255,255,.7); }
.contact-actions { justify-self: end; display: flex; flex-wrap: wrap; justify-content: end; gap: 10px; }
.contact-actions .whatsapp { background: #25d366; border-color: #25d366; color: white; }
.map-embed {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); color: var(--muted); }
.link-button { background: transparent; color: var(--green); font-weight: 900; padding: 0; }
.booking-dialog { width: min(900px, calc(100vw - 28px)); max-height: min(92vh, 860px); border: 0; border-radius: 8px; padding: 0; box-shadow: var(--shadow); background: var(--paper); color: var(--ink); overflow: auto; }
.booking-dialog::backdrop { background: rgba(13, 18, 20, .58); backdrop-filter: blur(4px); }
.booking-form { padding: clamp(18px, 4vw, 34px); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
.icon-button { width: 44px; background: white; border: 1px solid var(--line); font-size: 1.8rem; line-height: 1; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 7px; font-weight: 800; }
input, select { width: 100%; min-height: 48px; border-radius: 6px; border: 1px solid #c9d5e8; background: white; padding: 0 13px; color: var(--ink); }
input[type="date"],
input[type="time"] {
  direction: ltr !important;
  text-align: left;
  unicode-bidi: isolate;
}
input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  direction: ltr;
  unicode-bidi: isolate;
}
.date-picker-control {
  position: relative;
  display: grid;
}
.date-picker-control .date-display {
  direction: ltr;
  cursor: pointer;
}
.date-picker-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  min-height: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  border: 0;
  padding: 0;
}
.date-picker-button::before {
  content: "";
  position: absolute;
  inset: 8px 9px 7px;
  border: 2px solid var(--navy);
  border-top-width: 4px;
  border-radius: 3px;
}
.date-picker-button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 18px;
  height: 2px;
  background: var(--navy);
  box-shadow: 0 5px 0 var(--navy);
  opacity: .8;
}
.date-picker-control .native-date-input {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
html[dir="rtl"] .date-picker-control .date-display {
  text-align: right;
  padding-right: 13px;
  padding-left: 48px;
}
html[dir="rtl"] .date-picker-button,
html[dir="rtl"] .date-picker-control .native-date-input {
  left: 6px;
  right: auto;
}
html[dir="ltr"] .date-picker-control .date-display {
  text-align: left;
  padding-left: 13px;
  padding-right: 48px;
}
html[dir="ltr"] .date-picker-button,
html[dir="ltr"] .date-picker-control .native-date-input {
  right: 6px;
  left: auto;
}
select { appearance: auto; }
input:focus, select:focus { outline: 3px solid rgba(2,59,150,.16); border-color: var(--navy); }
.full-row { grid-column: 1 / -1; }
.stay-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.date-time-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #c9d5e8;
  border-radius: 8px;
  background: #f8fbff;
  align-self: stretch;
}
.date-time-card > span {
  color: var(--navy);
  font-weight: 900;
  font-size: 1rem;
}
.date-time-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .72fr);
  gap: 10px;
}
.date-time-fields label {
  gap: 5px;
  font-size: .9rem;
  color: var(--muted);
}
.date-time-fields input {
  background: white;
}
.stay-note {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}
fieldset { margin: 24px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
legend { padding: 0 8px; font-weight: 900; }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.payment-option { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #c9d5e8; border-radius: 8px; background: white; }
.payment-option input { width: 18px; min-height: 18px; accent-color: var(--navy); }
.payment-option span { font-weight: 900; }
.booking-total {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(2, 59, 150, .18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, var(--navy-soft));
  color: var(--navy-dark);
}
.booking-total span {
  color: var(--muted);
  font-weight: 800;
}
.booking-total strong {
  font-size: 1.45rem;
  color: var(--navy);
}
.booking-total small {
  color: var(--muted);
}
.booking-total em {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 7px 10px;
  border-radius: 6px;
  background: white;
  color: var(--navy-dark);
  font-style: normal;
  font-weight: 800;
}
.payment-fields.is-hidden { display: none; }
.payment-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy-soft);
  color: var(--navy-dark);
}
.payment-note p { margin: 0; }
.payment-strip { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin-bottom: 16px; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: white; border-radius: 8px; }
.payment-strip span { font-size: 1.45rem; font-weight: 900; letter-spacing: 0; }
.payment-strip small { color: rgba(255,255,255,.78); }
.fineprint { color: var(--muted); font-size: .92rem; margin: 16px 0; }
.submit { width: 100%; }
.success { margin-top: 12px; padding: 12px; border-radius: 6px; background: var(--navy-soft); color: var(--navy-dark); font-weight: 800; text-align: center; }
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; }
  nav { order: 3; width: 100%; justify-content: center; }
  .hero, .intro, .location { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { padding-bottom: 10px; }
  .three, .room-grid, .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-actions { justify-self: start; justify-content: start; }
  .map-embed {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    width: 100%;
    height: 320px;
  }
}
@media (max-width: 620px) {
  body { font-size: 0.9rem; }
  body { padding-top: var(--mobile-header-height, 180px); }
  .topbar {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 18px 14px;
  }
  .topbar.is-hidden-mobile { transform: translateY(-105%); }
  .brand {
    min-width: 0;
    justify-self: center;
  }
  .brand img {
    width: 184px;
    height: 66px;
  }
  .actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
  }
  .actions .primary {
    order: 1;
    width: 100%;
    min-height: 50px;
    font-size: 1.05rem;
  }
  .actions .lang {
    order: 2;
    width: 58px;
    min-height: 50px;
  }
  nav {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    overflow: visible;
    padding-bottom: 0;
  }
  nav a {
    font-size: .92rem;
    white-space: nowrap;
  }
  .hero {
    padding: 30px 18px 24px;
    background-position: center top;
  }
  .hero-copy {
    max-width: 100%;
    padding-bottom: 0;
  }
  .hero .eyebrow {
    font-size: 1.08rem;
    line-height: 1.45;
  }
  h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.12;
    max-width: 9ch;
  }
  .hero-copy p:not(.eyebrow) {
    font-size: .98rem;
    line-height: 1.8;
  }
  .hero-actions .primary, .hero-actions .ghost { width: 100%; }
  .availability, .form-grid, .three, .room-grid, .amenities, .payment-options { grid-template-columns: 1fr; }
  .stay-row { grid-template-columns: 1fr; }
  .date-time-fields { grid-template-columns: 1fr 120px; }
  .room-card { grid-template-rows: 210px 1fr; }
  .contact-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }
  .contact-actions .secondary:not(.icon-link) { width: 100%; }
  .contact-actions > .secondary:first-child,
  .contact-actions > .open-booking {
    grid-column: 1 / -1;
  }
  .contact-actions .icon-link {
    width: 70px;
    min-height: 56px;
    flex-basis: auto;
  }
  .contact-actions .call-button {
    min-height: 56px;
  }
  .map-embed {
    width: 100%;
    height: 360px;
  }
  .image-lightbox {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }
  .lightbox-inner { padding: 10px; }
  .lightbox-inner img { max-height: calc(100vh - 48px); }
  .lightbox-nav {
    width: 40px;
    height: 52px;
    font-size: 2rem;
  }
  footer { flex-direction: column; align-items: start; }
}

