/* ============================================
   DESTINATION DETAIL PAGES
   ibtisemetour.com
   ============================================ */

/* ── Page Hero ─────────────────────────────── */
.dest-page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dest-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dest-page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}

.dest-page-hero__img.loaded {
  transform: scale(1);
}

.dest-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 20, 0.92) 0%,
    rgba(10, 10, 20, 0.55) 50%,
    rgba(10, 10, 20, 0.25) 100%
  );
}

.dest-page-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.dest-page-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 20px;
}

.dest-page-hero__tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: #C9A84C;
}

.dest-page-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.08;
  color: #F0F0F8;
  margin-bottom: 20px;
}

.dest-page-hero__title em {
  font-style: italic;
  color: #E8C97A;
}

.dest-page-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(240, 240, 248, 0.75);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.dest-page-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Experience Section ─────────────────────── */
.dest-experience {
  background: #0D0D1A;
  padding: 100px 0;
  width: 100%;
}

.dest-experience__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.dest-experience__left {}

.dest-experience__intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.7;
  color: #D0D0E8;
  margin-bottom: 24px;
}

.dest-experience__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #8888A8;
  margin-bottom: 16px;
}

.dest-experience__image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.dest-experience__image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.dest-experience__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, transparent 60%);
}

/* ── Highlights Grid ────────────────────────── */
.dest-highlights {
  background: #12121E;
  padding: 100px 0;
}

.dest-highlights__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.dest-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.dest-highlight-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 32px 28px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.dest-highlight-card:hover {
  border-color: rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.04);
  transform: translateY(-4px);
}

.dest-highlight-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #C9A84C;
}

.dest-highlight-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F0F0F8;
  margin-bottom: 10px;
}

.dest-highlight-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
  color: #7070A0;
}

/* ── Page CTA ───────────────────────────────── */
.dest-page-cta {
  background: linear-gradient(135deg, #0D0D1A 0%, #1A1420 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.dest-page-cta::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.dest-page-cta__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.dest-page-cta__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 20px;
  display: block;
}

.dest-page-cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: #F0F0F8;
  margin-bottom: 20px;
}

.dest-page-cta__title em {
  font-style: italic;
  color: #E8C97A;
}

.dest-page-cta__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 300;
  color: #7070A0;
  line-height: 1.7;
  margin-bottom: 40px;
}

.dest-page-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Related Destinations ───────────────────── */
.dest-related {
  background: #0A0A14;
  padding: 100px 0;
}

.dest-related__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.dest-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* ── Homepage Preview Sections ──────────────── */
.home-services-preview {
  background: #12121E;
  padding: 100px 0;
}

.home-services-preview__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.home-services-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.home-service-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 40px 32px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.home-service-card:hover {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.03);
  transform: translateY(-4px);
}

.home-service-card__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,168,76,0.18);
  line-height: 1;
  margin-bottom: 20px;
}

.home-service-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F0F0F8;
  margin-bottom: 14px;
}

.home-service-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: #7070A0;
  flex: 1;
  margin-bottom: 28px;
}

.home-service-card__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A84C;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}

.home-service-card__link:hover {
  gap: 12px;
}

.home-services-preview__footer {
  text-align: center;
  margin-top: 48px;
}

/* Destinations preview on homepage */
.home-dest-preview {
  background: #0D0D1A;
  padding: 100px 0;
}

.home-dest-preview__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.home-dest-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 16px;
  margin-top: 56px;
}

.home-dest-preview__footer {
  text-align: center;
  margin-top: 40px;
}

/* Testimonials preview */
.home-testimonials-preview {
  background: #12121E;
  padding: 100px 0;
}

.home-testimonials-preview__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.home-testimonials-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.home-testimonials-preview__footer {
  text-align: center;
  margin-top: 40px;
}

/* ── Aliases for agent-generated page classes ── */


.dest-experience__label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 16px;
}

.dest-experience__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: #F0F0F8;
  margin-bottom: 24px;
}

.dest-experience__title em {
  font-style: italic;
  color: #E8C97A;
}

.dest-experience__body {
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.8;
  color: #7878A0;
  margin-bottom: 16px;
}

.dest-experience__image {
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}

.dest-experience__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* dest-highlights: agent uses __header instead of section-header */
.dest-highlights__header {
  text-align: center;
  margin-bottom: 0;
}

.dest-highlights__label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 14px;
}

.dest-highlights__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: #F0F0F8;
  margin-bottom: 0;
}

.dest-highlights__title em {
  font-style: italic;
  color: #E8C97A;
}

/* dest-page-cta: agent uses __inner instead of __container, __body instead of __desc */
.dest-page-cta__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.dest-page-cta__body {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 300;
  color: #7070A0;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* dest-related: agent uses __header, __label, __title */
.dest-related__header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 40px;
}

.dest-related__label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 14px;
}

.dest-related__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: #F0F0F8;
}

.dest-related__title em {
  font-style: italic;
  color: #E8C97A;
}

/* dest-card link-wrap structure (agent variant) */
.dest-card__image-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.dest-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.dest-card:hover .dest-card__image-wrap img {
  transform: scale(1.04);
}

.dest-card__body {
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(10,10,20,0.98) 0%, rgba(10,10,20,0.6) 100%);
}

.dest-card__region {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C9A84C;
  display: block;
  margin-bottom: 6px;
}

.dest-card__cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9A84C;
  display: inline-block;
  margin-top: 10px;
}

/* ── WhatsApp button variant ────────────────── */
.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
}

.btn--whatsapp:hover {
  background: #20bb59;
  color: #fff;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .dest-experience__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .dest-experience__image {
    height: 320px;
  }

  .dest-highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dest-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-services-preview__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-dest-preview__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 220px);
  }

  .home-testimonials-preview__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dest-page-hero__content {
    padding: 0 20px 60px;
  }

  .dest-highlights__grid {
    grid-template-columns: 1fr;
  }

  .dest-related__grid {
    grid-template-columns: 1fr;
  }

  .dest-highlights__container,
  .dest-experience__container,
  .dest-page-cta__container,
  .dest-related__container,
  .home-services-preview__container,
  .home-dest-preview__container,
  .home-testimonials-preview__container {
    padding: 0 20px;
  }

  .dest-highlights,
  .dest-experience,
  .dest-page-cta,
  .dest-related,
  .home-services-preview,
  .home-dest-preview,
  .home-testimonials-preview {
    padding: 64px 0;
  }
}

/* ============================================
   RTL SUPPORT — DESTINATION PAGES
   Activates when dir="rtl" is on <html>
   ============================================ */

/* — Hero — */
[dir="rtl"] .dest-page-hero__content  { text-align: right; }
[dir="rtl"] .dest-page-hero__tag      { letter-spacing: 0; text-transform: none; flex-direction: row-reverse; }
[dir="rtl"] .dest-page-hero__tag::before { display: none; }
[dir="rtl"] .dest-page-hero__sub      { text-align: right; }
[dir="rtl"] .dest-page-hero__actions  { flex-direction: row-reverse; }

/* — Experience section — */
[dir="rtl"] .dest-experience__container { direction: rtl; }
[dir="rtl"] .dest-experience__left    { text-align: right; }
[dir="rtl"] .dest-experience__intro   { text-align: right; letter-spacing: 0; }
[dir="rtl"] .dest-experience__text    { text-align: right; letter-spacing: 0; }

/* — Highlights section — */
[dir="rtl"] .dest-highlights__header  { text-align: right; }
[dir="rtl"] .dest-highlights__label   { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .dest-highlight-card      { text-align: right; direction: rtl; }
[dir="rtl"] .dest-highlight-card__header { flex-direction: row-reverse; }
[dir="rtl"] .dest-highlight-card__title { text-align: right; letter-spacing: 0; }
[dir="rtl"] .dest-highlight-card__desc  { text-align: right; letter-spacing: 0; }

/* — CTA section — */
[dir="rtl"] .dest-page-cta__container { text-align: right; direction: rtl; }
[dir="rtl"] .dest-page-cta__label     { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .dest-page-cta__actions   { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .dest-page-cta::before    { right: auto; left: -120px; }

/* — Related destinations — */
[dir="rtl"] .dest-related__header     { text-align: right; }
[dir="rtl"] .dest-related__label      { letter-spacing: 0; text-transform: none; }

/* — Home previews (destinations & services on index) — */
[dir="rtl"] .home-dest-preview__container  { direction: rtl; }
[dir="rtl"] .home-dest-preview .section-header { text-align: right; }
[dir="rtl"] .home-services-preview__container  { direction: rtl; }
[dir="rtl"] .home-testimonials-preview__container { direction: rtl; }
[dir="rtl"] .home-testimonials-preview__header { text-align: right; }

/* — Arabic typography for destination pages — */
[dir="rtl"] .dest-page-hero__title,
[dir="rtl"] .dest-experience__intro,
[dir="rtl"] .dest-highlight-card__title,
[dir="rtl"] .dest-page-cta__title     { font-family: 'Cairo', serif; letter-spacing: 0; }
[dir="rtl"] .dest-page-hero__sub,
[dir="rtl"] .dest-experience__text,
[dir="rtl"] .dest-highlight-card__desc,
[dir="rtl"] .dest-page-cta__desc      { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
[dir="rtl"] .dest-page-hero__tag,
[dir="rtl"] .dest-highlights__label,
[dir="rtl"] .dest-page-cta__label,
[dir="rtl"] .dest-related__label      { font-family: 'Cairo', sans-serif; letter-spacing: 0; text-transform: none; }

/* ========== TOUCH HOVER GUARD ========== */
@media (hover: none) {
  .dest-highlight-card:hover,
  .home-service-card:hover { transform: none; }

  .dest-card:hover .dest-card__image-wrap img { transform: none; }
}

/* ========== PREFERS-REDUCED-MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .dest-highlight-card:hover,
  .home-service-card:hover { transform: none; }

  .dest-card:hover .dest-card__image-wrap img { transform: none; }

  .dest-card__image-wrap img { transition: none; }
  .dest-page-hero__img       { transition: none; }
}
