/* Minnet Apart — final premium refinement layer */
:root {
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

body { font-weight: 400; letter-spacing: .002em; }
.hero-copy h1, .display-title, .planning-inner h2,
.room-hero-copy h1, .room-cta h2 { font-weight: 400; letter-spacing: -.042em; }
.desktop-nav a, .eyebrow, .button, .room-card-detail,
.nearby-title, .platform-strip-inner a, .footer-column h2, .back-link { font-weight: 650; }
.hero-lead, .planning-inner > p:not(.eyebrow), .location-lead,
.information-answer, .footer-brand p { font-weight: 400; }

/* Refined icon language */
svg[stroke="currentColor"] { stroke-width: 1.45; shape-rendering: geometricPrecision; }
.mobile-menu-button svg, .mobile-menu svg, .room-feature svg,
.location-fact svg, .button svg, .header-whatsapp svg,
.floating-whatsapp svg { width: 20px; height: 20px; }
.room-card-action, .information-symbol, .gallery-hover,
.lightbox-close, .lightbox-arrow, .mobile-menu-button { border-width: 1px; }

/* Real flags, not emoji glyphs */
.language-switch button > span:first-child { display: none; }
.language-switch button::before {
  content: ""; width: 18px; height: 12px; flex: none;
  background: center / contain no-repeat;
  border-radius: 2px; box-shadow: 0 0 0 1px #102f2918;
}
.language-switch button:first-child::before { background-image: url('/images/ui/flag-tr.svg'); }
.language-switch button:nth-child(2)::before { background-image: url('/images/ui/flag-gb.svg'); }

/* WhatsApp CTAs use a dedicated mark; generic arrow marks are removed */
.button > svg, .room-card-action, .platform-strip svg, .next-room-link > span { display: none !important; }
.button-whatsapp::before,
.planning-actions a[href*="wa.me"]::before,
.room-cta a[href*="wa.me"]::before {
  content: ""; width: 20px; height: 20px; flex: none;
  background: currentColor; -webkit-mask: url('/images/ui/whatsapp.svg') center/contain no-repeat;
  mask: url('/images/ui/whatsapp.svg') center/contain no-repeat;
}
.header-whatsapp svg, .floating-whatsapp svg { stroke-width: 1.5; }

/* Hero */
.hero-stamp { display: none !important; }
.hero-copy h1 { max-width: 650px; }
.hero-image img { object-position: center center; }
.hero-image-main img { object-position: center 48%; }
.hero-image-view img { object-position: center 42%; }
.hero-image-room img { object-position: center 55%; }

/* The repeated about block is intentionally removed */
.about-section, .desktop-nav a[href="/#hakkimizda"],
.mobile-menu a[href="/#hakkimizda"] { display: none !important; }

/* Apartment heading hierarchy */
.rooms-section .section-heading-wide {
  display: grid; grid-template-columns: minmax(310px,.75fr) minmax(360px,1.25fr);
  align-items: end; gap: clamp(36px,7vw,110px);
}
.rooms-section .section-heading-wide .eyebrow {
  font-family: var(--serif); text-transform: none; letter-spacing: -.035em;
  font-size: clamp(3.8rem,7vw,7.4rem); font-weight: 400; line-height: .9; margin: 0;
}
.rooms-section .section-heading-wide .eyebrow::before { display: none; }
.rooms-section .section-heading-wide .display-title {
  max-width: 600px; color: var(--muted); font-family: var(--sans);
  letter-spacing: .01em; font-size: clamp(.98rem,1.4vw,1.25rem); font-weight: 400; line-height: 1.7;
  padding-bottom: .55em;
}
.room-card-image > img, .room-card-image .photo-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 52%;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.room-card-link:hover .room-card-image > img { transform: scale(1.025); }

/* Photograph-led amenities */
.features-section { background: #0d332b; }
.features-heading { max-width: 980px; margin-bottom: clamp(44px,5vw,70px); }
.features-mark, .feature-icon { display: none !important; }
.features-heading .display-title { font-size: clamp(3rem,5.5vw,6rem); }
.feature-grid {
  border: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px;
}
.feature-item {
  min-height: 430px; border: 0 !important; padding: 26px 22px 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; isolation: isolate; overflow: hidden; background: #173b33 center/cover no-repeat;
}
.feature-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,rgba(4,20,17,.08) 18%,rgba(4,20,17,.88) 86%);
}
.feature-item:nth-child(1) { background-image: url('/images/apartments/414/09.webp'); background-position: center 54%; }
.feature-item:nth-child(2) { background-image: url('/images/apartments/413/09.webp'); background-position: center 52%; }
.feature-item:nth-child(3) { background-image: url('/images/apartments/308/02.webp'); background-position: center 58%; }
.feature-item:nth-child(4) { background-image: url('/images/apartments/205/01.webp'); background-position: center 52%; }
.feature-item:nth-child(5) { background-image: url('/images/apartments/414/04.webp'); background-position: center 55%; }
.feature-topline { position: absolute; top: 22px; left: 22px; color: #fff; }
.feature-item h3 { color: #fff; font-size: clamp(1.35rem,1.6vw,1.7rem); line-height: 1.15; }
.feature-item p { color: #ffffffe0; font-size: .88rem; line-height: 1.65; }

/* Uniform gallery and complete lightbox images */
.gallery-item { aspect-ratio: 4/3; grid-area: auto !important; min-height: 0; }
.gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: auto; }
.gallery-item > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gallery-hover { width: auto; height: auto; padding: 8px 12px; border-radius: 2px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.lightbox { padding: 68px clamp(66px,8vw,130px); }
.lightbox-content {
  width: min(1180px,100%); height: min(78vh,820px); display: grid; place-items: center;
  background: #071e19; box-shadow: 0 28px 80px #0008;
}
.lightbox-content img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain !important; }
.lightbox-caption { display: flex; justify-content: space-between; gap: 20px; }

/* Reliable accordion */
.information-item:not(.is-open) .information-answer { display: none !important; }
.information-item.is-open .information-answer { display: block; }
.information-item > button { cursor: pointer; }
.information-symbol { font-family: var(--sans); font-weight: 300; transform: none !important; }

/* Remove nearby facts as requested */
.nearby-title, .location-facts { display: none !important; }

/* Quiet, side-by-side platform cards */
.platform-strip { padding: 54px 0; }
.platform-strip-inner { display: grid; grid-template-columns: minmax(220px,.55fr) minmax(0,1.45fr); gap: 54px; align-items: center; }
.platform-strip-inner > p {
  margin: 0; max-width: 260px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.25;
}
.platform-strip-inner > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.platform-strip-inner a, .platform-strip-inner a:first-child {
  min-height: 92px; border: 1px solid #ffffff2e; padding: 18px 22px;
  justify-content: flex-start; font-size: .75rem; letter-spacing: .13em; background: #ffffff05;
}
.platform-strip-inner a:hover { background: #ffffff12; }

/* Apartment detail pages: complete, balanced imagery */
.room-hero-image { background: #e9e4da; overflow: hidden; }
.room-hero-image > img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.room-gallery-section .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.next-room-link > img { width: 210px; height: 150px; object-fit: cover; }

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-item { min-height: 380px; }
  .feature-item:last-child { grid-column: auto; }
  .platform-strip-inner { grid-template-columns: 1fr; gap: 28px; }
  .platform-strip-inner > p { max-width: 520px; }
}

@media (max-width: 760px) {
  .language-switch button { min-width: 44px; padding: 0 7px; }
  .language-switch button span:last-child { display: inline; font-size: .62rem; }
  .rooms-section .section-heading-wide { display: block; }
  .rooms-section .section-heading-wide .eyebrow { font-size: clamp(3.4rem,17vw,5.1rem); }
  .rooms-section .section-heading-wide .display-title { margin-top: 22px; padding: 0; }
  .room-card-image { aspect-ratio: 4/3; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-item { min-height: 330px; }
  .gallery-grid, .room-gallery-section .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-item { aspect-ratio: 1/1; }
  .lightbox { padding: 72px 12px 86px; }
  .lightbox-content { width: 100%; height: 68vh; }
  .platform-strip { padding: 44px 0; }
  .platform-strip-inner { width: var(--shell); }
  .platform-strip-inner > div { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .platform-strip-inner a, .platform-strip-inner a:first-child {
    min-height: 78px; justify-content: center; padding: 12px 5px; text-align: center; font-size: .62rem;
  }
  .room-hero-image { height: min(118vw,560px); }
  .next-room-link > img { width: 140px; height: 105px; }
}

@media (max-width: 430px) {
  .gallery-grid, .room-gallery-section .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 4/3; }
  .platform-strip-inner > div { grid-template-columns: 1fr; }
  .platform-strip-inner a, .platform-strip-inner a:first-child { min-height: 64px; }
}

/* Final gallery, platform and mobile-fit pass */
html, body {
  width: 100%; max-width: 100%; overflow-x: hidden; overflow-x: clip;
}
body.lightbox-open { overflow: hidden !important; overscroll-behavior: none; }
main, header, footer, section, nav, .section-shell,
.header-inner, .home-hero, .planning-inner, .footer-inner, .footer-bottom,
.room-hero, .next-room-inner, .platform-strip-inner { min-width: 0; max-width: 100%; }
img, svg, iframe { max-width: 100%; }
h1, h2, h3, p, a, span { overflow-wrap: break-word; }

/* Editorial home gallery */
.gallery-section {
  background:
    radial-gradient(circle at 92% 7%, rgba(35,92,77,.08), transparent 28%),
    linear-gradient(180deg, #fffdf8, #f6f2e9 100%);
}
.gallery-section .section-heading {
  border-top: 1px solid var(--line); padding-top: clamp(34px,4vw,58px);
  grid-template-columns: minmax(0,1.15fr) minmax(280px,.45fr); gap: clamp(36px,8vw,130px);
}
.gallery-section .section-heading .display-title {
  max-width: 760px; font-size: clamp(3.4rem,6vw,6.7rem); line-height: .92;
}
.gallery-section .section-heading > p {
  border-left: 1px solid var(--line); padding-left: 26px; line-height: 1.8;
}
.gallery-section .gallery-grid {
  display: grid; grid-template-columns: repeat(12,minmax(0,1fr));
  grid-auto-rows: clamp(150px,14vw,230px); gap: clamp(10px,1.2vw,18px);
}
.gallery-section .gallery-item { aspect-ratio: auto; grid-area: auto !important; box-shadow: 0 18px 45px #102f2912; }
.gallery-section .gallery-item:nth-child(6n + 1) { grid-column: span 6; grid-row: span 2; }
.gallery-section .gallery-item:nth-child(6n + 2),
.gallery-section .gallery-item:nth-child(6n + 3),
.gallery-section .gallery-item:nth-child(6n + 4),
.gallery-section .gallery-item:nth-child(6n + 5) { grid-column: span 3; }
.gallery-section .gallery-item:nth-child(6n + 6) { grid-column: span 6; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,transparent 62%,rgba(4,24,20,.18));
  transition: opacity .35s ease;
}
.gallery-item:hover::after { opacity: .55; }

/* The modal always stays inside the actual viewport */
.lightbox {
  inset: 0; width: 100vw; height: 100dvh; min-height: 100vh;
  overflow: hidden; padding: clamp(24px,4vh,48px) clamp(58px,7vw,110px);
  display: grid; place-items: center; background: rgba(3,20,17,.96);
}
.lightbox-content {
  width: min(1080px, calc(100vw - 150px));
  height: min(62dvh, 620px); max-height: calc(100dvh - 150px);
  background: rgba(5,28,23,.72); box-shadow: 0 30px 90px #0009;
  display: grid; place-items: center; position: relative;
}
.lightbox-content img {
  display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain !important; object-position: center !important;
}
.lightbox-caption {
  bottom: -34px; padding: 0 2px; color: #ffffffa8; font-size: .67rem;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-arrow { width: 46px; height: 46px; background: #ffffff0b; }
.lightbox-previous { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-previous svg { transform: rotate(180deg); }

/* Bespoke atmospheric platform panel */
.platform-strip {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(66px,7vw,108px) 0;
  background: #071f1a url('/images/ui/platform-atmosphere-v2.png') center / cover no-repeat;
}
.platform-strip::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,rgba(3,21,17,.82),rgba(3,21,17,.58) 48%,rgba(3,21,17,.76));
}
.platform-strip-inner > p {
  font-size: clamp(1.75rem,2.4vw,2.65rem); line-height: 1.14; text-wrap: balance;
}
.platform-strip-inner > div { gap: 14px; }
.platform-strip-inner a, .platform-strip-inner a:first-child {
  min-height: 112px; position: relative; overflow: hidden;
  border: 1px solid #ffffff38; background: linear-gradient(145deg,#ffffff14,#ffffff07);
  -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px);
  box-shadow: inset 0 1px #ffffff12, 0 18px 44px #0002;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.platform-strip-inner a::after {
  content: ""; position: absolute; left: 22px; bottom: 18px;
  width: 28px; height: 1px; background: #d9b982; transition: width .25s ease;
}
.platform-strip-inner a:hover {
  background: linear-gradient(145deg,#ffffff20,#ffffff0b);
  border-color: #d9b98280; transform: translateY(-4px);
}
.platform-strip-inner a:hover::after { width: 54px; }

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 28px); }
  .header-inner { width: calc(100% - 22px); gap: 6px; }
  .brand-link img { width: 132px; height: 40px; }
  .header-actions { gap: 6px; }
  .mobile-menu-button { width: 40px; height: 40px; flex: 0 0 40px; }
  .language-switch button { min-width: 39px; height: 32px; padding: 0 6px; }
  .language-switch button::before { width: 16px; height: 11px; }
  .home-hero, .room-hero, .section-shell, .footer-inner, .footer-bottom,
  .next-room-inner { width: var(--shell); }
  .home-hero { overflow: hidden; }
  .hero-copy h1 { font-size: clamp(3.45rem,18vw,5.45rem); overflow-wrap: normal; }
  .hero-visual { width: 100%; max-width: 100%; }
  .planning-inner { width: var(--shell); }
  .button, .hero-actions .button, .location-actions .button { max-width: 100%; white-space: normal; text-align: center; }
  .gallery-section .section-heading { display: block; padding-top: 30px; }
  .gallery-section .section-heading .display-title { font-size: clamp(3.15rem,15vw,4.8rem); }
  .gallery-section .section-heading > p { border-left: 0; border-top: 1px solid var(--line); margin-top: 26px; padding: 22px 0 0; }
  .gallery-section .gallery-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: clamp(150px,42vw,210px); gap: 9px;
  }
  .gallery-section .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-section .gallery-item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
  .room-gallery-section .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lightbox { padding: 64px 12px 84px; }
  .lightbox-content {
    width: calc(100vw - 24px); height: min(58dvh, 520px); max-height: calc(100dvh - 160px);
  }
  .lightbox-close { width: 42px; height: 42px; top: 12px; right: 12px; }
  .lightbox-arrow { width: 44px; height: 44px; top: auto; bottom: 16px; transform: none; }
  .lightbox-arrow:hover { transform: none; }
  .lightbox-previous { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .platform-strip { padding: 62px 0; background-position: 33% center; }
  .platform-strip-inner { width: var(--shell); grid-template-columns: 1fr; gap: 30px; }
  .platform-strip-inner > p { max-width: 320px; font-size: 2rem; }
  .platform-strip-inner > div { grid-template-columns: 1fr; gap: 10px; }
  .platform-strip-inner a, .platform-strip-inner a:first-child {
    min-height: 78px; justify-content: flex-start; text-align: left; padding: 18px 20px;
  }
  .location-copy { max-width: 100%; overflow: hidden; }
  .location-copy .display-title { font-size: clamp(2.75rem,14vw,4.5rem); }
  .map-panel, .map-panel iframe { width: 100%; max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand, .footer-column:last-child { grid-column: auto; }
}

@media (max-width: 420px) {
  .brand-link img { width: 112px; }
  .language-switch button { min-width: 36px; padding: 0 5px; }
  .hero-copy h1 { font-size: clamp(3.15rem,17.5vw,4.6rem); }
  .gallery-section .gallery-grid, .room-gallery-section .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-section .gallery-item:nth-child(n), .room-gallery-section .gallery-item:nth-child(n) {
    grid-column: auto; grid-row: auto; aspect-ratio: 4/3;
  }
}

@media (max-width: 350px) {
  .language-switch button span:last-child { display: none; }
  .language-switch button { min-width: 30px; }
  .brand-link img { width: 104px; }
}

/* V4 — multilingual tour guide, precise rhythm and final responsive polish */
:root { --header-offset: 104px; --cream: #f8f3e9; --gold: #c9aa72; }
section[id], footer[id] { scroll-margin-top: var(--header-offset); }
h1, h2, h3, p, a, span { overflow-wrap: normal; word-break: normal; }
.display-title { text-wrap: balance; }
p { text-wrap: pretty; }

/* A compact editorial route to the new Ordu guide beside the identity */
.tour-guide-link {
  flex: 0 0 auto; display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 42px; margin-left: clamp(12px,1.8vw,28px); padding-left: clamp(12px,1.7vw,26px);
  border-left: 1px solid rgba(13,51,43,.22); color: var(--ink); text-decoration: none; line-height: 1;
}
.tour-guide-kicker { color: #8b7350; font: 650 .55rem/1 var(--sans); letter-spacing: .22em; margin-bottom: 7px; }
.tour-guide-label { font: 650 .68rem/1 var(--sans); letter-spacing: .11em; white-space: nowrap; }
.mobile-tour-guide-link { color: #cbb07c !important; }

/* Three real flags; Turkish is intentionally a little more prominent */
.language-switch button:nth-child(3)::before { background-image: url('/images/ui/flag-ar.svg'); }
.language-switch button:first-child::before { width: 21px; height: 14px; }
.language-switch button:nth-child(2)::before,
.language-switch button:nth-child(3)::before { width: 17px; height: 11px; }
.language-switch button { gap: 5px; }

/* Apartment title and supporting line never collide */
.rooms-section .section-heading-wide {
  grid-template-columns: minmax(0,.9fr) minmax(300px,.62fr); align-items: end;
  column-gap: clamp(40px,8vw,140px); row-gap: 22px;
}
.rooms-section .section-heading-wide .eyebrow { max-width: 100%; font-size: clamp(3.9rem,6.2vw,7rem); }
.rooms-section .section-heading-wide .display-title { justify-self: end; width: 100%; max-width: 520px; padding: 0 0 .55rem; }

/* Only the two requested amenity photographs are replaced */
.feature-item:nth-child(2) { background-image: url('/images/tour/yason.webp'); background-position: 46% center; }
.feature-item:nth-child(4) { background-image: url('/images/ui/wifi-parking-premium.webp'); background-position: center 45%; }

/* The homepage gallery becomes a composed mosaic instead of a row of slices */
.gallery-section .gallery-grid { grid-auto-rows: clamp(120px,11vw,190px); }
.gallery-section .gallery-item:nth-child(8n + 1) { grid-column: span 5; grid-row: span 2; }
.gallery-section .gallery-item:nth-child(8n + 2) { grid-column: span 3; grid-row: span 3; }
.gallery-section .gallery-item:nth-child(8n + 3) { grid-column: span 4; grid-row: span 2; }
.gallery-section .gallery-item:nth-child(8n + 4) { grid-column: span 5; grid-row: span 2; }
.gallery-section .gallery-item:nth-child(8n + 5) { grid-column: span 4; grid-row: span 2; }
.gallery-section .gallery-item:nth-child(8n + 6) { grid-column: span 3; grid-row: span 2; }
.gallery-section .gallery-item:nth-child(8n + 7) { grid-column: span 5; grid-row: span 2; }
.gallery-section .gallery-item:nth-child(8n + 8) { grid-column: span 4; grid-row: span 2; }

/* Apartment galleries use the same editorial logic on desktop */
.room-gallery-section { background: #fbf8f1; }
.room-gallery-section .gallery-grid {
  display: grid; grid-template-columns: repeat(12,minmax(0,1fr));
  grid-auto-rows: clamp(120px,10vw,178px); gap: clamp(10px,1vw,16px);
}
.room-gallery-section .gallery-item:nth-child(7n + 1) { grid-column: span 5; grid-row: span 2; }
.room-gallery-section .gallery-item:nth-child(7n + 2) { grid-column: span 3; grid-row: span 2; }
.room-gallery-section .gallery-item:nth-child(7n + 3) { grid-column: span 4; grid-row: span 3; }
.room-gallery-section .gallery-item:nth-child(7n + 4) { grid-column: span 4; grid-row: span 2; }
.room-gallery-section .gallery-item:nth-child(7n + 5) { grid-column: span 4; grid-row: span 2; }
.room-gallery-section .gallery-item:nth-child(7n + 6) { grid-column: span 4; grid-row: span 2; }
.room-gallery-section .gallery-item:nth-child(7n + 7) { grid-column: span 5; grid-row: span 2; }
.room-gallery-section .gallery-item { aspect-ratio: auto; background: #e9e5dc; }
.room-hero-image { position: relative; display: grid; place-items: center; min-height: 0; background: #e9e5dc; }
.room-hero-image > img {
  position: absolute !important; inset: 0 !important; display: block;
  width: 100% !important; height: 100% !important; min-width: 0 !important; min-height: 0 !important;
  max-width: none !important; max-height: none !important; object-fit: contain !important; object-position: 50% 50% !important;
}

/* The detail feature band now follows the gallery and has legible contrast */
.room-features { background: #0d3a31; color: var(--cream); }
.room-features .display-title, .room-feature, .room-feature span, .room-feature p { color: var(--cream) !important; }
.room-features .display-title { max-width: 780px; letter-spacing: -.035em; }
.room-feature-grid { border-color: rgba(255,255,255,.2); }
.room-feature { border-color: rgba(255,255,255,.2) !important; }
.room-feature svg { color: #9fd4c3; stroke: currentColor; }

/* A centered, restrained viewer; the page remains visible through the backdrop */
.lightbox { background: rgba(3,18,15,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox-content {
  width: min(1040px,74vw); height: min(68dvh,700px); max-height: calc(100dvh - 150px);
  padding: 12px; border: 1px solid rgba(255,255,255,.26); background: #09251f;
  box-shadow: 0 35px 110px rgba(0,0,0,.55);
}
.lightbox-content > img {
  position: absolute !important; inset: 12px !important; display: block !important;
  width: calc(100% - 24px) !important; height: calc(100% - 24px) !important;
  min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important;
  object-fit: contain !important; object-position: center !important;
}

/* Home teaser for the new travel guide */
.tour-teaser { padding: clamp(76px,9vw,138px) 0; overflow: hidden; background: #efe8dc; }
.tour-teaser-grid { display: grid; grid-template-columns: minmax(0,.78fr) minmax(430px,1.22fr); gap: clamp(50px,8vw,124px); align-items: center; }
.tour-teaser-copy { max-width: 590px; }
.tour-teaser-title { margin: 26px 0 28px; font-size: clamp(3.2rem,5vw,5.7rem); line-height: .94; }
.tour-teaser-body { max-width: 520px; margin: 0 0 34px; color: var(--muted); line-height: 1.8; }
.tour-teaser-visual { position: relative; display: block; min-height: clamp(420px,41vw,620px); color: inherit; }
.tour-shot { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 30px 70px rgba(24,46,39,.18); }
.tour-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.tour-teaser-visual:hover img { transform: scale(1.035); }
.tour-shot-main { inset: 0 12% 8% 0; }
.tour-shot-small { width: 42%; height: 42%; right: 0; bottom: 0; border: 10px solid #efe8dc; }
.tour-teaser-badge {
  position: absolute; top: 8%; right: 3%; width: 104px; height: 104px; display: grid; place-content: center;
  border-radius: 50%; background: #0d3a31; color: #fff; text-align: center; font: 400 2.25rem/1 var(--serif); box-shadow: 0 18px 42px rgba(13,58,49,.28);
}
.tour-teaser-badge small { display: block; margin-top: 7px; font: 700 .55rem/1 var(--sans); letter-spacing: .18em; }

/* Contact is part of the existing atmospheric platform panel */
.platform-strip-inner { grid-template-rows: auto auto; }
.platform-strip-inner > .platform-links { grid-column: 2; }
.platform-contact-card {
  grid-column: 2; display: grid !important; grid-template-columns: .7fr 1.3fr !important; gap: 28px !important;
  align-items: center; min-height: 118px; margin-top: 2px; padding: 24px 28px;
  border: 1px solid rgba(255,255,255,.24); background: linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.055));
  -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); box-shadow: inset 0 1px rgba(255,255,255,.08),0 18px 44px rgba(0,0,0,.13);
}
.platform-contact-card > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.platform-contact-kicker { color: #d8bd8d; font: 700 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.platform-contact-card strong { color: #fff; font: 400 1.65rem/1.15 var(--serif); }
.platform-contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.platform-contact-card .platform-contact-actions a {
  min-height: 66px !important; padding: 13px 16px !important; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  border: 1px solid rgba(255,255,255,.18) !important; background: rgba(0,0,0,.12) !important; color: #fff; text-transform: none; letter-spacing: 0;
}
.platform-contact-card a::after { display: none !important; }
.platform-contact-card a:hover { transform: none; border-color: rgba(216,189,141,.68) !important; background: rgba(0,0,0,.22) !important; }
.platform-contact-card a span { color: rgba(255,255,255,.66); font: 600 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.platform-contact-card a b { margin-top: 8px; color: #fff; font: 600 .8rem/1.2 var(--sans); letter-spacing: .03em; }

/* Arabic layout: type, alignment and direction are explicitly controlled */
html[dir="rtl"] body { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
html[dir="rtl"] .display-title, html[dir="rtl"] .hero-copy h1, html[dir="rtl"] .room-hero-copy h1,
html[dir="rtl"] .planning-inner h2, html[dir="rtl"] .room-cta h2 { font-family: Tahoma, "Segoe UI", Arial, sans-serif; letter-spacing: 0; line-height: 1.2; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .desktop-nav a, html[dir="rtl"] .button { letter-spacing: .03em; }
html[dir="rtl"] .tour-guide-link { margin-left: 0; margin-right: clamp(12px,1.8vw,28px); padding-left: 0; padding-right: clamp(12px,1.7vw,26px); border-left: 0; border-right: 1px solid rgba(13,51,43,.22); }
html[dir="rtl"] .gallery-section .section-heading > p { border-left: 0; border-right: 1px solid var(--line); padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .feature-topline { left: auto; right: 22px; }
html[dir="rtl"] .platform-contact-card .platform-contact-actions a { align-items: flex-start; }
html[dir="rtl"] .tour-teaser-badge { right: auto; left: 3%; }

@media (max-width: 1320px) {
  .desktop-nav { gap: clamp(14px,1.6vw,25px); }
  .tour-guide-link { margin-left: 12px; padding-left: 12px; }
}

@media (max-width: 1100px) {
  .tour-guide-link { display: none; }
  .rooms-section .section-heading-wide { grid-template-columns: 1fr; }
  .rooms-section .section-heading-wide .display-title { justify-self: start; max-width: 620px; }
  .tour-teaser-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .platform-strip-inner > .platform-links, .platform-contact-card { grid-column: 1; }
}

@media (max-width: 760px) {
  :root { --header-offset: 86px; }
  .language-switch { flex: 0 0 auto; }
  .language-switch button { min-width: 34px; padding: 0 4px; }
  .language-switch button:first-child::before { width: 19px; height: 13px; }
  .language-switch button:nth-child(2)::before, .language-switch button:nth-child(3)::before { width: 15px; height: 10px; }
  .rooms-section .section-heading-wide .eyebrow { font-size: clamp(3.1rem,15vw,5rem); line-height: .94; }
  .rooms-section .section-heading-wide .display-title { margin-top: 18px; font-size: clamp(.94rem,4vw,1.08rem); line-height: 1.65; }
  .feature-item h3 { font-size: clamp(1.35rem,6.8vw,1.85rem); }
  .gallery-section .gallery-grid, .room-gallery-section .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: clamp(145px,42vw,215px); gap: 9px; }
  .gallery-section .gallery-item:nth-child(n), .room-gallery-section .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-section .gallery-item:nth-child(4n + 1), .room-gallery-section .gallery-item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
  .lightbox { padding: 74px 12px 92px; }
  .lightbox-content { width: calc(100vw - 24px); height: min(64dvh,560px); max-height: calc(100dvh - 172px); padding: 7px; }
  .lightbox-content > img { inset: 7px !important; width: calc(100% - 14px) !important; height: calc(100% - 14px) !important; }
  .tour-teaser { padding: 72px 0 80px; }
  .tour-teaser-grid { grid-template-columns: 1fr; gap: 42px; }
  .tour-teaser-title { font-size: clamp(2.8rem,14vw,4.35rem); }
  .tour-teaser-visual { min-height: min(112vw,490px); }
  .tour-shot-main { right: 9%; }
  .tour-shot-small { width: 48%; height: 39%; border-width: 7px; }
  .tour-teaser-badge { width: 82px; height: 82px; font-size: 1.75rem; }
  .platform-contact-card { grid-template-columns: 1fr !important; gap: 20px !important; padding: 22px 18px; }
  .platform-contact-actions { grid-template-columns: 1fr 1fr; }
  .room-features .display-title { font-size: clamp(2.7rem,13vw,4.3rem); }
  html[dir="rtl"] .gallery-section .section-heading > p { border-right: 0; padding-right: 0; }
}

@media (max-width: 430px) {
  .header-inner { width: calc(100% - 16px); }
  .brand-link img { width: 100px; }
  .language-switch button { min-width: 30px; height: 30px; }
  .language-switch button span:last-child { display: none; }
  .mobile-menu-button { width: 38px; height: 38px; flex-basis: 38px; }
  .hero-copy h1 { font-size: clamp(3rem,16vw,4.15rem); line-height: .94; }
  .gallery-section .gallery-grid, .room-gallery-section .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-section .gallery-item:nth-child(n), .room-gallery-section .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
  .tour-teaser-title { font-size: clamp(2.65rem,13.5vw,3.75rem); }
  .platform-contact-actions { grid-template-columns: 1fr; }
  .platform-contact-card a b { font-size: .76rem; }
  .room-hero-image { height: min(112vw,480px); }
}

@media (max-width: 340px) {
  .brand-link img { width: 92px; }
  .language-switch button { min-width: 27px; padding: 0 3px; }
  .language-switch button::before { width: 14px !important; height: 9px !important; }
  .mobile-menu-button { width: 36px; height: 36px; flex-basis: 36px; }
}

/* V5 — accumulated finishing notes */
.tour-guide-link {
  min-height: 56px; margin-left: clamp(14px,1.6vw,26px); padding: 10px 18px;
  border: 1px solid #0d3a31; border-left: 1px solid #0d3a31; border-radius: 2px;
  color: #fff; background: #0d3a31; box-shadow: 0 12px 28px rgba(13,58,49,.14);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.tour-guide-link:hover { transform: translateY(-2px); background: #174a3f; box-shadow: 0 16px 34px rgba(13,58,49,.2); }
.tour-guide-kicker { display: block; color: #d9bd87; font-size: .58rem; }
.tour-guide-label { color: #fff; font-size: .72rem; }
html[dir="rtl"] .tour-guide-link { border-left: 1px solid #0d3a31; border-right: 1px solid #0d3a31; }

/* The apartment type is redundant on the overview cards */
.room-card-body > div > p { display: none !important; }

/* Deliberate editorial mosaic — longhand !important overrides legacy grid-area rules */
.gallery-section .gallery-grid {
  grid-template-columns: repeat(12,minmax(0,1fr)) !important;
  grid-auto-rows: clamp(135px,11vw,190px) !important;
  grid-auto-flow: dense;
}
.gallery-section .gallery-item { grid-area: auto !important; aspect-ratio: auto !important; }
.gallery-section .gallery-item:nth-child(8n + 1) { grid-column: span 6 !important; grid-row: span 2 !important; }
.gallery-section .gallery-item:nth-child(8n + 2),
.gallery-section .gallery-item:nth-child(8n + 3),
.gallery-section .gallery-item:nth-child(8n + 4),
.gallery-section .gallery-item:nth-child(8n + 5) { grid-column: span 3 !important; grid-row: span 1 !important; }
.gallery-section .gallery-item:nth-child(8n + 6),
.gallery-section .gallery-item:nth-child(8n + 7),
.gallery-section .gallery-item:nth-child(8n + 8) { grid-column: span 4 !important; grid-row: span 2 !important; }
.room-gallery-section .gallery-item:nth-child(7n + 1) { grid-column: span 5 !important; grid-row: span 2 !important; }
.room-gallery-section .gallery-item:nth-child(7n + 2) { grid-column: span 3 !important; grid-row: span 2 !important; }
.room-gallery-section .gallery-item:nth-child(7n + 3) { grid-column: span 4 !important; grid-row: span 3 !important; }
.room-gallery-section .gallery-item:nth-child(7n + 4),
.room-gallery-section .gallery-item:nth-child(7n + 5),
.room-gallery-section .gallery-item:nth-child(7n + 6) { grid-column: span 4 !important; grid-row: span 2 !important; }
.room-gallery-section .gallery-item:nth-child(7n + 7) { grid-column: span 5 !important; grid-row: span 2 !important; }

.tour-teaser-badge { display: none !important; }

/* Label and address are visually distinct on every language and width */
.location-address, .address-block { display: flex !important; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.location-address > span:first-child, .address-block > span:first-child { flex: 0 0 auto; margin: 0 !important; }
.location-address > span:last-child, .address-block > strong { min-width: 0; }

/* Two-direction apartment navigation */
.next-room { padding: clamp(72px,8vw,122px) 0; background: #eee7da; }
.room-navigation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px,2vw,28px); }
.room-nav-card {
  min-height: 270px; display: grid; grid-template-columns: minmax(190px,.8fr) minmax(0,1.2fr);
  overflow: hidden; border: 1px solid rgba(13,58,49,.18); color: #0d332b; background: #f8f3ea;
  text-decoration: none; box-shadow: 0 20px 54px rgba(13,51,43,.08); transition: transform .3s ease, box-shadow .3s ease;
}
.room-nav-card:hover { transform: translateY(-5px); box-shadow: 0 28px 66px rgba(13,51,43,.14); }
.room-nav-image { min-height: 270px; overflow: hidden; background: #ded8cd; }
.room-nav-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .65s cubic-bezier(.22,1,.36,1); }
.room-nav-card:hover img { transform: scale(1.035); }
.room-nav-copy { padding: clamp(24px,3vw,46px); display: flex; flex-direction: column; justify-content: flex-end; }
.room-nav-label { margin-bottom: 18px; color: #806b4a; font: 700 .62rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.room-nav-copy strong { font: 400 clamp(2.25rem,3.4vw,4rem)/1 var(--serif); letter-spacing: -.04em; }
html[dir="rtl"] .room-nav-copy strong { font-family: Tahoma,"Segoe UI",Arial,sans-serif; letter-spacing: 0; }

/* Guide invitation at the end of every apartment */
.room-tour-teaser { padding: clamp(78px,9vw,138px) 0; color: #fff; background: #08241e; }
.room-tour-inner { display: grid; grid-template-columns: minmax(0,.82fr) minmax(420px,1.18fr); gap: clamp(48px,8vw,120px); align-items: center; }
.room-tour-copy { max-width: 620px; }
.room-tour-title { margin: 25px 0 24px; font: 400 clamp(3.1rem,5vw,5.7rem)/.94 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.room-tour-body { max-width: 540px; margin: 0 0 32px; color: rgba(255,255,255,.72); line-height: 1.75; }
.room-tour-image { display: block; height: clamp(330px,36vw,540px); overflow: hidden; border: 1px solid rgba(255,255,255,.18); }
.room-tour-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.22,1,.36,1); }
.room-tour-image:hover img { transform: scale(1.035); }
html[dir="rtl"] .room-tour-title { font-family: Tahoma,"Segoe UI",Arial,sans-serif; letter-spacing: 0; line-height: 1.18; }

@media (max-width: 1100px) {
  .tour-guide-link { display: none; }
  .room-nav-card { grid-template-columns: 1fr; }
  .room-nav-image { min-height: 220px; }
  .room-tour-inner { grid-template-columns: 1fr 1fr; gap: 38px; }
}

@media (max-width: 760px) {
  .gallery-section .gallery-grid, .room-gallery-section .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; grid-auto-rows: clamp(145px,42vw,215px) !important; }
  .gallery-section .gallery-item:nth-child(n), .room-gallery-section .gallery-item:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery-section .gallery-item:nth-child(4n + 1), .room-gallery-section .gallery-item:nth-child(5n + 1) { grid-column: span 2 !important; grid-row: span 2 !important; }
  .location-address, .address-block { display: grid !important; grid-template-columns: auto minmax(0,1fr); column-gap: 10px; align-items: start; }
  .room-navigation-grid, .room-tour-inner { grid-template-columns: 1fr; }
  .room-nav-card { grid-template-columns: minmax(125px,.7fr) minmax(0,1.3fr); min-height: 190px; }
  .room-nav-image { min-height: 190px; }
  .room-nav-copy { padding: 22px; }
  .room-nav-copy strong { font-size: clamp(2rem,10vw,3.1rem); }
  .room-tour-title { font-size: clamp(2.8rem,13.5vw,4.4rem); }
  .room-tour-image { height: min(78vw,430px); }
}

@media (max-width: 430px) {
  .gallery-section .gallery-grid, .room-gallery-section .gallery-grid { grid-template-columns: 1fr !important; grid-auto-rows: auto !important; }
  .gallery-section .gallery-item:nth-child(n), .room-gallery-section .gallery-item:nth-child(n) { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4/3 !important; }
  .location-address, .address-block { grid-template-columns: 1fr; row-gap: 6px; }
  .room-nav-card { grid-template-columns: 112px minmax(0,1fr); min-height: 168px; }
  .room-nav-image { min-height: 168px; }
  .room-nav-label { margin-bottom: 12px; font-size: .56rem; }
}

/* V6 — final restrained header and hospitality copy polish */
.tour-guide-link {
  min-height: 54px; padding: 9px 17px;
  border: 1px solid rgba(13,58,49,.22); border-radius: 3px;
  color: #0d3a31; background: #f4efe5;
  box-shadow: 0 10px 26px rgba(13,58,49,.07), inset 0 1px rgba(255,255,255,.72);
}
.tour-guide-link:hover {
  color: #0d3a31; background: #ebe4d7; border-color: rgba(13,58,49,.34);
  box-shadow: 0 14px 30px rgba(13,58,49,.1); transform: translateY(-2px);
}
.tour-guide-kicker { color: #9a7744; }
.tour-guide-label { color: #0d3a31; }
html[dir="rtl"] .tour-guide-link { border-color: rgba(13,58,49,.22); }
