/* Share the approved graphite glass styling with the 3 Mõõdu tn tour. */
@import url('/demo/3-moodu-tn/overlay-glass.css?v=20260924-1');

.tour-page .property-info {
  display: flex;
  gap: 0;
  border: 1px solid rgba(221, 231, 238, .3);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(72, 81, 90, .64), rgba(28, 35, 42, .72));
  -webkit-backdrop-filter: blur(20px) saturate(.7);
  backdrop-filter: blur(20px) saturate(.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 34px rgba(0, 0, 0, .24);
  color: #f5f7f8;
}
.tour-page .property-info > div {
  flex: 1 1 0;
  padding: 15px 22px;
  border-right-color: rgba(230, 238, 242, .15);
}
.tour-page .property-info span {
  margin-bottom: 5px;
  color: #d2d8dd;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tour-page .property-info strong {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -.025em;
}
.tour-page .property-info .availability { color: #c5e7d3; }
.tour-page .related-panel {
  width: min(400px, calc(100% - 36px));
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(221, 231, 238, .38) transparent;
}
@media (max-width: 1024px) {
  .tour-page .related-panel {
    width: auto;
    max-height: min(60dvh, calc(100dvh - 160px));
  }
}
@media (max-width: 680px) {
  .tour-page .property-info > div { padding: 12px 16px; }
  .tour-page .property-info span { font-size: 9px; }
  .tour-page .property-info strong { font-size: 19px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tour-page .property-info { background: rgba(40, 48, 56, .95); }
}

/* Compact top-left property identity; price and availability stay data-driven. */
.villa-summary {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 12px;
  display: grid;
  grid-template-areas: "title offer" "location location";
  grid-template-columns: minmax(115px, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  width: 398px;
  max-width: calc(100% - 24px);
  padding: 10px 12px;
  border: 1px solid rgba(221, 231, 238, .3);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(60, 69, 78, .84), rgba(28, 35, 42, .85));
  -webkit-backdrop-filter: blur(20px) saturate(.7);
  backdrop-filter: blur(20px) saturate(.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.2);
  color: #f5f7f8;
}
.villa-title {
  grid-area: title;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.villa-summary .property-info {
  grid-area: offer;
  position: static;
  transform: none;
  width: 210px;
  max-width: none;
  border-radius: 6px;
  background: rgba(218,228,235,.16);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.villa-summary .property-info > div { padding: 7px 10px; }
.villa-summary .property-info span {
  margin-bottom: 3px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .08em;
}
.villa-summary .property-info strong { font-size: 14px; line-height: 1.2; }
.villa-location { grid-area: location; display: flex; gap: 7px; }
.villa-location > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(230,238,242,.18);
  border-radius: 5px;
  background: rgba(218,228,235,.16);
  color: #dce2e7;
  font-size: 11px;
  line-height: 1.2;
}
.villa-location strong { color: #f5f7f8; font-weight: 600; }
@media (max-width: 430px) {
  .villa-summary {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    padding: 9px 10px;
  }
  .villa-title { font-size: 17px; }
  .villa-summary .property-info { width: 196px; }
  .villa-summary .property-info > div { padding: 7px 8px; }
}
@media (max-width: 350px) {
  .villa-summary { column-gap: 7px; }
  .villa-title { font-size: 15px; }
  .villa-summary .property-info { width: 176px; }
  .villa-summary .property-info strong { font-size: 13px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .villa-summary { background: rgba(40,48,56,.97); }
}

/* Minimize to a permanent restore bar; never dismiss this tour's offers. */
.tour-page .related-panel.is-minimized {
  width: min(320px, calc(100% - 36px));
  left: auto;
  right: 18px;
  bottom: 18px;
  max-height: none;
  overflow: hidden;
}
.tour-page .related-panel.is-minimized .related-list,
.tour-page .related-panel.is-minimized .related-controls,
.tour-page .related-panel.is-minimized .related-head > div { display: none; }
.tour-page .related-panel.is-minimized .related-head { padding: 0; border: 0; }
.tour-page .related-panel.is-minimized [data-toggle-related] {
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 46px;
  padding: 12px 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.tour-page .related-panel [data-toggle-related]:hover { background: rgba(223,233,239,.16); }
.tour-page .related-panel.is-minimized [data-toggle-related]:focus-visible { outline-offset: -4px; }
@media (max-width: 1024px) {
  .tour-page .related-panel.is-minimized {
    width: min(320px, calc(100% - 16px));
    right: 8px;
    bottom: 8px;
  }
}

/* Reserve space outside the cross-origin tour so every native control remains reachable. */
@media (max-width:1024px), (pointer:coarse) and (max-width:1366px) {
  .tour-page {
    --villa-header-space:calc(92px + env(safe-area-inset-top));
    --villa-footer-space:calc(48px + env(safe-area-inset-bottom));
    background:#222c35;
  }
  .tour-page #tour-engine {
    position:fixed;
    top:var(--villa-header-space);
    right:0;
    bottom:var(--villa-footer-space);
    left:0;
    width:100%;
    height:calc(100% - var(--villa-header-space) - var(--villa-footer-space));
    height:calc(100dvh - var(--villa-header-space) - var(--villa-footer-space));
    border:0;
  }
  .villa-summary {
    top:calc(6px + env(safe-area-inset-top));
    left:6px;
    width:calc(100% - 12px);
    max-width:none;
    height:80px;
    padding:6px 9px;
    grid-template-areas:"title offer" "location location";
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:40px 22px;
    gap:4px 8px;
    box-sizing:border-box;
  }
  .villa-title { font-size:16px; }
  .villa-summary .property-info { width:190px; }
  .villa-summary .property-info > div { padding:5px 8px; }
  .villa-summary .property-info span { font-size:8px; margin-bottom:2px; }
  .villa-summary .property-info strong { font-size:15px; line-height:1.2; }
  .villa-location { gap:6px; }
  .villa-location > span { min-height:22px; padding:3px 7px; font-size:11px; }
  .tour-page .related-panel {
    top:auto;
    left:6px;
    right:6px;
    bottom:var(--villa-footer-space);
    width:calc(100% - 12px);
    max-height:calc(100dvh - var(--villa-header-space) - var(--villa-footer-space) - 8px);
  }
  .tour-page .related-panel.is-minimized {
    top:auto;
    left:6px;
    right:6px;
    bottom:calc(4px + env(safe-area-inset-bottom));
    width:calc(100% - 12px);
    height:40px;
    max-height:40px;
    box-sizing:border-box;
  }
  .tour-page .related-panel.is-minimized [data-toggle-related] {
    display:block;
    min-height:38px;
    height:38px;
    padding:8px 12px;
    font-size:13px;
    line-height:20px;
    white-space:nowrap;
  }
  @media (max-width:350px) {
    .villa-title { font-size:14px; }
    .villa-summary .property-info { width:170px; }
    .villa-summary .property-info strong { font-size:14px; }
  }
  @media (max-height:500px) and (min-width:600px) {
    .tour-page { --villa-header-space:calc(62px + env(safe-area-inset-top)); }
    .villa-summary {
      height:50px;
      grid-template-areas:"title location offer";
      grid-template-columns:auto 1fr auto;
      grid-template-rows:36px;
      column-gap:16px;
    }
    .villa-location { justify-content:center; }
  }
}

/* Keep the native tour title; use a single compact information row above it. */
@media (max-width:1024px), (pointer:coarse) and (max-width:1366px) {
  .tour-page { --villa-header-space:calc(68px + env(safe-area-inset-top)); }
  .villa-summary {
    height:56px;
    grid-template-areas:"location offer";
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:42px;
    gap:0 8px;
  }
  .villa-title { display:none; }
  .villa-location { flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; }
  .villa-location > span { min-height:18px; padding:2px 5px; font-size:11px; white-space:nowrap; }
  @media (min-width:600px) {
    .villa-location { flex-direction:row; align-items:center; justify-content:flex-start; gap:6px; }
    .villa-location > span { font-size:11px; padding:4px 8px; }
  }
}

/* Leave the native music and thumbnail controls clear on desktop. */
@media (min-width: 1025px) and (pointer: fine), (min-width: 1367px) {
  .tour-page .related-panel,
  .tour-page .related-panel.is-minimized {
    right: 110px;
  }
}