/* ფონტები: url("fonts/...") — ბრაუზერი ააგებს გზას styles.css-ის საქაღალდიდან (იგივე პროექტის ფესვის fonts/) */
@font-face {
  font-family: "Avaza";
  src: url("fonts/avaza.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avazam";
  src: url("fonts/AVAZAM.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avazam SP";
  src: url("fonts/avazamsp.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGarde Gothic";
  src: url("fonts/AVGARDN.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGarde Gothic";
  src: url("fonts/AVGARDNI.TTF") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ფაილებში OS/2 usWeightClass=400; დიაპაზონი — რომ CSS-ის 500–700 იყენებდეს სწორ ფაილს */
@font-face {
  font-family: "AvantGarde Gothic";
  src: url("fonts/AVGARDM.TTF") format("truetype");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGarde Gothic";
  src: url("fonts/AVGARDMI.TTF") format("truetype");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "AvantGarde Alt";
  src: url("fonts/AVANT-M.TTF") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-geo: "Avaza", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Avazam", "Avaza Mtavruli", "Avaza", system-ui, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display-sp: "Avazam SP", "Avaza Mtavruli SP", "Avazam", "Avaza", system-ui, sans-serif;
  --font-avant: "AvantGarde Gothic", "Avaza", system-ui, sans-serif;
  --font-avant-alt: "AvantGarde Alt", "AvantGarde Gothic", "Avaza", system-ui, sans-serif;
  --danger: #ff4d6a;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --container-max: 1160px;
  --viewer-iframe-height: min(70vh, 620px);
  /* ლანდშაფტში 0; max-width 860px + landscape-ზე სქროლის ზონა მარჯვნივ (clamp, წინა ზომის ~60%) */
  --tour-landscape-page-gutter: 0px;
  --viewer-stack-gap: 12px;
  --motion-panel: 0.48s;
  --motion-panel-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-modal: 0.32s;
  --motion-modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

/*
 * მუქი ტოკენები :root-ზე აღარაა — ნათელ თემაზე F5/გადასვლისას აღარ „შერევა“ მუქი მნიშვნელობებით.
 */
html:not([data-theme="light"]) {
  color-scheme: only dark;
  --bg: #1d2026;
  --bg-alt: #252831;
  --card: #2b2e38;
  --panel-bg: #1b1e24;
  --panel-bg-alt: #20232c;
  --accent: #4dd0e1;
  --accent-soft: rgba(77, 208, 225, 0.16);
  --text: #f5f7fa;
  --text-muted: #b8bcc7;
  --border-subtle: #383d48;
  --border-ui: rgba(255, 255, 255, 0.1);
  --border-ui-soft: rgba(255, 255, 255, 0.08);
  --border-ui-mid: rgba(255, 255, 255, 0.12);
  --border-ui-strong: rgba(255, 255, 255, 0.16);
  --border-ui-input: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.48);
  --bg-facade-stripes: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 72px,
    rgba(130, 138, 158, 0.065) 72px,
    rgba(130, 138, 158, 0.065) 73px
  );
  --app-bg:
    linear-gradient(
      178deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 48%,
      rgba(60, 63, 78, 0.2) 85%,
      rgba(41, 43, 56, 0.16) 100%
    ),
    radial-gradient(1180px 500px at 50% 6%, rgba(96, 101, 122, 0.17), transparent 58%),
    radial-gradient(920px 440px at 50% 12%, rgba(62, 66, 82, 0.26), transparent 65%),
    radial-gradient(
      circle at 50% 0,
      #2b2e37 0,
      #242731 32%,
      #1f222b 52%,
      #1a1d26 72%,
      #161820 100%
    );
  --header-bg: linear-gradient(to bottom, rgba(31, 34, 48, 0.96), rgba(31, 34, 48, 0.9), transparent);
  --header-border: rgba(255, 255, 255, 0.04);
  --viewer-frame-bg: radial-gradient(circle at 50% 0, #2e323f, #1f222b 58%);
  --flat-project-bg: linear-gradient(180deg, rgba(32, 34, 44, 0.96), rgba(28, 30, 40, 0.94));
  --flat-title-color: #c8f7ff;
  --unit-title-color: #9dff8f;
  --unit-title-shadow: 0 0 8px rgba(157, 255, 143, 0.3);
  --section-alt-bg: radial-gradient(circle at top, rgba(70, 74, 90, 0.22), #1b1e26 56%);
  --btn-primary-text: #040509;
  --btn-ghost-bg: rgba(40, 43, 57, 0.94);
  --btn-primary-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  --btn-primary-shadow-hover: 0 16px 46px rgba(0, 0, 0, 0.9);
  --favorite-btn-color: #dce4f4;
  --favorites-title-color: #eaf2ff;
  --filter-control-bg: rgba(27, 29, 39, 0.96);
  --filter-control-fg: #eaf2ff;
  --filter-option-bg: #20242e;
  --surface-mute-1: rgba(255, 255, 255, 0.06);
  --surface-mute-2: rgba(255, 255, 255, 0.05);
  --surface-mute-3: rgba(255, 255, 255, 0.04);
  --surface-mute-4: rgba(255, 255, 255, 0.03);
  --icon-btn-fg: #fff;
  --close-btn-bg: rgba(23, 25, 33, 0.92);
  --close-btn-fg: #fff;
  --modal-scrim: rgba(0, 0, 0, 0.64);
  --site-alert-scrim: rgba(2, 4, 10, 0.7);
  --plan-modal-scrim: rgba(2, 4, 12, 0.78);
  --site-alert-card-bg: radial-gradient(circle at top, rgba(77, 208, 225, 0.08), #1d2028 62%);
  --site-alert-card-border: rgba(77, 208, 225, 0.35);
  --input-bg-soft: rgba(255, 255, 255, 0.04);
  --input-text-plain: #fff;
  --copy-toast-bg: rgba(27, 29, 39, 0.97);
  --copy-toast-fg: #dff9ff;
  --copy-toast-border: rgba(77, 208, 225, 0.45);
  --favorites-block-border: rgba(255, 255, 255, 0.12);
  --theme-switch-bg: #23262f;
  --theme-switch-border: rgba(148, 163, 184, 0.42);
  --theme-switch-text: rgba(226, 232, 240, 0.88);
  --theme-switch-active-bg: rgba(77, 208, 225, 0.14);
  --theme-switch-active-border: rgba(77, 208, 225, 0.55);
  --skyline-stroke: rgba(185, 195, 215, 0.2);
  --skyline-stroke-far: rgba(160, 170, 195, 0.11);
  --skyline-fill-far: rgba(25, 27, 37, 0.34);
  --skyline-fill-near: rgba(20, 22, 32, 0.42);
  --site-foni-overlay-opacity: 0.24;
}

html[data-theme="light"] {
  color-scheme: only light;
  /* ჩაქრობილი, მოლურჯო-ცისფერი ტონი — თეთრისა და მკვეთი კონტრასტის ნაკლებობა */
  --bg: #e2eaf4;
  --bg-alt: #eef4fb;
  --card: #f1f6fc;
  --panel-bg: #eaeff8;
  --panel-bg-alt: #e4ecf6;
  --accent: #0a7c91;
  --accent-soft: rgba(35, 120, 145, 0.16);
  --text: #273548;
  --text-muted: #5c6e82;
  --border-subtle: #b9cadb;
  --border-ui: rgba(36, 62, 92, 0.11);
  --border-ui-soft: rgba(36, 62, 92, 0.07);
  --border-ui-mid: rgba(36, 62, 92, 0.13);
  --border-ui-strong: rgba(36, 62, 92, 0.17);
  --border-ui-input: rgba(36, 62, 92, 0.19);
  --shadow-soft: 0 22px 48px rgba(34, 58, 82, 0.09);
  --shadow-card: 0 14px 36px rgba(34, 58, 82, 0.07);
  --bg-facade-stripes: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 76px,
    rgba(55, 95, 130, 0.09) 76px,
    rgba(55, 95, 130, 0.09) 77px
  );
  --app-bg:
    linear-gradient(
      178deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 55%,
      rgba(150, 180, 210, 0.28) 91%,
      rgba(130, 165, 200, 0.16) 100%
    ),
    radial-gradient(900px 480px at 50% -2%, rgba(120, 185, 215, 0.22), transparent 58%),
    radial-gradient(640px 380px at 88% 12%, rgba(150, 195, 225, 0.18), transparent 50%),
    radial-gradient(520px 320px at 8% 70%, rgba(100, 175, 195, 0.1), transparent 55%),
    linear-gradient(185deg, #e8f1f8 0%, #dbe7f2 42%, #d0e0ed 72%, #c8d9e8 100%);
  --header-bg: linear-gradient(
    to bottom,
    rgba(233, 241, 249, 0.94),
    rgba(228, 238, 248, 0.88),
    transparent
  );
  --header-border: rgba(52, 88, 118, 0.1);
  --viewer-frame-bg: linear-gradient(180deg, #d8e6f2 0%, #cbdcea 52%, #c0d4e4 100%);
  --flat-project-bg: linear-gradient(180deg, #e8f0f8, #dce8f2);
  --flat-title-color: #0d5f6f;
  --unit-title-color: #1a5c38;
  --unit-title-shadow: none;
  --section-alt-bg: radial-gradient(circle at 50% 0%, rgba(110, 165, 205, 0.2), transparent 50%),
    linear-gradient(180deg, #dde8f3 0%, #d4e0ee 100%);
  --btn-primary-text: #ffffff;
  --btn-ghost-bg: rgba(232, 241, 250, 0.92);
  --btn-primary-shadow: 0 10px 26px rgba(28, 105, 130, 0.22);
  --btn-primary-shadow-hover: 0 14px 32px rgba(28, 105, 130, 0.28);
  --favorite-btn-color: #2a3e52;
  --favorites-title-color: #314559;
  --filter-control-bg: #e8f1fa;
  --filter-control-fg: #273548;
  --filter-option-bg: #dde8f4;
  --surface-mute-1: rgba(36, 62, 92, 0.07);
  --surface-mute-2: rgba(36, 62, 92, 0.055);
  --surface-mute-3: rgba(36, 62, 92, 0.045);
  --surface-mute-4: rgba(36, 62, 92, 0.038);
  --icon-btn-fg: #2a3e52;
  --close-btn-bg: rgba(238, 245, 252, 0.94);
  --close-btn-fg: #273548;
  --modal-scrim: rgba(28, 45, 62, 0.42);
  --site-alert-scrim: rgba(28, 45, 62, 0.38);
  --plan-modal-scrim: rgba(28, 45, 62, 0.44);
  --site-alert-card-bg: radial-gradient(circle at top, rgba(60, 155, 180, 0.12), #e8f0f7 62%);
  --site-alert-card-border: rgba(45, 130, 155, 0.32);
  --input-bg-soft: rgba(36, 62, 92, 0.045);
  --input-text-plain: #273548;
  --copy-toast-bg: rgba(236, 244, 252, 0.97);
  --copy-toast-fg: #273548;
  --copy-toast-border: rgba(45, 140, 165, 0.38);
  --favorites-block-border: rgba(52, 88, 118, 0.12);
  /* თემის ღილაკები — ნათელ რეჟიმში ღია ზედაპირი (არა მუქი slate, რომელიც apartments/ჰედერს „აურიებდა“) */
  --theme-switch-bg: #ffffff;
  --theme-switch-border: rgba(36, 62, 92, 0.2);
  --theme-switch-text: #334a5f;
  --theme-switch-active-bg: rgba(10, 124, 145, 0.12);
  --theme-switch-active-border: rgba(10, 124, 145, 0.5);
  --skyline-stroke: rgba(45, 78, 112, 0.17);
  --skyline-stroke-far: rgba(55, 88, 125, 0.09);
  --skyline-fill-far: rgba(200, 218, 236, 0.42);
  --skyline-fill-near: rgba(185, 208, 232, 0.52);
  --site-foni-overlay-opacity: 0.18;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-geo);
  background-color: var(--bg);
  background-image: var(--bg-facade-stripes), var(--app-bg);
  background-attachment: fixed;
  color: var(--text);
}

/*
 * FONI — პოზიციის snapshot (აღდგენა მომავალში: იგივე მნიშვნელობები ორ ბლოკში — body::before და main.apartmentsPage #apartmentsSection::after)
 * ფაილი: ./data/foni.png  |  opacity: var(--site-foni-overlay-opacity) (dark 0.24 / light 0.18 :root-ში)
 * inset: left 17.5%, right 17.5%, top -12cm, bottom 0  |  transform: translateX(3cm)  |  background-size 100% 100%, position top center, no-repeat
 * გასაყიდი გვერდი: body[data-page-overlay-until="apartments"]::before გამორთულია; foni მხოლოდ #apartmentsSection::after-ზე
 */
/* data/foni.png — დოკუმენტის სიმაღლე, სიგანე შევიწროებული (17.5% მარცხნივ/მარჯვნივ), ზემოთ 12cm აწეული, მარჯვნივ 3cm გადაწეული; ნაზევრად გამჭვირვალე */
body::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 17.5%;
  right: 17.5%;
  top: -12cm;
  bottom: 0;
  transform: translateX(3cm);
  pointer-events: none;
  background-image: url("./data/foni.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: top center;
  opacity: var(--site-foni-overlay-opacity, 0.2);
}

/* გასაყიდი ბინები: main/სექცია body::before-ს სრულად ფარავს — foni იხატება სექციის ::after-ზე (იხ. ქვემოთ) */
body[data-page-overlay-until="apartments"]::before {
  opacity: 0;
  visibility: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

/* გასაყიდი ბინების გვერდები — მობილურზე (≤860px) ზოლი: უკან + ლოგო + 3D/ძიება; დესკტოპზე ღილაკი ისევ fixed (იხ. min-width: 861px). */

.headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
  gap: 20px;
}

.headerEnd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brandLogoLink {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  outline-offset: 3px;
}

.brandLogoLink:focus-visible {
  outline: 2px solid var(--accent);
}

.siteLogo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(240px, 46vw);
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-family: var(--font-avant);
  font-weight: 400;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.headerTourNavGroup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.headerTourNavGroup .headerFavoritesFilterBtn.availableFavoritesFilterBtn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: calc(200px - 1cm);
  height: auto;
  min-height: 36px;
  padding: 4px 8px;
  font-size: 13px;
  font-family: var(--font-avant);
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
}

.headerFavoritesFilterBtn__label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  color: var(--text-muted);
  white-space: nowrap;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.headerFavoritesFilterBtn.is-favorite .headerFavoritesFilterBtn__label {
  color: #ff4d6a;
}

.headerFavoritesFilterBtn__icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.headerSearch {
  flex: 1 1 auto;
  min-width: 140px;
  max-width: 280px;
}

.headerSearchInput {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px 8px 34px;
  border-radius: 10px;
  border: 1px solid var(--border-ui-input);
  background-color: var(--input-bg-soft);
  color: var(--input-text-plain);
  font-family: var(--font-avant);
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
  background-repeat: no-repeat;
  background-position: 10px 50%;
  background-size: 16px 16px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.headerSearchInput::placeholder {
  color: var(--text-muted);
}

.headerSearchInput:hover {
  border-color: var(--border-ui-mid);
}

.headerSearchInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--text-muted);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4dd0e1, #1a88ff);
  transition: width 0.2s ease-out;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.headerContactLink {
  flex-shrink: 0;
  white-space: nowrap;
}

.headerContactLink[aria-current="page"] {
  color: var(--text);
  pointer-events: none;
  cursor: default;
}

.headerContactLink[aria-current="page"]::after {
  width: 100%;
}

.hero {
  padding: 40px 0 48px;
}

.heroInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.heroCopy h1 {
  margin: 0 0 16px;
  font-family: "Avazam", sans-serif;
  font-size: clamp(28px, 4vw, 34px);
  letter-spacing: 0.03em;
  text-transform: none;
  font-variant: normal;
}

.heroCopy p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-family: "Avaza", sans-serif;
}

.heroCopy .heroSublead {
  margin-top: -12px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  opacity: 0.92;
  font-family: var(--font-avant);
  font-weight: 400;
  font-style: italic;
}

.heroActions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 28px;
  /* წაშლილი ინტროს ქვემოთ: ღილაკები + შემდგომი სექციები ერთად 1 სმ დაბლა */
  margin-top: 1cm;
}

/* მობილურზე #hero .heroActions-ს zoom-ს ცალკე ვათავსებთ .heroActionsInner-ში, რომ margin-top სრული სიმაღლით ითვლებოდეს */
.heroActionsInner {
  display: contents;
  min-width: 0;
}

.heroPrimaryLinks {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  width: max-content;
  margin-top: 0;
}

/* ვიდეო იკონი ორ ღილაკს შორის — flex:1 ცენტრში აწყობს, გვერდითი ღილაკების პოზიცია იგივე რჩება */
.heroVideoCenter {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.heroPrimaryLinks .btn {
  font-family: "Avaza", sans-serif;
  font-weight: 700;
}

.heroQuickLinks {
  display: flex;
  align-items: center;
  gap: 110px;
  justify-content: flex-end;
}

/* gasayidi binebi — იგივე მიზეზი: ტაიპინგი არ უნდა არხევდეს layout-ს (17 სიმბოლო + caret) */
.heroQuickLinks > .quickTourBtnWrap {
  min-width: max(86px, calc(17ch + 14px));
  box-sizing: border-box;
}

.quickTourBtn {
  width: 86px;
  min-height: 86px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #dde1ea;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px 8px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quickTourBtn:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}

.quickTourBtn--plan {
  padding: 0;
}

.quickTourBtnPlanImg {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  filter: drop-shadow(0 10px 18px rgba(4, 8, 16, 0.72)) drop-shadow(0 2px 6px rgba(4, 8, 16, 0.55));
}

.quickTourBtnPlanImg--gallery {
  transform: scale(1.08);
  transform-origin: center;
}

/* ვიდეო hero იკონი: gallery-ის scale(1.08)-ზე კიდევ +10% → 1.08×1.1 */
.quickTourBtnPlanImg--gallery.quickTourBtnPlanImg--videoHero {
  transform: scale(1.188);
  transform-origin: center;
}

/* hero დროებითი სართულის გეგმა: წინა ზომიდან +30% (ბაზა 1.12 → 1.12×1.3) */
.quickTourBtnPlanImg--gallery.quickTourBtnPlanImg--heroFloorPlan {
  transform: scale(1.456);
  transform-origin: center;
}

.quickTourBtnWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  transform: translateX(2cm);
}

button.quickTourBtnWrap {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.quickTourBtnWrap:hover {
  transform: translateX(2cm) scale(1.08);
}

/*
 * ვიდეო hero: მხოლოდ .quickTourBtnWrap--videoHero საკმარისი არაა — ბაზის .quickTourBtnWrap { translateX(2cm) }
 * იგივე სპეციფიკურობით მოგვიანებით იმარჯვებს. ორკლასიანი სელექტორი აუცილებელია.
 */
.quickTourBtnWrap.quickTourBtnWrap--videoHero {
  transform: translateX(-0.5cm);
  min-width: max(86px, calc(14ch + 14px));
  box-sizing: border-box;
}

.quickTourBtnWrap.quickTourBtnWrap--videoHero:hover {
  transform: translateX(-0.5cm) scale(1.08);
}

.quickTourBtnWrap--gallery {
  transform: translateX(-96px);
  /* ტაიპინგის width-ის ცვლილება არ უნდა ცვლიდეს flex-სვეტის სიგანეს — თორემ ცენტრის ვიდეო რხევა */
  min-width: max(86px, calc(18ch + 14px));
  box-sizing: border-box;
}

.quickTourBtnWrap--gallery:hover {
  transform: translateX(-96px) scale(1.08);
}

.quickTourBtnPlanLabel {
  display: inline-block;
  font-family: "Avazam", var(--font-display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: none;
  font-weight: 700;
  color: #d2ddf3;
  text-shadow:
    0 2px 6px rgba(4, 8, 16, 0.55),
    0 0 12px rgba(130, 177, 255, 0.22);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  border-right: 2px solid currentColor;
  transform: none;
  text-align: center;
  animation:
    quickTourTypingLoop 13s steps(17, end) infinite,
    quickTourCaretBlink 0.8s step-end infinite;
}

.quickTourBtnPlanLabel--gallery {
  animation:
    quickTourTypingLoopGallery 13s steps(18, end) infinite,
    quickTourCaretBlink 0.8s step-end infinite;
}

/* hero ცენტრი: „video galerea“ — იგივე დროის/პროცენტული მიმდინარეობა რაც quickTourTypingLoopGallery-ს */
.quickTourBtnPlanLabel--videoHero {
  animation:
    quickTourTypingLoopVideoHero 13s steps(14, end) infinite,
    quickTourCaretBlink 0.8s step-end infinite;
}

/* tour-ის ზოლი: ლათინური sarTulis gegma — Avazam, ტაიპინგი 14 სიმბოლოზე */
.quickTourBtnPlanLabel--gallery.quickTourBtnPlanLabel--tourSarTulis {
  font-family: "Avazam", var(--font-display);
  animation:
    quickTourTypingLoopSarTulis 13s steps(14, end) infinite,
    quickTourCaretBlink 0.8s step-end infinite;
}

.quickTourBtnWrap .quickTourBtn {
  transform: none !important;
}

#tourTitleAnchor {
  scroll-margin-top: 6px;
}

#panoFlatProjectWrap {
  scroll-margin-top: 12px;
}

@keyframes quickTourTypingLoop {
  0%,
  1% {
    width: 0;
  }
  8.7%,
  85.6% {
    width: calc(17ch + 14px);
  }
  95%,
  100% {
    width: 0;
  }
}

@keyframes quickTourCaretBlink {
  0%,
  49% {
    border-right-color: currentColor;
  }
  50%,
  100% {
    border-right-color: transparent;
  }
}

@keyframes quickTourTypingLoopGallery {
  0%,
  1% {
    width: 0;
  }
  8.7%,
  85.6% {
    width: calc(18ch + 14px);
  }
  95%,
  100% {
    width: 0;
  }
}

@keyframes quickTourTypingLoopVideoHero {
  0%,
  1% {
    width: 0;
  }
  8.7%,
  85.6% {
    width: calc(14ch + 14px);
  }
  95%,
  100% {
    width: 0;
  }
}

@keyframes quickTourTypingLoopSarTulis {
  0%,
  1% {
    width: 0;
  }
  8.7%,
  85.6% {
    /* ch ≈ „0“ სიგანე — პიკი ოდნავ უფრო ვიწრო ვიდრე 16ch+32px, მაგრამ საკმარისი caret-ისთვის */
    width: calc(15ch + 18px);
  }
  95%,
  100% {
    width: 0;
  }
}

.quickTourBtnTitle {
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  word-spacing: 0.06em;
  font-family: var(--font-display-sp);
  text-align: center;
}

.quickTourBtnTitle--avazam {
  font-family: "Avazam", var(--font-display-sp);
}

.quickTourBtnTitle--avazam .quickTourBtnTitleMain {
  font-size: 15px;
}

.quickTourBtnTitle--avazam .quickTourBtnTitleMinor {
  font-size: 12px;
  margin-left: 2px;
}

.quickTourBtnSub {
  margin-top: 4px;
  font-size: 8px;
  color: #9a9eaa;
  font-family: var(--font-avant);
  font-weight: 400;
  font-style: normal;
}

.quickTourBtnSub--avazam {
  font-family: "Avazam", var(--font-display-sp);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  word-spacing: 0.08em;
  text-align: center;
}

html[data-theme="light"] .quickTourBtn {
  border-color: transparent;
  background: linear-gradient(90deg, #d8e6f2 0%, #c2d4e4 58%, #a9bfd2 100%);
  box-shadow: none;
  color: #24384f;
}

html[data-theme="light"] .quickTourBtn:hover {
  border-color: rgba(58, 95, 133, 0.58);
  box-shadow: 0 12px 24px rgba(34, 60, 92, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .quickTourBtnSub {
  color: #4a6078;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-avant-alt);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease-out, transform 0.12s ease-out,
    box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.btnPrimary {
  background: linear-gradient(135deg, #245766, #1b355d);
  color: #ffffff;
  box-shadow: var(--btn-primary-shadow);
}

.btnPrimary:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-primary-shadow-hover);
}

.btnGhost {
  color: var(--text-muted);
  border-color: var(--border-ui-soft);
  background: var(--btn-ghost-bg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.btnGhost:hover {
  border-color: var(--border-ui-mid);
  color: var(--text);
}

.section {
  padding: 6px 0 40px;
}

.sectionAlt {
  background: var(--section-alt-bg);
}

#tour.section.sectionAlt {
  position: relative;
  padding: 18px 0 min(36vh, 360px);
}

#tour > .container {
  margin-top: 0;
  transform: translateY(var(--tour-main-container-lift));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#tour .tourFlooplanBand {
  position: relative;
  z-index: 2;
  transform: translateX(-3cm);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  /* იგივე ჰორიზონტი რაც .container + viewerCard margin-left (დესკტოპი): მარცხნივ 20px + nudge */
  padding: clamp(0.35cm, 1.2vw, 0.75cm) 20px 0.5rem calc(20px + var(--tour-viewer-nudge-x, 0px));
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  /* „360 ვირტუალური ტური“ — გეგმის ფანჯრის ქვედა კიდიდან ~1cm */
  margin-bottom: 1cm;
  box-sizing: border-box;
  overflow: visible;
}

#tour .tourFlooplanBand__primarySlot {
  position: relative;
  order: 1;
  display: grid;
  grid-template-areas: "tourFlooplanPrimary";
  justify-items: start;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  overflow-x: visible;
  overflow-y: visible;
}

/* ტურის ზოლის დუბლირებული ღილაკი ამოღებული — იგივე #tourFasadiTrigger რჩება ფასადი/გეგმის JS-ისთვის */
#tour #tourFasadiTrigger.tourFasadiTrigger--srOnly:not([hidden]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

#tour .tourFlooplanBand__primarySlot > * {
  grid-area: tourFlooplanPrimary;
}

/* სულ 1.5s: სამჯერ ნელი გაქრობა→გამოჩენა, შემდეგ ბოლო ნელი გაქრობა (არ ანთდება) */
@keyframes tourFasadisFanjaraTriggerFlash {
  0% {
    opacity: 1;
  }
  14.2857% {
    opacity: 0;
  }
  28.5714% {
    opacity: 1;
  }
  42.8571% {
    opacity: 0;
  }
  57.1429% {
    opacity: 1;
  }
  71.4286% {
    opacity: 0;
  }
  85.7143% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#tour #tourFasadiTrigger.tourFasadisFanjaraTrigger--flash {
  animation: tourFasadisFanjaraTriggerFlash 1s ease-in-out forwards;
  pointer-events: none;
}

/* .quickTourBtnWrap { display:flex } იგივე სპეციფიკურობით ხშირად იმარჯვებს [hidden]-ზე; ანიმაციის მოხსნა opacity-ს აბრუნებს 1-ზე */
#tour #tourFasadiTrigger[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#tour .tourFasadisFanjaraPair {
  --tour-fanjara-backdrop-bg: #232931;
  --tour-fanjara-backdrop-pad: 14px;
  --tour-fanjara-backdrop-header-h: 30px;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(8px, 1.2vw, 14px);
  width: 100%;
  max-width: min(100%, calc(var(--tour-fasadis-fanjara-w) * 3 + 24px + var(--tour-fanjara-backdrop-pad) * 2));
  min-width: 0;
  transform: translateX(calc(1cm - 5mm));
  padding: calc(var(--tour-fanjara-backdrop-header-h) + 16px) var(--tour-fanjara-backdrop-pad) var(--tour-fanjara-backdrop-pad);
  border-radius: 14px;
  background: var(--tour-fanjara-backdrop-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.55);
}

/* tour360-patch: tourFasadisFanjaraPair-focus-ring-off — openTourFasadiEmbed → pair.focus() */
#tour .tourFasadisFanjaraPair:focus {
  outline: none;
}

/* ზედა „ჰედერის“ ზოლი — ჰორიზონტალური ხაზი + ვერტიკალური გამყოფები (როგორც მაგალით სურათზე) */
#tour .tourFasadisFanjaraPair::before {
  content: "";
  position: absolute;
  left: var(--tour-fanjara-backdrop-pad);
  right: var(--tour-fanjara-backdrop-pad);
  top: 8px;
  height: var(--tour-fanjara-backdrop-header-h);
  border-radius: 8px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.18) 0,
      rgba(0, 0, 0, 0.18) 1px,
      transparent 1px,
      transparent 36px
    );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#tour .tourFasadisFanjaraPair[hidden] {
  display: none !important;
}

#tour .tourFasadisFanjaraPair__caption {
  position: absolute;
  left: var(--tour-fanjara-backdrop-pad);
  right: var(--tour-fanjara-backdrop-pad);
  top: 8px;
  height: var(--tour-fanjara-backdrop-header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
  font-family: "Avaza", var(--font-geo);
  font-size: clamp(13.2px, 1.155vw, 15.4px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(230, 236, 248, 0.95);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 4;
}

#tour .tourFasadisFanjara {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 var(--tour-fasadis-fanjara-w);
  width: var(--tour-fasadis-fanjara-w);
  height: var(--tour-fasadis-fanjara-h);
  max-width: var(--tour-fasadis-fanjara-w);
  border-radius: 10px;
  border: 1px solid var(--border-ui-mid, rgba(180, 200, 255, 0.35));
  background: #0c1018;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

#tour .tourGegmisFanjara {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: auto;
  min-width: calc(var(--tour-fasadis-fanjara-w) * 2);
  height: var(--tour-fasadis-fanjara-h);
  max-width: none;
  border-radius: 10px;
  border: 1px solid var(--border-ui-mid, rgba(180, 200, 255, 0.35));
  /* გვერდითი ზოლები + პანელი — იგივე ტონი (#20242c ≈ rgb(32,36,44)) */
  background: #20242c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

#tour .tourGegmisFanjara__embed {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  /* ~1 სმ+ „ზოლი“ მარცხნივ/მარჯვნივ — ისრები აქ დგება, სურათი ცენტრში რჩება */
  padding-inline: max(1cm, 48px);
  box-sizing: border-box;
  background-color: #20242c;
}

#tour .tourGegmisFanjara__colNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 72px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(35, 41, 49, 0.92);
  color: rgba(230, 236, 248, 0.96);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  pointer-events: auto;
  transition:
    background 0.15s ease,
    opacity 0.15s ease,
    border-color 0.15s ease;
}

#tour .tourGegmisFanjara__colNav:hover:not(:disabled) {
  background: rgba(48, 56, 68, 0.96);
  border-color: rgba(200, 220, 255, 0.35);
}

#tour .tourGegmisFanjara__colNav:disabled {
  opacity: 0.35;
  cursor: default;
}

#tour .tourGegmisFanjara__colNav--prev {
  left: 0;
}

#tour .tourGegmisFanjara__colNav--next {
  right: 0;
}

#tour .tourGegmisFanjara__close,
#tour .tourFasadisFanjara__close {
  position: absolute;
  top: 6px;
  right: 3px;
  z-index: 25;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(35, 41, 49, 0.92);
  color: rgba(230, 236, 248, 0.96);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

#tour .tourGegmisFanjara__close:hover,
#tour .tourFasadisFanjara__close:hover {
  background: rgba(48, 56, 68, 0.96);
  border-color: rgba(200, 220, 255, 0.35);
}

#tour .tourGegmisFanjara__close:focus-visible,
#tour .tourFasadisFanjara__close:focus-visible {
  outline: 2px solid rgba(130, 177, 255, 0.75);
  outline-offset: 2px;
}

#tour .tourGegmisFanjara__expand {
  position: absolute;
  top: auto;
  bottom: 8px;
  right: 3px;
  left: auto;
  transform: none;
  z-index: 24;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(35, 41, 49, 0.92);
  color: rgba(230, 236, 248, 0.96);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

#tour .tourGegmisFanjara__expand:hover {
  background: rgba(48, 56, 68, 0.96);
  border-color: rgba(200, 220, 255, 0.35);
}

#tour .tourGegmisFanjara__expand:focus-visible {
  outline: 2px solid rgba(130, 177, 255, 0.75);
  outline-offset: 2px;
}

#tour .tourGegmisFanjara__iframePlaceholder {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
  background: #20242c;
  pointer-events: none;
}

#tour .tourGegmisFanjara[hidden] {
  display: none !important;
}

#tour .tourFasadisFanjara__frame,
#tour .tourGegmisFanjara__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

#tour .tourGegmisFanjara__embed .tourGegmisFanjara__frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  /* Object2VR: ტაჩის ჟესტი იმავე დოკუმენტში — ჰოსტმა არ „მიიტანოს“ სქროლი; iframe იღებს ტაჩს */
  touch-action: auto;
  pointer-events: auto;
}

/*
 * სართულის გეგმის ფანჯარა (ჩარჩო + iframe): ზედა კომპოზიტიდან filter/backdrop ამოღება.
 * isolation + backdrop/filter ზოგ WebKit-ზე არღვევს iframe-ის პანირებას მობილურზე.
 */
#tour .tourFasadisFanjaraPair,
#tour .tourGegmisFanjara,
#tour .tourGegmisFanjara__embed {
  filter: none;
  -webkit-filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#tour .tourGegmisFanjara__frame {
  filter: none;
  -webkit-filter: none;
}

.tourGegmisZoomModal__dialog,
.tourGegmisZoomModal__embed,
.tourGegmisZoomModal__frameHost,
.tourGegmisZoomModal__frameZoomWrap {
  filter: none;
  -webkit-filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tourGegmisZoomModal__frameZoomWrap .tourGegmisFanjara__frame {
  filter: none;
  -webkit-filter: none;
}

/* tour-gegma-info-panel-v1 — ქვედა ინფოპანელი (ჩვეულებრივი ფანჯარა + გადიდების პოპაპი) */
#tour .tourGegmisFanjara__infoBar,
.tourGegmisZoomModal .tourGegmisFanjara__infoBar {
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 10px;
  min-height: 28px;
  background: #22272e;
  color: rgba(230, 236, 248, 0.96);
  font-family: "Avaza", var(--font-geo), system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

#tour .tourGegmisFanjara__infoBarRow,
.tourGegmisZoomModal .tourGegmisFanjara__infoBarRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

#tour .tourGegmisFanjara__infoBarSold,
.tourGegmisZoomModal .tourGegmisFanjara__infoBarSold {
  color: #ff6b6b;
  font-weight: 600;
  white-space: nowrap;
}

/* გეგმის გადიდების პოპაპი — მთელი ეკრანი (ფასადის ფანჯარაც სრულად იფარება) */
.tourGegmisZoomModal {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
  box-sizing: border-box;
}

.tourGegmisZoomModal[hidden] {
  display: none !important;
}

.tourGegmisZoomModal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: #06080f;
  cursor: pointer;
}

.tourGegmisZoomModal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: none;
  border-radius: 0;
  border: none;
  background: #20242c;
  box-shadow: none;
  overflow: hidden;
}

.tourGegmisZoomModal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2e313d;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    filter 0.2s ease,
    border-color 0.2s ease;
}

.tourGegmisZoomModal__close:hover {
  filter: brightness(1.08);
  border-color: rgba(77, 208, 225, 0.45);
}

.tourGegmisZoomModal__close:focus-visible {
  outline: 2px solid rgba(130, 177, 255, 0.75);
  outline-offset: 2px;
}

.tourGegmisZoomModal__embed {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding-inline: max(1cm, 48px);
  box-sizing: border-box;
  background: var(--panel-bg-alt, #20232c);
}

.tourGegmisZoomModal__colNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 72px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(35, 41, 49, 0.92);
  color: rgba(230, 236, 248, 0.96);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  pointer-events: auto;
  transition:
    background 0.15s ease,
    opacity 0.15s ease,
    border-color 0.15s ease;
}

.tourGegmisZoomModal__colNav:hover:not(:disabled) {
  background: rgba(48, 56, 68, 0.96);
  border-color: rgba(200, 220, 255, 0.35);
}

.tourGegmisZoomModal__colNav:disabled {
  opacity: 0.35;
  cursor: default;
}

.tourGegmisZoomModal__colNav--prev {
  left: 0;
}

.tourGegmisZoomModal__colNav--next {
  right: 0;
}

/* ლეტერბოქსი: ფონი frameZoomWrap-ზე — სქროლით ზუმისას იგივე შრე მასშტაბირდება iframe-თან ერთად */
.tourGegmisZoomModal__frameHost {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
  overflow: hidden;
}

.tourGegmisZoomModal__frameZoomWrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--panel-bg);
  overflow: visible;
}

/* სქროლით ზუმი ერთდება iframe-ზე — ლეტერბოქსი იფარება, არ იზრდება მასშტაბით */
.tourGegmisZoomModal__frameZoomWrap .tourGegmisFanjara__frame {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  transform-origin: center center;
  will-change: transform;
  touch-action: auto;
  pointer-events: auto;
  /* width/height — main.js (contain); transform: scale — main.js (სქროლი) */
}

/* წაშლილი „სართულის გეგმა“ ღილაკის ადგილი — ლეიაუტი არ იცვლება */
#tour .tourFlooplanBand__removedSlot {
  order: 2;
  box-sizing: border-box;
  width: min(100%, 320px);
  max-width: 100%;
  flex: 0 0 auto;
  min-height: 132px;
  padding-bottom: 6px;
  visibility: hidden;
  pointer-events: none;
}

#tour .quickTourBtnWrap--tourGallery.quickTourBtnWrap--gallery {
  transform: none;
  width: auto;
  max-width: 100%;
  margin-inline: 0;
  overflow: visible;
  gap: 20px;
}

#tour .quickTourBtnWrap--tourGallery.quickTourBtnWrap--gallery:hover {
  transform: scale(1.08);
}

/* tour ზოლის იკონი: +40% ბაზის .quickTourBtnPlanImg--gallery scale(1.08)-ზე */
#tour .quickTourBtnWrap--tourGallery .quickTourBtnPlanImg.quickTourBtnPlanImg--gallery {
  transform: scale(calc(1.08 * 1.4));
  transform-origin: center;
}

/* sectionAlt ფონზე ზემოთ — იგივე ფასადის ხაზები, რაც body-ზე */
#tour.section.sectionAlt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--bg-facade-stripes);
}

#tour.section.sectionAlt > .container {
  position: relative;
  z-index: 2;
}

/* ფასადი + გეგმის ფანჯრები ღიაა */
#tour.tourFasadisGegmaOpen > .container {
  transform: translateY(calc(var(--tour-main-container-lift) + var(--tour-fanjara-open-extra-down)));
}

/* ტურის სათაურის ზემოთ — იგივე ქვედა ჰორიზონტის SVG, სექციის სრული სიგანე (container-ის გარეთ) */
#tour .siteSkyline--tourTop {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
  margin-bottom: 12px;
  z-index: 1;
  pointer-events: auto;
  /* ბაზა: +2 cm; მთლიანი ზომა −20% (×0.8) სიმაღლეში → სურათები პროპორციულად იპატარავდება */
  height: min(calc((37.44vh + 2cm) * 0.8), calc((316.8px + 2cm) * 0.8));
  /* გალერეის ღილაკი ზედა margin/shadow არ მოიჭრება (ბაზის .siteSkyline { overflow: hidden }) */
  overflow: visible;
  transform: translateY(18px);
}

#tour .siteSkyline--tourTop .siteSkyline__svgWrap {
  pointer-events: none;
}

/* ქვედა ცარიელი სივრცე: სრული სიგანის ჰორიზონტი (კონტური), ზემოთ vertical stripe ::before */
.siteSkyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(37.44vh, 316.8px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  display: grid;
  grid-template: 1fr / 1fr;
  align-items: stretch;
  justify-items: stretch;
}

.siteSkyline__svgWrap {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  z-index: 0;
}

.siteSkyline__svgWrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ჰორიზონტის SVG-ის ჰორიზონტალური სარკე (ფოტო არ ირეკლება) */
.siteSkyline--flip .siteSkyline__svgWrap svg {
  transform: scaleX(-1);
  transform-origin: center center;
}

/* ტურის ჰორიზონტი: სლოტები l3…lead…r3, ცვლადები main.js-დან (--sky-*-half) */
.siteSkyline__imgSlot {
  grid-area: 1 / 1;
  position: relative;
  height: 100%;
  min-height: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

#tour .siteSkyline--tourTop .siteSkyline__carouselColumn {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  pointer-events: none;
}

#tour .siteTourGalleryLink {
  flex: 0 0 auto;
  align-self: center;
  margin: calc(clamp(-14px, -0.85vw, -6px) - 2cm) 0 clamp(0.85rem, 2.2vw, 1.35rem);
  padding: 10px 18px;
  min-height: 0;
  font-family: "Avazam", sans-serif;
  font-size: clamp(0.9rem, 2.1vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  word-spacing: 0.06em;
  /* იგივე „ჩამქრალი“ ტონი რაც .quickTourBtnSub (gasayidi binebi) */
  color: #9a9eaa;
  text-decoration: none;
  text-align: center;
  border-radius: 16px;
  border: 1px solid #424650;
  background: linear-gradient(90deg, #232831 0%, #13151c 100%);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

#tour .siteTourGalleryLinkSpacer {
  flex: 0 0 auto;
  align-self: center;
  margin: calc(clamp(-14px, -0.85vw, -6px) - 2cm) 0 clamp(0.85rem, 2.2vw, 1.35rem);
  padding: 10px 18px;
  min-height: 0;
  display: inline-flex;
  visibility: hidden;
  pointer-events: none;
  font-family: "Avazam", sans-serif;
  font-size: clamp(0.9rem, 2.1vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  word-spacing: 0.06em;
  line-height: 1.2;
  border: 1px solid transparent;
}

#tour .siteTourGalleryLinkSpacer::before {
  content: "suraTebis galerea";
}

#tour .siteTourGalleryLink:hover {
  transform: translateY(-2px);
  border-color: #585d68;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #c5c9d4;
}

html[data-theme="light"] #tour .siteTourGalleryLink {
  border-color: rgba(74, 108, 142, 0.46);
  background: linear-gradient(90deg, #d8e6f2 0%, #c2d4e4 58%, #a9bfd2 100%);
  box-shadow: 0 10px 22px rgba(37, 62, 92, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: #4a6078;
}

html[data-theme="light"] #tour .siteTourGalleryLink:hover {
  border-color: rgba(58, 95, 133, 0.58);
  box-shadow: 0 12px 24px rgba(34, 60, 92, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #3a4d62;
}

#tour .siteTourGalleryLink:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#tour .siteSkyline--tourTop .siteSkyline__carouselColumn .siteSkyline__imgSlot--carousel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

#tour .siteSkyline__imgSlot--carousel {
  pointer-events: none;
  user-select: none;
}

/* ტურის კარუსელი მხოლოდ JS ლერპით მოძრაობს — გლობალური .siteSkyline__carouselImg transition აქ იწვევს
   clearInline-ის შემდეგ ხანგრძლივ „გაუქმებას“ და ზოლებს/უკან გაქცევას */
#tour .siteSkyline__imgSlot--carousel .siteSkyline__carouselImg {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: none !important;
}

#tour .siteSkyline__imgSlot--carousel .siteSkyline__carouselImg.siteSkyline__slot--lead {
  pointer-events: none;
  touch-action: none;
}

/* lead + 17cm თითო მხარეს ჰიტზონაზე — პოზიცია main.js (updateSkylineTourCarouselLeadPanPad) */
#tour .siteSkyline__imgSlot--carousel .siteSkyline__carouselLeadPanPad {
  position: absolute;
  z-index: 4;
  box-sizing: border-box;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  background: transparent;
}

#tour .siteSkyline__imgSlot--carousel .siteSkyline__carouselLeadPanPad:active {
  cursor: grabbing;
}

#tour .siteSkyline__imgSlot--carousel.siteSkyline__imgSlot--carouselAnimating .siteSkyline__carouselImg {
  will-change: left, top, height, opacity;
}

#tour .siteSkyline--tourTop .siteSkyline__carouselNav {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 5vw, 2.75rem);
  padding: 2px 0 4px;
  pointer-events: auto;
}

.siteSkyline__carouselArrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  /* იგივე ჩამქრალი ტონი რაც სურათების გალერეის ღილაკს (#tour .siteTourGalleryLink) */
  color: #9a9eaa;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  transition:
    color 0.18s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

.siteSkyline__carouselArrow:hover:not(:disabled) {
  color: #c5c9d4;
  opacity: 1;
  transform: scale(1.08);
}

.siteSkyline__carouselArrow:focus-visible {
  outline: 2px solid #c5c9d4;
  outline-offset: 3px;
}

html[data-theme="light"] .siteSkyline__carouselArrow {
  color: #4a6078;
  filter: drop-shadow(0 1px 2px rgba(37, 62, 92, 0.12));
}

html[data-theme="light"] .siteSkyline__carouselArrow:hover:not(:disabled) {
  color: #3a4d62;
}

html[data-theme="light"] .siteSkyline__carouselArrow:focus-visible {
  outline-color: #3a4d62;
}

.siteSkyline__carouselArrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.siteSkyline__carouselArrowIcon {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  box-sizing: border-box;
}

.siteSkyline__carouselArrowIcon--left {
  transform: rotate(135deg);
  margin-left: 0.22rem;
}

.siteSkyline__carouselArrowIcon--right {
  transform: rotate(-45deg);
  margin-right: 0.18rem;
}

.siteSkyline__carouselAuto .siteSkyline__carouselAutoIcon {
  display: block;
  width: 0.62rem;
  height: 0.72rem;
  position: relative;
}

.siteSkyline__carouselAuto:not(.siteSkyline__carouselAuto--paused) .siteSkyline__carouselAutoIcon::before,
.siteSkyline__carouselAuto:not(.siteSkyline__carouselAuto--paused) .siteSkyline__carouselAutoIcon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0.16rem;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}

.siteSkyline__carouselAuto:not(.siteSkyline__carouselAuto--paused) .siteSkyline__carouselAutoIcon::before {
  left: 0;
}

.siteSkyline__carouselAuto:not(.siteSkyline__carouselAuto--paused) .siteSkyline__carouselAutoIcon::after {
  right: 0;
}

.siteSkyline__carouselAuto--paused .siteSkyline__carouselAutoIcon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.38em 0 0.38em 0.62em;
  border-color: transparent transparent transparent currentColor;
  margin-left: 0.1rem;
}

/* ტური: მთავარი (lead) სურათის ერთი კლიკი — გადიდებული ხედი */
.siteSkylineLeadLightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.siteSkylineLeadLightbox[hidden] {
  display: none !important;
}

.siteSkylineLeadLightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--modal-scrim);
  cursor: pointer;
}

.siteSkylineLeadLightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1600px);
  max-height: min(92vh, 1200px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  filter: drop-shadow(0 0.5em 2em rgba(0, 0, 0, 0.55));
}

.siteSkylineLeadLightbox__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: min(60vh, 560px);
  width: 100%;
  max-height: min(88vh, 1100px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.siteSkylineLeadLightbox__viewport.siteSkylineLeadLightbox__viewport--pan {
  cursor: grab;
}

.siteSkylineLeadLightbox__viewport.siteSkylineLeadLightbox__viewport--pan.siteSkylineLeadLightbox__viewport--grabbing {
  cursor: grabbing;
}

.siteSkylineLeadLightbox__panLayer {
  transform-origin: center center;
  will-change: transform;
}

.siteSkylineLeadLightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 1100px);
  width: auto;
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.siteSkylineLeadLightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #2e313d;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    filter 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.siteSkylineLeadLightbox__close:hover {
  filter: brightness(1.08);
  border-color: rgba(77, 208, 225, 0.45);
  transform: scale(1.06);
}

.siteSkylineLeadLightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .siteSkylineLeadLightbox__close {
    top: auto;
    bottom: calc(100% + 8px);
    right: 0;
  }
}

/* სურათების გალერეის განლაგება (gallery.html — ჰედერი/ფონი რაც apartments გვერდზე) */
.siteGalleryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: clamp(0.65rem, 2vw, 0.9rem);
}

.siteGalleryItem {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.06);
  aspect-ratio: 4 / 3;
}

.siteGalleryItem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.siteGalleryItem:hover img {
  transform: scale(1.045);
}

.siteGalleryItem:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.siteGalleryEmpty {
  font-family: var(--font-geo);
  opacity: 0.85;
  margin: 0;
}

.siteSkyline__carouselImg {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0.3em 0.75em rgba(0, 0, 0, 0.5)) drop-shadow(0 0.06em 0.18em rgba(0, 0, 0, 0.4));
  position: absolute;
  transition:
    left 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    top 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  .siteSkyline__carouselImg {
    transition-duration: 0.01ms !important;
  }
}

.siteSkyline__carouselImg.siteSkyline__slot--lead {
  height: 100%;
  max-height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 1;
}

/* r1 — ყოფილი 02 */
.siteSkyline__carouselImg.siteSkyline__slot--r1 {
  height: 90%;
  max-height: 90%;
  left: calc(
    50% + var(--sky-lead-half, 0px) + var(--skyline-tour-img-gap) - var(--sky-r1-half, 0px) - 5cm + 4cm
  );
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.5;
}

/* l1 — ყოფილი 03 */
.siteSkyline__carouselImg.siteSkyline__slot--l1 {
  height: 90%;
  max-height: 90%;
  left: calc(
    50% - var(--sky-lead-half, 0px) - var(--skyline-tour-img-gap) + 5cm - 4cm - var(--sky-l1-half, 0px)
  );
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.5;
}

/* l3 — ყოფილი 07 */
.siteSkyline__carouselImg.siteSkyline__slot--l3 {
  height: calc(90% * 0.8 * 0.6);
  max-height: calc(90% * 0.8 * 0.6);
  left: calc(
    50% - var(--sky-lead-half, 0px) - var(--skyline-tour-img-gap) - var(--skyline-tour-img-gap) -
      var(--skyline-tour-img-gap) - var(--sky-r1-half, 0px) - var(--sky-r2-half, 0px) -
      var(--sky-r2-half, 0px) + 5cm - 4cm + 5cm + 2cm + 4cm - var(--sky-l3-half, 0px) -
      var(--sky-l3-half, 0px)
  );
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.1;
}

/* l2 — ყოფილი 05 */
.siteSkyline__carouselImg.siteSkyline__slot--l2 {
  height: calc(90% * 0.8);
  max-height: calc(90% * 0.8);
  left: calc(
    50% - var(--sky-lead-half, 0px) - var(--skyline-tour-img-gap) - var(--skyline-tour-img-gap) -
      var(--sky-r1-half, 0px) + 5cm - 4cm + 5cm + 2cm - var(--sky-l2-half, 0px) - var(--sky-l2-half, 0px)
  );
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.2;
}

/* r2 — ყოფილი 04 */
.siteSkyline__carouselImg.siteSkyline__slot--r2 {
  height: calc(90% * 0.8);
  max-height: calc(90% * 0.8);
  left: calc(
    50% + var(--sky-lead-half, 0px) + var(--skyline-tour-img-gap) + var(--skyline-tour-img-gap) +
      var(--sky-r1-half, 0px) - 5cm + 4cm - 5cm - 2cm
  );
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.2;
}

/* r3 — ყოფილი 06 */
.siteSkyline__carouselImg.siteSkyline__slot--r3 {
  height: calc(90% * 0.8 * 0.6);
  max-height: calc(90% * 0.8 * 0.6);
  left: calc(
    50% + var(--sky-lead-half, 0px) + var(--skyline-tour-img-gap) + var(--skyline-tour-img-gap) +
      var(--skyline-tour-img-gap) + var(--sky-r1-half, 0px) + var(--sky-r2-half, 0px) +
      var(--sky-r2-half, 0px) - 5cm + 4cm - 5cm - 2cm - 4cm
  );
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.1;
}

.siteSkyline__far {
  fill: var(--skyline-fill-far);
  stroke: var(--skyline-stroke-far);
}

.siteSkyline__near {
  fill: var(--skyline-fill-near);
  stroke: var(--skyline-stroke);
}

/* 3D და 360 სექციებს შორის — იგივე ჰორიზონტი, ჰორიზონტალურად დამირორებული */
.siteSkylineBetween {
  width: 100%;
  height: min(37.44vh, 316.8px);
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.siteSkyline.siteSkyline--mirror {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  z-index: auto;
  transform: scaleX(-1);
  transform-origin: center center;
}

.sectionHead {
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: normal;
}

.sectionHead h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: normal;
}

.sectionSub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
  font-family: var(--font-avant);
  font-weight: 400;
  font-style: normal;
}

#tour .sectionHead--tour {
  margin-top: var(--tour-section-head-margin-top);
  margin-bottom: 22px;
}

/* ფასადი + გეგმის ფანჯრები ღიაა: „360 ვირტუალური ტური“ ბლოკი ქვემოთ (+2.5+1.5 სმ) */
#tour.tourFasadisGegmaOpen .sectionHead--tour {
  margin-top: calc(var(--tour-section-head-margin-top) + 4cm);
}

#tour .sectionHead--tour h2 {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: -2cm;
  letter-spacing: 0.04em;
  word-spacing: 0.08em;
  white-space: nowrap;
  width: max-content;
  max-width: none;
}

/* ჩატვირთვისას სათაურების ინტროთი გამოჩენა: JS 0.5წმ-ზე რთავს .titles-intro-run */
html.titles-intro-pending #tour .sectionHead--tour h2 {
  opacity: 0;
  filter: blur(8px);
}

html.titles-intro-run #tour .sectionHead--tour h2 {
  will-change: transform, opacity, filter;
}

html.titles-intro-run #tour .sectionHead--tour h2 {
  animation: sectionTitleEnterFromLeft 0.9s cubic-bezier(0.22, 0.84, 0.22, 1.02) both;
}

@keyframes sectionTitleEnterFromLeft {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateX(-140px) scale(0.97);
  }
  68% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(10px) scale(1.01);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
  }
}

#tour .sectionHeadReserve--tour {
  display: none;
}

/* Pano ბლოკის სათაურისთვის — იგივე ცვლადები, რაც #tourLayout-ში (სათაური ↔ მთავარი ფანჯრის მარცხენა კიდე) */
#tour {
  --tour-section-head-margin-top: -3.5cm;
  /* სათაური + viewer + პანელები — ჩატვირთვისას ზევით */
  --tour-main-container-lift: -1.5cm;
  /* ფასადი+გეგმა ღიაა: ბაზის lift + extra translateY */
  --tour-fanjara-open-extra-down: -4cm;
  --tour-fasadis-fanjara-w: calc(10cm * 1.1);
  /* ბაზა 6cm×1.1; +10% სიმაღლე; კიდევ ოდნავ ქვედა კიდე */
  --tour-fasadis-fanjara-h: calc(6cm * 1.1 * 1.1 + 5mm);
  /* სურათებს შორის მანძილი — ზოგადი კარუსელის −20% (იგივე რაც სიმაღლის ×0.8) */
  --skyline-tour-img-gap: clamp(11px, 2.16vw, 26px);
  --pano-side-panel-width: 340px;
  --pano-available-panel-width: 300px;
  /* დროებით: ღილაკების ვიწრო პანელი გამორთული — დააბრუნე 96px როცა კვლავ გინდა */
  --pano-available-actions-strip-width: 0px;
  --pano-layout-gap: var(--viewer-stack-gap);
  /* დროებით: 3D ბინის გეგმის პანელი გამორთული — დააბრუნე min(420px, 34vw) როცა კვლავ გინდა */
  --flat-project-panel-width: 0px;
  /* გასაყიდი პანელი: მხოლოდ ბინის არჩევისას (is-detail-open) სიმაღლის შემცირება */
  --pano-available-detail-shrink: 4.5cm;
}

/* დესკტოპი: ფავორიტების გვერდითი პანელი ×0.83×0.85; გასაყიდის სია ბაზის 300px-ის −10% (×0.9). */
@media (min-width: 861px) {
  #tour {
    --pano-side-panel-width: calc(340px * 0.83 * 0.85);
    --pano-available-panel-width: calc(300px * 0.9);
    --tour-viewer-nudge-x: clamp(10px, 1.6vw, 22px);
  }
}

#tour .sectionHead--tour {
  /* viewerCard padding + #tourLayout margin-left + მთავარი სვეტის სიგანე + gap → გასაყიდის პანელის ზემოთ */
  margin-left: calc(
    12px +
      (
        (
            var(--pano-available-panel-width) +
            var(--pano-side-panel-width) +
            var(--pano-available-actions-strip-width) +
            (var(--pano-layout-gap) * 3)
          ) /
          -2
      ) +
      (100% - 24px + var(--pano-layout-gap)) +
      var(--tour-viewer-nudge-x, 0px)
  );
  text-align: left;
}

/* ჩატვირთვა: მხოლოდ მთავარი + გასაყიდი — გვერდითი (ფავორიტის) პანელი დამალულია სანამ ბინა არ აირჩევა */
#tour:has(#tourLayout.is-panel-open:not(.is-unit-side-open)) .sectionHead--tour {
  margin-left: calc(
    12px +
      ((var(--pano-available-panel-width) + var(--pano-layout-gap)) / -2) +
      (100% - 24px + var(--pano-layout-gap)) +
      var(--tour-viewer-nudge-x, 0px)
  );
}

#tour:has(#tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open) .sectionHead--tour {
  margin-left: calc(
    12px +
      (
        (
            var(--flat-project-panel-width) +
            var(--pano-available-panel-width) +
            var(--pano-side-panel-width) +
            var(--pano-available-actions-strip-width) +
            (var(--pano-layout-gap) * 4)
          ) /
          -2
      ) +
      (100% - 24px + var(--pano-layout-gap)) +
      var(--tour-viewer-nudge-x, 0px)
  );
}

/* is-detail-open-ზე flat სვეტი 1-შია — grid სიგანე ისევე რაც flat-ის გარეშე unit-side */
#tour:has(#tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open) .sectionHead--tour {
  margin-left: calc(
    12px +
      (
        (
            var(--pano-available-panel-width) +
            var(--pano-side-panel-width) +
            var(--pano-available-actions-strip-width) +
            (var(--pano-layout-gap) * 3)
          ) /
          -2
      ) +
      (100% - 24px + var(--pano-layout-gap)) +
      var(--tour-viewer-nudge-x, 0px)
  );
}

.viewerCard {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(120, 190, 235, 0.16), transparent 58%), var(--bg-alt);
  padding: 12px;
  border: 1px solid var(--border-ui-soft);
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .viewerCard {
  background: radial-gradient(circle at 50% 0%, rgba(110, 175, 205, 0.14), transparent 56%),
    var(--bg-alt);
}

#tour .viewerCard {
  overflow-x: visible;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pano2VR: viewerCard აღარ იწევა — მთავარი ფანჯარა grid + margin-left-ით „გადაცდება“ ქარდის ფონს */
#tour .viewerCard.is-shifted,
#tour .viewerCard.is-shifted-flat {
  transform: none;
}

.viewerFrame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--viewer-frame-bg);
  min-height: 340px;
  transition:
    box-shadow 0.4s var(--motion-panel-ease),
    filter 0.35s ease;
}

.viewerCloseBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-ui-mid);
  background: var(--close-btn-bg);
  color: var(--close-btn-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.86);
  pointer-events: none;
  transition:
    opacity 0.28s var(--motion-panel-ease),
    transform 0.34s var(--motion-panel-ease);
}

.viewerCloseBtn.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ქვედა დეტალის ფანჯრის X — იგივე ფონი რაც ფულსქრინის ღილაკს (#tourLayout .viewerFrameMain .viewerFullscreenBtn) */
#tourLayout .viewerFrameDetail .viewerCloseBtn {
  z-index: 20;
  background: #2c2e3a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

#tourLayout .viewerFrameDetail .viewerCloseBtn:hover {
  filter: brightness(1.06);
}

/* გასაყიდი ბარათი: იგივე X რაც ქვედა დეტალის ფანჯარაზე — ზედა მარცხნივ; მხოლოდ არჩეული + is-detail-open */
#panoAvailableList .availableUnitCard__detailClose {
  top: 8px;
  left: 8px;
  right: auto;
  z-index: 8;
  opacity: 0;
  transform: scale(0.86);
  pointer-events: none;
  background: #2c2e3a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

#tourLayout.is-detail-open #panoAvailableList .availableUnitCard.is-selected .availableUnitCard__detailClose {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#tourLayout.is-detail-open #panoAvailableList .availableUnitCard.is-selected .availableUnitCard__detailClose:hover {
  filter: brightness(1.06);
}

/* მხოლოდ მთავარი პანო (#tourLayout .viewerFrameMain) — არ ეხება გეგმის viewerFrameProject-ს */
#tourLayout .viewerFrameMain .viewerFullscreenBtn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 6;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2c2e3a;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition:
    opacity 0.22s var(--motion-panel-ease),
    transform 0.22s var(--motion-panel-ease),
    background 0.2s ease;
}

#tourLayout .viewerFrameMain .viewerFullscreenBtn:hover {
  filter: brightness(1.06);
}

#tourLayout .viewerFrameMain .viewerFullscreenBtn:active {
  transform: scale(0.96);
}

#tourLayout .viewerFrameMain .viewerFullscreenBtn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

#tourLayout .viewerFrameMain .viewerFullscreenBtn__icon--exit {
  display: none;
}

#tourLayout .viewerFrameMain .viewerFullscreenBtn.is-fullscreen .viewerFullscreenBtn__icon--enter {
  display: none;
}

#tourLayout .viewerFrameMain .viewerFullscreenBtn.is-fullscreen .viewerFullscreenBtn__icon--exit {
  display: flex;
}

#tourLayout .viewerFrameMain:fullscreen,
#tourLayout .viewerFrameMain:-webkit-full-screen {
  border-radius: 0;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  display: flex;
  flex-direction: column;
}

#tourLayout .viewerFrameMain:fullscreen iframe,
#tourLayout .viewerFrameMain:-webkit-full-screen iframe {
  flex: 1 1 auto;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0;
}

.viewerFrame iframe {
  width: 100%;
  height: var(--viewer-iframe-height);
  border: none;
  display: block;
  background: transparent;
}

.tourLayout {
  position: relative;
  align-items: start;
  transition:
    transform 520ms var(--motion-panel-ease),
    margin-left var(--motion-panel) var(--motion-panel-ease),
    margin-right var(--motion-panel) var(--motion-panel-ease),
    width var(--motion-panel) var(--motion-panel-ease),
    grid-template-columns var(--motion-panel) var(--motion-panel-ease);
}

.tourLayout.is-panel-open {
  transform: translateX(-440px);
}

.viewerFrameMain {
  transition: transform var(--motion-panel) var(--motion-panel-ease);
}

.viewerDetailSlot {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition:
    max-height 0.88s var(--motion-panel-ease),
    opacity 0.68s ease,
    margin-top 0.8s var(--motion-panel-ease),
    transform 0.88s var(--motion-panel-ease);
}

.viewerDetailSlot.is-visible {
  margin-top: 12px;
  max-height: 920px;
  opacity: 1;
  pointer-events: auto;
  transform: scaleY(1);
  transform-origin: bottom center;
}

/** დეტალი: ჯერ ზევით „იკეცება“ (scaleY), შემდეგ JS ახსნის is-visible */
.viewerDetailSlot.is-visible.viewerDetailSlot--closing {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  pointer-events: none;
  transition:
    max-height 0.88s var(--motion-panel-ease),
    opacity 0.68s ease,
    margin-top 0.8s var(--motion-panel-ease),
    transform 0.88s var(--motion-panel-ease);
}

.viewerFrameDetail {
  min-height: 340px;
}

#tourLayout .viewerFrameMain,
#tourLayout .viewerFrameDetail,
#objectTourLayout .viewerFrameMain,
#objectTourLayout .viewerFrameDetail {
  box-shadow: var(--shadow-card);
}

.viewerFrameProject iframe {
  height: 100%;
}

/* „3D რენდერი“: გეგმის სურათი იმავე ჩარჩოში, რაც ფლეტის iframe (#panoFlatPlanImageOverlay) */
#tourLayout #panoFlatProjectWrap .viewerFrame.viewerFrameProject .panoFlatPlanImageOverlay {
  display: none;
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 34px);
  box-sizing: border-box;
  object-fit: contain;
  object-position: center center;
  background: var(--viewer-frame-bg);
  pointer-events: auto;
}

@keyframes flatProjectReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes unitPanelReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/** display:none→flex-ზე transition არ ირბენს — შესვლა მხოლოდ animation-ით */
@keyframes unitPanelSoftEnter {
  from {
    opacity: 0;
    filter: blur(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.flatProjectSlot {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.tourLayout.is-flat-project-open .flatProjectSlot {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: scaleY(1);
  transform-origin: bottom center;
  animation: flatProjectReveal 0.44s var(--motion-panel-ease) both;
}

/** ფლეტი: დახურვისას display:none-მდე — ჯერ collapse + fade */
.tourLayout.is-flat-project-open .flatProjectSlot.flatProjectSlot--closing {
  display: block;
  animation: none;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  pointer-events: none;
  transition:
    opacity 0.36s ease,
    transform 0.42s var(--motion-panel-ease);
}

.viewerFrameProject {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  min-height: 0;
  border: 1px solid var(--border-ui);
  box-shadow: var(--shadow-card);
  background: var(--flat-project-bg);
  padding-top: 34px;
}

.flatProjectTitle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 14px;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2px;
  color: var(--flat-title-color);
  text-shadow: 0 0 8px rgba(77, 208, 225, 0.32);
  pointer-events: none;
}

html[data-theme="light"] .flatProjectTitle {
  text-shadow: none;
}

.unitPanel {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  width: min(360px, 38vw);
  border-radius: 12px;
  border: 1px solid var(--border-ui);
  background: var(--panel-bg);
  padding: 12px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(22px);
  transition:
    transform var(--motion-panel) var(--motion-panel-ease),
    opacity 0.34s ease,
    visibility 0ms linear 0.34s,
    box-shadow 0.35s ease;
}

.tourLayout.is-panel-open .unitPanel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  filter: blur(0);
  transition:
    transform var(--motion-panel) var(--motion-panel-ease),
    opacity 0.68s cubic-bezier(0.2, 0.88, 0.28, 1),
    filter 0.76s cubic-bezier(0.18, 0.82, 0.32, 1),
    visibility 0ms linear 0ms,
    box-shadow 0.35s ease;
}

#objectTourLayout.is-panel-open .unitPanel.unitPanel--enter-anim,
#tourLayout.is-panel-open.is-unit-side-open .unitPanel.unitPanel--enter-anim {
  animation: unitPanelSoftEnter 0.78s cubic-bezier(0.18, 0.82, 0.28, 1) both;
}

.tourLayout.is-panel-open .unitPanel.unitPanel--closing,
#tourLayout.is-panel-open.is-unit-side-open .unitPanel.unitPanel--closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  filter: brightness(0.94);
  transform: translateX(26px) scale(0.97);
  transition:
    transform 0.36s var(--motion-panel-ease),
    opacity 0.3s ease,
    filter 0.28s ease,
    visibility 0ms linear 0.3s;
}

#objectTourLayout.is-panel-open .unitPanel.unitPanel--closing {
  transform: translateX(-20px) scale(0.97);
}

/* Object2VR: mirrored behavior (panel left, viewer shifts right) */
#objectTourLayout .unitPanel {
  left: auto;
  right: auto;
}

#objectTourLayout {
  --flat-project-panel-width: min(420px, 34vw);
  --object-side-panel-width: 340px;
  --object-available-panel-width: 300px;
  --object-layout-gap: var(--viewer-stack-gap);
  /* პანოს #tourLayout-ის ზომების სარკე: იგივე width (+ გასაყიდი+gap), ცენტრირება margin-right-ით (პანო იყენებს margin-left) */
  display: grid;
  grid-template-columns: var(--object-available-panel-width) minmax(0, 100%);
  gap: var(--object-layout-gap);
  transform: none;
  width: calc(100% + var(--object-available-panel-width) + var(--object-layout-gap));
  margin-left: 0;
  transition:
    margin-left var(--motion-panel) var(--motion-panel-ease),
    margin-right var(--motion-panel) var(--motion-panel-ease),
    width var(--motion-panel) var(--motion-panel-ease),
    grid-template-columns var(--motion-panel) var(--motion-panel-ease);
  margin-right: calc(
    -1 *
      (
        (
            var(--object-available-panel-width) +
            var(--object-side-panel-width) +
            (var(--object-layout-gap) * 2)
          ) / 2
      )
  );
}

@media (min-width: 861px) {
  #objectTourLayout {
    --object-side-panel-width: calc(340px * 0.83 * 0.85);
    --object-available-panel-width: calc(300px * 0.9);
  }
}

/* მთავარი ფანჯარა: მეორე სვეტი = პანოს მთავარი სვეტის იგივე სიგანე (მშობლის 100% მინუს გასაყიდი+gap) */
#objectTourLayout .viewerFrameMain {
  grid-column: 2;
  grid-row: 1;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
}

#objectTourLayout #objectUnitLinkWrap {
  grid-column: 2;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
}

#objectTourLayout #objectUnitLinkWrap .viewerFrameDetail {
  width: 100%;
}

#objectTourLayout .unitPanelAvailable {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: stretch;
  height: var(--viewer-iframe-height);
  max-height: var(--viewer-iframe-height);
  min-height: 0;
  overflow: hidden;
  transition:
    height var(--motion-panel) var(--motion-panel-ease),
    max-height var(--motion-panel) var(--motion-panel-ease);
}

#objectTourLayout.is-available-expanded .unitPanelAvailable {
  height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
  max-height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
}

#objectTourLayout .unitPanel {
  position: static;
  width: var(--object-side-panel-width);
  display: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#objectTourLayout .unitPanelAvailable.unitPanel {
  display: flex;
  width: var(--object-available-panel-width);
}

#objectTourLayout.is-panel-open {
  transform: none;
  grid-template-columns: var(--object-available-panel-width) var(--object-side-panel-width) minmax(0, 100%);
  width: calc(
    100% +
      var(--object-available-panel-width) +
      var(--object-side-panel-width) +
      (var(--object-layout-gap) * 2)
  );
  margin-left: calc(
    -1 *
      (
        (
            var(--object-available-panel-width) +
            var(--object-side-panel-width) +
            (var(--object-layout-gap) * 2)
          ) / 2
      )
  );
  margin-right: 0;
}

#objectTourLayout.is-panel-open.is-flat-project-open {
  grid-template-columns:
    var(--flat-project-panel-width)
    var(--object-available-panel-width)
    var(--object-side-panel-width)
    minmax(0, 100%);
  width: calc(
    100% +
      var(--flat-project-panel-width) +
      var(--object-available-panel-width) +
      var(--object-side-panel-width) +
      (var(--object-layout-gap) * 3)
  );
  /* სრული კომპოზიცია: ოვერფლოუს ნახევარი მარცხნივ — ბლოკის ცენტრი = კონტეინერის ცენტრი */
  margin-left: calc(
    (
        var(--flat-project-panel-width) +
          var(--object-available-panel-width) +
          var(--object-side-panel-width) +
          (var(--object-layout-gap) * 3)
      ) /
      -2
  );
  margin-right: 0;
}

#objectTourLayout.is-panel-open.is-flat-project-open #objectFlatProjectWrap {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

#objectTourLayout.is-flat-project-open:not(.is-panel-open) #objectFlatProjectWrap {
  grid-column: 2;
  grid-row: 3;
  width: var(--flat-project-panel-width);
  max-width: 100%;
  justify-self: end;
  align-self: start;
}

#objectTourLayout.is-panel-open .unitPanel {
  display: block;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  height: var(--viewer-iframe-height);
  max-height: var(--viewer-iframe-height);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  filter: blur(0);
  transition:
    transform var(--motion-panel) var(--motion-panel-ease),
    opacity 0.68s cubic-bezier(0.2, 0.88, 0.28, 1),
    filter 0.76s cubic-bezier(0.18, 0.82, 0.32, 1),
    box-shadow 0.35s ease;
}

#objectTourLayout.is-panel-open .unitPanelAvailable.unitPanel {
  display: flex;
  grid-column: 1;
}

#objectTourLayout.is-panel-open.is-detail-open .unitPanel,
#objectTourLayout.is-panel-open.is-available-expanded .unitPanel {
  height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
  max-height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
}

#objectTourLayout.is-panel-open .viewerFrameMain {
  grid-column: 3;
  grid-row: 1;
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

#objectTourLayout.is-panel-open #objectUnitLinkWrap {
  grid-column: 3;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

#objectTourLayout.is-panel-open.is-flat-project-open .unitPanel {
  grid-column: 3;
}

#objectTourLayout.is-panel-open.is-flat-project-open .unitPanelAvailable.unitPanel {
  grid-column: 2;
}

#objectTourLayout.is-panel-open.is-flat-project-open .viewerFrameMain {
  grid-column: 4;
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

#objectTourLayout.is-panel-open.is-flat-project-open #objectUnitLinkWrap {
  grid-column: 4;
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

#tourLayout {
  display: grid;
  grid-template-columns: minmax(0, 100%) var(--pano-available-panel-width);
  gap: var(--pano-layout-gap);
  transform: none;
  width: calc(100% + var(--pano-available-panel-width) + var(--pano-layout-gap));
  transition:
    margin-left var(--motion-panel) var(--motion-panel-ease),
    margin-right var(--motion-panel) var(--motion-panel-ease),
    width var(--motion-panel) var(--motion-panel-ease),
    grid-template-columns var(--motion-panel) var(--motion-panel-ease);
  margin-left: calc(
    -1 *
      (
        (
            var(--pano-available-panel-width) +
            var(--pano-side-panel-width) +
            var(--pano-available-actions-strip-width) +
            (var(--pano-layout-gap) * 3)
          ) / 2
      )
  );
}

/* ფავორიტების სვეტი არაა: ჯერ მხოლოდ მთავარი + გასაყიდი; ღილაკების სვეტი მხოლოდ is-detail-open-ზე (ბინის არჩევის შემდეგ). */
#tourLayout.is-panel-open:not(.is-unit-side-open) {
  grid-template-columns: minmax(0, 100%) var(--pano-available-panel-width);
  width: calc(100% + var(--pano-available-panel-width) + var(--pano-layout-gap));
  margin-left: calc(-1 * ((var(--pano-available-panel-width) + var(--pano-layout-gap)) / 2));
}

#tourLayout.is-panel-open:not(.is-unit-side-open).is-detail-open {
  grid-template-columns:
    minmax(0, 100%) var(--pano-available-panel-width) var(--pano-available-actions-strip-width);
  width: calc(
    100% + var(--pano-available-panel-width) + var(--pano-available-actions-strip-width) +
      (var(--pano-layout-gap) * 2)
  );
  margin-left: calc(
    -1 *
      (
        (
            var(--pano-available-panel-width) + var(--pano-available-actions-strip-width) +
            (var(--pano-layout-gap) * 2)
          ) / 2
      )
  );
}

#tourLayout.is-panel-open:not(.is-unit-side-open).is-detail-open .panoAvailableActionsStrip {
  display: flex;
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: stretch;
}

#tourLayout .viewerFrameMain {
  grid-column: 1;
  grid-row: 1;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

/* ბინის 360 — იგივე სვეტის სრული სიგანე და iframe-ის სიმაღლე, რაც მთავარ ფანჯარას */
#tourLayout #panoUnitLinkWrap {
  grid-column: 1;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
}

#tourLayout #panoUnitLinkWrap .viewerFrameDetail {
  position: relative;
  width: 100%;
}

#tourLayout .unitPanelAvailable {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  height: var(--viewer-iframe-height);
  max-height: var(--viewer-iframe-height);
  min-height: 0;
  overflow: hidden;
  transition:
    height var(--motion-panel) var(--motion-panel-ease),
    max-height var(--motion-panel) var(--motion-panel-ease);
}

#tourLayout.is-available-expanded .unitPanelAvailable {
  height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
  max-height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
}

#tourLayout .unitPanel {
  position: static;
  width: var(--pano-side-panel-width);
  display: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#tourLayout .unitPanelAvailable.unitPanel {
  display: flex;
  width: var(--pano-available-panel-width);
}

.panoAvailableActionsStrip {
  display: none;
  box-sizing: border-box;
  width: var(--pano-available-actions-strip-width);
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--border-ui);
  background: var(--panel-bg);
  box-shadow: var(--shadow-card);
  height: var(--viewer-iframe-height);
  max-height: var(--viewer-iframe-height);
  min-height: 0;
  overflow: hidden;
}

.panoAvailableActionsStrip__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.panoAvailableActionsStrip__btn {
  flex: 0 0 auto;
  width: 100%;
  min-height: 36px;
  padding: 4px 2px;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--border-ui-soft);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-geo, system-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.panoAvailableActionsStrip__btn:hover {
  background: var(--bg);
  border-color: var(--border-ui);
}

.panoAvailableActionsStrip__btn:active {
  transform: scale(0.96);
}

#tourLayout.is-available-expanded .panoAvailableActionsStrip,
#tourLayout.is-panel-open.is-unit-side-open.is-detail-open .panoAvailableActionsStrip,
#tourLayout.is-panel-open.is-unit-side-open.is-available-expanded .panoAvailableActionsStrip,
#tourLayout.is-panel-open:not(.is-unit-side-open).is-detail-open .panoAvailableActionsStrip,
#tourLayout.is-panel-open:not(.is-unit-side-open).is-detail-open.is-available-expanded .panoAvailableActionsStrip {
  height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
  max-height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
}

/* Pano: flat ქვედა რიგში მარცხნივ (მთავარი/360 სვეტში) */
#tourLayout.is-panel-open:not(.is-unit-side-open).is-flat-project-open #panoFlatProjectWrap {
  grid-column: 1;
  grid-row: 3;
  width: var(--flat-project-panel-width);
  max-width: 100%;
  justify-self: start;
  align-self: start;
  transform: none;
}

/* ფავორიტების სვეტი + გასაყიდი; ღილაკების სვეტი მხოლოდ ბინის არჩევის შემდეგ (is-detail-open) */
#tourLayout.is-panel-open.is-unit-side-open:not(.is-detail-open) {
  transform: none;
  grid-template-columns:
    minmax(0, 100%) var(--pano-side-panel-width) var(--pano-available-panel-width);
  width: calc(
    100% + var(--pano-available-panel-width) + var(--pano-side-panel-width) + (var(--pano-layout-gap) * 2)
  );
  margin-left: calc(
    -1 *
      (
        (
            var(--pano-available-panel-width) + var(--pano-side-panel-width) + (var(--pano-layout-gap) * 2)
          ) / 2
      )
  );
}

#tourLayout.is-panel-open.is-unit-side-open.is-detail-open {
  transform: none;
  grid-template-columns:
    minmax(0, 100%) var(--pano-side-panel-width) var(--pano-available-panel-width) var(--pano-available-actions-strip-width);
  width: calc(
    100% +
      var(--pano-available-panel-width) +
      var(--pano-side-panel-width) +
      var(--pano-available-actions-strip-width) +
      (var(--pano-layout-gap) * 3)
  );
  margin-left: calc(
    -1 *
      (
        (
            var(--pano-available-panel-width) +
            var(--pano-side-panel-width) +
            var(--pano-available-actions-strip-width) +
            (var(--pano-layout-gap) * 3)
          ) / 2
      )
  );
}

#tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open:not(.is-detail-open) {
  grid-template-columns:
    minmax(0, 100%)
    var(--pano-side-panel-width)
    var(--pano-available-panel-width)
    var(--flat-project-panel-width);
  width: calc(
    100% +
      var(--pano-available-panel-width) +
      var(--pano-side-panel-width) +
      var(--flat-project-panel-width) +
      (var(--pano-layout-gap) * 3)
  );
  margin-left: calc(
    (
        var(--flat-project-panel-width) +
          var(--pano-available-panel-width) +
          var(--pano-side-panel-width) +
          (var(--pano-layout-gap) * 3)
      ) /
      -2
  );
  margin-right: 0;
}

#tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open {
  grid-template-columns:
    minmax(0, 100%)
    var(--pano-side-panel-width)
    var(--pano-available-panel-width)
    var(--pano-available-actions-strip-width)
    var(--flat-project-panel-width);
  width: calc(
    100% +
      var(--pano-available-panel-width) +
      var(--pano-side-panel-width) +
      var(--pano-available-actions-strip-width) +
      var(--flat-project-panel-width) +
      (var(--pano-layout-gap) * 4)
  );
  margin-left: calc(
    (
        var(--flat-project-panel-width) +
          var(--pano-available-panel-width) +
          var(--pano-side-panel-width) +
          var(--pano-available-actions-strip-width) +
          (var(--pano-layout-gap) * 4)
      ) /
      -2
  );
  margin-right: 0;
}

#tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open:not(.is-detail-open) #panoFlatProjectWrap {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: center;
  transform: none;
}

#tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap {
  grid-column: 5;
  grid-row: 1 / span 2;
  align-self: center;
  transform: none;
}

#tourLayout.is-flat-project-open:not(.is-panel-open) #panoFlatProjectWrap {
  grid-column: 1;
  grid-row: 3;
  width: var(--flat-project-panel-width);
  max-width: 100%;
  justify-self: start;
  align-self: start;
}

#tourLayout.is-panel-open.is-unit-side-open .unitPanel {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  height: var(--viewer-iframe-height);
  max-height: var(--viewer-iframe-height);
  min-height: 0;
  overflow: hidden;
  filter: blur(0);
  transition:
    transform var(--motion-panel) var(--motion-panel-ease),
    opacity 0.68s cubic-bezier(0.2, 0.88, 0.28, 1),
    filter 0.76s cubic-bezier(0.18, 0.82, 0.32, 1),
    box-shadow 0.35s ease;
}

#tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open .unitPanel {
  grid-column: 2;
}

#tourLayout.is-panel-open.is-unit-side-open .unitPanelAvailable.unitPanel {
  display: flex;
  grid-column: 3;
}

#tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open .unitPanelAvailable.unitPanel {
  grid-column: 3;
}

#tourLayout.is-panel-open.is-unit-side-open.is-detail-open .panoAvailableActionsStrip {
  display: flex;
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: stretch;
}

#tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open .panoAvailableActionsStrip {
  grid-column: 4;
}

#tourLayout.is-panel-open.is-unit-side-open.is-detail-open .unitPanel,
#tourLayout.is-panel-open.is-unit-side-open.is-available-expanded .unitPanel {
  height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
  max-height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
}

#tourLayout.is-detail-open:not(.is-unit-side-open) .unitPanelAvailable {
  height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
  max-height: calc(var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap));
}

#tourLayout.is-panel-open .viewerFrameMain {
  grid-column: 1;
  grid-row: 1;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

#tourLayout.is-panel-open #panoUnitLinkWrap {
  grid-column: 1;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
}

#tourLayout.is-panel-open.is-flat-project-open .viewerFrameMain {
  grid-column: 1;
}

#tourLayout.is-panel-open.is-flat-project-open #panoUnitLinkWrap {
  grid-column: 1;
}

/* დესკტოპი: მთავარი ვიუერი პროპორციულად −30% (×0.7) — Pano2VR და Object2VR */
@media (min-width: 861px) {
  /* Pano2VR: მთელი viewerCard (ქარდი, მთავარი ფანჯარა, გასაყიდი/ფავორიტები, ქვედა ჩარჩო) ცოტათი მარჯვნივ */
  #tour .viewerCard {
    margin-left: var(--tour-viewer-nudge-x);
  }

  #tourLayout .viewerFrameMain iframe,
  #objectTourLayout .viewerFrameMain iframe {
    height: calc(var(--viewer-iframe-height) * 0.7);
  }

  #tourLayout .viewerFrameMain,
  #tourLayout.is-panel-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-flat-project-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open .viewerFrameMain,
  #objectTourLayout .viewerFrameMain,
  #objectTourLayout.is-panel-open .viewerFrameMain,
  #objectTourLayout.is-panel-open.is-flat-project-open .viewerFrameMain {
    width: 70%;
    max-width: 100%;
    justify-self: center;
  }

  /* არჩეული ბინის ფანჯარა: იგივე ×0.7, იგივე სვეტში ცენტრი = მთავრის ქვეშ */
  #tourLayout #panoUnitLinkWrap,
  #tourLayout.is-panel-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-flat-project-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open #panoUnitLinkWrap,
  #objectTourLayout #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open #objectUnitLinkWrap {
    width: 70%;
    max-width: 100%;
    justify-self: center;
  }

  #tourLayout #panoUnitLinkWrap.viewerDetailSlot.is-visible,
  #objectTourLayout #objectUnitLinkWrap.viewerDetailSlot.is-visible {
    margin-top: calc(-9cm + 4cm);
  }

  #tourLayout #panoUnitLinkWrap .viewerFrameDetail iframe,
  #objectTourLayout #objectUnitLinkWrap .viewerFrameDetail iframe {
    height: calc(var(--viewer-iframe-height) * 0.7);
  }

  /* Object2VR: გასაყიდი + ფავორიტების პანელი მარჯვნივ +4 სმ */
  #objectTourLayout #objectAvailablePanel,
  #objectTourLayout #objectUnitSidePanel {
    position: relative;
    left: 4cm;
  }

  /* Object2VR: პირველ ხედზე (არა is-panel-open) გასაყიდი პანელი ცოტათი მარცხნივ */
  #objectTourLayout:not(.is-panel-open) #objectAvailablePanel {
    left: calc(4cm - 12px);
  }

  /* Pano2VR: იგივე პანელები მარცხნივ −4 სმ */
  #tourLayout #panoAvailablePanel,
  #tourLayout #unitSidePanel,
  #tourLayout #panoAvailableActionsStrip {
    position: relative;
    left: -4cm;
  }

  /* Object2VR: 3D გეგმა მარჯვნივ +4 სმ (წინა 3 სმ + 1 სმ) */
  #objectTourLayout #objectFlatProjectWrap {
    position: relative;
    left: 4cm;
  }

  /* Pano2VR: 3D გეგმა მარცხნივ −4 სმ (წინა −3 სმ + 1 სმ) */
  #tourLayout #panoFlatProjectWrap {
    position: relative;
    left: -4cm;
  }

  /*
   * სრული კომპოზიცია + ბინის ფანჯარა (is-detail-open):
   * იგივე 4-სვეტიანი grid (მთავარი / ფავორიტი / გასაყიდი / ვიწრო ღილაკები), რაც flat-ის გარეშე unit-side-ზე.
   * 3D გეგმა: სვეტი 1, რიგი 3 = დეტალის ქვემოთ; მარჯვნივ დასასწორებლად 15% margin (70% ცენტრირებული ვიუერის მარჯვენა კიდე).
   */
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open {
    grid-template-columns:
      minmax(0, 100%)
      var(--pano-side-panel-width)
      var(--pano-available-panel-width)
      var(--pano-available-actions-strip-width);
    width: calc(
      100% +
        var(--pano-available-panel-width) +
        var(--pano-side-panel-width) +
        var(--pano-available-actions-strip-width) +
        (var(--pano-layout-gap) * 3)
    );
    margin-left: calc(
      -1 *
        (
          (
              var(--pano-available-panel-width) +
              var(--pano-side-panel-width) +
              var(--pano-available-actions-strip-width) +
              (var(--pano-layout-gap) * 3)
            ) / 2
        )
    );
    margin-right: 0;
  }

  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open:not(.is-unit-side-open) #panoFlatProjectWrap {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    align-self: start;
    width: var(--flat-project-panel-width);
    max-width: 100%;
    margin-right: 15%;
    margin-left: 0;
    margin-top: calc(-2 * var(--pano-layout-gap) - 8cm - 14px);
    left: 0;
    transform: none;
  }

  /*
   * Object2VR სარკე (Pano2VR-ის საპირისპირო): is-detail-open + flat — მე-1 სვეტი (flat) იშლება,
   * 3 სვეტი როგორც flat-ის გარეშე; 3D გეგმა მთავარი სვეტის (3) რიგი 3, ბინის ფანჯრის ქვეშ;
   * მარცხენა სწორება 15% = 70% ცენტრირებული ვიუერის მარცხენა კიდე (სარკე: Pano margin-right 15%).
   */
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open {
    grid-template-columns:
      var(--object-available-panel-width)
      var(--object-side-panel-width)
      minmax(0, 100%);
    width: calc(
      100% +
        var(--object-available-panel-width) +
        var(--object-side-panel-width) +
        (var(--object-layout-gap) * 2)
    );
    margin-left: calc(
      -1 *
        (
          (
              var(--object-available-panel-width) +
              var(--object-side-panel-width) +
              (var(--object-layout-gap) * 2)
            ) / 2
        )
    );
    margin-right: 0;
  }

  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanelAvailable.unitPanel {
    grid-column: 1;
  }

  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanel {
    grid-column: 2;
  }

  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .viewerFrameMain,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectUnitLinkWrap {
    grid-column: 3;
  }

  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .viewerFrameMain {
    grid-row: 1;
  }

  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectUnitLinkWrap {
    grid-row: 2;
  }

  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectFlatProjectWrap {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
    align-self: start;
    width: var(--flat-project-panel-width);
    max-width: 100%;
    margin-left: 15%;
    margin-right: 0;
    margin-top: calc(-2 * var(--object-layout-gap) - 8cm - 14px);
    left: 0;
    transform: none;
  }
}

.unitPanelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.unitPanelHeadActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.unitPanelTitle {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display-sp);
}

.unitPanelAvailable .unitPanelTitle {
  font-family: "Avazam", sans-serif;
  font-weight: 700;
}

/* gasayidi binebi / „გასაყიდი ბინები“ — უფრო ფართო ასო- და სიტყვათშორისი (მხოლოდ სიის სათაური + apartments გვერდები) */
.unitPanelAvailable .unitPanelTitle[lang="ka-Latn"],
.apartmentsHeader h1[lang="ka-Latn"] {
  letter-spacing: 0.09em;
  word-spacing: 0.38em;
}

.unitPanelAvailable .favoritesList .availableUnitsEmptyMsg {
  font-family: "Avazam", sans-serif;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  padding: 6px 4px;
}

/* ფავორიტების ფილტრი: ცარიელი — ლათინური, ლოკალური Avazam (AVAZAM.TTF) */
#panoAvailableList li.availableUnitsEmptyMsg--favoritesFilter {
  font-family: "Avazam", sans-serif;
  font-weight: 400;
  font-style: normal;
}

#objectUnitSidePanel .unitPanelTitle,
#unitSidePanel .unitPanelTitle {
  font-family: "Avazam", sans-serif;
  font-weight: 700;
  color: var(--unit-title-color);
  text-shadow: var(--unit-title-shadow);
  text-align: center;
  width: 100%;
  padding-right: 0;
}

/* arCeuli binis gegma — ოდნავ ფართო ასო- და სიტყვათშორისი */
#objectUnitSidePanel .unitPanelTitle[lang="ka-Latn"],
#unitSidePanel .unitPanelTitle[lang="ka-Latn"] {
  letter-spacing: 0.08em;
  word-spacing: 0.3em;
}

#objectUnitSidePanel .unitPanelHead,
#unitSidePanel .unitPanelHead {
  justify-content: center;
  position: relative;
}

#objectUnitSidePanel .unitPanelClose,
#unitSidePanel .unitPanelClose {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.unitPanelToggle {
  border: 1px solid var(--border-ui-strong);
  background: var(--surface-mute-3);
  color: var(--icon-btn-fg);
  border-radius: 999px;
  width: 32px;
  height: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transform: translateY(0);
  margin-top: auto;
  align-self: flex-end;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.unitPanelToggle:hover {
  background: var(--surface-mute-1);
  border-color: var(--border-ui-input);
  transform: translateY(1px);
}

.unitPanelToggle:active {
  transform: translateY(2px);
}

.unitPanelClose {
  border: 1px solid var(--border-ui-strong);
  background: var(--surface-mute-3);
  color: var(--icon-btn-fg);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.unitPlanImage {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: var(--surface-mute-4);
  border: 1px solid var(--border-ui-soft);
  border-radius: 10px;
  margin-bottom: 10px;
}

.unitSelectedCard {
  background: var(--surface-mute-1);
  border: 1px solid var(--border-ui-mid);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
}

.unitSelectedCard .unitPlanImage {
  margin-bottom: 8px;
}

/* ფავორიტების პანელი (Object2VR): არჩეული გეგმა −15% სიმაღლე, კიდე −8% */
#objectUnitSidePanel .unitPlanImage {
  width: 85%;
  max-width: 100%;
  max-height: calc(220px * 0.85 * 0.92);
  margin-left: auto;
  margin-right: auto;
  display: block;
  box-sizing: border-box;
}

/* Pano2VR ფავორიტების პანელი — ზედა: არჩეული ბინის ბლოკი −8% სიმაღლე (გეგმა + ჩარჩო) */
#unitSidePanel .unitPlanImage {
  width: calc(85% * 0.93);
  max-width: 100%;
  max-height: calc(220px * 0.85 * 0.93 * 0.92 * 0.92);
  margin-left: auto;
  margin-right: auto;
  display: block;
  box-sizing: border-box;
}

#unitSidePanel .unitSelectedCard {
  padding: calc(8px * 0.92);
  margin-bottom: calc(10px * 0.92);
}

#unitSidePanel .unitSelectedCard .unitPlanImage {
  margin-bottom: calc(8px * 0.92);
}

.unitSelectedCard .unitInfo {
  background: var(--surface-mute-2);
  border-radius: 8px;
  padding: 8px;
}

#objectUnitSidePanel.is-unit-selected .unitSelectedCard,
#unitSidePanel.is-unit-selected .unitSelectedCard {
  background: rgba(255, 255, 0, 0.14);
  border-color: rgba(255, 255, 0, 0.55);
}

/* ყვითელი ჩარჩო (არჩეული ბინა): სიმაღლე −8% */
#objectUnitSidePanel.is-unit-selected .unitSelectedCard {
  padding: calc(8px * 0.92);
  margin-bottom: calc(10px * 0.92);
}

#unitSidePanel.is-unit-selected .unitSelectedCard {
  padding: calc(8px * 0.92 * 0.92);
  margin-bottom: calc(10px * 0.92 * 0.92);
}

#objectUnitSidePanel.is-unit-selected .unitPlanImage {
  max-height: calc(220px * 0.85 * 0.92 * 0.92);
}

#unitSidePanel.is-unit-selected .unitPlanImage {
  max-height: calc(220px * 0.85 * 0.93 * 0.92 * 0.92 * 0.92);
}

#unitSidePanel.is-unit-selected .unitSelectedCard .unitPlanImage {
  margin-bottom: calc(8px * 0.92 * 0.92);
}

#objectUnitSidePanel.is-unit-selected .unitSelectedCard .unitPlanImage {
  margin-bottom: calc(8px * 0.92);
}

#objectUnitSidePanel.is-unit-selected .unitSelectedCard .unitInfo,
#unitSidePanel.is-unit-selected .unitSelectedCard .unitInfo {
  background: rgba(255, 255, 0, 0.18);
  padding: calc(8px * 0.92);
  min-height: calc(48px * 0.92);
}

#objectUnitSidePanel:not(.is-unit-selected) .unitPanelTitle,
#unitSidePanel:not(.is-unit-selected) .unitPanelTitle,
#objectUnitSidePanel:not(.is-unit-selected) .unitSelectedCard,
#unitSidePanel:not(.is-unit-selected) .unitSelectedCard {
  display: none;
}

.unitInfo {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  min-height: 48px;
  font-family: var(--font-geo);
}

.unitActions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 10px 0 12px;
  width: 100%;
  min-width: 0;
}

.unitActions > .iconBtn {
  flex-shrink: 0;
}

/* ელფოსტის აიკონი + მისამართი ერთ რიგში; ჯგუფი იკუმშება, მისამართი ellipsis-ით */
.unitActionsEmailGroup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
}

.unitActionsEmailGroup .iconBtn {
  flex-shrink: 0;
}

.iconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-ui-strong);
  background: var(--surface-mute-3);
  color: var(--icon-btn-fg);
  text-decoration: none;
  cursor: pointer;
  font-size: 20px;
}

.heartBtn.is-favorite {
  color: #ff4d6a;
  border-color: rgba(255, 77, 106, 0.7);
  background: rgba(255, 77, 106, 0.12);
}

.emailTextBtn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--favorite-btn-color);
  border-radius: 0;
  min-height: 36px;
  height: auto;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  font-size: calc(13px * 0.8 * 1.1);
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* მხოლოდ მეილის ტექსტი: ლათინური სისტემური სტეკი, საიტის ქართული ფონტების გარეშე */
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 600;
  cursor: pointer;
  direction: ltr;
  unicode-bidi: isolate;
}

.emailTextBtn:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.favoritesBlock {
  border-top: 1px solid var(--favorites-block-border);
  margin-top: 6px;
  padding-top: 12px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* გვერდით პანელზე ფავორიტების სიის UI აღარ ჩანს — ul მხოლოდ JS-ისთვის (renderFavorites / localStorage) */
#unitSidePanel #favoritesList.favoritesList {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/*
 * ვიწრო ეკრანი (პორტრეტი + ლანდშაფტი): მთელი გვერდითი პანელი (#objectUnitSidePanel / #unitSidePanel)
 * მხოლოდ არჩეული ბინისას. HTML-ში ეს aside მთავარი viewer-ის *წინ*აა; is-detail-open-ის დროს
 * grid-row 1..5 აწესრიგებს, მაგრამ დეტალის დახურვის შემდეგ grid-row:auto ხელახლა იყენებს DOM
 * რიგს → გვერდითი პანელი „ადის“ გასაყიდის ქვემოთ და მთავარზე ზემოთ. DETAIL_CLOSED იხსნის
 * is-unit-selected-ს — პანელს სრულად ვაქრობთ display:none-ით (არა მხოლოდ .favoritesBlock).
 */
@media (max-width: 860px) {
  /* !important: max-width 640px-ში .tourLayout.is-panel-open .unitPanel { display: block } ყველა პანელზე */
  #objectTourLayout.is-panel-open #objectUnitSidePanel:not(.is-unit-selected),
  #tourLayout.is-panel-open.is-unit-side-open #unitSidePanel:not(.is-unit-selected) {
    display: none !important;
  }
}

.favoritesTitle {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display-sp);
  color: var(--favorites-title-color);
  margin-bottom: 10px;
  text-align: center;
}

#objectAvailablePanel .unitPanelHead,
#panoAvailablePanel .unitPanelHead {
  justify-content: center;
}

.availableFilters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.availableFilters .availableFilterSelect {
  grid-column: 1 / -1;
}

.availableFilters .availableSearchInput:first-of-type {
  grid-column: 1 / 2;
}

.availableFilters .availableSearchInput:last-of-type {
  grid-column: 2 / 3;
}

.availableFilterSelect {
  width: 100%;
  border: 1px solid var(--border-ui-input);
  background: var(--filter-control-bg);
  color: var(--filter-control-fg);
  border-radius: 8px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-family: var(--font-avant);
  font-weight: 400;
  font-style: normal;
}

.availableSearchInput {
  width: 100%;
  border: 1px solid var(--border-ui-input);
  background-color: var(--filter-control-bg);
  color: var(--filter-control-fg);
  border-radius: 8px;
  height: 34px;
  padding: 0 8px 0 27px;
  font-size: 12px;
  font-family: var(--font-avant);
  font-weight: 400;
  font-style: normal;
  background-repeat: no-repeat;
  background-position: 7px center;
  background-size: 15px 15px;
}

.availableSearchInput::placeholder {
  font-size: calc(12px * 0.9);
}

.availableFilterSelect option {
  background: var(--filter-option-bg);
  color: var(--filter-control-fg);
}

.availableFilterSelect:focus,
.availableSearchInput:focus {
  outline: none;
  border-color: rgba(77, 208, 225, 0.7);
  box-shadow: 0 0 0 2px rgba(77, 208, 225, 0.18);
}

/* გასაყიდი სია: არჩეული ბარათის ყვითელი ორჯერ ×0.7 (ნორმასთან −51% ალფა), რომ .favoriteCard.is-selected არ გადაფაროს */
#panoAvailableList .favoriteCard.availableUnitCard.is-selected {
  background: rgba(255, 255, 0, 0.069);
  border-color: rgba(255, 255, 0, 0.27);
}

#panoAvailableList .availableUnitCard .favoriteThumbLarge {
  cursor: pointer;
}

#panoAvailableList .availableUnitGegmaRow {
  list-style: none;
  margin-top: calc(-8cm - 5mm + 2.5cm - 7mm - 5mm + 4cm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.availableUnitGegmaBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: max(0px, calc(100% - 1.5cm));
  max-width: 100%;
  margin: 0;
  padding: 5px 6px;
  border: 1px solid var(--border-ui-mid);
  border-radius: 10px;
  background: var(--surface-mute-4);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.availableUnitGegmaBtn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.245);
}

:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaBtn:hover
  + .availableUnitGegmaRow__label {
  color: #fff;
}

/* 360 ღილაკი: არჩეული ბინისას მუდმივად იგივე პოზიცია/კონტური რაც hover-ზე */
/* „3D რენდერი“ პოპაპისას — იგივე ვიზუალი (ქვემოთ იგივე წესები ერთად არის გაერთიანებული) */
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--360Active,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--renderActive,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--plan2dGegmaActive {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.245);
}

:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--360Active
  + .availableUnitGegmaRow__label,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--renderActive
  + .availableUnitGegmaRow__label,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--plan2dGegmaActive
  + .availableUnitGegmaRow__label {
  color: #fff;
}

/* 3D გეგმის ღილაკი: აქტიური რეჟიმი (მარცხენა+ქვედა ფანჯარა გეგმით ჩართული) */
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--gegmaActive {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.245);
}

:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--gegmaActive
  + .availableUnitGegmaRow__label {
  color: #fff;
}

/*
 * სხვა ღილაკები ჩამქრალი (იგივე ვიზუალი), როცა აქტიურია:
 * 360 ტური, 3D gegma, 2D gegma, ან 3D რენდერის პოპაპი (:has + renderModalOpen)
 */
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--360Active)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--360Active),
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--gegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--gegmaActive),
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--plan2dGegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--plan2dGegmaActive),
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow.availableUnitGegmaRow--renderModalOpen
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--renderActive) {
  transform: translateY(0);
  border-color: rgba(51, 54, 59, 0.88);
  box-shadow: none;
  pointer-events: auto;
  cursor: pointer;
}

:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--360Active)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--360Active)
  img,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--gegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--gegmaActive)
  img,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--plan2dGegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--plan2dGegmaActive)
  img,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow.availableUnitGegmaRow--renderModalOpen
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--renderActive)
  img {
  opacity: 0.48;
  filter: grayscale(0.42);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--360Active)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--360Active):hover,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--gegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--gegmaActive):hover,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--plan2dGegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--plan2dGegmaActive):hover,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow.availableUnitGegmaRow--renderModalOpen
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--renderActive):hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.245);
}

:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--360Active)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--360Active):hover
  img,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--gegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--gegmaActive):hover
  img,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--plan2dGegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--plan2dGegmaActive):hover
  img,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow.availableUnitGegmaRow--renderModalOpen
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--renderActive):hover
  img {
  opacity: 1;
  filter: none;
}

:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--360Active)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--360Active)
  + .availableUnitGegmaRow__label,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--gegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--gegmaActive)
  + .availableUnitGegmaRow__label,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--plan2dGegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--plan2dGegmaActive)
  + .availableUnitGegmaRow__label,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow.availableUnitGegmaRow--renderModalOpen
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--renderActive)
  + .availableUnitGegmaRow__label {
  color: rgba(255, 255, 255, 0.55);
}

:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--360Active)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--360Active):hover
  + .availableUnitGegmaRow__label,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--gegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--gegmaActive):hover
  + .availableUnitGegmaRow__label,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--plan2dGegmaActive)
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--plan2dGegmaActive):hover
  + .availableUnitGegmaRow__label,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow.availableUnitGegmaRow--renderModalOpen
  .availableUnitGegmaBtn:not(.availableUnitGegmaBtn--renderActive):hover
  + .availableUnitGegmaRow__label {
  color: #fff;
}

:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--360Active)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--360Active
  img,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--gegmaActive)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--gegmaActive
  img,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow:has(.availableUnitGegmaBtn--plan2dGegmaActive)
  .availableUnitGegmaBtn.availableUnitGegmaBtn--plan2dGegmaActive
  img,
:is(#panoAvailableList, #panoUnitGegmaToolbarList)
  .availableUnitGegmaRow.availableUnitGegmaRow--renderModalOpen
  .availableUnitGegmaBtn.availableUnitGegmaBtn--renderActive
  img {
  opacity: 1;
  filter: none;
}

.availableUnitGegmaBtn:focus-visible {
  outline: 2px solid rgba(77, 208, 225, 0.85);
  outline-offset: 2px;
}

.availableUnitGegmaBtn img {
  display: block;
  width: 64%;
  max-width: 100%;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.availableUnitGegmaRow__label {
  width: max(0px, calc(100% - 1.5cm));
  max-width: 100%;
  box-sizing: border-box;
  font-family: "Avazam", var(--font-geo, system-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: center;
  pointer-events: none;
  user-select: none;
  transition: color 0.2s ease;
}

/* Pano გასაყიდი სია: დეტალის გახსნისას მხოლოდ არჩეული ბარათი; სურათი +20% */
#tourLayout.is-detail-open
  #panoAvailableList:has(.availableUnitCard.is-selected)
  > li:not(:has(.availableUnitCard.is-selected)):not(.availableUnitGegmaRow) {
  display: none;
}

#tourLayout.is-detail-open #panoAvailableList > li:has(.availableUnitCard.is-selected),
#tourLayout.is-detail-open #panoAvailableList > li.availableUnitGegmaRow {
  grid-column: 1 / -1;
}

#tourLayout.is-detail-open #panoAvailableList .availableUnitCard.is-selected {
  overflow: visible;
}

#tourLayout.is-detail-open #panoAvailableList .availableUnitCard.is-selected .favoriteThumbLarge {
  transform: scale(1.2);
  transform-origin: center center;
  cursor: zoom-in;
}

.favoritesList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 208, 225, 0.35) rgba(255, 255, 255, 0.04);
}

.favoritesList::-webkit-scrollbar {
  width: 7px;
}

.favoritesList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.favoritesList::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(77, 208, 225, 0.55), rgba(26, 136, 255, 0.5));
  border-radius: 999px;
}

.favoritesList::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(77, 208, 225, 0.7), rgba(26, 136, 255, 0.62));
}

.favoritesList li {
  list-style: none;
}

.favoritesList li.favoritesEmptyMsg {
  color: var(--favorites-title-color);
  font-size: 13px;
  font-family: var(--font-geo);
  line-height: 1.45;
  text-align: center;
  padding: 6px 8px 10px;
}

.favoriteCard {
  border: 1px solid var(--border-ui-mid);
  border-radius: 10px;
  background: var(--surface-mute-4);
  padding: calc(8px * 0.85);
  display: grid;
  gap: calc(8px * 0.85);
}

.favoriteCard.is-selected {
  background: rgba(255, 255, 0, 0.14);
  border-color: rgba(255, 255, 0, 0.55);
}

.favoriteCard.availableUnitCard {
  position: relative;
}

.availableUnitCard__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 2px;
}

.availableUnitCard__meta.favoriteMetaRow {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  justify-content: flex-start;
}

.availableUnitCard__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  align-self: flex-end;
  padding-bottom: 1px;
}

.availableUnitCard__actions .iconBtn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.favoriteMetaRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(8px * 0.85);
}

.availableUnitIndex {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-width: 2.75em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-ui-mid);
  background: rgba(16, 20, 30, 0.78);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-avant);
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  pointer-events: none;
}

/* ფავორიტის ბარათი: გეგმა −8% შემდეგ −15% (0.92×0.85); ჩარჩო padding/gap −15% */
.favoriteThumbLarge {
  width: 100%;
  max-height: calc(180px * 0.92 * 0.85);
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-ui-mid);
  background: var(--surface-mute-4);
}

.favoriteThumbLarge--deferred {
  min-height: calc(140px * 0.92 * 0.85);
  object-fit: contain;
}

.favoriteRow a,
.favoriteRow span {
  color: var(--favorite-btn-color);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favoriteRow a:hover {
  text-decoration: underline;
}

.favoriteOpenBtn {
  border: 0;
  background: transparent;
  color: var(--favorite-btn-color);
  text-align: left;
  cursor: pointer;
  padding: 0;
  line-height: 1.3;
  flex: 1 1 auto;
  font-size: 14px;
  font-family: var(--font-avant);
  font-weight: 400;
  font-style: normal;
  white-space: pre-line;
}

.availableUnitAreaLine {
  color: var(--unit-title-color);
  font-weight: 700;
}

.availableUnitAreaPrefix {
  color: var(--favorite-btn-color);
  font-weight: 400;
}

.favoriteOpenBtn:hover {
  text-decoration: underline;
}

.favoriteOpenBtn:disabled {
  opacity: 0.55;
  cursor: default;
  text-decoration: none;
}

.favoriteRemoveBtn {
  border: 1px solid var(--border-ui-input);
  background: var(--surface-mute-2);
  color: #ff8da0;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  flex: 0 0 auto;
}

.favoriteRemoveBtn:hover {
  border-color: rgba(255, 77, 106, 0.6);
  background: rgba(255, 77, 106, 0.14);
  color: #ff4d6a;
}

.favModal {
  position: fixed;
  inset: 0;
  background: var(--modal-scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--motion-modal) ease,
    visibility 0ms linear var(--motion-modal);
}

.favModal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--motion-modal) ease,
    visibility 0ms linear 0ms;
}

.favModal.is-open.is-overlay-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0ms linear 0ms;
}

.favModal.is-open.is-overlay-closing .favModalCard {
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.32s var(--motion-modal-ease),
    opacity 0.26s ease;
}

.siteAlert {
  position: fixed;
  inset: 0;
  background: var(--site-alert-scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 85;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--motion-modal) ease,
    visibility 0ms linear var(--motion-modal);
}

.siteAlert.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--motion-modal) ease,
    visibility 0ms linear 0ms;
}

.siteAlert.is-open.is-overlay-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0ms linear 0ms;
}

.siteAlert.is-open.is-overlay-closing .siteAlertCard {
  transform: translateY(10px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.3s var(--motion-modal-ease),
    opacity 0.24s ease;
}

.siteAlertCard {
  width: min(420px, 100%);
  border-radius: 14px;
  border: 1px solid var(--site-alert-card-border);
  background: var(--site-alert-card-bg);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.4s var(--motion-modal-ease),
    opacity 0.32s ease;
}

.siteAlert.is-open .siteAlertCard {
  transform: none;
  opacity: 1;
}

.siteAlertCard h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: normal;
  color: #fff;
}

html[data-theme="light"] .siteAlertCard h3 {
  color: var(--text);
}

.siteAlertText {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: italic;
}

.siteAlertActions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.planImageModal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  background: var(--plan-modal-scrim);
  backdrop-filter: blur(3px);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--motion-modal) ease,
    visibility 0ms linear var(--motion-modal),
    backdrop-filter 0.35s ease;
}

.planImageModal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--motion-modal) ease,
    visibility 0ms linear 0ms,
    backdrop-filter 0.35s ease;
}

/*
 * ცალკე პოპაპი (body-ზე, არა ქვედა viewer-ში): გახსნისთანავე მთელი ვიუპორტი — არა ცენტრში პატარა ბარათი.
 * embed რეჟიმი ქვემოთ რჩება უცვლელი.
 */
.planImageModal.is-open:not(.planImageModal--embedInUnitDetail) {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  z-index: 2147483640;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #06080f;
}

.planImageModal.is-open:not(.planImageModal--embedInUnitDetail) .planImageModalCard {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  min-height: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  flex: 1 1 auto;
}

.planImageModal.is-open:not(.planImageModal--embedInUnitDetail) .planImageModalBody {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.planImageModal.is-open:not(.planImageModal--embedInUnitDetail) .planImageModalBody img {
  max-height: 100%;
}

/* „3D რენდერი“ / 2D გეგმა: ქვედა ფრეიმის სრული ფართობი (#panoUnitLinkWrap .viewerFrameDetail) */
.planImageModal.planImageModal--embedInUnitDetail {
  position: absolute;
  inset: 0;
  z-index: 10;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: var(--viewer-frame-bg);
  backdrop-filter: none;
}

.planImageModal.planImageModal--embedInUnitDetail .planImageModalCard {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.planImageModal.planImageModal--embedInUnitDetail .planImageModalHead {
  flex-shrink: 0;
}

.planImageModal.planImageModal--embedInUnitDetail .planImageModalBody {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.planImageModal.planImageModal--embedInUnitDetail .planImageModalBody:has(.planImageModalActions) {
  padding-bottom: 48px;
}

.planImageModal.planImageModal--embedInUnitDetail .planImageModalBody img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}

.planImageModal.planImageModal--embedInUnitDetail .planImageModalActions {
  right: 8px;
  bottom: 8px;
  z-index: 12;
}

.planImageModal.planImageModal--embedInUnitDetail .planImageModalClose {
  display: none;
}

.planImageModal.is-open.is-overlay-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0ms linear 0ms,
    backdrop-filter 0.28s ease;
}

.planImageModal.is-open.is-overlay-closing .planImageModalCard {
  transform: translateY(18px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.34s var(--motion-modal-ease),
    opacity 0.28s ease;
}

.planImageModal.is-open.is-fullscreen.is-overlay-closing .planImageModalCard {
  transform: scale(0.92);
  opacity: 0;
}

/** ხელს უშლის გვერდის სქროლს გეგმის ცალკე პოპაპის დროს */
html.planImageModalFs,
html.planImageModalFs body,
html.plan2dGegmaModalFs,
html.plan2dGegmaModalFs body {
  overflow: hidden;
  height: 100%;
}

/* სრული ეკრანი: მთელი მონიტორი, უკანა გვერდი სრულად დაფარული (არა გამჭვირვალე scrim) */
.planImageModal.is-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  overscroll-behavior: contain;
  z-index: 2147483640;
  background: #06080f;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Fullscreen API — იგივე ვიზუალი, მთელი ეკრანის ფენა */
.planImageModal:is(:fullscreen, :-webkit-full-screen) {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  background: #06080f;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.planImageModalCard {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 12px;
  border: 1px solid var(--border-ui);
  background: var(--panel-bg);
  box-shadow: var(--shadow-card);
  color-scheme: light;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.965);
  opacity: 0;
  transition:
    transform 0.42s var(--motion-modal-ease),
    opacity 0.34s ease;
}

.planImageModal.is-open .planImageModalCard {
  transform: none;
  opacity: 1;
}

.planImageModal.is-fullscreen .planImageModalCard {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  border-radius: 0;
  border: 0;
  transform: none;
  opacity: 1;
}

.planImageModal.is-fullscreen .planImageModalHead {
  flex: 0 0 auto;
}

.planImageModalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-ui-mid);
}

.planImageModalHead h3 {
  margin: 0;
  font-size: 16px;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: normal;
  color: #fff;
  text-shadow: none;
}

html[data-theme="light"] .planImageModalHead h3 {
  color: var(--text);
}

/* მოდალის X ღილაკი — ერთი ტონი ყველა გეგმის პოპაპზე */
.planImageModalClose {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2e313d;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    filter 0.2s ease,
    border-color 0.2s ease;
}

.planImageModalClose:hover {
  filter: brightness(1.08);
  border-color: rgba(77, 208, 225, 0.45);
}

.planImageModalClose:focus-visible {
  outline: 2px solid rgba(77, 208, 225, 0.55);
  outline-offset: 2px;
}

.planImageModalBody {
  position: relative;
  min-height: 320px;
  max-height: calc(88vh - 52px);
  overflow: auto;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

/* ქვედა ღილაკების სივრცე, რომ სურათი არ „შეურჩეს“ ტულბარს */
.planImageModalBody:has(.planImageModalActions) {
  padding-bottom: 56px;
}

.planImageModal.is-fullscreen .planImageModalBody {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: #06080f;
}

/* სრულ ეკრანზე ერთი ტონი — ზუმისას სურათი ფარავს „ზოლებს“ */
.planImageModal.is-fullscreen .planImageModalCard {
  background: #06080f;
}

.planImageModalBody.can-pan {
  cursor: grab;
  /* ზუმის შემდეგ პანი: ტაჩის ჟესტი არ გადაეცეს ბრაუზერის სქროლს (pointer events + JS პანი) */
  touch-action: none;
}

.planImageModalBody.is-panning {
  cursor: grabbing;
  touch-action: none;
}

.planImageModalBody img {
  max-width: 100%;
  max-height: calc(88vh - 76px);
  transform-origin: center center;
  transform: scale(1);
  transition: transform 120ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
  cursor: inherit;
}

.planImageModal.is-fullscreen .planImageModalBody img {
  max-height: 100%;
}

.planImageModalFullscreen {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #2c2e3a;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition:
    filter 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.planImageModalFullscreen__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.planImageModalFullscreen__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.planImageModalFullscreen__icon--exit {
  display: none;
}

.planImageModalFullscreen.is-fullscreen .planImageModalFullscreen__icon--enter {
  display: none;
}

.planImageModalFullscreen.is-fullscreen .planImageModalFullscreen__icon--exit {
  display: flex;
}

.planImageModalActions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.planImageModalActions > * {
  pointer-events: auto;
  flex: 0 0 auto;
}

.planImageModalActions .planImageModalFullscreen {
  position: static;
  right: auto;
  bottom: auto;
}

.planImageModalTour360 {
  position: relative;
  padding: 8px 12px;
  min-height: 36px;
  min-width: 0;
  max-width: min(200px, 42vw);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, #2a3140 0%, #1b1f2a 100%);
  color: #e9f1ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: "Avazam", var(--font-display);
  letter-spacing: 0.02em;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.planImageModalTour360::before {
  content: none;
}

.planImageModalTour360Top {
  font-size: inherit;
  line-height: 1.2;
  color: inherit;
  text-align: center;
  white-space: normal;
}

.planImageModalTour360:hover {
  border-color: rgba(77, 208, 225, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.planImageModalFullscreen:hover {
  filter: brightness(1.08);
  border-color: rgba(77, 208, 225, 0.45);
}

.planImageModalFullscreen:active {
  transform: scale(0.96);
}

.planImageModalFullscreen:focus-visible {
  outline: 2px solid rgba(77, 208, 225, 0.65);
  outline-offset: 2px;
}

/* მობილური fullscreen FAB — მოდალის ღილაკები არ უნდა დაიმალოს */
#mobilePageFullscreenBtn,
.mobilePageFullscreenFab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.favModalCard {
  width: min(420px, 100%);
  border-radius: 14px;
  border: 1px solid var(--border-ui-mid);
  background: var(--panel-bg-alt);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.4s var(--motion-modal-ease),
    opacity 0.32s ease;
}

.favModal.is-open .favModalCard {
  transform: none;
  opacity: 1;
}

.favModalCard h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: normal;
  color: #fff;
}

html[data-theme="light"] .favModalCard h3 {
  color: var(--text);
}

.favModalText {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: italic;
}

.favEmailInput {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-ui-input);
  background: var(--input-bg-soft);
  color: var(--input-text-plain);
  padding: 0 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
}

.favModalActions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.favModalActions .btn {
  flex-shrink: 0;
}

.favModalSubmitBtn {
  min-width: 3.25rem;
  padding-inline: 16px;
  overflow: visible;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.copyToast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--copy-toast-bg);
  border: 1px solid var(--copy-toast-border);
  color: var(--copy-toast-fg);
  font-size: 12px;
  font-family: var(--font-avant-alt);
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 80;
}

.copyToast.is-visible {
  opacity: 1;
}

/* მობილური / ტაბლეტი / touch: სრული ეკრანის ღილაკი — ქვედა მარჯვენა, უცისფერო accent-ჩარჩო */
.mobilePageFullscreenFab {
  display: none;
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: auto;
  top: auto;
  transform: none;
  /* ქვემოთ pageLoadOverlay (99999) დარჩეს; დანარჩენ UI-ზე მაღლა */
  z-index: 99990;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--border-ui-mid);
  background: var(--panel-bg);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  box-shadow: var(--shadow-card);
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobilePageFullscreenFab:active {
  transform: scale(0.96);
}

.mobilePageFullscreenFab:focus-visible {
  outline: 2px solid var(--border-ui-strong);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .mobilePageFullscreenFab {
    display: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mobilePageFullscreenFab {
    display: none !important;
  }
}

@media print {
  .mobilePageFullscreenFab {
    display: none !important;
  }
}

/*
 * Fullscreen API რომ არ ირთვება (განსაკუთრებით მობილური): ფანტომი რეჟიმი + viewer-ის სიმაღლის გაზრდა.
 */
html.faux-page-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: -webkit-fill-available !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  --viewer-iframe-height: min(82dvh, 720px) !important;
}

html.faux-page-fullscreen body {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

html.faux-page-fullscreen .siteHeader {
  display: none !important;
}

html.faux-page-fullscreen .mobilePageFullscreenFab {
  z-index: 2147483646 !important;
}

@media (max-width: 860px) {
  html.faux-page-fullscreen {
    --tour-main-viewer-iframe-height: min(
      max(200px, calc((100vw - 20px) * 9 / 16)),
      min(82dvh, 720px)
    ) !important;
  }
}

/* tour360-patch: host-mobile-responsive — სრული ბლოკი: tools/host-mobile-responsive-patch.css (PatchExports) */
@media (max-width: 860px) {
  :root {
    --tour-main-viewer-iframe-height: min(
      max(158px, calc((100vw - var(--tour-landscape-page-gutter) - 48px) * 9 / 16)),
      min(70vh, 620px)
    );
    /* ფავორიტების პანელი: სიმაღლე გასაყიდის + ეს (მობილური) */
    --tour-mobile-favorites-extra-height: 24px;
    /* გვერდითი პანელი (ფავორიტები + არჩეული ბინა): სიმაღლის მულტიპლიკატორი */
    --tour-mobile-favorites-side-panel-height-mult: 1.2;
    /* მხოლოდ Pano2VR #tourLayout ფავორიტების პანელი +10% */
    --tour-mobile-pano-favorites-panel-height-mult: 1.1;
    /* ვერტიკალური პორტრეტი: გვერდითი პანელის max სიმაღლე (ძველი ფიქსირებული) + ფავორიტების სიისთვის „ზემოთ“ ფიქსირებული ბლოკების სიმაღლის გამოკლება */
    --tour-mobile-object-side-panel-max-h: calc(
      (var(--viewer-iframe-height) + var(--tour-mobile-favorites-extra-height)) *
        var(--tour-mobile-favorites-side-panel-height-mult)
    );
    --tour-mobile-pano-side-panel-max-h: calc(
      (var(--viewer-iframe-height) + var(--tour-mobile-favorites-extra-height)) *
        var(--tour-mobile-favorites-side-panel-height-mult) *
        var(--tour-mobile-pano-favorites-panel-height-mult)
    );
    --tour-mobile-fav-chrome-w-unit: 330px;
    --tour-mobile-fav-chrome-wo-unit: 150px;
  }

  .hero {
    padding-top: 28px;
  }

  .heroActions {
    flex-wrap: wrap;
    gap: 18px;
    margin-top: calc(2cm - 3mm);
  }

  .heroQuickLinks {
    gap: clamp(10px, 3.2vw, 56px);
  }

  .siteHeader {
    position: static;
  }

  .siteHeader.siteHeader--apartments,
  .siteHeader.siteHeader--main {
    position: sticky;
    top: 0;
    z-index: 25;
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* მთავარი გვერდი, მობილური: ლოგო მარცხნივ, 3D/360 + ძიება მარჯვნივ (უკან ღილაკი არ არის) */
  .siteHeader--main .headerInner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .siteHeader--main .headerEnd {
    margin-left: auto;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .siteHeader--main .brand {
    min-width: 0;
  }

  .siteHeader--main .nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: clamp(8px, 2vw, 18px);
  }

  .siteHeader--main .headerSearch {
    flex: 1 1 100px;
    min-width: 0;
    max-width: min(240px, 48vw);
  }

  .siteHeader--apartments .headerInner {
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .siteHeader--apartments .headerEnd {
    margin-left: auto;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .siteHeader--apartments .brand {
    min-width: 0;
  }

  .siteHeader--apartments .nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: clamp(8px, 2vw, 18px);
  }

  .tourLayout.is-panel-open .viewerFrameMain {
    transform: none;
  }

  .tourLayout.is-panel-open {
    transform: none;
  }

  #objectTourLayout.is-panel-open {
    transform: none;
  }

  /* მხოლოდ მთავარი 3D ფანჯარა: ~16∶9 სიგანესთან. გასაყიდი ბინების პანელი იყენებს :root-ის --viewer-iframe-height-ს (min(70vh, 620px)), როგორც დესკტოპზე. */
  #objectTourLayout .viewerFrameMain {
    min-height: 0;
  }

  #objectTourLayout .viewerFrameMain iframe,
  #objectTourLayout .viewerFrameDetail iframe {
    height: var(--tour-main-viewer-iframe-height);
  }

  /* Object2VR 3D: მობილურზე ერთ სვეტში — გასაყიდი სია ზემოთ, მთავარი ფანჯარა ქვემოთ */
  #objectTourLayout,
  #objectTourLayout.is-panel-open,
  #objectTourLayout.is-panel-open.is-flat-project-open {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  #objectTourLayout .unitPanelAvailable,
  #objectTourLayout.is-panel-open .unitPanelAvailable.unitPanel {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  #objectTourLayout .viewerFrameMain,
  #objectTourLayout.is-panel-open .viewerFrameMain,
  #objectTourLayout.is-panel-open.is-flat-project-open .viewerFrameMain {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
  }

  #objectTourLayout #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open #objectUnitLinkWrap {
    grid-column: 1;
    grid-row: auto;
  }

  #objectTourLayout #objectFlatProjectWrap,
  #objectTourLayout.is-flat-project-open:not(.is-panel-open) #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open #objectFlatProjectWrap {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: min(calc(var(--object-available-panel-width) * 1.15), 100%);
    max-width: 100%;
    box-sizing: border-box;
  }

  /* ჩარჩო სიმაღლე: 0.739×0.9 (−10% კიდე); შიდა scale უცვლელი */
  #objectTourLayout #objectFlatProjectWrap .viewerFrame.viewerFrameProject {
    min-height: 0;
    aspect-ratio: 1 / 0.665;
  }

  /* შიგთავსი: სიგანე −10% (X×0.9), სიმაღლე +10% (Y×1.1) წინა scale(0.851, 0.97865)-ზე */
  #objectTourLayout #objectFlatProjectWrap .viewerFrame.viewerFrameProject iframe {
    position: absolute;
    top: 34px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    transform: scale(0.7659, 1.0765);
    transform-origin: center center;
  }

  #objectTourLayout #objectUnitSidePanel,
  #objectTourLayout.is-panel-open .unitPanel:not(.unitPanelAvailable),
  #objectTourLayout.is-panel-open.is-flat-project-open .unitPanel:not(.unitPanelAvailable) {
    grid-column: 1;
    grid-row: auto;
    width: var(--object-available-panel-width);
    max-width: 100%;
    justify-self: center;
    box-sizing: border-box;
  }

  /* მობილურზე: ბინის არჩევისას is-detail-open დესკტოპზე აორმაგებს ყველა .unitPanel-ს (გასაყიდიც შედის) — გასაყიდეს ვტოვებთ საწყის სიმაღლეს */
  #objectTourLayout.is-panel-open.is-detail-open .unitPanelAvailable,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanelAvailable {
    height: var(--viewer-iframe-height);
    max-height: var(--viewer-iframe-height);
  }

  #objectTourLayout.is-panel-open.is-detail-open .unitPanel:not(.unitPanelAvailable),
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanel:not(.unitPanelAvailable) {
    height: calc(
      (var(--viewer-iframe-height) + var(--tour-mobile-favorites-extra-height)) *
        var(--tour-mobile-favorites-side-panel-height-mult)
    );
    max-height: calc(
      (var(--viewer-iframe-height) + var(--tour-mobile-favorites-extra-height)) *
        var(--tour-mobile-favorites-side-panel-height-mult)
    );
  }

  /* Pano 360: მობილურზე ერთ სვეტში — გასაყიდი ბინების სია ზემოთ, მთავარი ფანჯარა ქვემოთ; iframe ~16∶9 როგორც 3D-ზე */
  #tourLayout,
  #tourLayout.is-panel-open,
  #tourLayout.is-panel-open.is-unit-side-open,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  #tourLayout .panoAvailableActionsStrip {
    display: none !important;
  }

  #tourLayout .unitPanelAvailable,
  #tourLayout.is-panel-open.is-unit-side-open .unitPanelAvailable.unitPanel {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .unitPanelAvailable,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open .unitPanelAvailable,
  #tourLayout.is-detail-open:not(.is-unit-side-open) .unitPanelAvailable {
    height: var(--viewer-iframe-height);
    max-height: var(--viewer-iframe-height);
  }

  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .unitPanel:not(.unitPanelAvailable),
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open
    .unitPanel:not(.unitPanelAvailable) {
    height: calc(
      (var(--viewer-iframe-height) + var(--tour-mobile-favorites-extra-height)) *
        var(--tour-mobile-favorites-side-panel-height-mult) *
        var(--tour-mobile-pano-favorites-panel-height-mult)
    );
    max-height: calc(
      (var(--viewer-iframe-height) + var(--tour-mobile-favorites-extra-height)) *
        var(--tour-mobile-favorites-side-panel-height-mult) *
        var(--tour-mobile-pano-favorites-panel-height-mult)
    );
  }

  #tourLayout .viewerFrameMain,
  #tourLayout.is-panel-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-flat-project-open .viewerFrameMain {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
  }

  #tourLayout #panoUnitLinkWrap,
  #tourLayout.is-panel-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open #panoUnitLinkWrap {
    grid-column: 1;
    grid-row: auto;
  }

  /* Pano2VR ფლეტი: იგივე ზომები/ჩარჩო/შიგთავსი რაც Object2VR #objectFlatProjectWrap */
  #tourLayout #panoFlatProjectWrap,
  #tourLayout.is-flat-project-open:not(.is-panel-open) #panoFlatProjectWrap,
  #tourLayout.is-panel-open:not(.is-unit-side-open).is-flat-project-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open #panoFlatProjectWrap {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: min(calc(var(--pano-available-panel-width) * 1.15), 100%);
    max-width: 100%;
    box-sizing: border-box;
  }

  #tourLayout #panoFlatProjectWrap .viewerFrame.viewerFrameProject {
    min-height: 0;
    aspect-ratio: 1 / 0.665;
  }

  #tourLayout #panoFlatProjectWrap .viewerFrame.viewerFrameProject iframe {
    position: absolute;
    top: 34px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    transform: scale(0.7659, 1.0765);
    transform-origin: center center;
  }

  #tourLayout #panoFlatProjectWrap .viewerFrame.viewerFrameProject .panoFlatPlanImageOverlay {
    transform: scale(0.7659, 1.0765);
    transform-origin: center center;
  }

  #tourLayout #unitSidePanel,
  #tourLayout.is-panel-open.is-unit-side-open .unitPanel:not(.unitPanelAvailable) {
    grid-column: 1;
    grid-row: auto;
    width: var(--pano-available-panel-width);
    max-width: 100%;
    justify-self: center;
    box-sizing: border-box;
  }

  #tourLayout .viewerFrameMain iframe,
  #tourLayout .viewerFrameDetail iframe {
    height: var(--tour-main-viewer-iframe-height);
  }

  .unitPanel {
    width: min(320px, 44vw);
  }
}

@media (max-width: 640px) {
  .headerInner {
    flex-direction: column;
    align-items: flex-start;
  }

  .siteHeader--apartments .headerInner,
  .siteHeader--main .headerInner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 0 8px;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .siteHeader--apartments .nav,
  .siteHeader--main .nav {
    width: auto;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .headerSearch {
    max-width: none;
    order: 1;
  }

  .siteHeader--apartments .headerSearch,
  .siteHeader--main .headerSearch {
    order: unset;
    flex: 1 1 90px;
    min-width: 0;
    max-width: min(200px, 46vw);
  }

  .nav > a[href="#tour"] {
    order: 0;
    align-self: flex-start;
  }

  .siteHeader--apartments .nav > a,
  .siteHeader--main .nav > a {
    order: unset;
    align-self: unset;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .siteHeader--apartments .headerTourNavGroup,
  .siteHeader--main .headerTourNavGroup {
    flex-shrink: 0;
  }

  .headerTourNavGroup .headerFavoritesFilterBtn.availableFavoritesFilterBtn {
    min-width: min(calc(180px - 1cm), 46vw);
    max-width: 100%;
    padding: 4px 6px;
    gap: 5px;
  }

  .viewerFrame iframe {
    min-height: 280px;
  }

  #objectTourLayout .viewerFrameMain iframe,
  #objectTourLayout .viewerFrameDetail iframe,
  #tourLayout .viewerFrameMain iframe,
  #tourLayout .viewerFrameDetail iframe {
    min-height: 0;
  }

  .viewerFrameDetail {
    min-height: 280px;
  }

  #objectTourLayout .viewerFrameDetail,
  #tourLayout .viewerFrameDetail {
    min-height: 0;
  }

  .tourLayout.is-panel-open .viewerFrameMain {
    transform: none;
  }

  .tourLayout.is-panel-open {
    transform: none;
  }

  #objectTourLayout .unitPanel {
    right: auto;
    left: auto;
  }

  #objectTourLayout.is-panel-open {
    grid-template-columns: minmax(0, 1fr);
  }

  #objectTourLayout.is-panel-open .unitPanel,
  #objectTourLayout.is-panel-open .viewerFrameMain,
  #objectTourLayout.is-panel-open #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open #objectFlatProjectWrap {
    grid-column: 1;
    grid-row: auto;
  }

  .unitPanel {
    position: static;
    width: 100%;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .tourLayout.is-panel-open .unitPanel {
    display: block;
  }

  #objectTourLayout {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  #objectTourLayout .unitPanelAvailable {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  #objectTourLayout.is-panel-open .unitPanel:not(.unitPanelAvailable) {
    justify-self: center;
  }

  #objectTourLayout .viewerFrameMain {
    grid-column: 1;
    grid-row: auto;
  }

  #objectTourLayout #objectUnitLinkWrap {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  #objectTourLayout.is-flat-project-open:not(.is-panel-open) #objectFlatProjectWrap {
    grid-column: 1;
  }

  #tourLayout {
    margin-left: 0;
    width: 100%;
  }

  #tour .sectionHead--tour {
    margin-left: 0;
  }

  .siteSkyline {
    height: min(25.92vh, 216px);
  }

  .siteSkylineBetween {
    height: min(25.92vh, 216px);
  }

  #tourLayout.is-panel-open {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-left: 0;
  }

  #tourLayout.is-panel-open .unitPanel,
  #tourLayout.is-panel-open .viewerFrameMain,
  #tourLayout.is-panel-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open #panoFlatProjectWrap {
    grid-column: 1;
    grid-row: auto;
  }

  #tourLayout.is-panel-open .unitPanel.unitPanelAvailable,
  #tourLayout.is-panel-open .unitPanel:not(.unitPanelAvailable) {
    justify-self: center;
  }

  .heroQuickLinks {
    margin-left: 0;
    width: 100%;
    gap: clamp(6px, 2vw, 16px);
    justify-content: flex-start;
    flex-wrap: nowrap;
    container-type: inline-size;
    container-name: hero-quick-tour;
  }

  .heroActions {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: calc(2cm - 3mm);
  }

  .heroPrimaryLinks {
    width: 100%;
    max-width: 240px;
    margin-top: 0;
  }

  /* ორი ტურის ღილაკი: სიგანესთან ერთად სიმაღლე, პადინგი და ტექსტიც პროპორციულად (არა მხოლოდ ჰორიზონტალური შეკუმშვა) */
  .quickTourBtn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    min-height: clamp(50px, 19vw, 72px);
    padding: clamp(6px, 2.2vw, 12px) clamp(7px, 2.6vw, 16px);
    border-radius: clamp(10px, 3.4vw, 16px);
    box-shadow:
      0 clamp(4px, 1.8vw, 9px) clamp(8px, 2.8vw, 22px) rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  html[data-theme="light"] .quickTourBtn {
    box-shadow:
      0 clamp(5px, 2vw, 10px) clamp(9px, 2.8vw, 22px) rgba(37, 62, 92, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }

  .quickTourBtnTitle {
    line-height: 1.14;
    letter-spacing: 0.02em;
  }

  .quickTourBtnTitle--avazam {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 0.15em;
    row-gap: 0.12em;
    max-width: 100%;
  }

  .quickTourBtnTitle--avazam .quickTourBtnTitleMain {
    font-size: clamp(14px, 4.6vw, 30px);
  }

  .quickTourBtnTitle--avazam .quickTourBtnTitleMinor {
    font-size: clamp(11px, 3.6vw, 24px);
    margin-left: clamp(2px, 0.7vw, 4px);
  }

  .quickTourBtnSub {
    margin-top: clamp(2px, 0.9vw, 4px);
    line-height: 1.28;
  }

  .quickTourBtnSub--avazam {
    font-size: clamp(9px, 2.9vw, 19px);
    letter-spacing: 0.025em;
    word-spacing: 0.05em;
  }
}

/*
 * ვერტიკალური მობილური: ბინის გახსნისას (is-detail-open) — გასაყიდი → მთავარი → დეტალი → 3D გეგმა → გვერდითი (ფავორიტები ქვედა).
 * max-aspect-ratio: 1/1 = width≤height (orientation: portrait-ზე საიმედო DevTools/Android-ზეც).
 * is-detail-open + დამატებითი კლასები აჭარბებს 860px-ის is-flat-project-open grid-row:auto-ს.
 */
@media (max-width: 860px) {
  /*
   * ჰორიზონტალური „გაწევა“ (ცარიელი სივრცე მარჯვნივ): hero transform-ები, body::before translateX(3cm) და სხვა
   * ელემენტები სიგანეზე აღემატება viewport-ს — html/body ზღუდავს სქროლს მხოლოდ ვერტიკალურ პორტრეტზე.
   */
  html {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* ზედა პანელი: „ძიება საიტზე…“ — ვერტიკალურ მობილურზე არ ჩანს (ყველა გვერდი) */
  .headerSearch {
    display: none !important;
  }

  /*
   * ტურის ზედა კარუსელი: ბაზაში touch-action:none (ჰიტზონა) ხელს უშლის გვერდის ვერტიკალურ სქროლს.
   * პორტრეტზე ჰორიზონტალური ლერპი მაინც მხოლოდ მაუსით; თითს ზევით/ქვევით — გვერდის სქროლი.
   */
  #tour .siteSkyline__imgSlot--carousel .siteSkyline__carouselImg.siteSkyline__slot--lead {
    touch-action: pan-y;
  }
  #tour .siteSkyline__imgSlot--carousel .siteSkyline__carouselLeadPanPad {
    touch-action: pan-y;
  }

  /* მთავარი #hero: სამი სწრაფი ღილაკი (გალერეა / სართულის გეგმა / გასაყიდი) — პორტრეტზე ვიზუალური ზომა ~1/4 */
  /* zoom მხოლოდ .heroActionsInner-ზე — გარე .heroActions-ის margin-top აღარ „იჭმელება“ zoom-ით */
  #hero .heroActions {
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-items: start;
    gap: 0;
    margin-top: calc(2cm - 3mm) !important;
  }

  #hero .heroActionsInner {
    zoom: calc(0.25 * 0.85 * 0.9);
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-start;
    gap: 28px;
    min-width: 0;
  }

  #hero.hero,
  #hero .heroInner,
  #hero .heroCopy {
    overflow: visible;
  }

  /* მობილური: ჰეროს ზედა სათაური (360 virtualuri turi) — 5 მმ დაბლა */
  #hero .heroCopy h1 {
    transform: translateY(5mm);
  }

  /* სურათების გალერეა: მარცხენა კიდე — იგივე ლოგიკა რაც გასაყიდზე, სარკელსებრივად */
  #hero .heroPrimaryLinks {
    margin-right: 0;
    margin-left: calc(-20px + env(safe-area-inset-left, 0px));
    width: auto;
    max-width: none;
    min-width: 0;
    justify-content: flex-start;
    justify-self: start;
    flex: unset;
    transform: translateX(calc(1cm + 50mm - 10mm));
    overflow: visible;
  }

  #hero .heroPrimaryLinks > .quickTourBtnWrap.quickTourBtnWrap--gallery {
    transform: none;
    overflow: visible;
  }

  #hero .heroPrimaryLinks > .quickTourBtnWrap.quickTourBtnWrap--gallery:hover {
    transform: scale(1.08);
  }

  #hero .heroPrimaryLinks .quickTourBtnPlanLabel--gallery {
    transform: scale(3) translateY(calc(2cm - 7mm + 5mm));
    transform-origin: top center;
    overflow: hidden;
    line-height: 1.35;
    padding-block: 0.25em 0.35em;
    animation:
      quickTourTypingLoopGallery 13s steps(18, end) infinite,
      quickTourCaretBlink 0.8s step-end infinite;
  }

  /* …შემდეგ კიდევ 15%: 1.6632×0.85 */
  #hero .heroPrimaryLinks .quickTourBtnPlanImg.quickTourBtnPlanImg--gallery {
    transform: scale(1.41372);
    transform-origin: center center;
  }

  /* გასაყიდი ბინები: მარჯვენა კიდემდე; წარწერა სამჯერ დიდი (სხვა ორ ღილაკთან შედარებით) */
  #hero .heroQuickLinks {
    margin-left: 0;
    margin-right: calc(-20px + env(safe-area-inset-right, 0px));
    width: auto;
    min-width: 0;
    justify-content: flex-end;
    justify-self: end;
    flex: unset;
    transform: translate(calc(-1cm - 50mm), 20px);
    overflow: visible;
  }

  #hero .heroQuickLinks > .quickTourBtnWrap {
    transform: none;
    overflow: visible;
  }

  #hero .heroQuickLinks > .quickTourBtnWrap:hover {
    transform: scale(1.08);
  }

  #hero .heroQuickLinks .quickTourBtnPlanLabel {
    transform: scale(3) translateY(calc(2cm - 7mm + 5mm));
    transform-origin: top center;
    overflow: hidden;
    line-height: 1.35;
    padding-block: 0.25em 0.35em;
    animation:
      quickTourTypingLoop 13s steps(17, end) infinite,
      quickTourCaretBlink 0.8s step-end infinite;
  }

  /* გასაყიდი ბინები: იკონი ორჯერ −10% ბაზის scale(3)-თან → 3×0.81 */
  #hero .heroQuickLinks .quickTourBtnPlanImg {
    transform: scale(calc(3 * 0.9 * 0.9));
    transform-origin: center center;
  }

  /* სართულის გეგმა: ეკრანის ჰორიზონტალური ცენტრი (grid 1fr / auto / 1fr) + იგივე ტაიპინგი/სკეილი რაც გვერდით */
  #hero .heroVideoCenter {
    flex: unset;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    justify-self: center;
    width: auto;
    transform: translateX(10mm);
  }

  #hero .heroVideoCenter > .quickTourBtnWrap.quickTourBtnWrap--videoHero {
    transform: none;
    overflow: visible;
  }

  #hero .heroVideoCenter > .quickTourBtnWrap.quickTourBtnWrap--videoHero:hover {
    transform: scale(1.08);
  }

  #hero .heroVideoCenter .quickTourBtnPlanLabel.quickTourBtnPlanLabel--tourSarTulis {
    transform: scale(3) translateY(calc(2cm - 7mm + 5mm));
    transform-origin: top center;
    overflow: hidden;
    line-height: 1.35;
    padding-block: 0.25em 0.35em;
    animation:
      quickTourTypingLoopSarTulis 13s steps(14, end) infinite,
      quickTourCaretBlink 0.8s step-end infinite;
  }

  /*
   * ვერტიკალური აიფონი: სამივე ქვედა წარწერა — scale(3)×0.5×0.6×1.25×0.7 (−30%); translateY +1cm+7mm დაბლა; იკონი უცვლელი.
   * ტაიპინგისას იკონის ფიქსაცია: wrap-ს ფიქსირებული სიგანე (ტექსტის პიკი ch-ით), რომ სვეტი არ ირხევა.
   * ბლოკი აქაა, რომ sarTulis-ის ბაზის სტილის შემდეგ იყოს (კასკადი).
   */
  @media (max-aspect-ratio: 1/1) {
    @supports (-webkit-touch-callout: none) {
      @media (max-width: 480px) {
        #hero .heroActions {
          margin-top: calc(2cm - 3mm) !important;
        }

        /* suraTebis galerea: მთელი ღილაკი მარცხნივ 5mm (ბაზის translateX −5mm) */
        #hero .heroPrimaryLinks {
          transform: translateX(calc(1cm + 50mm - 10mm - 5mm));
        }

        /* gasayidi binebi: მთელი ღილაკი მარჯვნივ 5mm (ბაზის translate X +5mm) */
        #hero .heroQuickLinks {
          transform: translate(calc(-1cm - 50mm + 5mm), 20px);
        }

        /* ტაიპინგი: სვეტის სიგანე = keyframes-ის პიკი — ზედა იკონი ჰორიზონტალურად იგივე წერტილში */
        #hero .heroPrimaryLinks > .quickTourBtnWrap.quickTourBtnWrap--gallery {
          width: min(100%, max(86px, calc(18ch + 14px)));
          max-width: 100%;
          box-sizing: border-box;
        }

        #hero .heroQuickLinks > .quickTourBtnWrap {
          width: min(100%, max(86px, calc(17ch + 14px)));
          max-width: 100%;
          box-sizing: border-box;
        }

        #hero .heroVideoCenter > .quickTourBtnWrap.quickTourBtnWrap--videoHero {
          width: min(100%, max(86px, calc(15ch + 18px)));
          max-width: 100%;
          box-sizing: border-box;
        }

        #hero .heroPrimaryLinks > .quickTourBtnWrap.quickTourBtnWrap--gallery .quickTourBtn,
        #hero .heroVideoCenter > .quickTourBtnWrap.quickTourBtnWrap--videoHero .quickTourBtn,
        #hero .heroQuickLinks > .quickTourBtnWrap .quickTourBtn {
          flex-shrink: 0;
        }

        #hero .heroPrimaryLinks .quickTourBtnPlanLabel--gallery,
        #hero .heroVideoCenter .quickTourBtnPlanLabel.quickTourBtnPlanLabel--tourSarTulis,
        #hero .heroQuickLinks .quickTourBtnPlanLabel {
          transform: scale(calc(3 * 0.5 * 0.6 * 1.25 * 0.7)) translateY(calc(2cm - 7mm + 5mm + 1cm + 7mm));
          transform-origin: top center;
        }

        #hero .heroQuickLinks .quickTourBtnPlanImg {
          transform: scale(calc(3 * 0.9 * 0.9 * 0.5));
          transform-origin: center center;
        }
      }
    }
  }

  #hero .heroVideoCenter .quickTourBtnPlanImg.quickTourBtnPlanImg--gallery.quickTourBtnPlanImg--heroFloorPlan {
    transform: scale(calc(1.41372 * 0.85));
    transform-origin: center center;
  }

  /* ჰეროს ქვემოთ: კარუსელი + ტურის ყველა პანელი/ფანჯარა — მთლიანად 2 სმ დაბლა */
  main > #tour {
    margin-top: 2cm;
  }

  /*
   * გეგმის ზოლი: ბაზის translateX(-3cm) WebKit-ზე არღვევს შიგა iframe-ის პანირებას — იგივე ვიზუალი left-ით, transform ამოღებული.
   */
  #tour .tourFlooplanBand {
    transform: none;
    position: relative;
    left: -3cm;
  }

  /* „360 virtualuri turi“ — გასაყიდის პანელის ზემოთ: დაბლა 5mm + მარცხნივ 5mm */
  #tour .sectionHead--tour {
    transform: translate(-5mm, 5mm);
  }

  /* სართულის გეგმა: ფასადის ფანჯარა ზემოთ, გეგმის ფანჯარა ქვემოთ (ორი სვეტის ნაცვლად სვეტი) */
  #tour .tourFasadisFanjaraPair {
    flex-direction: column;
    align-items: stretch;
    align-content: stretch;
    max-width: 100%;
    gap: clamp(10px, 2.5vw, 14px);
    /* ბაზის translateX(1cm - 5mm) + მარჯვნივ 2.5cm — transform-ის ნაცვლად (იხ. tourFlooplanBand) */
    transform: none;
    left: calc(1cm - 5mm + 2.5cm);
  }

  #tour .tourFasadisFanjara {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    align-self: stretch;
  }

  #tour .tourGegmisFanjara {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 0 0 auto;
    align-self: stretch;
    height: var(--tour-fasadis-fanjara-h);
  }

  #objectTourLayout .unitPanelAvailable.unitPanel,
  #tourLayout .unitPanelAvailable.unitPanel {
    transform: translateX(4cm);
  }

  #objectTourLayout .viewerFrameMain,
  #tourLayout .viewerFrameMain {
    transform: translateX(4cm);
  }

  #objectTourLayout.is-panel-open.is-detail-open #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectUnitLinkWrap,
  #tourLayout.is-panel-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoUnitLinkWrap {
    transform: translateX(4cm);
  }

  #tourLayout.is-panel-open.is-detail-open #unitSidePanel.unitPanel,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #unitSidePanel.unitPanel,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #unitSidePanel.unitPanel,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #unitSidePanel.unitPanel,
  #objectTourLayout.is-panel-open.is-detail-open #objectUnitSidePanel.unitPanel,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectUnitSidePanel.unitPanel {
    display: none !important;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitLinkWrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitLinkWrap .viewerFrameDetail {
    flex: 1 1 auto;
    min-height: 0;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 4px 6px;
    box-sizing: border-box;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel-bg);
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 2px 4px;
    width: 100%;
    margin: 0;
    align-items: start;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow > *:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow > *:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow > *:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow > *:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow > *:nth-child(5) {
    grid-column: 3;
    grid-row: 1;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow > *:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow > *:nth-child(7) {
    grid-column: 4;
    grid-row: 1;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow > *:nth-child(8) {
    grid-column: 4;
    grid-row: 2;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaBtn {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 4px 2px;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitGegmaToolbarList .availableUnitGegmaRow__label {
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(9px, 2.4vw, 11px);
    line-height: 1.2;
  }

  #objectTourLayout.is-panel-open.is-detail-open .unitPanelAvailable,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanelAvailable {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  #objectTourLayout.is-panel-open.is-detail-open .viewerFrameMain,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .viewerFrameMain {
    grid-column: 1;
    grid-row: 2;
  }

  #objectTourLayout.is-panel-open.is-detail-open #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectUnitLinkWrap {
    grid-column: 1;
    grid-row: 3;
  }

  #objectTourLayout.is-panel-open.is-detail-open #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectFlatProjectWrap {
    grid-column: 1;
    grid-row: 4;
    justify-self: center;
    width: min(calc(var(--object-available-panel-width) * 1.15), 100%);
    max-width: 100%;
    box-sizing: border-box;
  }

  #objectTourLayout.is-panel-open.is-detail-open .unitPanel:not(.unitPanelAvailable),
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanel:not(.unitPanelAvailable) {
    grid-column: 1;
    grid-row: 5;
    justify-self: center;
  }

  #tourLayout.is-panel-open.is-detail-open .unitPanelAvailable,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .unitPanelAvailable,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanelAvailable,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open .unitPanelAvailable {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  #tourLayout.is-panel-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open .viewerFrameMain {
    grid-column: 1;
    grid-row: 2;
  }

  #tourLayout.is-panel-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoUnitLinkWrap {
    grid-column: 1;
    grid-row: 3;
  }

  #tourLayout.is-panel-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap {
    grid-column: 1;
    grid-row: 4;
    justify-self: center;
    width: min(calc(var(--pano-available-panel-width) * 1.15), 100%);
    max-width: 100%;
    box-sizing: border-box;
  }

  #tourLayout.is-panel-open.is-detail-open .unitPanel:not(.unitPanelAvailable),
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .unitPanel:not(.unitPanelAvailable),
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanel:not(.unitPanelAvailable),
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open
    .unitPanel:not(.unitPanelAvailable) {
    grid-column: 1;
    grid-row: 5;
    justify-self: center;
  }

  /*
   * ფავორიტების გვერდითი პანელი: სიმაღლე იზრდება კონტენტამდე; max = ზემოთ განსაზღვრული;
   * ცარიელი სია — პატარა (წარწერა); სრული სიმაღლის შემდეგ სქროლი მხოლოდ სიაში.
   */
  #objectTourLayout.is-panel-open.is-detail-open #objectUnitSidePanel.unitPanel,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectUnitSidePanel.unitPanel {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: var(--tour-mobile-object-side-panel-max-h);
    min-height: 0;
    overflow: hidden;
  }

  #objectTourLayout.is-panel-open.is-detail-open #objectUnitSidePanel .favoritesBlock,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectUnitSidePanel .favoritesBlock {
    flex: 0 1 auto;
    flex-grow: 0;
    min-height: 0;
    overflow: hidden;
  }

  #objectTourLayout.is-panel-open.is-detail-open #objectUnitSidePanel.is-unit-selected .favoritesList,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open
    #objectUnitSidePanel.is-unit-selected
    .favoritesList {
    flex: 0 1 auto;
    flex-grow: 0;
    max-height: max(
      0px,
      calc(var(--tour-mobile-object-side-panel-max-h) - var(--tour-mobile-fav-chrome-w-unit))
    );
    overflow-y: auto;
  }

  #objectTourLayout.is-panel-open.is-detail-open #objectUnitSidePanel:not(.is-unit-selected) .favoritesList,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open
    #objectUnitSidePanel:not(.is-unit-selected)
    .favoritesList {
    flex: 0 1 auto;
    flex-grow: 0;
    max-height: max(
      0px,
      calc(var(--tour-mobile-object-side-panel-max-h) - var(--tour-mobile-fav-chrome-wo-unit))
    );
    overflow-y: auto;
  }

  #tourLayout.is-panel-open.is-detail-open #unitSidePanel.unitPanel,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #unitSidePanel.unitPanel,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #unitSidePanel.unitPanel,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #unitSidePanel.unitPanel {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: var(--tour-mobile-pano-side-panel-max-h);
    min-height: 0;
    overflow: hidden;
  }

  #tourLayout.is-panel-open.is-detail-open #unitSidePanel .favoritesBlock,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #unitSidePanel .favoritesBlock,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #unitSidePanel .favoritesBlock,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #unitSidePanel .favoritesBlock {
    flex: 0 1 auto;
    flex-grow: 0;
    min-height: 0;
    overflow: hidden;
  }

  #tourLayout.is-panel-open.is-detail-open #unitSidePanel.is-unit-selected .favoritesList,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #unitSidePanel.is-unit-selected .favoritesList,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #unitSidePanel.is-unit-selected .favoritesList,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open
    #unitSidePanel.is-unit-selected
    .favoritesList {
    flex: 0 1 auto;
    flex-grow: 0;
    max-height: max(
      0px,
      calc(var(--tour-mobile-pano-side-panel-max-h) - var(--tour-mobile-fav-chrome-w-unit))
    );
    overflow-y: auto;
  }

  #tourLayout.is-panel-open.is-detail-open #unitSidePanel:not(.is-unit-selected) .favoritesList,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #unitSidePanel:not(.is-unit-selected) .favoritesList,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #unitSidePanel:not(.is-unit-selected) .favoritesList,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open
    #unitSidePanel:not(.is-unit-selected)
    .favoritesList {
    flex: 0 1 auto;
    flex-grow: 0;
    max-height: max(
      0px,
      calc(var(--tour-mobile-pano-side-panel-max-h) - var(--tour-mobile-fav-chrome-wo-unit))
    );
    overflow-y: auto;
  }
}

/* მობილური ლანდშაფტი: მარჯვნივ სქროლის ზონა (~9 სმ max, clamp; წინა 15 სმ-ის ~60%) */
@media (max-width: 860px) and (orientation: landscape) and (max-aspect-ratio: 1/1) {
  :root {
    --tour-landscape-page-gutter: clamp(2.1rem, 9cm, 24vw);
    /* ლანდშაფტში vh = ვიწრო კante; გასაყიდი/გვერდითი პანელების სიმაღლე პორტრეტის min(70vh,620)-ის მსგავსად — იგივე ფიზიკური განზომილება ≈ 70vw */
    --viewer-iframe-height: min(70vw, 620px);
    /* Object2VR მთავარი ფანჯარა ლანდშაფტზე (წინა mult × 0.95 ≈ −5%) */
    --object-mobile-main-viewer-mult: 1.42025;
    /* ფავორიტების გვერდითი პანელი: ბაზაზე ×4 (+100% ორჯერ) */
    --object-landscape-favorites-panel-height-mult: 4;
    /* 3D ფლეტის პანელი ლანდშაფტზე: სიგანე −40% (დარჩენილი წილი 0.6) */
    --object-landscape-flat-project-width-mult: 0.6;
    /* იგივე ფანჯრის სიმაღლის ზედა ზღვარი: +15% */
    --object-landscape-flat-project-max-height-mult: 1.15;
  }

  /*
   * სართულის გეგმა — გეგმის ფანჯარა (#tourGegmisFanjara), არა 3D ბინის ფლეტი:
   * ლანდშაფტზე სიგანე ×4×0.7³ (სამჯერ −30% წინა ×4-თან).
   */
  #tour .tourFasadisFanjaraPair {
    overflow-x: visible;
  }

  #tour .tourGegmisFanjara {
    width: calc(100% * 4 * 0.7 * 0.7 * 0.7);
    max-width: min(calc((100vw - 32px) * 4 * 0.7 * 0.7 * 0.7), calc(400% * 0.7 * 0.7 * 0.7));
    box-sizing: border-box;
    align-self: center;
    margin-left: 4cm;
  }

  #objectTourLayout,
  #objectTourLayout.is-panel-open,
  #objectTourLayout.is-panel-open.is-flat-project-open,
  #tourLayout.is-panel-open,
  #tourLayout.is-panel-open.is-unit-side-open,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open,
  #tourLayout.is-panel-open.is-flat-project-open {
    justify-items: center;
  }

  #objectTourLayout {
    overflow-x: visible;
    --object-available-panel-width: 600px;
  }

  #tourLayout {
    overflow-x: visible;
    --pano-available-panel-width: 600px;
  }

  #objectTourLayout .unitPanelAvailable,
  #objectTourLayout.is-panel-open .unitPanelAvailable.unitPanel {
    width: var(--object-available-panel-width);
    max-width: min(100%, var(--object-available-panel-width));
  }

  #tourLayout .unitPanelAvailable,
  #tourLayout.is-panel-open.is-unit-side-open .unitPanelAvailable.unitPanel {
    width: var(--pano-available-panel-width);
    max-width: min(100%, var(--pano-available-panel-width));
  }

  /* გასაყიდი: ცენტრი (ID + margin auto — grid-ში საიმედო) */
  #objectTourLayout #objectAvailablePanel,
  #tourLayout #panoAvailablePanel {
    justify-self: center;
    margin-inline: auto;
    min-width: 0;
    box-sizing: border-box;
  }

  #objectAvailableList.favoritesList,
  #panoAvailableList.favoritesList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #objectAvailableList li.availableUnitsEmptyMsg,
  #panoAvailableList li.availableUnitsEmptyMsg {
    grid-column: 1 / -1;
  }

  #objectFavoritesList.favoritesList,
  #favoritesList.favoritesList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #objectFavoritesList li:not(:has(.favoriteCard)),
  #favoritesList li:not(:has(.favoriteCard)) {
    grid-column: 1 / -1;
  }

  #objectTourLayout #objectFlatProjectWrap,
  #objectTourLayout.is-flat-project-open:not(.is-panel-open) #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open #objectFlatProjectWrap {
    width: min(
      calc(
        var(--object-available-panel-width) * 1.15 *
          var(--object-landscape-flat-project-width-mult)
      ),
      100%
    );
  }

  #tourLayout #panoFlatProjectWrap,
  #tourLayout.is-flat-project-open:not(.is-panel-open) #panoFlatProjectWrap,
  #tourLayout.is-panel-open:not(.is-unit-side-open).is-flat-project-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open #panoFlatProjectWrap {
    width: min(
      calc(
        var(--pano-available-panel-width) * 1.15 *
          var(--object-landscape-flat-project-width-mult)
      ),
      100%
    );
  }

  #objectTourLayout #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open #objectUnitLinkWrap,
  #tourLayout #panoUnitLinkWrap,
  #tourLayout.is-panel-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-flat-project-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open #panoUnitLinkWrap {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  #objectTourLayout .viewerFrameMain iframe,
  #tourLayout .viewerFrameMain iframe {
    height: calc(
      var(--tour-main-viewer-iframe-height) * var(--object-mobile-main-viewer-mult)
    );
  }

  #objectTourLayout .viewerFrameMain,
  #objectTourLayout.is-panel-open .viewerFrameMain,
  #objectTourLayout.is-panel-open.is-flat-project-open .viewerFrameMain,
  #tourLayout .viewerFrameMain,
  #tourLayout.is-panel-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-flat-project-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open .viewerFrameMain {
    width: calc(
      var(--tour-main-viewer-iframe-height) * 16 / 9 *
        var(--object-mobile-main-viewer-mult)
    );
    max-width: min(
      calc(100vw - 32px),
      calc(
        var(--tour-main-viewer-iframe-height) * 16 / 9 *
          var(--object-mobile-main-viewer-mult)
      )
    );
    justify-self: center;
    margin-left: clamp(20px, 6vw, 56px);
    box-sizing: border-box;
  }

  #objectTourLayout,
  #objectTourLayout.is-panel-open,
  #objectTourLayout.is-panel-open.is-flat-project-open,
  #tourLayout,
  #tourLayout.is-panel-open,
  #tourLayout.is-panel-open.is-unit-side-open,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open,
  #tourLayout.is-panel-open.is-flat-project-open {
    width: min(100%, calc(100vw - var(--tour-landscape-page-gutter)));
    max-width: calc(100vw - var(--tour-landscape-page-gutter));
    box-sizing: border-box;
  }

  /*
   * ლანდშაფტი + არჩეული ბინა — Object2VR და Pano2VR ერთნაირი რიგი:
   * გასაყიდი → მთავარი → დეტალი → (ღია გეგმისას) 3D გეგმა → ფავორიტების პანელი ქვემოთ.
   */
  #objectTourLayout.is-panel-open.is-detail-open:not(.is-flat-project-open),
  #tourLayout.is-panel-open.is-detail-open:not(.is-flat-project-open) {
    grid-template-columns: minmax(0, 1fr);
  }

  #objectTourLayout.is-panel-open.is-detail-open.is-flat-project-open,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open,
  #tourLayout.is-panel-open.is-detail-open.is-flat-project-open,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open.is-flat-project-open,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open {
    grid-template-columns: minmax(0, 1fr);
  }

  #objectTourLayout.is-panel-open.is-detail-open .unitPanelAvailable,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanelAvailable {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: var(--object-available-panel-width);
    max-width: min(100%, var(--object-available-panel-width));
  }

  #tourLayout.is-panel-open.is-detail-open .unitPanelAvailable,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .unitPanelAvailable,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanelAvailable,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open .unitPanelAvailable {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: var(--pano-available-panel-width);
    max-width: min(100%, var(--pano-available-panel-width));
  }

  #objectTourLayout.is-panel-open.is-detail-open .viewerFrameMain,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open .viewerFrameMain {
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(
      var(--tour-main-viewer-iframe-height) * 16 / 9 *
        var(--object-mobile-main-viewer-mult)
    );
    max-width: min(
      calc(100vw - 32px),
      calc(
        var(--tour-main-viewer-iframe-height) * 16 / 9 *
          var(--object-mobile-main-viewer-mult)
      )
    );
    justify-self: center;
    margin-left: clamp(20px, 6vw, 56px);
  }

  #objectTourLayout.is-panel-open.is-detail-open.is-flat-project-open #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectFlatProjectWrap {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
    align-self: start;
    width: calc(
      var(--tour-main-viewer-iframe-height) * 16 / 9 *
        var(--object-mobile-main-viewer-mult) *
        var(--object-landscape-flat-project-width-mult)
    );
    max-width: min(
      calc(100vw - 32px),
      calc(
        var(--tour-main-viewer-iframe-height) * 16 / 9 *
          var(--object-mobile-main-viewer-mult) *
          var(--object-landscape-flat-project-width-mult)
      )
    );
    margin-left: clamp(20px, 6vw, 56px);
    min-height: 0;
    box-sizing: border-box;
  }

  #tourLayout.is-panel-open.is-detail-open.is-flat-project-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open.is-flat-project-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
    align-self: start;
    width: calc(
      var(--tour-main-viewer-iframe-height) * 16 / 9 *
        var(--object-mobile-main-viewer-mult) *
        var(--object-landscape-flat-project-width-mult)
    );
    max-width: min(
      calc(100vw - 32px),
      calc(
        var(--tour-main-viewer-iframe-height) * 16 / 9 *
          var(--object-mobile-main-viewer-mult) *
          var(--object-landscape-flat-project-width-mult)
      )
    );
    margin-left: clamp(20px, 6vw, 56px);
    min-height: 0;
    box-sizing: border-box;
  }

  #objectTourLayout.is-panel-open.is-detail-open.is-flat-project-open #objectFlatProjectWrap .viewerFrame.viewerFrameProject,
  #tourLayout.is-panel-open.is-detail-open.is-flat-project-open #panoFlatProjectWrap .viewerFrame.viewerFrameProject,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open.is-flat-project-open #panoFlatProjectWrap .viewerFrame.viewerFrameProject,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap .viewerFrame.viewerFrameProject {
    max-height: min(
      calc(42vh * var(--object-landscape-flat-project-max-height-mult)),
      calc(300px * var(--object-landscape-flat-project-max-height-mult))
    );
  }

  #objectTourLayout.is-panel-open.is-detail-open:not(.is-flat-project-open) .unitPanel:not(.unitPanelAvailable) {
    grid-column: 1 / -1;
    grid-row: 4;
    width: var(--object-side-panel-width);
    max-width: min(100%, var(--object-side-panel-width));
    justify-self: center;
    height: auto;
    min-height: 0;
    max-height: min(
      calc(48vh * var(--object-landscape-favorites-panel-height-mult)),
      calc(340px * var(--object-landscape-favorites-panel-height-mult))
    );
    align-self: start;
  }

  #tourLayout.is-panel-open.is-detail-open:not(.is-flat-project-open) .unitPanel:not(.unitPanelAvailable),
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open:not(.is-flat-project-open)
    .unitPanel:not(.unitPanelAvailable) {
    grid-column: 1 / -1;
    grid-row: 4;
    width: var(--pano-side-panel-width);
    max-width: min(100%, var(--pano-side-panel-width));
    justify-self: center;
    height: auto;
    min-height: 0;
    max-height: min(
      calc(48vh * var(--object-landscape-favorites-panel-height-mult)),
      calc(340px * var(--object-landscape-favorites-panel-height-mult))
    );
    align-self: start;
  }

  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanel:not(.unitPanelAvailable) {
    grid-column: 1 / -1;
    grid-row: 5;
    width: var(--object-side-panel-width);
    max-width: min(100%, var(--object-side-panel-width));
    justify-self: center;
    height: auto;
    min-height: 0;
    min-width: 0;
    max-height: min(
      calc(48vh * var(--object-landscape-favorites-panel-height-mult)),
      calc(340px * var(--object-landscape-favorites-panel-height-mult))
    );
    align-self: start;
  }

  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanel:not(.unitPanelAvailable),
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open .unitPanel:not(.unitPanelAvailable) {
    grid-column: 1 / -1;
    grid-row: 5;
    width: var(--pano-side-panel-width);
    max-width: min(100%, var(--pano-side-panel-width));
    justify-self: center;
    height: auto;
    min-height: 0;
    min-width: 0;
    max-height: min(
      calc(48vh * var(--object-landscape-favorites-panel-height-mult)),
      calc(340px * var(--object-landscape-favorites-panel-height-mult))
    );
    align-self: start;
  }

  #objectTourLayout.is-panel-open.is-detail-open:not(.is-flat-project-open) #objectUnitLinkWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectUnitLinkWrap,
  #tourLayout.is-panel-open.is-detail-open:not(.is-flat-project-open) #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open:not(.is-flat-project-open) #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoUnitLinkWrap {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    width: calc(
      var(--tour-main-viewer-iframe-height) * 16 / 9 *
        var(--object-mobile-main-viewer-mult)
    );
    max-width: min(
      calc(100vw - 32px),
      calc(
        var(--tour-main-viewer-iframe-height) * 16 / 9 *
          var(--object-mobile-main-viewer-mult)
      )
    );
    margin-left: clamp(20px, 6vw, 56px);
    box-sizing: border-box;
  }

  #objectTourLayout.is-panel-open.is-detail-open .viewerFrameDetail iframe,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .viewerFrameDetail iframe,
  #tourLayout.is-panel-open.is-detail-open .viewerFrameDetail iframe,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .viewerFrameDetail iframe,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open .viewerFrameDetail iframe,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open .viewerFrameDetail iframe {
    height: calc(
      var(--tour-main-viewer-iframe-height) * var(--object-mobile-main-viewer-mult)
    );
  }
}

@supports (container-type: inline-size) {
  @media (max-width: 640px) {
    .quickTourBtnTitle--avazam .quickTourBtnTitleMain {
      font-size: clamp(13px, 10.5cqi, 30px);
    }

    .quickTourBtnTitle--avazam .quickTourBtnTitleMinor {
      font-size: clamp(10px, 8cqi, 24px);
      margin-left: clamp(2px, 1cqi, 4px);
    }

    .quickTourBtnSub--avazam {
      font-size: clamp(9px, 6.2cqi, 19px);
    }

    .quickTourBtn {
      min-height: clamp(50px, 19cqi, 72px);
      padding: clamp(6px, 2.2cqi, 12px) clamp(7px, 2.6cqi, 16px);
      border-radius: clamp(10px, 3.4cqi, 16px);
      box-shadow:
        0 clamp(4px, 1.8cqi, 9px) clamp(8px, 2.8cqi, 22px) rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    html[data-theme="light"] .quickTourBtn {
      box-shadow:
        0 clamp(5px, 2cqi, 10px) clamp(9px, 2.8cqi, 22px) rgba(37, 62, 92, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
    }
  }
}

/* prefers-reduced-motion ბლოკი შეგნებულად ამოღებულია,
   რომ ანიმაციები ყველა ბრაუზერზე ყოველთვის ჩანდეს. */

.apartmentsPage {
  min-height: 100vh;
}

/* გასაყიდი ბინები: ნაგულისენი sectionAlt ფონი ფარავდა body::before (foni) — ნაზარი გამჭვირვალე ტინტი რომ ფონის სურათი ჩანდეს */
main.apartmentsPage #apartmentsSection.section.sectionAlt.apartmentsSection {
  background: radial-gradient(circle at top, rgba(70, 74, 90, 0.2), rgba(27, 30, 38, 0.52) 56%);
}

html[data-theme="light"] main.apartmentsPage #apartmentsSection.section.sectionAlt.apartmentsSection {
  background: radial-gradient(circle at 50% 0%, rgba(110, 165, 205, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(221, 232, 243, 0.62) 0%, rgba(212, 224, 238, 0.68) 100%);
}

#apartmentsSection.section.sectionAlt.apartmentsSection,
#videoGallerySection.section.sectionAlt.apartmentsSection,
#gallerySection.section.sectionAlt.gallerySection,
#contactSection.section.sectionAlt.contactSection {
  position: relative;
  padding: 56px 0 min(36vh, 360px);
}

#apartmentsSection.section.sectionAlt.apartmentsSection::before,
#videoGallerySection.section.sectionAlt.apartmentsSection::before,
#gallerySection.section.sectionAlt.gallerySection::before,
#contactSection.section.sectionAlt.contactSection::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--bg-facade-stripes);
}

/* foni — სექციის შიგნით: ტინტისა და ზოლების ზემოთ, ბარათების ქვეშ (container z-index: 2) */
main.apartmentsPage #apartmentsSection.section.sectionAlt.apartmentsSection::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 17.5%;
  right: 17.5%;
  top: -12cm;
  bottom: 0;
  transform: translateX(3cm);
  pointer-events: none;
  background-image: url("./data/foni.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: top center;
  opacity: var(--site-foni-overlay-opacity, 0.2);
}

#apartmentsSection.section.sectionAlt.apartmentsSection > .container,
#videoGallerySection.section.sectionAlt.apartmentsSection > .container,
#gallerySection.section.sectionAlt.gallerySection > .container,
#contactSection.section.sectionAlt.contactSection > .container {
  position: relative;
  z-index: 2;
  /* უფრო ფართო სვეტები / დიდი გეგმის სურათები (ორივე გასაყიდი გვერდი) */
  max-width: min(1680px, 100%);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.contactLead {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-avant);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.contactGrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(min-content, auto);
  gap: 18px 22px;
  margin-top: 32px;
  align-items: start;
}

.contactPanel {
  border: 1px solid var(--border-ui-mid);
  border-radius: var(--radius-lg);
  background: var(--panel-bg-alt);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

/* ასიმეტრიული „მეისონი“ განლაგება — დესკტოპი */
.contactPanel--address {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  min-height: 200px;
  padding: 26px 28px;
  border-radius: calc(var(--radius-lg) + 4px);
}

.contactPanel--phone {
  grid-column: 6 / span 3;
  grid-row: 1;
  align-self: start;
  margin-top: 0;
  min-height: 150px;
  max-width: 100%;
  padding: 18px 20px;
  border-radius: 14px;
}

.contactPanel--email {
  grid-column: 9 / span 4;
  grid-row: 1;
  margin-top: 12px;
  min-height: 120px;
  padding: 16px 20px;
  border-radius: 10px;
}

.contactPanel--hours {
  grid-column: 6 / span 3;
  grid-row: 2;
  align-self: start;
  margin-top: 1cm;
  min-height: 168px;
  padding: 20px 22px;
  border-radius: calc(var(--radius-md) + 2px);
}

.contactPanel--digital {
  grid-column: 1 / span 12;
  grid-row: 3 / span 2;
  min-height: 220px;
  max-width: min(920px, 100%);
  justify-self: end;
  padding: 24px 28px;
  margin-right: 0;
  margin-top: 1cm;
  border-radius: 20px;
}

@media (min-width: 901px) {
  .contactPanel--digital {
    grid-column: 5 / span 8;
    grid-row: 3;
    margin-top: calc(1cm + 8px);
  }
}

@media (max-width: 900px) {
  .contactGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contactPanel--address,
  .contactPanel--phone,
  .contactPanel--email,
  .contactPanel--hours,
  .contactPanel--digital {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0;
    min-height: 0;
    max-width: none;
    justify-self: stretch;
    padding: 22px 24px;
  }

  .contactPanel--hours,
  .contactPanel--digital {
    margin-top: 1cm;
  }
}

.contactPanel h2 {
  margin: 0 0 14px;
  font-family: "Avazam", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.contactPanel p,
.contactPanel address {
  margin: 0 0 10px;
  font-family: var(--font-avant);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  font-style: normal;
}

.contactPanel p:last-child,
.contactPanel address:last-child {
  margin-bottom: 0;
}

.contactPanel a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contactPanel a:hover {
  text-decoration: underline;
}

.contactPanelHint {
  font-size: 13px;
  opacity: 0.88;
}

.apartmentsBack {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border-ui-mid);
  background: var(--btn-ghost-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.apartmentsBack:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 860px) and (min-width: 641px) {
  .siteHeader--apartments .apartmentsBack {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

/* დესკტოპი: უკან ღილაკი ისევ ფიქსირებული მარცხნივ, ჰედერი როგორც მთავარ გვერდზე (ლოგო / ნავიგაცია) */
@media (min-width: 861px) {
  .siteHeader--apartments .apartmentsBack {
    position: fixed;
    top: 8px;
    left: 112px;
    z-index: 30;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .siteHeader--apartments .headerInner {
    justify-content: space-between;
    gap: 20px;
  }

  .siteHeader--apartments .headerEnd {
    margin-left: 0;
    flex: initial;
    min-width: 0;
  }

  .siteHeader--apartments .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
  }
}

.apartmentsHeader h1 {
  margin: 0 0 8px;
  font-family: "Avazam", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  text-transform: none;
  font-variant: normal;
}

.apartmentsFilters {
  margin: 0 0 10px;
  width: min(720px, 100%);
}

.apartmentsFilters--split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.apartmentsFilterCell {
  min-width: 0;
}

.apartmentsFilterCell .availableFilterSelect {
  width: 100%;
}

.apartmentsFilters .availableFilterSelect {
  max-width: 100%;
}

.apartmentsSearchWrap {
  margin: 0 0 18px;
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.apartmentsSearchInput {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-ui-mid);
  background-color: var(--filter-control-bg);
  color: var(--filter-control-fg);
  padding: 0 14px 0 40px;
  font-size: 15px;
  font-family: var(--font-avant);
  font-weight: 400;
  font-style: normal;
  outline: none;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px 18px;
}

.apartmentsSearchInput::placeholder {
  color: var(--text-muted);
}

.apartmentsSearchInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* საძიებო ველებში მაგნიფიკატორი (იგივე stroke ტონი რაც placeholder-ის --text-muted) */
html:not([data-theme="light"]) :is(.availableSearchInput, .apartmentsSearchInput, .headerSearchInput) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8bcc7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

html[data-theme="light"] :is(.availableSearchInput, .apartmentsSearchInput, .headerSearchInput) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6e82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

.apartmentsColumns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.apartmentsPanel {
  border: 1px solid var(--border-ui-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-bg), var(--bg-alt));
  padding: 12px;
  min-width: 0;
}

.apartmentsGrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ვიდეო გალერეა: JS სწრაფად ავსებს — ცარიელი მინდორი არ გვჭირდება */
main.videoGalleryPage .apartmentsGrid:empty::before {
  display: none;
}

/* ცარიელი სვეტი პირველ ფეიჯზე (JS-მდე / ჩატვირთვამდე) — Pano გვერდზე ორმაგი fetch-ის გამო განსაკუთრებით საჭირო */
main.apartmentsPage .apartmentsGrid:empty::before {
  content: "";
  display: block;
  flex: 1 1 auto;
  min-height: min(260px, 38vw);
  border-radius: 12px;
  border: 1px dashed var(--border-ui-soft);
  background: rgba(32, 34, 42, 0.35);
  box-sizing: border-box;
}

html[data-theme="light"] main.apartmentsPage .apartmentsGrid:empty::before {
  background: rgba(236, 238, 245, 0.55);
}

.apartmentCard {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--border-ui-mid);
  background: rgba(32, 34, 42, 0.72);
  padding: 12px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-content: stretch;
  justify-items: stretch;
  gap: 10px;
  min-height: 0;
}

.apartmentCard.apartmentCard--compact {
  grid-template-rows: auto auto auto auto;
  align-content: start;
}

html[data-theme="light"] .apartmentCard {
  background: var(--card);
  border-color: var(--border-ui-mid);
  box-shadow: var(--shadow-card);
}

.apartmentCard--sold {
  background: rgba(200, 48, 58, 0.42);
  border-color: rgba(255, 100, 110, 0.5);
}

html[data-theme="light"] .apartmentCard--sold {
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.98), rgba(252, 228, 230, 0.95));
  border-color: rgba(200, 72, 82, 0.42);
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .apartmentThumb {
  background: var(--card);
  border-color: var(--border-ui-soft);
}

html[data-theme="light"] .apartmentOpen {
  margin-top: 10px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-ui-mid);
  background: rgba(22, 24, 32, 0.75);
  font-size: 12px;
  font-family: var(--font-avant-alt);
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.apartmentIndex {
  font-size: 13px;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.apartmentIndex--onMedia {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.apartmentCard > .apartmentCard__media {
  min-height: 0;
  align-self: stretch;
}

.apartmentCard__media {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  border: 1px solid var(--border-ui-soft);
  background: rgba(18, 20, 26, 0.92);
  overflow: hidden;
}

.apartmentCard__media .apartmentThumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border: none;
  border-radius: 0;
  background: transparent;
}

.apartmentCard__media .availableUnitCard__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: auto;
  margin: 0;
  justify-content: flex-end;
  gap: 6px;
}

.apartmentThumb {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--border-ui-soft);
  background: rgba(18, 20, 26, 0.92);
}

.apartmentThumb--deferred {
  object-fit: contain;
}

.apartmentTitle {
  font-size: clamp(12px, 2.1vw, 16px);
  font-weight: 700;
  font-family: var(--font-display-sp);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  min-height: 0;
  padding-bottom: 2px;
  margin-top: 2px;
  word-break: break-word;
  white-space: pre-line;
  align-self: stretch;
}

.apartmentCard--compact .availableUnitCard__actions {
  justify-content: flex-end;
  width: 100%;
  margin-top: 0;
}

.apartmentOpen {
  margin-top: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-ui-mid);
  background: rgba(22, 24, 32, 0.75);
  font-size: 12px;
  font-family: var(--font-avant-alt);
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.apartmentsEmpty {
  padding: 10px;
  color: var(--text-muted);
}

.apartmentsEmpty.apartmentsEmpty--favoritesFilter {
  font-family: "Avazam", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
}

/* ——— ვიდეო გალერეა (იგივე სვეტები/პანელები რაც გასაყიდი ბინები) ——— */
.videoGalleryPage .apartmentsHeader .apartmentsFilters,
.videoGalleryPage .apartmentsHeader .apartmentsSearchWrap {
  display: none;
}

/* გვერდის სათაური: ლათინური, Avazam, bold, ასო-სივრცეები */
.videoGalleryPage .apartmentsHeader h1.videoGalleryPageTitle {
  font-family: "Avazam", var(--font-display);
  font-weight: 700;
  letter-spacing: 0.07em;
  word-spacing: 0.06em;
}

.videoGalleryCard {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-ui-mid);
  background: rgba(32, 34, 42, 0.72);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  box-sizing: border-box;
}

html[data-theme="light"] .videoGalleryCard {
  background: var(--card);
  border-color: var(--border-ui-mid);
  box-shadow: var(--shadow-card);
}

.videoGalleryIndex {
  font-size: 13px;
  font-family: var(--font-avant);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.videoEmbedShell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-ui-soft);
  background: #0a0c10;
}

.videoEmbedShell .videoIframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.videoEmbedShell .videoPoster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity 0.22s ease;
}

.videoEmbedShell.is-playing .videoPoster {
  opacity: 0;
  visibility: hidden;
}

.videoEmbedShell.is-playing .videoIframe {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.videoGalleryMeta {
  margin-top: 4px;
  min-width: 0;
}

.videoGalleryMetaTitle {
  margin: 0;
  font-size: clamp(12px, 2.1vw, 16px);
  font-weight: 400;
  font-family: var(--font-display-sp);
  line-height: 1.45;
  letter-spacing: 0.07em;
  word-spacing: 0.06em;
  font-kerning: normal;
  color: var(--text);
}

/* საშუალო სიგანე: 2×2 პანელი — ბარათი თითქმის ორჯერ უფრო ფართე, გეგმა იკითხება */
@media (min-width: 901px) and (max-width: 1249px) {
  .apartmentsColumns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 1250px) {
  .apartmentsColumns {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .apartmentsColumns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .apartmentsColumns {
    grid-template-columns: 1fr;
  }
}

/* ——— გვერდის სრული ჩატვირთვის ინდიკატორი ——— */
.pageLoadOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(8, 10, 18, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  pointer-events: auto;
}

.pageLoadOverlay--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-theme="light"] .pageLoadOverlay {
  background: rgba(246, 248, 252, 0.55);
}

.pageLoadSpinner {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 15px solid rgba(255, 255, 255, 0.4);
  border-top-color: rgba(18, 24, 38, 0.92);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06) inset,
    0 8px 40px rgba(0, 0, 0, 0.2);
  animation: pageLoadSpin 0.78s linear infinite;
}

html[data-theme="light"] .pageLoadSpinner {
  border-color: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(26, 34, 52, 0.9);
  box-shadow:
    0 0 0 2px rgba(30, 40, 60, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.08);
}

@keyframes pageLoadSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pageLoadSpinner {
    animation-duration: 1.8s;
  }
}

@media (max-width: 520px) {
  .pageLoadSpinner {
    width: min(240px, 52vw);
    height: min(240px, 52vw);
    border-width: 10px;
  }
}
/* თემის ღილაკები — flat პროექტის თეთრ პანელთან ერთად წაკითხვადობა */
body:has(#objectTourLayout.is-flat-project-open) .themeSwitchBtn,
body:has(#tourLayout.is-flat-project-open) .themeSwitchBtn {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] body:has(#objectTourLayout.is-flat-project-open) .themeSwitchBtn,
html[data-theme="light"] body:has(#tourLayout.is-flat-project-open) .themeSwitchBtn {
  border-color: rgba(30, 40, 60, 0.32);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ვირტუალური „უსასრულო“ კურსორი (Pointer Lock) — initViewportCursorInfiniteWrap main.js */
html.siteInfiniteCursor--active,
html.siteInfiniteCursor--active body {
  cursor: none !important;
}

.siteInfiniteCursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483646;
  pointer-events: none;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 14px solid rgba(15, 20, 35, 0.92);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.65));
  transform: translate(0, 0);
  margin: -2px 0 0 -2px;
}

html[data-theme="light"] .siteInfiniteCursor {
  border-bottom-color: rgba(25, 30, 45, 0.88);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.45));
}

.siteInfiniteCursorHint {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483647;
  max-width: min(92vw, 420px);
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(12, 14, 22, 0.88);
  color: #f2f4f8;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
/* tour360-patch: mobile-fullscreen-fab-off — გლობალური FAB გამორთული; გეგმის პოპაპის სრული ეკრანი ხილულია */
#mobilePageFullscreenBtn,
.mobilePageFullscreenFab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* tour360-patch: fullscreen-ui-off — მხოლოდ გლობალური FAB; გეგმის მოდალის #planImageModalFullscreen ცალკე რჩება ხილული */
#mobilePageFullscreenBtn,
.mobilePageFullscreenFab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* დროებით: გასაყიდის გვერდით ვიწრო ღილაკების პანელი გამორთული */
#panoAvailableActionsStrip {
  display: none !important;
}

/* დროებით: 3D ბინის გეგმის ფანჯარა გამორთული */
#panoFlatProjectWrap {
  display: none !important;
}

/* გასაყიდი პანელი: სიმაღლე −4.5cm მხოლოდ ბინის არჩევისას (#tourLayout.is-detail-open) */
#tour #tourLayout.is-detail-open:not(.is-unit-side-open) .unitPanelAvailable {
  height: calc(
    var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap) - var(--pano-available-detail-shrink)
  );
  max-height: calc(
    var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap) - var(--pano-available-detail-shrink)
  );
}

#tour #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .unitPanelAvailable {
  height: calc(
    var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap) - var(--pano-available-detail-shrink)
  );
  max-height: calc(
    var(--viewer-iframe-height) * 2 + var(--viewer-stack-gap) - var(--pano-available-detail-shrink)
  );
}

@media (max-width: 860px) {
  #tour
    #tourLayout.is-panel-open.is-unit-side-open.is-detail-open
    .unitPanelAvailable,
  #tour
    #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open
    .unitPanelAvailable,
  #tour #tourLayout.is-detail-open:not(.is-unit-side-open) .unitPanelAvailable {
    height: calc(var(--viewer-iframe-height) - var(--pano-available-detail-shrink));
    max-height: calc(var(--viewer-iframe-height) - var(--pano-available-detail-shrink));
  }
}

/* ჰორიზონტალური მობილური (ვიწრო): orientation ან aspect-ratio ფოლბექი (4/3 — კვადრატზე არ გავუშვათ) */
@media (max-width: 860px) and (orientation: landscape),
  (max-width: 860px) and (max-height: 520px) and (min-aspect-ratio: 4/3) {
  /*
   * სურათების გალერეა — მარჯვნივ +1 სმ: პირდაპირ <a>-ზე !important (zoom + მშობლის transform-სთან).
   */
  #hero .heroPrimaryLinks {
    margin-left: calc(-20px + env(safe-area-inset-left, 0px));
    transform: translateX(calc(1cm + 50mm - 10mm));
  }

  #hero .heroPrimaryLinks > .quickTourBtnWrap.quickTourBtnWrap--gallery {
    transform: translateX(1cm) !important;
  }

  #hero .heroPrimaryLinks > .quickTourBtnWrap.quickTourBtnWrap--gallery:hover {
    transform: translateX(1cm) scale(1.08) !important;
  }

  #hero .heroPrimaryLinks .quickTourBtnPlanImg.quickTourBtnPlanImg--gallery {
    transform: scale(calc(1.41372 * 3 * 1.2));
    transform-origin: center center;
  }

  #hero .heroVideoCenter .quickTourBtnPlanImg.quickTourBtnPlanImg--gallery.quickTourBtnPlanImg--heroFloorPlan {
    transform: scale(calc(3 * 1.2 * 1.5 * 1.15));
    transform-origin: center center;
  }

  /* landscape mobile: დამატებით +20% მხოლოდ ამ ორ ღილაკზე (სართულის გეგმა + გასაყიდი ბინები) */
  #hero .heroVideoCenter .quickTourBtnPlanImg.quickTourBtnPlanImg--gallery.quickTourBtnPlanImg--heroFloorPlan {
    transform: scale(calc(3 * 1.2 * 1.5 * 1.15)) !important;
  }

  #hero .heroQuickLinks .quickTourBtnPlanImg {
    transform: scale(calc(3 * 1.2 * 1.2)) !important;
    transform-origin: center center;
  }

  #hero .heroActions {
    margin-top: calc(2cm - 3mm) !important;
  }

  /* სართულის გეგმის ფანჯარა — ჰორიზონტალურ მობილურზე (იხ. ზემოთ max-aspect 1/1 ბლოკიც) სიგანე ×4×0.7³ */
  #tour .tourFasadisFanjaraPair {
    overflow-x: visible;
  }

  #tour .tourGegmisFanjara {
    width: calc(100% * 4 * 0.7 * 0.7 * 0.7);
    max-width: min(calc((100vw - 32px) * 4 * 0.7 * 0.7 * 0.7), calc(400% * 0.7 * 0.7 * 0.7));
    box-sizing: border-box;
    align-self: center;
    margin-left: 4cm;
  }

  #objectTourLayout:not(.is-detail-open) .unitPanelAvailable,
  #objectTourLayout.is-panel-open:not(.is-detail-open) .unitPanelAvailable,
  #objectTourLayout.is-panel-open.is-flat-project-open:not(.is-detail-open) .unitPanelAvailable {
    width: calc(var(--object-available-panel-width) * 2);
    max-width: calc(var(--object-available-panel-width) * 2);
  }

  #tourLayout:not(.is-detail-open) .unitPanelAvailable,
  #tourLayout.is-panel-open:not(.is-detail-open) .unitPanelAvailable,
  #tourLayout.is-panel-open.is-unit-side-open:not(.is-detail-open) .unitPanelAvailable,
  #tourLayout.is-panel-open.is-flat-project-open:not(.is-detail-open) .unitPanelAvailable,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open:not(.is-detail-open)
    .unitPanelAvailable {
    width: calc(var(--pano-available-panel-width) * 2);
    max-width: calc(var(--pano-available-panel-width) * 2);
    height: calc(var(--viewer-iframe-height) + 10cm);
    max-height: calc(var(--viewer-iframe-height) + 10cm);
  }

  #objectTourLayout:not(.is-detail-open) #objectAvailableList.favoritesList,
  #tourLayout:not(.is-detail-open) #panoAvailableList.favoritesList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #objectTourLayout:not(.is-detail-open) #objectAvailableList li.availableUnitsEmptyMsg,
  #tourLayout:not(.is-detail-open) #panoAvailableList li.availableUnitsEmptyMsg {
    grid-column: 1 / -1;
  }

  #objectTourLayout.is-panel-open.is-detail-open .unitPanelAvailable,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open .unitPanelAvailable,
  #tour #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .unitPanelAvailable,
  #tour
    #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open
    .unitPanelAvailable,
  #tour #tourLayout.is-detail-open:not(.is-unit-side-open) .unitPanelAvailable {
    height: calc(var(--viewer-iframe-height) - var(--pano-available-detail-shrink) + 10cm);
    max-height: calc(var(--viewer-iframe-height) - var(--pano-available-detail-shrink) + 10cm);
  }
}

/*
 * ფართო ჰორიზონტალური ტელეფონები (viewport width > 860px): პირდაპირ ღილაკზე −96px+1cm (ბაზის -96px).
 */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 861px) and (max-width: 1400px),
  (min-width: 861px) and (max-width: 1400px) and (max-height: 560px) and (min-aspect-ratio: 4/3) {
  #hero .heroPrimaryLinks > .quickTourBtnWrap.quickTourBtnWrap--gallery {
    transform: translateX(calc(-96px + 1cm)) !important;
  }

  #hero .heroPrimaryLinks > .quickTourBtnWrap.quickTourBtnWrap--gallery:hover {
    transform: translateX(calc(-96px + 1cm)) scale(1.08) !important;
  }
}

/*
 * გეგმის ფანჯარა ჰორიზონტალურზე (~×2): ფაილის ბოლო — ბოლო პრიორიტეტი.
 * ზემოთ #panoFlatProjectWrap { display:none !important } — დავაბრუნებთ ხილში ღია გეგმისას;
 * max-width:860px ბევრ ტელეფონს ლანდშაფტში არ იჭერს — აქ max-width:1400px.
 * 690px = 300×1.15×2 (ბაზის პანელი).
 */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1400px) {
  #tourLayout.is-flat-project-open #panoFlatProjectWrap.flatProjectSlot {
    display: block !important;
  }

  #tourLayout #panoFlatProjectWrap,
  #tourLayout.is-flat-project-open:not(.is-panel-open) #panoFlatProjectWrap,
  #tourLayout.is-panel-open:not(.is-unit-side-open).is-flat-project-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap {
    width: min(690px, 100%) !important;
    max-width: min(690px, 100vw) !important;
    box-sizing: border-box !important;
  }

  #objectTourLayout #objectFlatProjectWrap,
  #objectTourLayout.is-flat-project-open:not(.is-panel-open) #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-detail-open #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectFlatProjectWrap {
    width: min(690px, 100%) !important;
    max-width: min(690px, 100vw) !important;
    box-sizing: border-box !important;
  }
}

/*
 * მობილური ლანდშაფტი (≤860px): „3D ბინის გეგმა“ (#panoFlatProjectWrap / #objectFlatProjectWrap) — სრულად დამალული.
 * ფაილის ბოლოშია, რომ გადააჭარბოს ზემოთ landscape (max-width:1400px) display:block !important-ს.
 */
@media (max-width: 860px) and (orientation: landscape),
  (max-width: 860px) and (max-height: 520px) and (min-aspect-ratio: 4/3) {
  #tourLayout #panoFlatProjectWrap,
  #tourLayout.is-flat-project-open #panoFlatProjectWrap.flatProjectSlot,
  #tourLayout.is-flat-project-open:not(.is-panel-open) #panoFlatProjectWrap,
  #tourLayout.is-panel-open:not(.is-unit-side-open).is-flat-project-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoFlatProjectWrap,
  #objectTourLayout #objectFlatProjectWrap,
  #objectTourLayout.is-flat-project-open #objectFlatProjectWrap,
  #objectTourLayout.is-flat-project-open:not(.is-panel-open) #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-detail-open #objectFlatProjectWrap,
  #objectTourLayout.is-panel-open.is-flat-project-open.is-detail-open #objectFlatProjectWrap {
    display: none !important;
  }

  /*
   * Pano2VR (#tourLayout) მთავარი viewer + ბინის ქვედა ფანჯარა (#panoUnitLinkWrap) — იგივე სიგანე/ცენტრი.
   * iframe სიმაღლე უკვე იგივეა (max-width 860: --tour-main-viewer-iframe-height).
   */
  #tourLayout .viewerFrameMain,
  #tourLayout.is-panel-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-flat-project-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open .viewerFrameMain,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open .viewerFrameMain {
    width: 80%;
    max-width: 100%;
    justify-self: center;
    box-sizing: border-box;
  }

  #tourLayout #panoUnitLinkWrap,
  #tourLayout.is-panel-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-flat-project-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-flat-project-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-flat-project-open.is-detail-open #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-detail-open:not(.is-flat-project-open) #panoUnitLinkWrap,
  #tourLayout.is-panel-open.is-unit-side-open.is-detail-open:not(.is-flat-project-open) #panoUnitLinkWrap {
    width: 80%;
    max-width: 100%;
    justify-self: center;
    box-sizing: border-box;
  }
}

/*
 * მობილური: body background-attachment:fixed ხშირად იწვევს viewport/URL bar/GPU კომპოზიტის მოკლე გადახატვას —
 * ერთი-ორი კადრი მთელი ეკრანი მუქად/„შავად“ (ძირითადად var(--bg)), WebGL iframe-ების თეთრი კი ხშიდად იგივე მომენტის WebGL context loss-ის შედეგია.
 */
@media (max-width: 860px) {
  body {
    background-attachment: scroll;
  }
}

/*
 * ფასადის ფანჯარა: მხოლოდ ვერტიკალურ მობილურზე (iPhone ჩათვლით) 15%-ით დაპატარავებული.
 * orientation fallback: max-aspect-ratio: 1/1.
 */
@media (max-width: 860px) and (orientation: portrait),
  (max-width: 860px) and (max-aspect-ratio: 1/1) {
  #tour .tourFasadisFanjara {
    width: 85%;
    max-width: 85%;
    height: calc(var(--tour-fasadis-fanjara-h) * 0.85);
    align-self: center;
  }
}
