/* ==========================================================
   KIAN DEZH - CLEAN CORE STRUCTURE
   Purpose: unified raw HTML structure before page-by-page media optimization
   ========================================================== */

.kd-visually-hidden,
.kd-header-hidden-h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Unified inner page header: only menu/logo visible, no hero title text */
.inner-hero-header {
  min-height: 420px !important;
  height: 420px !important;
  max-height: 420px !important;
  overflow: hidden !important;
  background: #111 !important;
}

.inner-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  transform: none !important;
}

.inner-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.70), rgba(0,0,0,.24) 46%, rgba(0,0,0,.76)),
    linear-gradient(to left, rgba(0,0,0,.18), rgba(0,0,0,.54)) !important;
}

.inner-top-nav {
  position: relative !important;
  z-index: 10 !important;
}

.inner-hero-content {
  display: none !important;
}

/* Unified bottom video block above footer for all inner pages */
:root {
  --kd-clean-bottom-media-height: 620px;
  --kd-clean-bottom-media-space: clamp(34px, 4vw, 64px);
}

html body main section.page-bottom-video,
html body main section.hotel-bottom-video,
html body main section.kd-unified-bottom-media {
  position: relative !important;
  width: 100% !important;
  height: var(--kd-clean-bottom-media-height) !important;
  min-height: var(--kd-clean-bottom-media-height) !important;
  max-height: var(--kd-clean-bottom-media-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #111 !important;
  isolation: isolate !important;
}

html body main section.page-bottom-video > video,
html body main section.hotel-bottom-video > video,
html body main section.kd-unified-bottom-media > video,
html body main section.page-bottom-video .page-bottom-video-media,
html body main section.hotel-bottom-video .hotel-bottom-video-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  z-index: 1 !important;
}

html body main section.page-bottom-video::before,
html body main section.hotel-bottom-video::before,
html body main section.kd-unified-bottom-media::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.08) 44%, rgba(0,0,0,.42)),
    linear-gradient(to left, rgba(0,0,0,.10), rgba(0,0,0,.44)) !important;
}

html body main section.page-bottom-video .page-bottom-video-overlay,
html body main section.hotel-bottom-video .hotel-bottom-video-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

html body main section.page-bottom-video .page-bottom-video-content,
html body main section.hotel-bottom-video .hotel-bottom-video-content,
html body main section.kd-unified-bottom-media .page-bottom-video-content {
  position: absolute !important;
  inset: var(--kd-clean-bottom-media-space) !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  text-shadow: 0 14px 34px rgba(0,0,0,.42) !important;
}

html[dir="rtl"] body main section.page-bottom-video .page-bottom-video-content,
html[dir="rtl"] body main section.hotel-bottom-video .hotel-bottom-video-content,
html[dir="rtl"] body main section.kd-unified-bottom-media .page-bottom-video-content {
  align-items: flex-start !important;
  text-align: right !important;
}

html[dir="ltr"] body main section.page-bottom-video .page-bottom-video-content,
html[dir="ltr"] body main section.hotel-bottom-video .hotel-bottom-video-content,
html[dir="ltr"] body main section.kd-unified-bottom-media .page-bottom-video-content {
  align-items: flex-start !important;
  text-align: left !important;
}

html body main section.page-bottom-video .page-bottom-video-content h2,
html body main section.hotel-bottom-video .hotel-bottom-video-content h2,
html body main section.kd-unified-bottom-media .page-bottom-video-content h2 {
  max-width: min(640px, 80vw) !important;
  margin: 0 !important;
  font-size: clamp(23px, 2.2vw, 36px) !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
  color: #fff !important;
}

html body main section.page-bottom-video .page-bottom-video-content a,
html body main section.hotel-bottom-video .hotel-bottom-video-content a,
html body main section.kd-unified-bottom-media .page-bottom-video-content a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 220px !important;
  height: 48px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  background: rgba(255,255,255,.18) !important;
  backdrop-filter: blur(12px) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900 !important;
}

@media (max-width: 900px) {
  .inner-hero-header {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
  }
  :root { --kd-clean-bottom-media-height: 520px; }
}

@media (max-width: 640px) {
  .inner-hero-header {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }
  :root {
    --kd-clean-bottom-media-height: 460px;
    --kd-clean-bottom-media-space: 26px;
  }
  html body main section.page-bottom-video .page-bottom-video-content a,
  html body main section.hotel-bottom-video .hotel-bottom-video-content a,
  html body main section.kd-unified-bottom-media .page-bottom-video-content a {
    width: 180px !important;
  }
}

/* Natural footer media: no tint, blur, darkening or decorative overlay. */
html body .home-tourism-banner,
html body .page-bottom-video,
html body .hotel-bottom-video,
html body .kd-unified-bottom-media,
html body .kd-instagram-bottom {
  filter: none !important;
  -webkit-filter: none !important;
}

html body .home-tourism-banner img,
html body .home-tourism-banner video,
html body .page-bottom-video img,
html body .page-bottom-video video,
html body .hotel-bottom-video img,
html body .hotel-bottom-video video,
html body .kd-unified-bottom-media img,
html body .kd-unified-bottom-media video,
html body .kd-instagram-bottom img,
html body .kd-instagram-bottom video,
html body .page-bottom-video-media,
html body .hotel-bottom-video-media,
html body .kd-bottom-media-poster {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body .home-tourism-banner::before,
html body .home-tourism-banner::after,
html body .page-bottom-video::before,
html body .page-bottom-video::after,
html body .hotel-bottom-video::before,
html body .hotel-bottom-video::after,
html body .kd-unified-bottom-media::before,
html body .kd-unified-bottom-media::after,
html body .kd-instagram-bottom::before,
html body .kd-instagram-bottom::after {
  content: none !important;
  display: none !important;
  background: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0 !important;
}

html body .page-bottom-video-overlay,
html body .hotel-bottom-video-overlay,
html body .kd-bottom-media-overlay,
html body .kd-media-overlay,
html body .kd-instagram-bottom-overlay {
  display: none !important;
  background: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0 !important;
}


/* ==========================================================
   Project Info bottom media fix
   Some internal pages place the bottom media section directly after </main>.
   These selectors keep the shared footer video block consistent in both cases.
   ========================================================== */
html body > section.page-bottom-video,
html body > section.hotel-bottom-video,
html body > section.kd-unified-bottom-media {
  position: relative !important;
  width: 100% !important;
  height: var(--kd-clean-bottom-media-height) !important;
  min-height: var(--kd-clean-bottom-media-height) !important;
  max-height: var(--kd-clean-bottom-media-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #111 !important;
  isolation: isolate !important;
}

html body > section.page-bottom-video > video,
html body > section.hotel-bottom-video > video,
html body > section.kd-unified-bottom-media > video,
html body > section.page-bottom-video .page-bottom-video-media,
html body > section.hotel-bottom-video .hotel-bottom-video-media,
html body > section.kd-unified-bottom-media .page-bottom-video-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  z-index: 1 !important;
}

html body > section.page-bottom-video::before,
html body > section.hotel-bottom-video::before,
html body > section.kd-unified-bottom-media::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.08) 44%, rgba(0,0,0,.42)),
    linear-gradient(to left, rgba(0,0,0,.10), rgba(0,0,0,.44)) !important;
}

html body > section.page-bottom-video .page-bottom-video-overlay,
html body > section.hotel-bottom-video .hotel-bottom-video-overlay,
html body > section.kd-unified-bottom-media .page-bottom-video-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

html body > section.page-bottom-video .page-bottom-video-content,
html body > section.hotel-bottom-video .hotel-bottom-video-content,
html body > section.kd-unified-bottom-media .page-bottom-video-content {
  position: absolute !important;
  inset: var(--kd-clean-bottom-media-space) !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  text-shadow: 0 14px 34px rgba(0,0,0,.42) !important;
}

html[dir="rtl"] body > section.page-bottom-video .page-bottom-video-content,
html[dir="rtl"] body > section.hotel-bottom-video .hotel-bottom-video-content,
html[dir="rtl"] body > section.kd-unified-bottom-media .page-bottom-video-content {
  align-items: flex-start !important;
  text-align: right !important;
}

html[dir="ltr"] body > section.page-bottom-video .page-bottom-video-content,
html[dir="ltr"] body > section.hotel-bottom-video .hotel-bottom-video-content,
html[dir="ltr"] body > section.kd-unified-bottom-media .page-bottom-video-content {
  align-items: flex-start !important;
  text-align: left !important;
}

html body > section.page-bottom-video .page-bottom-video-content h2,
html body > section.hotel-bottom-video .hotel-bottom-video-content h2,
html body > section.kd-unified-bottom-media .page-bottom-video-content h2 {
  max-width: min(640px, 80vw) !important;
  margin: 0 !important;
  font-size: clamp(23px, 2.2vw, 36px) !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
  color: #fff !important;
}

html body > section.page-bottom-video .page-bottom-video-content a,
html body > section.hotel-bottom-video .page-bottom-video-content a,
html body > section.kd-unified-bottom-media .page-bottom-video-content a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 220px !important;
  height: 48px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  background: rgba(255,255,255,.18) !important;
  backdrop-filter: blur(12px) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900 !important;
}

/* Project-info page has its own cultural/map sections; keep the raw visual frame stable. */
body.kd-project-info-page .cultural-showcase,
body.kd-project-info-page .cultural-program,
body.kd-project-info-page .cultural-cta {
  position: relative !important;
  z-index: 1 !important;
}

body.kd-project-info-page .cultural-card,
body.kd-project-info-page .cultural-video-card {
  overflow: hidden !important;
  background: #111 !important;
}

body.kd-project-info-page .cultural-card img,
body.kd-project-info-page .cultural-card-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.kd-project-info-page .bazaar-map-section {
  min-height: 620px !important;
  height: 620px !important;
  max-height: 620px !important;
  margin: 0 !important;
}

body.kd-project-info-page .bazaar-map-section img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 900px) {
  body.kd-project-info-page .bazaar-map-section {
    min-height: 520px !important;
    height: 520px !important;
    max-height: 520px !important;
  }
}

@media (max-width: 640px) {
  html body > section.page-bottom-video .page-bottom-video-content a,
  html body > section.hotel-bottom-video .page-bottom-video-content a,
  html body > section.kd-unified-bottom-media .page-bottom-video-content a {
    width: 180px !important;
  }

  body.kd-project-info-page .bazaar-map-section {
    min-height: 460px !important;
    height: 460px !important;
    max-height: 460px !important;
  }
}


/* ==========================================================
   KIAN DEZH - CORE FINAL LOCK BEFORE .NET CORE MIGRATION
   Scope:
   - uniform inner-page header and bottom media, except index content behavior
   - project-info page cleanup
   - real image + video layering above footer
   ========================================================== */

/* real poster image behind video; keeps image visible if video is absent/slow */
html body main section.page-bottom-video > .kd-bottom-media-poster,
html body main section.hotel-bottom-video > .kd-bottom-media-poster,
html body main section.kd-unified-bottom-media > .kd-bottom-media-poster {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  z-index: 1 !important;
  background: #111 !important;
}

html body main section.page-bottom-video > video,
html body main section.hotel-bottom-video > video,
html body main section.kd-unified-bottom-media > video,
html body main section.page-bottom-video .page-bottom-video-media,
html body main section.hotel-bottom-video .hotel-bottom-video-media,
html body main section.kd-unified-bottom-media .page-bottom-video-media {
  z-index: 2 !important;
}

html body main section.page-bottom-video::before,
html body main section.hotel-bottom-video::before,
html body main section.kd-unified-bottom-media::before,
html body main section.page-bottom-video .page-bottom-video-overlay,
html body main section.hotel-bottom-video .hotel-bottom-video-overlay,
html body main section.kd-unified-bottom-media .page-bottom-video-overlay {
  z-index: 3 !important;
}

html body main section.page-bottom-video .page-bottom-video-content,
html body main section.hotel-bottom-video .hotel-bottom-video-content,
html body main section.kd-unified-bottom-media .page-bottom-video-content {
  z-index: 5 !important;
}

/* Project Info is no longer allowed to use a second full-screen media block before footer */
body.kd-project-info-page {
  background: #ffffff !important;
}

body.kd-project-info-page main.cultural-page,
body.kd-project-info-page main.cultural-page > section {
  background: #ffffff !important;
  margin: 0 !important;
}

body.kd-project-info-page .cultural-hero-bridge,
body.kd-project-info-page .cultural-showcase,
body.kd-project-info-page .cultural-program,
body.kd-project-info-page .cultural-cta,
body.kd-project-info-page .kd-project-story-section {
  background: #ffffff !important;
}

body.kd-project-info-page .cultural-card,
body.kd-project-info-page .cultural-program-text,
body.kd-project-info-page .cultural-cta-card,
body.kd-project-info-page .kd-project-story-media,
body.kd-project-info-page .kd-project-story-text {
  border: 1px solid rgba(162, 118, 49, .055) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .030),
    inset 0 1px 0 rgba(255, 255, 255, .90) !important;
  background: rgba(255,255,255,.985) !important;
  background-image: none !important;
}

body.kd-project-info-page .cultural-card::before,
body.kd-project-info-page .cultural-card::after,
body.kd-project-info-page .cultural-program-text::before,
body.kd-project-info-page .cultural-program-text::after,
body.kd-project-info-page .cultural-cta-card::before,
body.kd-project-info-page .cultural-cta-card::after,
body.kd-project-info-page .kd-project-story-section::before,
body.kd-project-info-page .kd-project-story-section::after {
  content: none !important;
  display: none !important;
}

body.kd-project-info-page .kd-project-story-section {
  padding: 54px 0 62px !important;
}

body.kd-project-info-page .kd-project-story-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

body.kd-project-info-page .kd-project-story-media {
  min-height: 360px !important;
  margin: 0 !important;
  border-radius: 32px !important;
  overflow: hidden !important;
}

body.kd-project-info-page .kd-project-story-media img {
  width: 100% !important;
  height: 100% !important;
  min-height: 360px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: none !important;
}

body.kd-project-info-page .kd-project-story-text {
  min-height: 360px !important;
  padding: clamp(24px, 3vw, 40px) !important;
  border-radius: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  color: #111 !important;
}

body.kd-project-info-page .kd-project-story-text h2 {
  margin: 0 0 12px !important;
  color: #111111 !important;
  font-size: clamp(24px, 2.2vw, 34px) !important;
  line-height: 1.55 !important;
  font-weight: 950 !important;
}

body.kd-project-info-page .kd-project-story-text p {
  margin: 0 !important;
  color: #333333 !important;
  font-size: 15px !important;
  line-height: 2.05 !important;
  font-weight: 800 !important;
  text-align: justify !important;
}

body.kd-project-info-page .bazaar-map-section,
body.kd-project-info-page .kd-project-map-section {
  display: none !important;
}

@media (max-width: 900px) {
  body.kd-project-info-page .kd-project-story-grid {
    grid-template-columns: 1fr !important;
  }

  body.kd-project-info-page .kd-project-story-media,
  body.kd-project-info-page .kd-project-story-media img,
  body.kd-project-info-page .kd-project-story-text {
    min-height: 300px !important;
  }
}

@media (max-width: 640px) {
  body.kd-project-info-page .kd-project-story-section {
    padding: 42px 0 !important;
  }

  body.kd-project-info-page .kd-project-story-media,
  body.kd-project-info-page .kd-project-story-media img,
  body.kd-project-info-page .kd-project-story-text {
    min-height: 240px !important;
    border-radius: 26px !important;
  }
}

/* FINAL OVERRIDE — media directly above the footer must keep its natural colors. */
html body main section.home-tourism-banner,
html body main section.page-bottom-video,
html body main section.hotel-bottom-video,
html body main section.kd-unified-bottom-media,
html body > section.home-tourism-banner,
html body > section.page-bottom-video,
html body > section.hotel-bottom-video,
html body > section.kd-unified-bottom-media {
  filter: none !important;
  -webkit-filter: none !important;
  background-blend-mode: normal !important;
}

html body main section.home-tourism-banner > img,
html body main section.home-tourism-banner > video,
html body main section.page-bottom-video > img,
html body main section.page-bottom-video > video,
html body main section.hotel-bottom-video > img,
html body main section.hotel-bottom-video > video,
html body main section.kd-unified-bottom-media > img,
html body main section.kd-unified-bottom-media > video,
html body > section.home-tourism-banner > img,
html body > section.home-tourism-banner > video,
html body > section.page-bottom-video > img,
html body > section.page-bottom-video > video,
html body > section.hotel-bottom-video > img,
html body > section.hotel-bottom-video > video,
html body > section.kd-unified-bottom-media > img,
html body > section.kd-unified-bottom-media > video,
html body main section.page-bottom-video .page-bottom-video-media,
html body main section.hotel-bottom-video .hotel-bottom-video-media,
html body main section.kd-unified-bottom-media .page-bottom-video-media,
html body main section .kd-bottom-media-poster {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

html body main section.home-tourism-banner::before,
html body main section.home-tourism-banner::after,
html body main section.page-bottom-video::before,
html body main section.page-bottom-video::after,
html body main section.hotel-bottom-video::before,
html body main section.hotel-bottom-video::after,
html body main section.kd-unified-bottom-media::before,
html body main section.kd-unified-bottom-media::after,
html body > section.home-tourism-banner::before,
html body > section.home-tourism-banner::after,
html body > section.page-bottom-video::before,
html body > section.page-bottom-video::after,
html body > section.hotel-bottom-video::before,
html body > section.hotel-bottom-video::after,
html body > section.kd-unified-bottom-media::before,
html body > section.kd-unified-bottom-media::after,
html body main section.page-bottom-video .page-bottom-video-overlay,
html body main section.hotel-bottom-video .hotel-bottom-video-overlay,
html body main section.kd-unified-bottom-media .page-bottom-video-overlay,
html body > section.page-bottom-video .page-bottom-video-overlay,
html body > section.hotel-bottom-video .hotel-bottom-video-overlay,
html body > section.kd-unified-bottom-media .page-bottom-video-overlay {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-image: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
