/* ============================
   VL24 — SIGNATURE DARK SYSTEM
============================ */

:root{

  --apt-dark-bg:
    linear-gradient(
      180deg,
      #0a0f1c,
      #0f172a,
      #111827
    );

  --apt-dark-border: rgba(201,161,90,.18);

  --apt-dark-glow: rgba(201,161,90,.25);

  --apt-dark-shadow:
    0 20px 48px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);

}

/* =====================================
   APARTMENT SINGLE — LAYOUT SKELETON (ETAPP 1)
===================================== */

.apt-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:22px;
}

.apt-kicker{
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  opacity:.75;
}

.apt-number{
  font-size:44px;
  font-weight:900;
  line-height:1;
}

.apt-note{
  margin-top:10px;
  font-weight:650;
  opacity:.9;
}

.apt-status{
  padding:10px 14px;
  border-radius:999px;
  background: rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.08);
  font-weight:700;
}

/* CORE GRID */
.apt-core{
  display:grid;
  grid-template-columns: 460px 1fr;
  gap:28px;
  align-items:stretch;
}

/* LEFT PANEL */
.apt-panel{
  position:relative;
}

.apt-panel-card{
  position:sticky;
  top:120px;

  border-radius:24px;
  padding:18px;

  background: rgba(255,255,255,.28);
  border:1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 18px 60px rgba(0,0,0,.08);
}

.apt-panel-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(15,23,42,.08);
  margin-bottom:14px;
}

.apt-panel-label{
  font-weight:800;
  letter-spacing:.08em;
  font-size:12px;
  opacity:.7;
}

.apt-panel-id{
  font-size:22px;
  font-weight:900;
}

.apt-facts{
  display:grid;
  gap:10px;
}

.apt-fact{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.30);
  border:1px solid rgba(15,23,42,.06);
}

.apt-fact span{
  opacity:.75;
  font-weight:600;
}

.apt-fact strong{
  font-weight:800;
}

.apt-panel-actions{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.apt-btn{
  width:100%;
  justify-content:space-between;
}

/* RIGHT MEDIA */
.apt-media{
  min-width:0;
}

.apt-viewer{
  border-radius:24px;
  overflow:hidden;
  background:#0b1220;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 70px rgba(0,0,0,.12);
}

.apt-viewer-media{
  aspect-ratio: 16 / 9;
  display:flex;
  align-items:center;
  justify-content:center;
}

.apt-main-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.apt-viewer-empty{
  padding:40px;
  color:#fff;
  opacity:.75;
}

/* thumbs */
.apt-thumbs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:12px 0;
  margin-top:10px;
}

.apt-thumb{
  display:block;              /* ← VÕTI */
  border:2px solid transparent;
  border-radius:14px;
  overflow:hidden;

  background:transparent;
  cursor:pointer;

  flex:0 0 auto;

  padding:0;
  margin:0;                   /* ← kindluse mõttes */

  line-height:0;              /* ← eemaldab inline-gap */
  font-size:0;                /* ← eemaldab text-space */
}


.apt-thumb img{
  display:block;
  width:88px;
  height:64px;
  object-fit:cover;
}

/* tabs */
.apt-tabs{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}

.apt-tab{
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  padding:10px 14px;
  border-radius:999px;
  font-weight:750;
  cursor:pointer;
}

.apt-tab.is-active{
  background: rgba(15,23,42,.92);
  color:#fff;
  border-color: rgba(15,23,42,.92);
}

/* panels */
.apt-panels{
  margin-top:14px;
}

.apt-panels .apt-panel{
  display:none;
}

.apt-panels .apt-panel.is-active{
  display:block;
}

.apt-gallery-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.apt-gallery-item{
  margin:0;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
}

.apt-gallery-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* embeds */
.apt-embed{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  background:#000;
  aspect-ratio:16/9;
}

.apt-embed iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.apt-docs{
  display:grid;
  gap:12px;
}

.apt-doc{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;

  padding:14px 16px;
  border-radius:18px;

  background: rgba(255,255,255,.28);
  border:1px solid rgba(15,23,42,.08);
  text-decoration:none;
  color:#111;
}

.apt-doc strong{ font-weight:850; }
.apt-doc span{ opacity:.75; font-weight:700; }

.apt-link{
  display:inline-block;
  margin-top:10px;
  font-weight:700;
}

/* story */
.apt-story{
  margin-top:34px;
}

.apt-story-card{
  border-radius:24px;
  padding:22px;
  background: rgba(255,255,255,.28);
  border:1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* contact placeholder */
.apt-contact{
  margin-top:34px;
  border-radius:24px;
  padding:26px;
  background: rgba(15,23,42,.92);
  color:#fff;
}

/* helpers */
.apt-muted{ opacity:.75; }

/* RESPONSIVE */
@media (max-width: 980px){
  .apt-core{
    grid-template-columns: 1fr;
  }
  .apt-panel-card{
    position:relative;
    top:auto;
  }
  .apt-gallery-grid{
    grid-template-columns: 1fr;
  }
}


/* =========================
   APARTMENT — GLASS SYSTEM (CORRECT)
========================= */

.apt-single{

  position:relative;

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  /* REAL spacing */
  padding: 66px 0 88px;

  overflow:hidden;
}


/* wrap */
.apt-single .site-wrap{
  position:relative;
  z-index:2;
}

/* =========================
   LIGHTBOX (A+)
========================= */

:root{
  --header-h: 96px; /* JS kirjutab selle üle päris kõrgusega */
}

.apt-lightbox{
  position:fixed;
  inset:0;
  background:rgba(5,8,15,.92);

  display:flex;
  align-items:center;
  justify-content:center;

  opacity:0;
  pointer-events:none;
  transition:.25s;

  z-index:99999; /* üle headeri */
}

.apt-lightbox.is-open{
  opacity:1;
  pointer-events:auto;
}


.apt-lightbox-img{
  max-width:92vw;
  max-height:90vh;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
}

/* controls */
.apt-lightbox button{
  position:absolute;
  background:rgba(255,255,255,.15);
  border:0;

  width:50px;
  height:50px;

  border-radius:50%;
  color:#fff;
  font-size:28px;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  line-height:1;
}


.apt-lightbox-prev,
.apt-lightbox-next{
  top:50%;
  transform:translateY(-50%);
}

.apt-lightbox-prev{ left:30px; }
.apt-lightbox-next{ right:30px; }

.apt-lightbox-close{
  top:20px;
  right:20px;
  width:56px;
  height:56px;
  font-size:30px;
}

/* FULLSCREEN FIX */

.apt-lightbox{
  top:0 !important;
  height:100vh !important;
}

/* peida ainult fotode grid, mitte panel */

.apt-panels [data-panel="photos"] .apt-gallery-grid{
  display:none;
}


.apt-thumb{
  border:2px solid transparent;      /* oluline: alati olemas border */
  border-radius:14px;
  overflow:hidden;
  background:transparent;
  cursor:pointer;
  flex:0 0 auto;
  padding:0;
}

.apt-thumb.is-active{
  border-color:#0f172a;
  box-shadow:0 0 0 3px rgba(15,23,42,.18);
}

.apt-thumb img{
  display:block;
  width:88px;
  height:64px;
  object-fit:cover;
  transform:scale(1);
  transition:transform .15s ease;
}

.apt-thumb.is-active img{
  transform:scale(.96);
}

.apt-thumbs::before,
.apt-thumbs::after{
  display:block;
}

/* BOOKING */

.apt-contact-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:start;
}

.apt-contact-text h2{
  font-size:34px;
  font-weight:900;
}

.apt-contact-desc{
  margin-top:12px;
  opacity:.85;
}

.apt-contact-form{
  background:rgba(255,255,255,.35);
  padding:26px;
  border-radius:22px;
  border:1px solid rgba(15,23,42,.08);
}

.apt-book-form{
  display:grid;
  gap:14px;
}

.apt-field input,
.apt-field textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  font-size:15px;
}

.apt-field textarea{
  min-height:120px;
  resize:vertical;
}

.apt-form-msg{
  margin-top:10px;
  font-weight:700;
}

.apt-form-msg.success{ color:green; }
.apt-form-msg.error{ color:red; }


@media(max-width:900px){
  .apt-contact-inner{
    grid-template-columns:1fr;
  }
}

.vl24-field{
  margin-bottom:14px;
}

.vl24-field label{
  display:block;
  font-weight:700;
  margin-bottom:4px;
}

/* ===============================
   APARTMENT CTA POSITION FIX
=============================== */

.apt-single .hero-buttons{
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;

  margin-top:16px;
}

/* ===============================
   FORCE HERO BUTTON STYLE
   FOR APARTMENT SUBMIT
=============================== */

.apt-submit{
  position: relative;

  width:100%;
  min-height:46px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:0 28px;

  border-radius:999px;

  font-size:14px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;

  color:#fff;

  background:
    linear-gradient(
      180deg,
      rgba(255,145,0,.55),
      rgba(210,95,0,.55)
    );

  border:1px solid rgba(255,255,255,.22);

  backdrop-filter: blur(10px);

  text-shadow:
    0 1px 1px rgba(0,0,0,.35);

  cursor:pointer;

  overflow:hidden;
  isolation:isolate;

  transition:.2s ease;
}

/* text layer */

.apt-submit span{
  position:relative;
  z-index:2;
}

/* glow */

.apt-submit::before{
  content:"";
  position:absolute;
  inset:0;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.22),
    rgba(255,255,255,.06)
  );

  transform: scale(0);
  transform-origin: 50% 50%;

  transition: transform 2.5s cubic-bezier(.2,.7,.1,1);

  border-radius: inherit;

  z-index:1;
}

.apt-submit:hover::before{
  transform: scale(2.4);
}

.apt-submit:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}



/* ==========================================
   APARTMENT IDENTITY — 2026 FLOATING RIBBON
========================================== */

.apt-identity{
  position: relative;

  width:100%;
  max-width: none;   /* ⬅️ oluline */
  margin: 48px 0 32px; /* ainult vertikaal */
  padding: 0;        /* ⬅️ oluline */

  z-index:5;
}




/* CORE GLASS RIBBON */

.apt-identity-core{
  position: relative;

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;

  padding: 26px 34px;

  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.78),
      rgba(255,255,255,.55)
    );

  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);

  border: 1px solid rgba(255,255,255,.45);

  box-shadow:
    0 20px 60px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.5);

  overflow: hidden;
}


/* SOFT NOISE LAYER */

.apt-identity-core::after{
  content:"";
  position:absolute;
  inset:0;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");

  pointer-events:none;
  mix-blend-mode: overlay;
}


/* LEFT ZONE */

.apt-identity-left{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}


/* NUMBER BLOCK */

.apt-identity-num{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 110px;

  padding: 6px 10px;

  border-radius: 14px;

  background: rgba(255,255,255,.55);

  border: 1px solid rgba(255,255,255,.7);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 4px 16px rgba(0,0,0,.06);
}


.apt-identity-numVal{
  font-size: 54px;
  font-weight: 800;
  line-height: 1;

  letter-spacing: -.02em;

  color: #0f172a;
}


.apt-identity-numLbl{
  margin-top: 2px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;

  color: #64748b;
}


/* STATUS BADGE */

.apt-identity-status{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 7px 16px;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 650;

  background: rgba(15,23,42,.85);
  color: #fff;

  box-shadow:
    0 4px 14px rgba(0,0,0,.18);

  backdrop-filter: blur(6px);
}


.apt-identity-dot{
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 0 2px rgba(34,197,94,.25);
}


/* RIGHT ZONE */

.apt-identity-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;

  text-align: right;
}


/* META LINE */

.apt-identity-meta{
  font-size: 16px;
  font-weight: 550;

  color: #0f172a;

  letter-spacing: -.01em;
}


/* NOTE */

.apt-identity-note{
  font-size: 13px;
  font-weight: 500;

  color: #475569;
  opacity: .9;
}


/* PERKS */

.apt-identity-perks{
  display: flex;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}


.apt-perk{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 10px;

  font-size: 12px;
  font-weight: 600;

  border-radius: 999px;

  background: rgba(255,255,255,.6);

  border: 1px solid rgba(15,23,42,.06);

  color: #0f172a;
}


.apt-perkLbl{
  opacity: .7;
}


.apt-perkVal{
  font-weight: 700;
}


/* ==============================
   STATUS COLORS (AUTO)
============================== */

.apt-identity-core[data-status="vaba"] .apt-identity-dot{
  background:#22c55e;
}

.apt-identity-core[data-status="broneeritud"] .apt-identity-dot{
  background:#f59e0b;
}

.apt-identity-core[data-status="müüdud"],
.apt-identity-core[data-status="myydud"] .apt-identity-dot{
  background:#ef4444;
}

.apt-identity-core[data-status="reserveeritud"] .apt-identity-dot{
  background:#f97316;
}


/* ==============================
   MICRO ANIMATION
============================== */

.apt-identity-core{
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.apt-identity-core:hover{
  transform: translateY(-2px);

  box-shadow:
    0 28px 80px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.6);
}


/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 900px){

  .apt-identity{
    margin: 32px auto 48px;
  }

  .apt-identity-core{
    grid-template-columns: 1fr;
    gap: 18px;

    padding: 22px 22px;
  }

  .apt-identity-left{
    justify-content: space-between;
    width:100%;
  }

  .apt-identity-right{
    align-items: flex-start;
    text-align: left;
  }

  .apt-identity-perks{
    justify-content: flex-start;
  }

  .apt-identity-numVal{
    font-size: 46px;
  }
}

/* ==========================
   APT PANEL — PREMIUM INFO
========================== */

.apt-panel-main{
  display:flex;
  flex-direction:column;
  gap:22px;
}


/* ============================
   PRICE — 2026 SIGNATURE DARK
============================ */

.apt-price-box{

  position:relative;

  padding:28px 24px 26px;

  border-radius:22px;

  background: var(--apt-dark-bg);

  color:#fff;

  text-align:center;

  border:1px solid var(--apt-dark-border);

  box-shadow: var(--apt-dark-shadow);

  overflow:hidden;

  isolation:isolate;
}


/* GOLD ENERGY */

.apt-price-box::before{

  content:"";
  position:absolute;
  inset:-40%;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(201,161,90,.35),
      transparent 55%
    );

  z-index:0;
}


/* SOFT NOISE */

.apt-price-box::after{

  content:"";
  position:absolute;
  inset:0;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");

  mix-blend-mode:overlay;

  pointer-events:none;

  z-index:1;
}


/* LABEL */

.apt-price-label{

  position:relative;
  z-index:2;

  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;

  color:#c9a15a;

  margin-bottom:6px;
}


/* PRICE */

.apt-price-val{

  position:relative;
  z-index:2;

  font-size:40px;
  font-weight:900;

  letter-spacing:-.02em;

  line-height:1.05;

  margin:6px 0 2px;

  background:
    linear-gradient(
      120deg,
      #c9a15a,
      #fff3c9,
      #c9a15a
    );

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  text-shadow:
    0 2px 6px rgba(0,0,0,.45);
}


/* SUB */

.apt-price-note,
.apt-price-sub{

  position:relative;
  z-index:2;

  font-size:12px;

  color:rgba(255,255,255,.75);

  margin-top:4px;
}


/* GROUP */

.apt-info-group h4{
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  margin-bottom:8px;
  opacity:.7;
}

.apt-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.apt-info-grid > div{
  padding:10px 12px;
  border-radius:14px;

  background:rgba(255,255,255,.35);
  border:1px solid rgba(15,23,42,.08);

  display:flex;
  justify-content:space-between;
}

.apt-info-grid span{
  font-size:13px;
  opacity:.75;
  font-weight:600;
}

.apt-info-grid strong{
  font-weight:800;
}

/* CTA */

.apt-cta-box{
  display:grid;
  gap:10px;
}

.apt-cta-btn{
  display:flex;
  align-items:center;
  justify-content:center;

  height:46px;

  border-radius:999px;

  font-weight:700;
  font-size:14px;

  text-decoration:none;

  transition:.2s;
}

.apt-cta-btn.primary{
  background:#0f172a;
  color:#fff;
}

.apt-cta-btn.primary:hover{
  background:#020617;
}

.apt-cta-btn.ghost{
  border:1px solid rgba(15,23,42,.15);
  color:#0f172a;
}

.apt-cta-btn.ghost:hover{
  background:rgba(15,23,42,.05);
}

/* Better wrapping */

.apt-info-grid > div{
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}

.apt-info-grid strong{
  line-height:1.25;
  word-break:break-word;
}

/* ==============================
   PRICE HERO — VL24 SIGNATURE
============================== */

.apt-price-hero{

  position:relative;

  padding:26px 22px 24px;

  border-radius:22px;

  background:
    linear-gradient(
      180deg,
      #020617,
      #0f172a
    );

  color:#fff;

  text-align:center;

  box-shadow:
    0 20px 60px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08);

  overflow:hidden;

}


/* subtle gold glow */

.apt-price-hero::after{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(201,161,90,.25),
      transparent 55%
    );

  pointer-events:none;
}


/* eyebrow */

.apt-price-eyebrow{

  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;

  color:#c9a15a;

  margin-bottom:6px;
}


/* main price */

.apt-price-main{

  font-size:36px;
  font-weight:800;

  letter-spacing:-.02em;

  line-height:1.05;

  margin-bottom:6px;

  background:
    linear-gradient(
      120deg,
      #c9a15a,
      #fff3c9,
      #c9a15a
    );

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

}


/* sub text */

.apt-price-sub{

  font-size:13px;
  font-weight:500;

  color:rgba(255,255,255,.75);
}

/* spacing between price + CTA */

.apt-price-hero{
  margin-bottom:16px;
}

.apt-cta-box{
  margin-bottom:26px;
}

/* info groups */

.apt-info-group{

  background:rgba(255,255,255,.35);

  border:1px solid rgba(15,23,42,.08);

  border-radius:18px;

  padding:16px 16px 18px;

  margin-bottom:16px;

  backdrop-filter: blur(12px);
}


/* group title */

.apt-info-group h4{

  margin:0 0 12px;

  font-size:12px;
  letter-spacing:.16em;

  text-transform:uppercase;

  color:#64748b;
}

/* ===========================
   APARTMENT CTA — HERO DNA
=========================== */

.apt-cta-btn{

  position:relative;

  width:100%;
  min-height:46px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:0 28px;

  border-radius:999px;

  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;

  color:#fff;

  background:
    linear-gradient(
      180deg,
      rgba(255,145,0,.55),
      rgba(210,95,0,.55)
    );

  border:1px solid rgba(255,255,255,.22);

  backdrop-filter: blur(10px);

  text-shadow:
    0 1px 1px rgba(0,0,0,.35);

  cursor:pointer;

  overflow:hidden;
  isolation:isolate;

  transition:.25s ease;
}


/* glow */

.apt-cta-btn::before{
  content:"";
  position:absolute;
  inset:0;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.22),
    rgba(255,255,255,.06)
  );

  transform: scale(0);
  transform-origin: 50% 50%;

  transition: transform 2.5s cubic-bezier(.2,.7,.1,1);

  border-radius: inherit;

  z-index:1;
}

.apt-cta-btn:hover::before{
  transform: scale(2.4);
}

.apt-cta-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}


/* ghost = outline */

.apt-cta-btn.ghost{
  background:transparent;
  color:#0f172a;

  border:1px solid rgba(15,23,42,.25);

  text-shadow:none;
}

.apt-cta-btn.ghost:hover{
  background:rgba(15,23,42,.04);
}

/* MEDIA PREMIUM FRAME */

.apt-viewer{

  position:relative;

  background:
    linear-gradient(180deg,#020617,#0f172a);

  border-radius:26px;

  box-shadow:
    0 30px 90px rgba(0,0,0,.25),
    0 0 40px rgba(201,161,90,.12);

}


/* soft gold halo */

.apt-viewer::after{

  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(201,161,90,.18),
      transparent 60%
    );

  pointer-events:none;
}

/* BOOKING — GLASS PREMIUM */

.apt-contact{

  background:
    linear-gradient(
      180deg,
      rgba(2,6,23,.85),
      rgba(15,23,42,.92)
    );

  backdrop-filter: blur(18px) saturate(140%);

  border:1px solid rgba(255,255,255,.12);

  box-shadow:
    0 30px 90px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* ============================
   BOOKING — MATCH PRICE STYLE
============================ */

.apt-contact{

  background: var(--apt-dark-bg);

  border:1px solid var(--apt-dark-border);

  box-shadow: var(--apt-dark-shadow);

  color:#fff;

  position:relative;

  overflow:hidden;
}

.apt-contact h2,
.apt-contact-desc{
  color:#fff;
}

.apt-contact-desc{
  opacity:.85;
}

.apt-contact-form{

  background: rgba(255,255,255,.08);

  border:1px solid rgba(255,255,255,.12);

  backdrop-filter: blur(12px);

}

.apt-field input,
.apt-field textarea{

  background: rgba(255,255,255,.08);

  color:#fff;

  border:1px solid rgba(255,255,255,.18);
}

.apt-field input::placeholder,
.apt-field textarea::placeholder{
  color:rgba(255,255,255,.6);
}

/* ============================
   VL24 — SIGNATURE CTA BUTTON
============================ */

.apt-submit{

  position:relative;

  width:100%;
  height:52px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:999px;

  font-size:13px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;

  color:#0f172a;

  background:
    linear-gradient(
      135deg,
      #c9a15a,
      #fff3c9,
      #c9a15a
    );

  border:0;

  cursor:pointer;

  overflow:hidden;
  isolation:isolate;

  box-shadow:
    0 8px 22px rgba(201,161,90,.35),
    inset 0 1px 0 rgba(255,255,255,.6);

  transition:.25s ease;
}

.apt-single .site-wrap::before{
  top:-40px;
  bottom:-34px;
}

/* ============================
   APARTMENT BADGE — SIGNATURE
============================ */

.apt-badge{
  display:flex;
  width:100%;
  margin-bottom:18px;
}


/* LEFT — NUMBER */

.apt-badge-num{

  flex:1;

  padding:16px 18px 18px;

  border-radius:18px 0 0 18px;

  background: var(--apt-dark-bg);

  border:1px solid var(--apt-dark-border);
  border-right:0;

  box-shadow: var(--apt-dark-shadow);

  text-align:center;

  color:#fff;

  position:relative;
  isolation:isolate;
}


/* noise */

.apt-badge-num::after{
  content:"";
  position:absolute;
  inset:0;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");

  mix-blend-mode:overlay;

  pointer-events:none;

  z-index:1;
}


/* KORTER */

.apt-badge-label{
  position:relative;
  z-index:2;

  font-size:11px;
  font-weight:700;

  letter-spacing:.22em;
  text-transform:uppercase;

  color:#c9a15a;

  margin-bottom:4px;
}


/* NUMBER */

.apt-badge-number{
  position:relative;
  z-index:2;

  font-size:60px;
  font-weight:900;

  line-height:1;

  letter-spacing:-.02em;

  background:
    linear-gradient(
      120deg,
      #c9a15a,
      #fff3c9,
      #c9a15a
    );

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  text-shadow:
    0 2px 6px rgba(0,0,0,.45);
}



/* RIGHT — STATUS */

.apt-badge-status{

  flex:1;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:16px 18px;

  border-radius:0 18px 18px 0;

  background: rgba(255,255,255,.45);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border:1px solid rgba(15,23,42,.12);
  border-left:0;

  font-size:13px;
  font-weight:800;

  letter-spacing:.08em;

  text-transform:uppercase;

  color:#0f172a;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 4px 16px rgba(0,0,0,.06);
}


/* PREMIUM GLASS — VABA */

.apt-badge-status.is-free{

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.65),
      rgba(255,255,255,.35)
    );

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  border:1px solid rgba(255,255,255,.6);

  color:#0f172a;

  font-weight:900;
  font-size:18px;
  letter-spacing:.14em;

  box-shadow:
    0 10px 28px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.7);
}

/* soft glow */

.apt-badge-status.is-free::after{
  content:"";
  position:absolute;
  inset:0;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(201,161,90,.18),
      transparent 60%
    );

  pointer-events:none;
}



/* FORCE MOBILE STACK */

@media(max-width:600px){

  .apt-badge{
    flex-direction:column !important;
  }

  .apt-badge-num{
    border-radius:18px 18px 0 0 !important;
    border-right:1px solid var(--apt-dark-border) !important;
    border-bottom:0 !important;
  }

  .apt-badge-status{
    border-radius:0 0 18px 18px !important;
    border-left:1px solid rgba(15,23,42,.12) !important;
    border-top:0 !important;
  }

}

/* =========================
   APARTMENT — FULL BG GLASS
========================= */

.apt-single::before{

  content:"";
  position:absolute;
  inset:10px 0 0 0;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.55) 0%,
    rgba(255,255,255,.38) 45%,
    rgba(255,255,255,.18) 70%,
    rgba(255,255,255,0) 100%
  );

  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);

  pointer-events:none;

  z-index:0;
}

.apt-media{
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(16px);
  border:1px solid rgba(255,255,255,.35);
  border-radius:26px;
  padding:18px;

  box-shadow:
    0 18px 60px rgba(0,0,0,.08);
}

.apt-facts{
  display:grid;
  gap:10px;
}

.apt-fact{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.30);
  border:1px solid rgba(15,23,42,.06);
}

/* ===========================
   APT — EXTERNAL VIDEO LINK
   (match why-readmore style)
=========================== */

.apt-link{

  display:inline-flex;
  align-items:center;
  gap:6px;

  margin-top:14px;

  font-weight:600;

  color:#7a5220;

  text-decoration:none;

  border-bottom:1px solid rgba(122,82,32,.35);

  padding-bottom:2px;

  transition:.25s;
}


/* arrow */

.apt-link::after{
  content:"→";
  transition:.25s;
}


/* hover */

.apt-link:hover{
  color:#c9a15a;
  border-color:#c9a15a;
}

.apt-link:hover::after{
  transform:translateX(4px);
}

/* ============================
   APARTMENT AGENTS — PREMIUM
============================ */

.apt-agents{
  margin-top:28px;
  display:grid;
  gap:18px;
}

.apt-agent{

  display:flex;
  align-items:center;
  gap:22px;

  padding:18px 20px;

  border-radius:20px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.04)
    );

  border:1px solid rgba(255,255,255,.14);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 12px 30px rgba(0,0,0,.25);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

/* subtle lift */

.apt-agent:hover{
  transform:translateY(-4px);

  border-color: rgba(201,161,90,.45);

  box-shadow:
    0 18px 50px rgba(0,0,0,.35),
    0 0 28px rgba(201,161,90,.18);
}

/* IMAGE */

.apt-agent-img{

  flex:0 0 84px;
  width:84px;
  height:84px;

  border-radius:50%;
  overflow:hidden;

  position:relative;

  border:2px solid rgba(201,161,90,.65);

  box-shadow:
    0 0 0 6px rgba(201,161,90,.12),
    0 8px 24px rgba(0,0,0,.35);
}

.apt-agent-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* INFO */

.apt-agent-info{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.apt-agent-info h4{
  font-size:18px;
  font-weight:800;
  letter-spacing:.02em;
  margin:0;
  color:#fff;
}

/* ROLE */

.apt-agent-role{
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;

  color:#c9a15a;
  opacity:.9;
}

/* CONTACT LINKS */

.apt-agent-phone a,
.apt-agent-email a{
  display:inline-flex;
  align-items:center;

  font-size:14px;
  font-weight:600;

  color:rgba(255,255,255,.85);

  text-decoration:none;

  transition:.2s;
}

.apt-agent-phone a:hover,
.apt-agent-email a:hover{
  color:#c9a15a;
}

/* small spacing */

.apt-agent-phone,
.apt-agent-email{
  line-height:1.3;
}

/* ============================
   MOBILE
============================ */

@media(max-width:700px){

  .apt-agent{
    flex-direction:column;
    text-align:center;
    align-items:center;
  }

  .apt-agent-info{
    align-items:center;
  }

}

/* ==================================
   CONTACT — EQUAL HEIGHT FIX
================================== */

.apt-contact-inner{
  align-items:stretch; /* oluline */
}

.apt-contact-form{
  display:flex;
}

.apt-contact-form form{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  width:100%;
}

/* textarea natuke suurem */

.apt-field textarea{
  min-height:160px;
}

/* nupp alla ankurdub */

.apt-submit{
  margin-top:auto;
}

/* =========================================
   APARTMENT BOOK HEADER — SAME AS LIST
========================================= */

.apt-book-header{
  margin-bottom:70px;
  max-width:880px;
  position:relative;
}

/* gold line */

.apt-book-header::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-30px;
  width:120px;
  height:3px;

  background:linear-gradient(
    90deg,
    var(--apt-gold),
    var(--apt-gold-light),
    transparent
  );

  opacity:.6;
}

/* FORCE BLUE SHIMMER LIKE LIST */

.apt-contact .apt-title{
  background:linear-gradient(
    120deg,
    #ffffff 0%,
    #dbeafe 40%,
    #ffffff 100%
  ) !important;

  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
}






/* =========================
CINEMATIC AMBIENT LIGHT
========================= */

.apt-single{
  position:relative;
}

.apt-single::after{
  content:"";
  position:absolute;
  inset:-20%;

  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(201,161,90,.25),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255,255,255,.12),
      transparent 60%
    );

  animation:ambientMove 16s linear infinite alternate;

  pointer-events:none;
  z-index:0;
}

@keyframes ambientMove{
  from{ transform:translate(0,0); }
  to{ transform:translate(80px,-60px); }
}



.apt-core{
  display:grid;
  grid-template-columns: 460px 1fr;
  gap:28px;

  align-items:start; /* oluline */
}

/* =====================================
   APARTMENT MOBILE — HARD FIX
===================================== */

@media (max-width:980px){

  /* grid single column */
  .apt-core{
    grid-template-columns: 1fr !important;
    gap:20px;
    width:100%;
    overflow:hidden;
  }

  /* oluline — lubab shrinkida */
  .apt-core > *{
    min-width:0;
  }

  /* panel */
  .apt-panel{
    width:100%;
  }

  .apt-panel-card{
    position:relative;
    top:auto;
    width:100%;
    max-width:100%;
  }

  /* media kast */
  .apt-media{
    width:100%;
    max-width:100%;
    padding:14px;
  }

  /* kõik sees olevad pildid */
  .apt-viewer,
  .apt-viewer-media,
  .apt-main-img{
    width:100%;
    max-width:100%;
  }

  /* thumbs ei tohi overflow tekitada */
  .apt-thumbs{
    max-width:100%;
  }

  /* tabs wrap */
  .apt-tabs{
    flex-wrap:wrap;
  }

  /* container safety */
  .apt-single .site-wrap{
    padding-left:16px;
    padding-right:16px;
  }
}
