/* Reset and basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body,
html {
  height: 100%;
}


/* ────────────────────────────────────────
   Background
──────────────────────────────────────── */

body {
  background-image: url('images/back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  flex-direction: column;

  min-height: 100vh;
  color: #fff;
}


/* Overlay to darken background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0);
  z-index: -1;
}


/* ────────────────────────────────────────
   Header
──────────────────────────────────────── */

header {
  text-align: center;
  padding: 50px 20px 20px 20px;

  font-size: 2.5em;
  font-weight: bold;

  text-shadow: 2px 2px 5px #000000;
}


/* ────────────────────────────────────────
   Main
──────────────────────────────────────── */

main {
  flex: 1;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;
}


/* ────────────────────────────────────────
   Calculator
──────────────────────────────────────── */

.calculator {
  background: rgba(255, 255, 255, 0.9);
  color: #888888;

  padding: 30px;

  border-radius: 15px;

  max-width: 420px;
  width: 100%;

  margin: 0 auto;

  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}


.calculator input,
.calculator select,
.calculator button,
.result {
  width: 100%;

  padding: 10px;
  margin: 10px 0;

  font-size: 1em;

  border-radius: 5px;
  border: none;

  color: #888888;
}


.calculator button {
  background-color: #979695;
  color: #fff;

  border: none;

  cursor: pointer;
  font-weight: bold;
}


.calculator button:hover {
  background-color: #e68900;
}


.calculator input {
  font-family: 'Rubik', Arial, sans-serif;
  color: #000;
}


.calculator select {
  background-color: #fff !important;
  color: #888888;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}


/* Results */

.result {
  margin-top: 15px;

  font-size: 1.2em;
  font-weight: bold;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 10px;

  text-align: center;
}


#gelAmount,
#usdAmount {
  font-size: 1.3em;
}


/* Remove arrows in number inputs */

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


input[type="number"] {
  -moz-appearance: textfield;
}


/* Input units */

.input-with-unit {
  position: relative;
}


.input-with-unit input {
  padding-right: 40px !important;
}


.input-with-unit .unit {
  position: absolute;

  right: 10px;
  top: 50%;

  transform: translateY(-50%);

  color: #555;

  pointer-events: auto;
  z-index: 10;
}


.input-with-unit .unit a {
  text-decoration: none;
  cursor: pointer;
}


/* PDF links */

.pdf-link {
  display: block;

  text-align: center;

  margin: 15px 0 5px 0;

  text-decoration: none;
  font-weight: 500;

  color: #555;

  transition: 0.3s ease;

  font-size: 0.95em;
}


.pdf-link:hover {
  color: #e68900;
}


/* ────────────────────────────────────────
   Construction Icons
──────────────────────────────────────── */

.icon,
.icon2 {
  display: inline-block;

  animation: bounce 1s infinite alternate;

  margin: 0 10px;

  font-size: 1.2em;
}


.icon2 {
  animation-duration: 2s;
}


@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}


/* ────────────────────────────────────────
   Footer
──────────────────────────────────────── */

footer {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 10px;

  padding: 20px;

  background: rgba(0, 0, 0, 0.5);

  font-size: 1em;

  text-shadow: 1px 1px 3px #000;
}


/* ────────────────────────────────────────
   Floating Dots + Menu
──────────────────────────────────────── */

.floating-dots {

  display: none !important;
  position: fixed;

  bottom: 28px;
  right: 28px;

  z-index: 9999;

  width: 48px;
  height: 48px;

  cursor: pointer;

  touch-action: manipulation;
}


.dot {
  position: absolute;

  left: 50%;

  width: 10px;
  height: 10px;

  background: white;

  border-radius: 50%;

  transform: translateX(-50%);

  transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}


.dot-top {
  top: 4px;
}


.dot-middle {
  top: 19px;
}


.dot-bottom {
  top: 34px;
}


.floating-dots.active .dot-top {
  top: 19px;
  opacity: 0;
}


.floating-dots.active .dot-bottom {
  top: 19px;
  opacity: 0;
}


.floating-dots.active .dot-middle {
  top: 19px;

  width: 12px;
  height: 12px;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}


/* Menu */

.action-menu {
  position: absolute;

  bottom: 100%;
  right: 0;

  display: flex;
  flex-direction: column;

  gap: 16px;

  padding-bottom: 16px;

  pointer-events: none;

  opacity: 0;

  transform: translateY(20px);

  transition: all 0.4s ease-out;
}


.floating-dots.active .action-menu {
  pointer-events: auto;

  opacity: 1;

  transform: translateY(0);
}


/* Menu item */

.action-item {
  width: 56px;
  height: 56px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.92);
  color: #222;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.6rem;

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);

  text-decoration: none;

  transition: all 0.3s ease;

  transform: scale(0.6);

  opacity: 0;
}


.floating-dots.active .action-item {
  transform: scale(1);

  opacity: 1;
}


/* Staggered entrance */

.floating-dots.active .action-item:nth-child(1) {
  transition-delay: 0.06s;
}


.floating-dots.active .action-item:nth-child(2) {
  transition-delay: 0.12s;
}


.floating-dots.active .action-item:nth-child(3) {
  transition-delay: 0.18s;
}


.floating-dots.active .action-item:nth-child(4) {
  transition-delay: 0.24s;
}


.floating-dots.active .action-item:nth-child(5) {
  transition-delay: 0.30s;
}


.floating-dots.active .action-item:nth-child(6) {
  transition-delay: 0.30s;
}


/* Language button */

.action-item.lang-toggle-btn {
  font-size: 1.1rem;
  font-weight: 600;

  font-family: 'Rubik', sans-serif;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  background: rgba(255, 255, 255, 0.92);

  color: #222;
}


.action-item.lang-toggle-btn.active {
  background: #e68900;

  color: white;

  box-shadow: 0 4px 16px rgba(230, 137, 0, 0.4);
}


/* ────────────────────────────────────────
   Section Switching
──────────────────────────────────────── */

.page-content {
  padding: 1rem 1rem 140px;

  max-width: 1100px;

  margin: 0 auto;
}


.section {
  min-height: 60vh;

  padding: 1.5rem 1rem;
}


.section-hidden {
  display: none;
}


.section-visible {
  display: block;

  animation: fadeInSection 0.45s ease-out forwards;
}


@keyframes fadeInSection {
  from {
    opacity: 0;

    transform: translateY(15px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}


/* Search highlight */

.search-highlight {
  background-color: #fff3cd;

  padding: 1px 3px;

  border-radius: 3px;

  font-weight: 600;

  color: #333;
}


/* ────────────────────────────────────────
   INTRO VIDEO
──────────────────────────────────────── */

#video-intro {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  background: #000;

  overflow: hidden;

  z-index: 9999;
}


#intro-video {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}


/* ────────────────────────────────────────
   Welcome Text
──────────────────────────────────────── */

.welcome-text {
  position: absolute;

  top: 37%;
  left: 50%;

  width: 100%;
  height: 180px;

  transform: translate(-50%, -50%);

  z-index: 2;

  color: #fff;

  pointer-events: none;
}


/* Invisible center line */

.text-mask {
  position: absolute;

  left: 0;

  width: 100%;

  overflow: hidden;
}


/* Area above invisible line */

.top-mask {
  bottom: 50%;

  height: 90px;
}


/* Area below invisible line */

.bottom-mask {
  top: 50%;

  height: 90px;
}


/* Welcome to */

.welcome-top {
  position: absolute;

  bottom: 0;

  width: 100%;

  text-align: center;

  font-size: clamp(22px, 3vw, 42px);

  font-weight: 300;

  letter-spacing: 4px;

  transform: translateY(100%);

  animation: welcomeRise 1.2s ease-out 0.6s forwards;
}


/* Bamboo Beach */

.welcome-bottom {
  position: absolute;

  top: 0;

  width: 100%;

  text-align: center;

  font-size: clamp(42px, 7vw, 90px);

  font-weight: 600;

  letter-spacing: 5px;

  transform: translateY(-100%);

  animation: bambooDrop 1.2s ease-out 0.6s forwards;
}


/* Welcome animation */

@keyframes welcomeRise {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}


@keyframes bambooDrop {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}


/* ────────────────────────────────────────
   Guest / Owner Language Area
──────────────────────────────────────── */

.language-wave {
  position: absolute;

  top: calc(50% + 95px);
  left: 50%;

  transform: translateX(-50%);

  width: min(88%, 440px);

  height: 55px;

  text-align: center;

  overflow: hidden;

  opacity: 0;

  animation: showLanguageChoices 0.8s ease-out 1.8s forwards;

  z-index: 3;
}


.language {
  position: absolute;

  inset: 0;

  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  font-size: clamp(16px, 2vw, 24px);

  font-weight: 300;

  letter-spacing: 3px;

  white-space: nowrap;
}


/* Left choice */

.choice-left {
  text-align: right;

  padding-right: 22px;
}


/* Right choice */

.choice-right {
  text-align: left;

  padding-left: 22px;
}


/* Fixed divider */

.fixed-divider {
  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  font-size: clamp(16px, 2vw, 24px);

  font-weight: 300;

  opacity: 0.65;

  z-index: 10;
}


/* Make words clickable */

.language span {
  pointer-events: none;
}

/* ────────────────────────────────────────
   Guest / Owner Click Areas
──────────────────────────────────────── */

.role-hitbox {
  position: absolute;
  top: 0;

  width: 50%;
  height: 100%;

  border: 0;
  padding: 0;

  background: transparent;

  cursor: pointer;
  pointer-events: auto;

  z-index: 20;
}

.role-hitbox-left {
  left: 0;
}

.role-hitbox-right {
  right: 0;
}


/* Keep divider above everything */

.fixed-divider {
  pointer-events: none;
  z-index: 30;
}


/* ────────────────────────────────────────
   Intro Exit
──────────────────────────────────────── */

#video-intro {
  transition: opacity 0.7s ease;
}

#video-intro.leaving {
  opacity: 0;
  pointer-events: none;
}




/* ────────────────────────────────────────
   ENGLISH / GEORGIAN CIRCLE TRANSITION
──────────────────────────────────────── */

/*
  One circle moves down over the text and then back up.

  English = visible OUTSIDE the circle.
  Georgian = visible INSIDE the circle.

  Therefore:
  - circle above = English
  - circle comes down = English is physically erased as Georgian appears
  - circle stops over text = only Georgian
  - circle goes back up = Georgian disappears and English is revealed
*/


/* ────────────────────────────────────────
   GEORGIAN FIRST → ENGLISH CIRCLE REVEAL
──────────────────────────────────────── */

.english,
.georgian {
  -webkit-mask-size: 1400px 1400px;
  mask-size: 1400px 1400px;

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: 50% -1020px;
  mask-position: 50% -1020px;

  animation: circleMove 10s ease-in-out 3.5s infinite;
  -webkit-animation: circleMove 10s ease-in-out 3.5s infinite;

  will-change: mask-position, -webkit-mask-position;

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  transform: translateZ(0);
}


/* GEORGIAN — visible OUTSIDE the circle */
.georgian {
  z-index: 1;

  -webkit-mask-image:
    radial-gradient(
      circle 320px at 50% 50%,
      transparent 0 320px,
      #000 320px
    );

  mask-image:
    radial-gradient(
      circle 320px at 50% 50%,
      transparent 0 320px,
      #000 320px
    );
}


/* ENGLISH — visible INSIDE the circle */
.english {
  z-index: 2;

  -webkit-mask-image:
    radial-gradient(
      circle 320px at 50% 50%,
      #000 0 320px,
      transparent 320px
    );

  mask-image:
    radial-gradient(
      circle 320px at 50% 50%,
      #000 0 320px,
      transparent 320px
    );
}


@keyframes circleMove {

  /* Georgian */
  0%,
  30% {
    mask-position: 50% -1020px;
  }

  /* English */
  50%,
  70% {
    mask-position: 50% -672px;
  }

  /* Georgian again */
  90%,
  100% {
    mask-position: 50% -1020px;
  }
}


@-webkit-keyframes circleMove {

  0%,
  30% {
    -webkit-mask-position: 50% -1020px;
  }

  50%,
  70% {
    -webkit-mask-position: 50% -672px;
  }

  90%,
  100% {
    -webkit-mask-position: 50% -1020px;
  }
}


@keyframes showLanguageChoices {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 480px) {

  header {
    font-size: 2em;
    padding: 30px 10px 10px 10px;
  }

  .calculator {
    padding: 20px;
  }

  .floating-dots {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .dot {
    width: 9px;
    height: 9px;
  }

  .dot-top {
    top: 3px;
  }

  .dot-middle {
    top: 16px;
  }

  .dot-bottom {
    top: 29px;
  }

  .floating-dots.active .dot-middle {
    width: 10px;
    height: 10px;
  }

  .action-menu {
    gap: 12px;
    padding-bottom: 12px;
  }

  .action-item {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
}


/* ────────────────────────────────────────
   GUEST TOUR
──────────────────────────────────────── */

#guest-tour {
  position: fixed;
  inset: 0;

  display: none;

  width: 100%;
  height: 100%;

  overflow-y: auto;

  z-index: 8000;

  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;

  background: #f8f4e8;

  color: #173c44;

  
  
  overscroll-behavior: none;
  touch-action: pan-x;
}

#guest-tour.active {
  display: block;
}


/* Individual tour screens */

.tour-section {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8vw;

  scroll-snap-align: start;

  overflow: hidden;
}


/* Different temporary backgrounds */

/* ========================================
   GUEST HERO
======================================== */

.tour-hero {
  position: relative;

  background: #111;

  color: white;

  overflow: hidden;
}


/* ========================================
   SLOW MOVING HERO GALLERY
======================================== */

.hero-images {
  position: absolute;
  inset: 0;

  overflow: hidden;
}


/* All hero photos */

.hero-image {
  position: absolute;
  inset: -3%;

  background-size: cover;
  background-position: center;

  opacity: 0;

  animation:
    heroCrossfade 32s linear infinite,
    heroMovement 40s ease-in-out infinite;

  will-change: opacity, transform;
}


/* Photos */

.hero-image-1 {
  background-image: url('images/guest/hero-1.jpg');

  animation-delay:
    0s,
    0s;
}


.hero-image-2 {
  background-image: url('images/guest/hero-2.jpg');

  animation-delay:
    -24s,
    -10s;
}


.hero-image-3 {
  background-image: url('images/guest/hero-3.jpg');

  animation-delay:
    -16s,
    -20s;
}


.hero-image-4 {
  background-image: url('images/guest/hero-4.jpg');

  animation-delay:
    -8s,
    -30s;
}


/* ========================================
   VERY SLOW CROSSFADE
======================================== */

@keyframes heroCrossfade {

  /* Image fully visible */
  0% {
    opacity: 1;
  }

  18% {
    opacity: 1;
  }


  /* Slowly dissolve into next image */
  25% {
    opacity: 0;
  }


  /* Stay hidden while other images play */
  93% {
    opacity: 0;
  }


  /* Start appearing again */
  100% {
    opacity: 1;
  }
}


/* ========================================
   CONSTANT SUBTLE MOVEMENT
======================================== */

@keyframes heroMovement {

  0% {
    transform:
      scale(1.05)
      translate3d(0, 0, 0);
  }


  25% {
    transform:
      scale(1.09)
      translate3d(-1%, -0.5%, 0);
  }


  50% {
    transform:
      scale(1.07)
      translate3d(1%, -1%, 0);
  }


  75% {
    transform:
      scale(1.10)
      translate3d(0.5%, 0.5%, 0);
  }


  100% {
    transform:
      scale(1.05)
      translate3d(0, 0, 0);
  }
}


.hero-shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.08) 15%,
      rgba(0,0,0,0.15) 50%,
      rgba(0,0,0,0.55) 100%
    );
}


.hero-content {
  position: relative;

  z-index: 2;

  align-self: flex-end;

  padding-bottom: 12vh;
}


.hero-eyebrow {
  margin-bottom: 18px;

  font-size: clamp(13px, 1.5vw, 18px);

  font-weight: 400;

  letter-spacing: 4px;

  text-transform: uppercase;
}


.hero-title {
  font-size:
    clamp(58px, 10vw, 145px) !important;

  line-height: 0.9 !important;

  letter-spacing: -3px;

  font-weight: 500 !important;
}


.hero-description {
  max-width: 560px;

  margin-top: 28px;

  font-size: clamp(17px, 2vw, 24px);

  line-height: 1.45;

  font-weight: 300;
}


.hero-bottom {
  position: absolute;

  left: 50%;
  bottom: 28px;

  transform: translateX(-50%);

  z-index: 3;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 5px;
}


.hero-explore {
  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 4px;
}


.hero-arrow {
  font-size: 24px;

  animation:
    heroArrow 1.8s ease-in-out infinite;
}


@keyframes heroArrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }

}


.tour-entertainment {
  background:
    linear-gradient(
      145deg,
      #ffe19b,
      #ffb978
    );
}


.tour-apartments {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #d9f0ed
    );
}


.tour-around {
  background:
    linear-gradient(
      145deg,
      #a8db9b,
      #e8f2c8
    );
}


.tour-weather {
  background:
    linear-gradient(
      145deg,
      #6ac8ef,
      #dff7ff
    );
}


.tour-reviews {
  background:
    linear-gradient(
      145deg,
      #ffeccf,
      #ffffff
    );
}


/* Main content */

.tour-content {
  width: min(100%, 1100px);

  margin: auto;
}


.tour-number {
  display: block;

  margin-bottom: 25px;

  font-size: 14px;
  font-weight: 600;

  letter-spacing: 4px;

  opacity: 0.55;
}


.tour-kicker {
  margin-bottom: 8px;

  font-size: clamp(16px, 2vw, 24px);

  letter-spacing: 4px;

  text-transform: uppercase;
}


.tour-content h1,
.tour-content h2 {
  max-width: 900px;

  font-size: clamp(48px, 8vw, 110px);

  line-height: 0.95;

  font-weight: 500;
}


.tour-description {
  max-width: 650px;

  margin-top: 30px;

  font-size: clamp(18px, 2vw, 28px);

  line-height: 1.5;
}


/* Scroll indicator */

.scroll-hint {
  position: absolute;

  left: 50%;
  bottom: 35px;

  transform: translateX(-50%);

  font-size: 30px;

  animation: guestScrollHint 1.5s ease-in-out infinite;
}


@keyframes guestScrollHint {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}


/* ────────────────────────────────────────
   OWNER TEMPORARY SCREEN
──────────────────────────────────────── */

#owner-placeholder {
  position: fixed;

  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  background: #f3eee5;

  color: #173c44;

  text-align: center;

  z-index: 8000;
}


#owner-placeholder.active {
  display: flex;
}


#owner-placeholder h1 {
  font-size: clamp(40px, 7vw, 90px);
}


/* ────────────────────────────────────────
   INTRO EXIT
──────────────────────────────────────── */

#video-intro {
  transition: opacity 0.8s ease;
}


#video-intro.leaving {
  opacity: 0;

  pointer-events: none;
}


/* ========================================
   ENTERTAINMENT PAGE
======================================== */

.tour-entertainment {
  position: relative;

  flex-direction: column;

  justify-content: space-between;

  padding:
    clamp(25px, 4vw, 60px)
    clamp(20px, 6vw, 90px)
    clamp(25px, 4vw, 50px);

  background:
    linear-gradient(
      180deg,
      #f6f1e7 0%,
      #f9f7f1 100%
    );

  color: #173c44;
}


/* ========================================
   UPPER DISPLAY
======================================== */

.ent-stage {
  width: min(100%, 1250px);

  min-height: 58vh;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(230px, 0.7fr)
    minmax(0, 1.6fr);

  gap: clamp(25px, 5vw, 80px);

  align-items: center;
}


/* TEXT */

.ent-stage-copy {
  position: relative;

  z-index: 5;
}


#ent-eyebrow {
  display: block;

  margin-bottom: 12px;

  font-size: 12px;

  font-weight: 600;

  letter-spacing: 4px;

  text-transform: uppercase;

  opacity: 0.55;
}


#ent-stage-title {
  font-size:
    clamp(35px, 5vw, 74px);

  line-height: 0.95;

  font-weight: 500;
}


#ent-stage-text {
  max-width: 400px;

  margin-top: 22px;

  font-size:
    clamp(15px, 1.5vw, 20px);

  line-height: 1.55;

  opacity: 0.75;
}



/* ========================================
   IMAGE COMPOSITION
======================================== */

.ent-gallery {
  position: relative;

  width: 100%;

  height:
    clamp(330px, 52vh, 570px);
}


/* Generic image area */

.ent-photo {
  position: absolute;

  overflow: hidden;

  background-color: #dedbd3;

  background-size: cover;

  background-position: center;

  border-radius: 4px;

  transition:
    opacity 0.6s ease,
    transform 0.8s ease;

  display: flex;

  align-items: center;

  justify-content: center;

  color: rgba(0,0,0,0.28);

  font-size: 11px;

  letter-spacing: 3px;
}


/* Main photograph */

.ent-photo-main {
  width: 62%;
  height: 78%;

  top: 0;
  right: 4%;
}


/* Smaller photograph */

.ent-photo-small {
  width: 34%;
  height: 42%;

  left: 0;
  bottom: 4%;
}


/* Wide photograph */

.ent-photo-wide {
  width: 45%;
  height: 30%;

  right: 0;
  bottom: 0;
}



/* ========================================
   CONTENT CHANGE ANIMATION
======================================== */

.ent-stage.is-changing
.ent-photo {
  opacity: 0;

  transform:
    translateY(15px)
    scale(0.98);
}


.ent-stage.is-changing
.ent-stage-copy {
  opacity: 0;

  transform:
    translateY(10px);
}


.ent-stage-copy {
  transition:
    opacity 0.35s ease,
    transform 0.45s ease;
}



/* ========================================
   ENTERTAINMENT HEADING
======================================== */

.ent-section-title {
  width: min(100%, 1250px);

  margin:
    5px auto 18px;

  text-align: center;

  font-size:
    clamp(20px, 2.3vw, 31px);

  font-weight: 400;

  letter-spacing: 5px;

  text-transform: uppercase;
}



/* ========================================
   SELECTOR ROW
======================================== */

.ent-selectors {
  width: min(100%, 1000px);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap:
    clamp(12px, 3vw, 45px);
}

.tour-entertainment.icons-resetting
.ent-selector {
  transition: none !important;
}


/* Selector button */

.ent-selector {
  appearance: none;

  border: 0;

  padding: 0;

  background: none;

  color: inherit;

  cursor: pointer;

  text-align: center;

  opacity: 0;

  transform:
    translateY(55px);

  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(.2,.8,.2,1);
}



/* Stagger */

.tour-entertainment.icons-ready
.ent-selector:nth-child(1) {
  transition-delay: 0.05s;
}

.tour-entertainment.icons-ready
.ent-selector:nth-child(2) {
  transition-delay: 0.15s;
}

.tour-entertainment.icons-ready
.ent-selector:nth-child(3) {
  transition-delay: 0.25s;
}

.tour-entertainment.icons-ready
.ent-selector:nth-child(4) {
  transition-delay: 0.35s;
}



/* Coming DOWN into section:
   objects rise upward */

.tour-entertainment.enter-up
.ent-selector {
  transform:
    translateY(55px);
}


/* Coming UP into section:
   objects descend */

.tour-entertainment.enter-down
.ent-selector {
  transform:
    translateY(-55px);
}



/* Final position */

.tour-entertainment.icons-ready
.ent-selector {
  opacity: 1;

  transform:
    translateY(0);
}



/* ========================================
   SELECTOR OBJECT
======================================== */

.ent-object {
  position: relative;

  width:
    clamp(90px, 11vw, 150px);

  aspect-ratio: 1 / 1;

  margin: 0 auto 12px;

  border-radius: 0;

  overflow: visible;
}


.ent-object-image {
  position: absolute;
  inset: 0;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  overflow: visible;
}


/* Temporary emoji */

.ent-fallback {
  font-size:
    clamp(42px, 6vw, 80px);
}



/* ========================================
   DESKTOP HOVER OVERLAY
======================================== */

.ent-hover {
  position: absolute;

  left: 50%;
  bottom: 8px;

  transform: translateX(-50%);

  padding: 7px 12px;

  border-radius: 999px;

  background: rgba(45, 55, 58, 0.72);

  color: white;

  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;

  opacity: 0;

  transition: opacity 0.35s ease;

  white-space: nowrap;
}


@media
(hover: hover)
and
(pointer: fine) {

  .ent-selector:hover
  .ent-hover {
    opacity: 1;
  }


  .ent-selector:hover
  .ent-object-image {
    transform:
      scale(1.06);
  }

}



/* ========================================
   SELECTED STATE
======================================== */

.ent-selector.active
.ent-object-image {
  transform:
    scale(1.07);
}


.ent-selector.active
.ent-label {
  opacity: 1;
}


.ent-selector.active
.ent-object::after {
  content: '';

  position: absolute;

  left: 25%;
  right: 25%;
  bottom: 2px;

  height: 2px;

  background:
    currentColor;
}



/* Labels */

.ent-label {
  font-size:
    clamp(11px, 1.2vw, 15px);

  letter-spacing: 2px;

  text-transform: uppercase;

  opacity: 0.55;

  transition:
    opacity 0.3s ease;
}



/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

  .tour-entertainment {
    padding:
      25px 18px 28px;
  }


  .ent-stage {
    min-height: 62vh;

    grid-template-columns: 1fr;

    gap: 18px;

    align-content: start;
  }


  .ent-stage-copy {
    padding-top: 12px;
  }


  #ent-stage-title {
    font-size:
      clamp(34px, 10vw, 52px);
  }


  #ent-stage-text {
    margin-top: 12px;

    font-size: 15px;
  }


  .ent-gallery {
    height:
      clamp(280px, 42vh, 400px);
  }


  .ent-section-title {
    margin:
      12px auto 15px;

    font-size:
      clamp(17px, 5vw, 23px);

    letter-spacing: 3px;
  }


  .ent-selectors {
    gap: 6px;
  }


  .ent-object {
    width:
      clamp(62px, 19vw, 90px);
  }


  .ent-fallback {
    font-size:
      clamp(35px, 11vw, 55px);
  }


  .ent-label {
    font-size: 10px;

    letter-spacing: 1px;
  }

}



.tour-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}


/* ========================================
   HOME BUTTON
======================================== */

#home-button {
  position: fixed;

  top:
    max(
      18px,
      env(safe-area-inset-top)
    );

  right: 22px;

  z-index: 9000;


  display: none;

  width: 46px;
  height: 46px;


  border:
    1px solid
    rgba(255,255,255,0.45);

  border-radius: 50%;


  background:
    rgba(110, 119, 118, 0.18);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);


  color: white;

  font-size: 25px;
  font-weight: 300;

  cursor: pointer;


  align-items: center;
  justify-content: center;


  transition:
    background 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}


#home-button.active {
  display: flex;
}


#home-button:hover {
  background:
    rgba(13, 141, 126, 0.534);

  transform:
    scale(1.06);
}


#home-button:active {
  transform:
    scale(0.95);
}




/* ========================================
   ENTERTAINMENT DETAIL OVERLAY
======================================== */

#ent-detail-overlay {
  position: fixed;

  inset: 0;

  z-index: 9500;

  display: none;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #f4efe5 0%,
      #faf8f3 100%
    );

  color: #173c44;
}


#ent-detail-overlay.active {
  display: block;
}


/* ========================================
   CLOSE
======================================== */

#ent-detail-close {
  position: absolute;

  top: 22px;
  right: 26px;

  z-index: 10;

  width: 46px;
  height: 46px;

  border: 1px solid rgba(23,60,68,0.2);
  border-radius: 50%;

  background:
    rgba(255,255,255,0.55);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #173c44;

  font-size: 30px;
  font-weight: 300;

  cursor: pointer;
}


/* ========================================
   DETAIL LAYOUT
======================================== */

.ent-detail-inner {
  width: min(1400px, 100%);

  min-height: 100vh;

  margin: 0 auto;

  padding:
    clamp(50px, 7vw, 100px)
    clamp(25px, 7vw, 110px);

  display: grid;

  grid-template-columns:
    minmax(250px, 0.75fr)
    minmax(0, 1.6fr);

  gap:
    clamp(35px, 6vw, 100px);

  align-items: center;
}


/* ========================================
   COPY
======================================== */

.ent-detail-copy {
  position: relative;

  z-index: 3;
}


#ent-detail-eyebrow {
  display: block;

  margin-bottom: 16px;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 4px;

  text-transform: uppercase;

  opacity: 0.55;
}


#ent-detail-title {
  font-size:
    clamp(48px, 7vw, 100px);

  line-height: 0.92;

  font-weight: 500;

  letter-spacing: -2px;
}


#ent-detail-text {
  max-width: 470px;

  margin-top: 30px;

  font-size:
    clamp(17px, 1.7vw, 22px);

  line-height: 1.6;

  opacity: 0.72;
}


/* ========================================
   BACK BUTTON
======================================== */

#ent-detail-back {
  margin-top: 40px;

  padding: 12px 0;

  border: 0;

  background: none;

  color: #173c44;

  font-size: 13px;

  letter-spacing: 2px;

  text-transform: uppercase;

  cursor: pointer;

  opacity: 0.65;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}


#ent-detail-back:hover {
  opacity: 1;

  transform:
    translateX(-5px);
}


/* ========================================
   DETAIL PHOTOS
======================================== */

.ent-detail-gallery {
  position: relative;

  width: 100%;

  height:
    clamp(430px, 72vh, 760px);
}


.ent-detail-photo {
  position: absolute;

  background-size: cover;
  background-position: center;

  border-radius: 5px;

  box-shadow:
    0 18px 45px
    rgba(0,0,0,0.12);

  opacity: 0;

  transform:
    translateY(18px);

  transition:
    opacity 0.55s ease,
    transform 0.7s ease;
}


/* Main */

.ent-detail-main {
  width: 68%;
  height: 76%;

  top: 0;
  right: 0;
}


/* Small */

.ent-detail-small {
  width: 37%;
  height: 42%;

  left: 0;
  bottom: 3%;
}


/* Wide */

.ent-detail-wide {
  width: 47%;
  height: 31%;

  right: 4%;
  bottom: 0;
}


/* ========================================
   ENTRANCE
======================================== */

#ent-detail-overlay.active
.ent-detail-photo {
  opacity: 1;

  transform:
    translateY(0);
}


#ent-detail-overlay.active
.ent-detail-photo:nth-child(2) {
  transition-delay: 0.08s;
}


#ent-detail-overlay.active
.ent-detail-photo:nth-child(3) {
  transition-delay: 0.16s;
}


/* ========================================
   MOBILE DETAIL
======================================== */

@media (max-width: 750px) {

  .ent-detail-inner {
    min-height: 100vh;

    padding:
      70px
      20px
      25px;

    grid-template-columns:
      1fr;

    gap: 20px;

    align-content: start;
  }


  #ent-detail-title {
    font-size:
      clamp(42px, 13vw, 64px);
  }


  #ent-detail-text {
    margin-top: 16px;

    font-size: 16px;
  }


  #ent-detail-back {
    margin-top: 18px;
  }


  .ent-detail-gallery {
    height:
      clamp(330px, 48vh, 480px);
  }


  #ent-detail-close {
    top: 16px;
    right: 16px;

    width: 42px;
    height: 42px;

    font-size: 27px;
  }

}


/* ========================================
   APARTMENTS PAGE
======================================== */

.tour-apartments {
  position: relative;

  flex-direction: column;

  justify-content: center;

  padding:
    clamp(25px, 4vw, 55px)
    clamp(18px, 5vw, 75px);

  background:
    linear-gradient(
      180deg,
      #f7f4ec 0%,
      #eef4f1 100%
    );

  color: #173c44;
}


/* ========================================
   APARTMENT DETAIL AMENITIES
======================================== */

.apt-detail-amenities {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 28px;
}


.apt-detail-amenity {
  padding:
    8px 12px;

  border:
    1px solid
    rgba(14,150,139,0.20);

  border-radius:
    999px;

  background:
    rgba(14,150,139,0.10);

  color:
    #173c44;

  font-size: 11px;

  letter-spacing:
    0.4px;
}

/* ========================================
   SHELL
======================================== */

.apt-shell {
  width: min(100%, 1400px);

  margin: 0 auto;
}


/* ========================================
   HEADING
======================================== */

.apt-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;

  margin-bottom:
    clamp(22px, 3vw, 38px);
}


.apt-heading-copy {
  max-width: 850px;
}


.apt-eyebrow {
  display: block;

  margin-bottom: 12px;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 4px;

  text-transform: uppercase;

  opacity: 0.55;
}


.apt-heading h2 {
  font-size:
    clamp(44px, 6.5vw, 92px);

  line-height: 0.92;

  font-weight: 500;

  letter-spacing: -2px;
}


.apt-intro {
  max-width: 650px;

  margin-top: 18px;

  font-size:
    clamp(15px, 1.5vw, 20px);

  line-height: 1.5;

  opacity: 0.7;
}


/* ========================================
   NAVIGATION
======================================== */

.apt-navigation {
  display: flex;

  gap: 10px;

  flex-shrink: 0;
}


.apt-navigation button {
  width: 48px;
  height: 48px;

  border:
    1px solid
    rgba(23,60,68,0.25);

  border-radius: 50%;

  background:
    rgba(255,255,255,0.55);

  color: #173c44;

  font-size: 21px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}


.apt-navigation button:hover {
  background: white;

  transform:
    scale(1.05);
}


.apt-navigation button:disabled {
  opacity: 0.25;

  cursor: default;

  transform: none;
}


/* ========================================
   VIEWPORT / TRACK
======================================== */

.apt-viewport {
  width: 100%;

  overflow: hidden;
}


.apt-track {
  display: flex;

  gap: 22px;

  transition:
    transform 0.55s
    cubic-bezier(.2,.8,.2,1);
}


/* ========================================
   CARD
======================================== */

.apt-card {
  flex:
    0 0
    calc(
      (100% - 44px) / 3
    );

  min-width: 0;

  overflow: hidden;

  border:
    1px solid
    rgba(23,60,68,0.08);

  border-radius: 5px;

  background:
    rgba(255,255,255,0.7);

  box-shadow:
    0 12px 35px
    rgba(32,55,55,0.08);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.apt-card:hover {
  transform:
    translateY(-5px);

  box-shadow:
    0 18px 45px
    rgba(32,55,55,0.13);
}


/* ========================================
   CARD PHOTO
======================================== */

.apt-card-photo {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background:
    #d8d8d3;

  background-size: cover;

  background-position: center;
}

.apt-card-paid-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.apt-card-paid-badge img {
  width: 19px;
  height: 19px;
  display: block;
}

.apt-mobile-search-card {
  display: none;
}


/*
  IMPORTANT:

  Temporary Internet images are
  visibly identified as samples.
*/

.apt-card-photo::after {
  content:
    'SAMPLE LISTING';

  position: absolute;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%)
    rotate(-10deg);

  padding:
    8px 14px;

  border:
    1px solid
    rgba(255,255,255,0.8);

  background:
    rgba(20,30,30,0.48);

  color: white;

  font-size:
    clamp(10px, 1vw, 14px);

  font-weight: 700;

  letter-spacing: 3px;

  white-space: nowrap;

  pointer-events: none;
}


/* ========================================
   CARD BODY
======================================== */

.apt-card-body {
  padding:
    18px 18px 20px;
}


.apt-card-topline {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;
}


.apt-card-view {
  font-size: 11px;

  font-weight: 600;

  letter-spacing: 2px;

  text-transform: uppercase;

  opacity: 0.52;
}


.apt-card-price {
  font-size: 14px;

  white-space: nowrap;
}


.apt-card-price strong {
  font-size: 20px;

  font-weight: 500;
}


.apt-card-title {
  margin-top: 12px;

  font-size:
    clamp(23px, 2vw, 31px);

  line-height: 1.05;

  font-weight: 500;
}


.apt-card-meta {
  margin-top: 11px;

  font-size: 13px;

  opacity: 0.66;
}


.apt-card-bottom {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 12px;

  margin-top: 19px;
}


.apt-card-verified {
  font-size: 11px;

  font-weight: 600;

  letter-spacing: 1px;

  opacity: 0.72;
}


.apt-card-open {
  border: 0;

  padding: 6px 0;

  background: none;

  color: #173c44;

  font-size: 12px;

  letter-spacing: 1px;

  cursor: pointer;

  white-space: nowrap;
}


.apt-card-open:hover {
  text-decoration: underline;
}


/* ========================================
   APARTMENT PAGE FOOTER
======================================== */

.apt-page-footer {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 20px;

  margin-top: 18px;

  font-size: 11px;

  letter-spacing: 2px;

  text-transform: uppercase;

  opacity: 0.5;
}


/* ========================================
   APARTMENT DETAIL OVERLAY
======================================== */

#apt-detail-overlay {
  position: fixed;

  inset: 0;

  z-index: 9600;

  display: none;

  overflow-y: auto;

  background:
    #f6f3ec;

  color: #173c44;

  touch-action: auto;
}


#apt-detail-overlay.active {
  display: block;
}


/* ========================================
   DETAIL CLOSE
======================================== */

#apt-detail-close {
  position: fixed;

  top: 22px;
  right: 26px;

  z-index: 20;

  width: 48px;
  height: 48px;

  border:
    1px solid
    rgba(23,60,68,0.2);

  border-radius: 50%;

  background:
    rgba(255,255,255,0.75);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);

  color: #173c44;

  font-size: 30px;

  cursor: pointer;
}


/* ========================================
   DETAIL LAYOUT
======================================== */

.apt-detail-shell {
  width:
    min(1500px, 100%);

  min-height: 100vh;

  margin: 0 auto;

  padding:
    clamp(70px, 7vw, 110px)
    clamp(25px, 6vw, 90px);

  display: grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(280px, 0.7fr);

  gap:
    clamp(35px, 5vw, 80px);

  align-items: center;
}


/* ========================================
   DETAIL GALLERY
======================================== */

.apt-detail-gallery {
  position: relative;

  width: 100%;

  height:
    clamp(470px, 72vh, 780px);

  overflow: hidden;

  background:
    #d7d8d4;

  border-radius: 5px;
}


.apt-detail-photo {
  position: absolute;

  inset: 0;

  background-size: cover;

  background-position: center;

  transition:
    opacity 0.3s ease;
}


/* SAMPLE watermark */

.apt-detail-photo::after {
  content:
    'SAMPLE LISTING';

  position: absolute;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%)
    rotate(-10deg);

  padding:
    11px 18px;

  border:
    1px solid
    rgba(255,255,255,0.85);

  background:
    rgba(20,30,30,0.48);

  color: white;

  font-size:
    clamp(12px, 1.3vw, 18px);

  font-weight: 700;

  letter-spacing: 4px;

  white-space: nowrap;
}


/* ========================================
   PHOTO ARROWS
======================================== */

.apt-photo-arrow {
  position: absolute;

  top: 50%;

  z-index: 5;

  transform:
    translateY(-50%);

  width: 48px;
  height: 48px;

  border:
    1px solid
    rgba(255,255,255,0.45);

  border-radius: 50%;

  background:
    rgba(20,30,30,0.35);

  color: white;

  font-size: 20px;

  cursor: pointer;
}


.apt-photo-arrow-left {
  left: 18px;
}


.apt-photo-arrow-right {
  right: 18px;
}


.apt-photo-counter {
  position: absolute;

  right: 18px;
  bottom: 16px;

  z-index: 5;

  padding:
    7px 11px;

  border-radius: 999px;

  background:
    rgba(20,30,30,0.45);

  color: white;

  font-size: 11px;

  letter-spacing: 2px;
}


/* ========================================
   DETAIL INFO
======================================== */

.apt-detail-info {
  max-width: 480px;
}


#apt-detail-back {
  margin-bottom: 32px;

  min-height: 44px;

  padding:
    0 18px;

  border:
    1px solid
    rgba(23,60,68,0.16);

  border-radius:
    999px;

  background:
    rgba(255,255,255,0.88);

  color:
    #173c44;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 1.4px;

  text-transform: uppercase;

  cursor: pointer;

  box-shadow:
    0 8px 22px
    rgba(0,0,0,0.05);

  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}


#apt-detail-back:hover {
  background:
    #0e968b;

  border-color:
    #0e968b;

  color:
    #ffffff;

  transform:
    translateX(-3px);
}


#apt-detail-back:active {
  transform:
    scale(0.97);
}


.apt-detail-verified {
  display: block;

  margin-top: 16px;
  margin-bottom: 0;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 2px;

  text-transform: uppercase;

  opacity: 0.55;
}


#apt-detail-title {
  font-size:
    clamp(48px, 6vw, 90px);

  line-height: 0.92;

  font-weight: 500;

  letter-spacing: -2px;
}


.apt-detail-meta {
  margin-top: 24px;

  font-size: 14px;

  line-height: 1.6;

  opacity: 0.65;
}


.apt-detail-description {
  margin-top: 28px;

  font-size:
    clamp(16px, 1.5vw, 20px);

  line-height: 1.6;

  opacity: 0.75;
}


.apt-detail-price {
  display: flex;

  align-items: baseline;

  gap: 7px;

  margin-top: 35px;
}


.apt-detail-price strong {
  font-size: 34px;

  font-weight: 500;
}


.apt-detail-reference {
  margin-top: 34px;

  padding-top: 20px;

  border-top:
    1px solid
    rgba(23,60,68,0.15);

  display: flex;

  flex-direction: column;

  gap: 5px;

  font-size: 10px;

  letter-spacing: 2px;

  text-transform: uppercase;

  opacity: 0.5;
}


/* ========================================
   APARTMENTS MOBILE
======================================== */

@media (max-width: 800px) {

  .tour-apartments {
    padding:
      26px 18px;
  }


  .apt-heading {
    align-items: flex-end;

    margin-bottom: 20px;
  }


  .apt-heading h2 {
    font-size:
      clamp(42px, 12vw, 62px);
  }


  .apt-intro {
    font-size: 14px;
  }


  .apt-navigation {
    display: none;
  }


  .apt-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
  }


  .apt-viewport::-webkit-scrollbar {
    display: none;
  }


  .apt-track {
    transform: none !important;
    gap: 14px;
    padding-right: 18px;
  }


  .apt-card {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: start;
  }


  .apt-card-mobile-hidden {
    display: none;
  }


  .apt-mobile-search-card {
    flex: 0 0 min(82vw, 360px);
    min-height: 320px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    scroll-snap-align: start;
    border: 1px solid rgba(23, 60, 68, 0.10);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    color: #173c44;
    box-shadow: 0 12px 35px rgba(32, 55, 55, 0.08);
    cursor: pointer;
  }


  .apt-mobile-search-card svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
  }


  .apt-mobile-search-card span {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }


  #apt-position {
    display: none;
  }


  .apt-card-photo {
    aspect-ratio:
      16 / 9;
  }


  .apt-page-footer {
    font-size: 9px;
  }


  .apt-owner-note {
    max-width: 65%;

    text-align: right;
  }


  /* DETAIL */

  .apt-detail-shell {
    grid-template-columns:
      1fr;

    gap: 28px;

    padding:
      75px
      18px
      35px;
  }


  .apt-detail-gallery {
    height:
      clamp(320px, 52vh, 520px);
  }


  .apt-detail-info {
    max-width: none;
  }

 
  /* ========================================
   APARTMENT DETAIL — MOBILE BOTTOM ACTIONS
======================================== */

/* ========================================
   APARTMENT DETAIL — MOBILE BOTTOM ACTIONS
======================================== */

#apt-detail-back,
.apt-inquiry-open {
  position: fixed;

  bottom:
    max(
      12px,
      env(safe-area-inset-bottom)
    );

  z-index: 35;

  height: 50px;
  margin: 0;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  line-height: 1.1;
  text-align: center;

  box-shadow:
    0 8px 24px
    rgba(0,0,0,0.13);
}


/* LEFT — 1/3 */

#apt-detail-back {
  left: 12px;

  width:
    calc(
      (100vw - 32px) * 0.33
    );

  padding: 0 7px;

  border:
    1px solid
    rgba(23,60,68,0.22);

  background: #ffffff;

  color: #173c44;

  font-size: 9px;
  font-weight: 650;

  letter-spacing: 0.25px;

  white-space: normal;

  transform: none;
}


/* RIGHT — 2/3 */

.apt-inquiry-open {
  left:
    calc(
      12px +
      ((100vw - 32px) * 0.33) +
      8px
    );

  right: 12px;

  width: auto !important;

  min-height: 0;

  padding: 0 10px;

  border: 0;

  background: #12664a;

  color: #ffffff;

  font-size: 10px;
  font-weight: 650;

  letter-spacing: 0.15px;

  white-space: normal;
}


/* Leave space for fixed buttons */

.apt-detail-shell {
  padding-bottom: 115px;
}

}



/* ========================================
   APARTMENT SEARCH BUTTON
======================================== */

.apt-navigation .apt-browse-open {
  width: auto;
  min-width: 150px;
  height: 48px;

  padding: 0 18px;

  border:
    1px solid
    rgba(23,60,68,0.18);

  border-radius: 999px;

  background:
    rgba(255,255,255,0.82);

  color: #173c44;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.6px;

  white-space: nowrap;

  box-shadow:
    0 8px 22px
    rgba(0,0,0,0.05);

  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}


.apt-navigation .apt-browse-open:hover {
  background: #0e968b;
  border-color: #0e968b;

  color: #ffffff;

  transform:
    translateY(-2px);
}


.apt-search-symbol {
  font-size: 18px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;
}


.apt-navigation
.apt-browse-open:hover {
  background: #0e968b;
  border-color: #0e968b;

  color: #ffffff;

  transform:
    translateY(-2px);
}


/* ========================================
   APARTMENT BROWSER + AVAILABILITY REQUEST
   Shared visual system
======================================== */

#apt-browser,
#apt-inquiry-overlay {
  --bb-accent: #0e968b;
  --bb-ink: #173c44;
  --bb-panel: #f7f7f5;
  --bb-surface: #ffffff;
  --bb-border: rgba(23, 60, 68, 0.10);
  --bb-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  --bb-radius: 22px;
}

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

.bb-control-surface {
  min-width: 0;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  background: var(--bb-surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.bb-control-icon {
  width: 25px;
  height: 25px;
  display: block;
  flex: 0 0 25px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.78;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.bb-control-selection {
  position: relative;
  z-index: 3;
  max-width: calc(100% - 14px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bb-ink);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
}

#apt-search-range-text,
#apt-filter-price-display {
  font-size: clamp(15px, 1.25vw, 20px);
}

.bb-control-selection[hidden] {
  display: none !important;
}

.bb-replaceable-field.has-selection
.bb-control-default-icon {
  display: none;
}

.bb-replaceable-field.has-selection::after {
  display: none;
}

.apt-filter-field:hover .bb-control-selection,
.apt-filter-field:focus-within .bb-control-selection {
  color: #ffffff;
}

/* ========================================
   APARTMENT BROWSER OVERLAY
======================================== */

#apt-browser {
  position: fixed;
  inset: 0;
  z-index: 9550;
  display: none;
  overflow-y: auto;
  padding:
    clamp(18px, 3vw, 34px)
    clamp(14px, 3vw, 28px)
    max(34px, env(safe-area-inset-bottom));
  background: rgba(10, 24, 27, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--bb-ink);
  touch-action: auto;
}

#apt-browser.active {
  display: block;
}

.apt-browser-header,
.apt-browser-search,
.apt-quick-filter-area,
.apt-browser-results-header,
.apt-browser-results,
.apt-browser-empty {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.apt-browser-header {
  margin-bottom: 22px;
  padding: 0 2px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.apt-browser-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: rgba(247, 247, 245, 0.72);
}

.apt-browser-header h2 {
  margin: 0;
  color: #f7f7f5;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.8px;
}

#apt-browser-close,
#apt-inquiry-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.apt-browser-return-search {
  position: fixed;
  top: 24px;
  right: 84px;
  z-index: 9565;
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  background: rgba(247, 247, 245, 0.94);
  color: var(--bb-ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.20);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.94);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.apt-browser-return-search.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.apt-browser-return-search:hover,
.apt-browser-return-search:focus-visible {
  background: var(--bb-accent);
  color: #ffffff;
}

.apt-browser-return-search svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================================
   PRIMARY SEARCH — ICON CONTROLS
======================================== */

.apt-browser-search { 
  display: grid;
grid-template-columns:
  repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--bb-border);
  border-radius: 30px;
  background: var(--bb-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  overflow: visible;
}

.apt-filter-field {
  position: relative;
  min-width: 0;
  height: 64px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.apt-filter-field:not(.apt-filter-view-field):hover,
.apt-filter-field:not(.apt-filter-view-field):focus-within {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  box-shadow: 0 10px 24px rgba(14, 150, 139, 0.18);
}

.apt-filter-field:not(.apt-filter-view-field):hover .bb-control-icon,
.apt-filter-field:not(.apt-filter-view-field):focus-within .bb-control-icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.apt-filter-field.has-selection {
  border-color: rgba(14, 150, 139, 0.50);
}

.apt-filter-field.has-selection::after {
  content: '';
  position: absolute;
  right: 9px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bb-accent);
  z-index: 8;
  pointer-events: none;
}

.apt-filter-field.has-selection:hover::after,
.apt-filter-field.has-selection:focus-within::after {
  background: #ffffff;
}


.apt-search-range-toggle {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  outline: 0;
  background: transparent;

  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;
}



.apt-search-range-toggle:focus,
.apt-search-range-toggle:focus-visible,
.apt-search-range-toggle:active {
  border: 0;
  outline: 0;
  box-shadow: none;
}


/* ========================================
   VIEW FILTER — MOUNTAIN / SEA
======================================== */

.apt-filter-view-field {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 5px;

  padding: 5px;

  overflow: hidden;

  cursor: default;
}


/* Two equal inner fields */

.apt-view-option {
  width: 100%;
  min-width: 0;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    1px solid
    var(--bb-border);

  border-radius: 16px;

  background:
    var(--bb-surface);

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}


/* Selected */

.apt-view-option.active {
  background: var(--bb-accent);
  border-color: var(--bb-accent);

  box-shadow:
    0 10px 24px
    rgba(14, 150, 139, 0.18);
}


.apt-view-option.active
.bb-control-icon {
  filter:
    brightness(0)
    invert(1);

  opacity: 1;
}


/* Keyboard focus */

.apt-view-option:focus-visible {
  background: var(--bb-accent);
  border-color: var(--bb-accent);

  box-shadow:
    0 10px 24px
    rgba(14, 150, 139, 0.18);
}


.apt-view-option:focus-visible
.bb-control-icon {
  filter:
    brightness(0)
    invert(1);

  opacity: 1;
}


/* Hover only on devices that actually have hover */

@media (hover: hover) and (pointer: fine) {

  .apt-view-option:hover {
    background: var(--bb-accent);
    border-color: var(--bb-accent);

    box-shadow:
      0 10px 24px
      rgba(14, 150, 139, 0.18);
  }


  .apt-view-option:hover
  .bb-control-icon {
    filter:
      brightness(0)
      invert(1);

    opacity: 1;
  }

}


.apt-view-option:active {
  transform:
    scale(0.96);
}



/* Guests / bedrooms: each half of the field is a big target */

.bb-stepper-field {
  position: relative;
}

.bb-field-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: rgba(23, 60, 68, 0.38);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.bb-field-half-left {
  left: 0;
  text-align: left;
}

.bb-field-half-right {
  right: 0;
  text-align: right;
}

.bb-field-half:disabled {
  opacity: 0.16;
  cursor: default;
}

.apt-filter-field:hover .bb-field-half:not(:disabled),
.apt-filter-field:focus-within .bb-field-half:not(:disabled) {
  color: rgba(255, 255, 255, 0.88);
}

.bb-icon-center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bb-value-badge {
  position: absolute;
  top: -12px;
  right: -17px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bb-ink);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.apt-filter-field:hover .bb-value-badge,
.apt-filter-field:focus-within .bb-value-badge {
  background: #ffffff;
  color: var(--bb-accent);
}


/* ========================================
   MAX PRICE — CUSTOM DROPDOWN
======================================== */

.apt-price-field {
  position: relative;
  z-index: 20;
}


.apt-price-toggle {
  width: 100%;
  height: 100%;

  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  font: inherit;
  color: inherit;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
}


.apt-price-menu {
  position: absolute;

  top: calc(100% + 8px);
  right: 0;

  z-index: 100;

  display: none;

  width: max(100%, 170px);

  padding: 6px;

  border:
    1px solid
    rgba(23, 60, 68, 0.10);

  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 16px 38px
    rgba(0, 0, 0, 0.14);
}


.apt-price-menu.active {
  display: grid;
  gap: 3px;
}


.apt-price-option {
  width: 100%;

  padding:
    10px 12px;

  border: 0;

  border-radius: 11px;

  background: transparent;

  color: var(--bb-ink);

  font-family: inherit;
  font-size: 13px;
  font-weight: 500;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.16s ease;
}


.apt-price-option:hover,
.apt-price-option:focus-visible {
  background:
    rgba(14, 150, 139, 0.12);

  outline: none;
}


.apt-price-option[aria-selected="true"] {
  background:
    rgba(14, 150, 139, 0.18);

  font-weight: 650;
}

/* ========================================
   QUICK FILTERS — SINGLE ROW
======================================== */

.apt-quick-filter-area {
  margin-top: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--bb-border);
  border-radius: 24px;
  background: var(--bb-panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.apt-quick-filter-main-icon,
#apt-filter-clear {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bb-border);
  border-radius: 14px;
  background: #ffffff;
}

.apt-quick-filter-main-icon img,
#apt-filter-clear img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  pointer-events: none;
}

.apt-quick-filter-main-icon {
  cursor: default;
}

#apt-filter-clear {
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

#apt-filter-clear:hover,
#apt-filter-clear:focus-visible {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
}

#apt-filter-clear:hover img,
#apt-filter-clear:focus-visible img {
  filter: brightness(0) invert(1);
}

.apt-filter-chips {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.apt-filter-chips::-webkit-scrollbar {
  display: none;
}

.apt-filter-chip {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(23, 60, 68, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--bb-ink);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.apt-filter-chip:hover,
.apt-filter-chip:focus-visible {
  background: rgba(14, 150, 139, 0.12);
  border-color: var(--bb-accent);
}

.apt-filter-chip.active {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  color: #ffffff;
}

/* ========================================
   SEARCH RESULTS
======================================== */

.apt-browser-results-header {
  margin-top: 22px;
  margin-bottom: 14px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(247, 247, 245, 0.82);
}

.apt-browser-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.apt-browser-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bb-border);
  border-radius: 28px;
  background: var(--bb-panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.apt-browser-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.14);
}

.apt-browser-card .apt-card-photo {
  border-radius: 24px 24px 0 0;
}

.apt-browser-card .apt-card-body {
  background: var(--bb-panel);
}

.apt-browser-empty {
  margin-top: 40px;
  padding: 28px 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 24px;
  background: var(--bb-panel);
  color: var(--bb-ink);
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}

.apt-browser-empty.active {
  display: flex;
}

/* ========================================
   APARTMENT CARD ICON RAIL
======================================== */

.apt-card-icon-rail {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 8px 0;
  background: transparent;
}

.apt-card-icon {
  display: block;
  flex: 0 0 auto;
  background-color: #173c44;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.apt-card-verified-icon {
  width: 22px;
  height: 22px;
  background-color: #2f6f62;
  mask-image: url("images/icons/listing/badge-check.svg");
  -webkit-mask-image: url("images/icons/listing/badge-check.svg");
}

.apt-card-icon-divider {
  width: 1px;
  height: 20px;
  flex: 0 0 1px;
  background: rgba(23, 60, 68, 0.18);
}

.apt-card-amenity-icons {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.apt-card-amenity-icon {
  width: 20px;
  height: 20px;
  mask-image: var(--icon-url);
  -webkit-mask-image: var(--icon-url);
}

/* ========================================
   SEARCH CARD — STAY TOTAL + NIGHTLY RATE
======================================== */

.apt-card-stay-total {
  min-width: 82px;

  display: flex;
  flex-direction: column;

  align-items: flex-end;

  text-align: right;

  line-height: 1.05;
}


.apt-card-stay-total strong {
  font-size: 22px;

  font-weight: 600;

  color: #173c44;
}


.apt-card-stay-total small {
  margin-top: 4px;

  font-size: 10px;

  font-weight: 500;

  letter-spacing: 0.3px;

  opacity: 0.55;
}


.apt-card-rate-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin-top: 14px;
}


.apt-card-rate-row
.apt-card-icon-rail {
  flex: 1 1 auto;

  min-width: 0;

  margin-top: 0;
}


.apt-card-nightly-price {
  flex: 0 0 auto;

  white-space: nowrap;

  font-size: 11px;

  opacity: 0.72;
}


.apt-card-nightly-price strong {
  font-size: 16px;

  font-weight: 600;

  opacity: 1;
}

/* ========================================
   REQUEST AVAILABILITY BUTTON
======================================== */

.apt-inquiry-open {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: #12664a;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.apt-inquiry-open:hover {
  opacity: 0.92;
}

.apt-inquiry-open:active {
  transform: scale(0.99);
}

/* ========================================
   AVAILABILITY REQUEST OVERLAY
======================================== */

#apt-inquiry-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(10, 24, 27, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#apt-inquiry-overlay.active {
  display: flex;
}

#apt-inquiry-close {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 10;
}

.apt-inquiry-shell {
  width: min(880px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--bb-border);
  border-radius: 30px;
  background: var(--bb-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  color: var(--bb-ink);
}

.apt-inquiry-heading {
  margin-bottom: 22px;
}

.apt-inquiry-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: rgba(23, 60, 68, 0.48);
}

.apt-inquiry-shell h2 {
  margin: 0;
  font-size: clamp(31px, 4.7vw, 46px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.8px;
  color: var(--bb-ink);
}

.apt-inquiry-section-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(23, 60, 68, 0.62);
}

.apt-inquiry-stay-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
}

.apt-inquiry-date-panel,
.apt-inquiry-total-panel {
  min-height: 116px;
  padding: 18px 18px 16px;
}

.apt-inquiry-date-panel {
  position: relative;
}

.bb-date-toggle {
  width: 100%;
  min-height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--bb-ink);
  text-align: left;
  font: inherit;
  font-size: clamp(19px, 2.3vw, 24px);
  font-weight: 500;
  cursor: pointer;
}

.bb-date-toggle:hover .bb-control-icon,
.bb-date-toggle:focus-visible .bb-control-icon {
  opacity: 1;
}

.apt-inquiry-total-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#apt-inquiry-total {
  display: block;
  margin-top: 4px;
  font-size: clamp(29px, 3.2vw, 39px);
  line-height: 1;
  font-weight: 600;
  color: #12664a;
}

#apt-inquiry-total-breakdown {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: rgba(23, 60, 68, 0.58);
}

.apt-inquiry-total-note {
  margin-top: 4px;
  font-size: 10px;
  color: rgba(23, 60, 68, 0.42);
}

/* ========================================
   SHARED DATE-RANGE CALENDAR
   Used by BOTH search and inquiry
======================================== */

.bb-calendar {
  display: none;
  padding: 18px;
  border: 1px solid var(--bb-border);
  border-radius: 22px;
  background: #ffffff;
  color: var(--bb-ink);
  box-shadow: var(--bb-shadow);
}

.bb-calendar.active {
  display: block;
}

.bb-calendar-inline {
  grid-column: 1 / -1;
  margin-top: 0;
}

#apt-range-calendar {
  width: min(480px, 100%);
  justify-self: start;
}

.bb-calendar-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  width: min(420px, calc(100vw - 40px));
}

.apt-calendar-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 8px;
  text-align: center;
}

.apt-calendar-top button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(23, 60, 68, 0.10);
  border-radius: 50%;
  background: #f5f6f4;
  color: var(--bb-ink);
  cursor: pointer;
}

.apt-calendar-top button:hover:not(:disabled) {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  color: #ffffff;
}

.apt-calendar-top button:disabled {
  opacity: 0.28;
  cursor: default;
}

.apt-calendar-hint {
  min-height: 18px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(23, 60, 68, 0.62);
}

.apt-calendar-weekdays,
.apt-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.apt-calendar-weekdays {
  margin-bottom: 5px;
  text-align: center;
  font-size: 10px;
  opacity: 0.52;
}

.apt-calendar-days {
  gap: 3px;
}

.apt-calendar-day {
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bb-ink);
  cursor: pointer;
}

.apt-calendar-day:hover:not(:disabled) {
  background: rgba(14, 150, 139, 0.12);
}

.apt-calendar-day:disabled {
  opacity: 0.25;
  cursor: default;
}

.apt-calendar-day.past-date {
  opacity: 0.20;
}

.apt-calendar-day.unavailable {
  opacity: 0.38 !important;
  text-decoration: line-through;
  background: rgba(23, 60, 68, 0.05);
  cursor: not-allowed;
}

.apt-calendar-day.range-start,
.apt-calendar-day.range-end {
  background: var(--bb-accent);
  color: #ffffff;
}

.apt-calendar-day.in-range {
  border-radius: 12px;
  background: rgba(14, 150, 139, 0.12);
}

.apt-calendar-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.apt-calendar-actions button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 60, 68, 0.10);
  border-radius: 999px;
  background: #f5f6f4;
  color: var(--bb-ink);
  cursor: pointer;
}

.apt-calendar-actions button:hover {
  background: var(--bb-accent);
  border-color: var(--bb-accent);
  color: #ffffff;
}

/* ========================================
   INQUIRY STEPPERS
======================================== */

.apt-request-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.apt-request-detail-cell {
  min-height: 112px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.apt-request-detail-cell .apt-inquiry-section-label {
  text-align: center;
}

.bb-stepper {
  display: grid;
  grid-template-columns: 36px minmax(28px, auto) 36px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.bb-stepper-button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(14, 150, 139, 0.45);
  border-radius: 50%;
  background: #ffffff;
  color: var(--bb-accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.bb-stepper-button:hover:not(:disabled) {
  background: var(--bb-accent);
  color: #ffffff;
}

.bb-stepper-button:active:not(:disabled) {
  transform: scale(0.96);
}

.bb-stepper-button:disabled {
  opacity: 0.25;
  cursor: default;
}

.bb-stepper-value {
  min-width: 24px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  color: var(--bb-ink);
}

.apt-request-unavailable {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(23, 60, 68, 0.52);
}

.apt-request-unavailable[hidden],
.apt-stepper[hidden] {
  display: none !important;
}

/* ========================================
   SERVICE ANIMAL / MESSAGE / SUBMIT
======================================== */

.apt-service-animal-row {
  margin-top: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.apt-service-animal-note {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(23, 60, 68, 0.42);
}

.apt-binary-toggle {
  display: flex;
  gap: 8px;
}

.apt-binary-toggle button {
  min-width: 58px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--bb-border);
  border-radius: 999px;
  background: #f5f6f4;
  color: rgba(23, 60, 68, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.apt-binary-toggle button.active {
  background: var(--bb-accent);
  color: #ffffff;
  border-color: var(--bb-accent);
}

.apt-inquiry-message-field {
  display: block;
  margin-top: 16px;
}

.apt-inquiry-message-field textarea {
  width: 100%;
  min-height: 122px;
  padding: 16px 18px;
  border: 1px solid var(--bb-border);
  border-radius: 22px;
  background: #ffffff;
  color: var(--bb-ink);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.apt-inquiry-message-field textarea:focus {
  outline: none;
  border-color: rgba(14, 150, 139, 0.55);
}

.apt-inquiry-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bb-accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.apt-inquiry-submit:hover {
  opacity: 0.93;
}

.apt-inquiry-submit:active {
  transform: scale(0.992);
}

.apt-inquiry-status {
  min-height: 18px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(23, 60, 68, 0.74);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1050px) {
  .apt-browser-results {
    grid-template-columns: repeat(2, 1fr);
  }

  .apt-filter-field {
    height: 60px;
  }
}

@media (max-width: 700px) {
  #apt-browser {
    padding:
      max(12px, env(safe-area-inset-top))
      10px
      max(16px, env(safe-area-inset-bottom));
  }

  .apt-browser-header {
    margin-bottom: 16px;
  }

  .apt-browser-header h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .apt-browser-return-search {
    top: auto;
    right: 18px;
    bottom: max(20px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .apt-browser-search {
grid-template-columns:
  repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 24px;
  }

  .apt-filter-field {
    height: 54px;
    border-radius: 18px;
  }

  .bb-control-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

.bb-control-selection {
  max-width: calc(100% - 8px);

  font-size: 9px;

  white-space: normal;
}


#apt-search-range-text,
#apt-filter-price-display {
  font-size: 13px;
}

#apt-search-range-text {
  width: 100%;
  max-width: 100%;

  padding: 0 4px;

  line-height: 1.05;

  white-space: normal;

  overflow: visible;

  text-overflow: clip;
}


#apt-search-range-text
.bb-search-checkin,
#apt-search-range-text
.bb-search-checkout {
  display: block;

  width: 100%;

  white-space: nowrap;

  text-align: center;
}


#apt-search-range-text
.bb-search-date-separator {
  display: none;
}

  .bb-field-half {
    padding: 0 7px;
    font-size: 18px;
  }

  .bb-value-badge {
    top: -10px;
    right: -14px;
  }

  .apt-quick-filter-area {
    gap: 7px;
    padding: 8px;
    border-radius: 20px;
  }

  .apt-quick-filter-main-icon,
  #apt-filter-clear {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 12px;
  }

  .apt-filter-chip {
    padding: 8px 12px;
    font-size: 10px;
  }

  .apt-browser-results {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .apt-browser-card {
    border-radius: 24px;
  }

  .bb-calendar-popover {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 50%;
    width: auto;
    max-width: none;
    transform: translateY(-50%);
    z-index: 80;
  }

  #apt-inquiry-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  #apt-inquiry-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 14px;
  }

  .apt-inquiry-shell {
    width: 100%;
    max-height: 95svh;
    padding: 22px 16px max(20px, env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
  }

  .apt-inquiry-heading {
    margin-bottom: 18px;
    padding-right: 34px;
  }

  .apt-inquiry-shell h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .apt-inquiry-stay-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .apt-inquiry-date-panel,
  .apt-inquiry-total-panel {
    min-height: 100px;
    padding: 16px;
    border-radius: 20px;
  }

  .bb-calendar-inline {
    grid-column: 1;
  }

  .apt-request-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .apt-request-detail-cell {
    min-height: 92px;
    border-radius: 20px;
  }

  .apt-service-animal-row {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }

  .apt-binary-toggle {
    width: 100%;
  }

  .apt-binary-toggle button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .apt-inquiry-message-field textarea {
    min-height: 110px;
    border-radius: 20px;
  }

  .apt-inquiry-submit {
    min-height: 54px;
    font-size: 16px;
  }
}


/* ========================================
   ENTERTAINMENT — MOBILE FINAL LAYOUT
======================================== */

@media (max-width: 700px) {

  /* ----------------------------------------
     MAIN ENTERTAINMENT PAGE
  ---------------------------------------- */

  .tour-entertainment {
    height: 100svh;
    min-height: 100svh;

    padding:
      max(14px, env(safe-area-inset-top))
      16px
      max(12px, env(safe-area-inset-bottom));

    justify-content: flex-start;

    gap: 8px;

    overflow: hidden;
  }


  /*
    The old 62vh minimum was pushing
    the title + selector row below screen.
  */

  .tour-entertainment .ent-stage {
    min-height: 0;

    flex: 1 1 auto;

    width: 100%;

    grid-template-columns: 1fr;

    gap: 8px;

    align-content: start;
  }


  .tour-entertainment .ent-stage-copy {
    padding-top: 4px;
  }


  #ent-eyebrow {
    margin-bottom: 5px;

    font-size: 9px;

    letter-spacing: 2px;
  }


  #ent-stage-title {
    font-size:
      clamp(30px, 9vw, 43px);

    line-height: 0.95;
  }


  #ent-stage-text {
    margin-top: 7px;

    font-size: 13px;

    line-height: 1.35;
  }


  /*
    Enough room for the visual,
    but no longer consumes half+
    of the complete phone screen.
  */

  .tour-entertainment .ent-gallery {
    height:
      clamp(205px, 33svh, 310px);

    margin-top: 5px;
  }


  /* ----------------------------------------
     "გართობა / THINGS TO DO"
  ---------------------------------------- */

  .tour-entertainment
  .ent-section-title {
    flex: 0 0 auto;

    margin:
      3px auto
      5px;

    font-size:
      clamp(15px, 4.6vw, 20px);

    line-height: 1;

    letter-spacing: 2.5px;

    opacity: 0.9;
  }


  /* ----------------------------------------
     FOUR SELECTORS
  ---------------------------------------- */

  .tour-entertainment
  .ent-selectors {
    flex: 0 0 auto;

    width: 100%;

    gap: 4px;

    padding-bottom:
      max(
        3px,
        env(safe-area-inset-bottom)
      );
  }


  .tour-entertainment
  .ent-object {
    width:
      clamp(52px, 17vw, 72px);

    margin-bottom: 5px;
  }


  .tour-entertainment
  .ent-label {
    font-size: 9px;

    letter-spacing: 0.7px;
  }



  /* ========================================
     ENTERTAINMENT DETAIL — THUMB BACK
  ======================================== */

  #ent-detail-overlay {
    /*
      Prevent mobile browser UI from
      changing the useful screen height.
    */

    height: 100svh;
  }


  .ent-detail-inner {
    min-height: 100svh;

    padding:
      64px
      18px
      90px;

    gap: 14px;
  }


  /*
    Existing Back button becomes
    persistent and thumb reachable.
  */

  #ent-detail-back {
    position: fixed;

    left:
      max(
        16px,
        env(safe-area-inset-left)
      );

    bottom:
      max(
        18px,
        env(safe-area-inset-bottom)
      );

    z-index: 20;

    margin: 0;

    min-height: 48px;

    padding:
      0
      18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
      1px solid
      rgba(23, 60, 68, 0.16);

    border-radius: 999px;

    background:
      rgba(250, 248, 243, 0.88);

    backdrop-filter:
      blur(12px);

    -webkit-backdrop-filter:
      blur(12px);

    box-shadow:
      0 8px 28px
      rgba(0, 0, 0, 0.10);

    color: #173c44;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.4px;

    opacity: 1;

    touch-action: manipulation;
  }


  #ent-detail-back:active {
    transform:
      scale(0.96);
  }

}
