/* Minimal custom CSS. Everything else is Tailwind utility classes (see tailwind.css). */
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b8923a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Animations (subtle; disabled for reduced-motion users) ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes zoom-out { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Scroll reveal (class added by main.js; content stays visible if JS is off) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero: slow image zoom + staggered text entrance */
main > section.isolate > img { animation: zoom-out 2.2s ease-out both; }
main > section.isolate h1 { animation: fade-up .8s ease-out .1s both; }
main > section.isolate h1 ~ p, main > section.isolate nav { animation: fade-up .8s ease-out .3s both; }
main > section.isolate h1 ~ a { animation: fade-up .8s ease-out .5s both; }
form[role="search"][action] { animation: fade-up .8s ease-out .6s both; }

/* Cards: staggered entrance whenever a grid is (re)rendered */
#featured-trips > *, #featured-destinations > *, #trips-grid > *, #destinations-grid > * { animation: fade-up .5s ease-out both; }
#trips-grid > :nth-child(3n+2), #destinations-grid > :nth-child(4n+2), #featured-trips > :nth-child(2), #featured-destinations > :nth-child(2) { animation-delay: 70ms; }
#trips-grid > :nth-child(3n+3), #destinations-grid > :nth-child(4n+3), #featured-trips > :nth-child(3), #featured-destinations > :nth-child(3) { animation-delay: 140ms; }
#destinations-grid > :nth-child(4n+4), #featured-trips > :nth-child(4) { animation-delay: 210ms; }

/* Small UI motion */
#mobile-menu:not([hidden]) { animation: menu-in .25s ease-out; }
#empty-state:not([hidden]), #form-status:not([hidden]) { animation: fade-up .4s ease-out; }
body > header { transition: box-shadow .3s ease; }
a[class*="bg-gold-500"], button[class*="bg-gold-500"] { transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease; }
a[class*="bg-gold-500"]:hover, button[class*="bg-gold-500"]:hover { transform: translateY(-1px); }
a[class*="bg-gold-500"]:active, button[class*="bg-gold-500"]:active { transform: translateY(0) scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  main > section.isolate > img, main > section.isolate h1, main > section.isolate h1 ~ p, main > section.isolate h1 ~ a, main > section.isolate nav,
  form[role="search"][action], #featured-trips > *, #featured-destinations > *, #trips-grid > *, #destinations-grid > * { animation: none; }
}
/* Fayed Travel – home page sections (يشتغل لوحده، مش محتاج إعادة build لـ Tailwind) */
:root {
  --ft-gold: #b8923a;
  --ft-gold-dark: #8f6f24;
  --ft-gold-soft: #f6efe0;
  --ft-navy: #0e2240;
  --ft-ink: #1f2937;
  --ft-muted: #5b6574;
  --ft-line: #e6e1d6;
  --ft-sand: #faf7f1;
}

.ft-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .ft-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .ft-wrap { padding: 0 2rem; } }

.ft-section { padding: 4.5rem 0; }
.ft-section--sand { background: var(--ft-sand); }

/* Section heading: left aligned with link on the side */
.ft-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.ft-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; color: var(--ft-navy); }
.ft-head p { margin-top: .5rem; max-width: 34rem; color: var(--ft-muted); }
.ft-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; font-weight: 600; font-size: .9rem; color: var(--ft-gold-dark); border-bottom: 2px solid var(--ft-gold); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.ft-link:hover { color: var(--ft-navy); border-color: var(--ft-navy); }

/* JS-rendered cards (destinations + trips): نظّفت الشكل من برّه */
#featured-destinations > *, #featured-trips > * {
  border-radius: .75rem; overflow: hidden; background: #fff;
  border: 1px solid var(--ft-line); transition: transform .25s ease, box-shadow .25s ease;
}
#featured-destinations > *:hover, #featured-trips > *:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(14, 34, 64, .25); }
#featured-destinations img, #featured-trips img { transition: transform .5s ease; }
#featured-destinations > *:hover img, #featured-trips > *:hover img { transform: scale(1.04); }

/* styles.css بيحط animation: fade-up بـ fill-mode "both" على الكروت، وده بيمنع الـ hover transform.
   "backwards" بيحافظ على الدخول المتدرّج وبعد ما يخلص بيسيب الـ hover يشتغل. */
#featured-trips > *, #featured-destinations > * { animation-fill-mode: backwards; }

/* Experiences: لوحة واحدة مقسّمة بخطوط بدل كروت منفصلة */
.ft-exp { display: grid; grid-template-columns: 1fr; border: 1px solid var(--ft-line); border-radius: 1rem; overflow: hidden; background: #fff; }
@media (min-width: 640px) { .ft-exp { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ft-exp { grid-template-columns: repeat(5, 1fr); } }
.ft-exp a { display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem 1.5rem; border-bottom: 1px solid var(--ft-line); transition: background .25s, color .25s; }
@media (min-width: 640px) { .ft-exp a { border-right: 1px solid var(--ft-line); } }
.ft-exp a:last-child { border-bottom: 0; }
.ft-exp .ft-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ft-gold-soft); color: var(--ft-gold-dark); transition: background .25s, color .25s; }
.ft-exp h3 { font-size: 1.25rem; color: var(--ft-navy); }
.ft-exp p { font-size: .9rem; line-height: 1.55; color: var(--ft-muted); flex: 1; }
.ft-exp .ft-more { font-size: .85rem; font-weight: 600; color: var(--ft-gold-dark); }
.ft-exp a:hover { background: var(--ft-navy); }
.ft-exp a:hover h3, .ft-exp a:hover p { color: #fff; }
.ft-exp a:hover .ft-more { color: #e8c777; }
.ft-exp a:hover .ft-ico { background: var(--ft-gold); color: #fff; }
.ft-exp a:focus-visible { outline: 3px solid var(--ft-gold); outline-offset: -3px; }

/* Why us: عمودين – عنوان على الشمال وصفوف على اليمين */
.ft-why { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .ft-why { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }
.ft-why h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; color: var(--ft-navy); }
.ft-why > div:first-child p { margin-top: 1rem; color: var(--ft-muted); max-width: 28rem; line-height: 1.7; }
.ft-why ul { border-top: 1px solid var(--ft-line); }
.ft-why li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--ft-line); }
.ft-why .ft-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem; background: var(--ft-navy); color: #e8c777; }
.ft-why h3 { font-size: 1.2rem; color: var(--ft-navy); }
.ft-why li p { margin-top: .3rem; font-size: .95rem; line-height: 1.6; color: var(--ft-muted); }
.ft-why li a { display: inline-block; margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--ft-gold-dark); }
.ft-why li a:hover { text-decoration: underline; }

/* Gallery: كولاج مع اسم المكان */
.ft-gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 11rem; gap: .75rem; }
@media (min-width: 768px) { .ft-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 13rem; } }
.ft-gallery figure { position: relative; overflow: hidden; border-radius: .9rem; margin: 0; }
.ft-gallery .ft-tall { grid-row: span 2; }
.ft-gallery .ft-wide { grid-column: span 2; }
.ft-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ft-gallery figure:hover img { transform: scale(1.06); }
.ft-gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .8rem; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(to top, rgba(14, 34, 64, .75), transparent); }

/* CTA */
.ft-cta { background: var(--ft-navy); color: #fff; }
.ft-cta .ft-wrap { display: grid; gap: 1.75rem; padding-top: 3.5rem; padding-bottom: 3.5rem; align-items: center; }
@media (min-width: 900px) { .ft-cta .ft-wrap { grid-template-columns: 1fr auto; } }
.ft-cta h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); color: #fff; }
.ft-cta p { margin-top: .6rem; color: rgba(255, 255, 255, .8); max-width: 34rem; }
.ft-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ft-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.75rem; border-radius: .5rem; font-weight: 600; transition: background .2s, color .2s; }
.ft-btn--gold { background: var(--ft-gold); color: #fff; }
.ft-btn--gold:hover { background: var(--ft-gold-dark); }
.ft-btn--ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.ft-btn--ghost:hover { background: #fff; color: var(--ft-navy); }
.ft-btn:focus-visible, .ft-link:focus-visible { outline: 3px solid var(--ft-gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  #featured-destinations > *, #featured-trips > *, .ft-gallery img, #featured-destinations img, #featured-trips img { transition: none; }
}

.h-12 {
    height: 89px !important;
 
}