:root {
  --bg: #f4f2ee;
  --bg-elevated: #fffcf8;
  --ink: #14171c;
  --ink-soft: #5c6570;
  --line: rgba(20, 23, 28, 0.08);
  --line-strong: rgba(20, 23, 28, 0.14);
  --accent: #b08d3e;
  --accent-deep: #8f702c;
  --accent-soft: rgba(176, 141, 62, 0.12);
  --whatsapp: #1f9a54;
  --whatsapp-deep: #187a42;
  --danger: #c4473a;
  --header: rgba(244, 242, 238, 0.86);
  --shadow-sm: 0 1px 2px rgba(20, 23, 28, 0.04);
  --shadow-md: 0 10px 30px rgba(20, 23, 28, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --shell: 1120px;
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-en: 'Instrument Sans', 'IBM Plex Sans Arabic', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ar);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(176, 141, 62, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f5f1 0%, var(--bg) 40%, #efece6 100%);
  color: var(--ink);
  direction: rtl;
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 242, 238, 0.94);
}

.header-bar {
  display: flex;
  align-items: center;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: #f6e7c2;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark.has-image {
  background: transparent;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.hero {
  position: relative;
  min-height: clamp(280px, 42vw, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #171a1f;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1c2128 0%, #2a3038 55%, #3a3328 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero.has-cover .hero-media {
  filter: saturate(0.92) contrast(1.02);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.25) 0%, rgba(10, 12, 14, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.2rem 0 2.6rem;
  animation: rise 0.7s ease both;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 12ch;
  margin-bottom: 0.75rem;
}

.hero-desc {
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.page-main {
  padding: 2.4rem 0 4rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  animation: rise 0.7s ease 0.08s both;
}

.eyebrow {
  font-size: 0.78rem;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.section-title {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
}

.section-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.state-box {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--ink-soft);
  background: rgba(255, 252, 248, 0.65);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.spinner {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  animation: spin 0.8s linear infinite;
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dest-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  animation: rise 0.55s ease both;
}

.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176, 141, 62, 0.28);
}

.dest-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #22262d, #3a3530);
  overflow: hidden;
  isolation: isolate;
}

.dest-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.dest-card:hover .dest-card-media img {
  transform: scale(1.04);
}

.dest-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.dest-card-price {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(255, 252, 248, 0.94);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.dest-card-body {
  padding: 1rem 1.05rem 0.35rem;
  flex: 1;
}

.dest-card-body h3 {
  font-size: 1.02rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.dest-card-body p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.dest-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.5rem;
  padding: 0.85rem 1.05rem 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(20, 23, 28, 0.03);
}

.btn-accent {
  background: var(--ink);
  color: #fff;
}

.btn-accent:hover {
  background: #000;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-deep);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
  position: relative;
  z-index: 2;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2.2rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 16, 0.48);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  padding: 0;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sheet {
  width: min(100%, 520px);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: var(--bg-elevated);
  border-radius: 24px 24px 0 0;
  transform: translateY(24px);
  transition: transform 0.3s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}

.modal-overlay.active .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-strong);
  margin: 0.7rem auto 0;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.85rem;
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 2;
}

.sheet-head h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 23, 28, 0.05);
  color: var(--ink-soft);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: rgba(20, 23, 28, 0.09);
  color: var(--ink);
}

.sheet-body {
  padding: 0.4rem 1.25rem 1.5rem;
}

.detail-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1c2128;
  margin-bottom: 1rem;
  isolation: isolate;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media .dest-card-fallback {
  font-size: 2rem;
}

.detail-meta {
  margin-bottom: 0.75rem;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.95rem;
}

.detail-text {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.trip-summary {
  background: #f1eee8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
}

.trip-summary .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  color: var(--ink-soft);
}

.trip-summary .row strong,
.trip-summary .total span:last-child {
  color: var(--ink);
  font-weight: 700;
}

.trip-summary .total {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-strong);
  font-weight: 700;
  color: var(--ink);
}

.booking-form,
.field {
  display: flex;
  flex-direction: column;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(176, 141, 62, 0.7);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-grid,
.time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-error { background: var(--danger); }
.toast-success { background: var(--whatsapp-deep); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .dest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .shell {
    width: min(100% - 1.4rem, var(--shell));
  }

  .header-bar {
    min-height: 60px;
  }

  .hero {
    min-height: 260px;
  }

  .hero-content {
    padding: 2.4rem 0 1.8rem;
  }

  .hero-title {
    max-width: none;
  }

  .page-main {
    padding: 1.6rem 0 3.2rem;
  }

  .dest-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .dest-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    grid-template-rows: auto auto;
  }

  .dest-card-media {
    grid-row: 1 / 3;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .dest-card-body {
    padding: 0.85rem 0.85rem 0.2rem;
  }

  .dest-card-body p {
    -webkit-line-clamp: 1;
    min-height: 0;
  }

  .dest-card-actions {
    padding: 0.4rem 0.85rem 0.85rem;
  }

  .dest-card-price {
    left: 0.45rem;
    bottom: 0.45rem;
    font-size: 0.74rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 1rem;
  }

  .sheet {
    border-radius: 20px;
    transform: translateY(12px) scale(0.98);
  }

  .modal-overlay.active .sheet {
    transform: translateY(0) scale(1);
  }

  .sheet-handle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
