/* Interactive dropdown, modal, mobile menu & property grid helpers */
html, body {
  overflow-x: clip;
}

.lang.open .lang-dd {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sb-f.open .dd {
  display: block;
  pointer-events: auto;
  visibility: visible;
}

.sb-f.open .chev {
  transform: rotate(180deg);
}

.dd .list label.on i,
.dd .list label.checked i {
  background: #006EC7;
  border-color: #006EC7;
}

.dd .opts span.on {
  background: #006EC7;
  color: #fff;
  border-color: #006EC7;
}

.g-switch.on i {
  background: #006EC7;
}

/* Mobile drawer */
.mm[hidden] { display: none; }
.mm {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(14, 18, 27, 0.96);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.mm-in {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 24px;
  text-align: center;
}
.mm-x {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}
.mm-list {
  display: grid;
  gap: 14px;
}
.mm-list a {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
}

/* Modals */
.in-modal[hidden] { display: none; }
.in-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: grid;
  place-items: center;
  padding: 20px;
}
.in-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 23, 0.68);
  backdrop-filter: blur(6px);
}
.in-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: #fff;
  color: #141821;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
.in-modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  color: #141821;
}
.in-modal-card h2 {
  font-size: 28px;
  margin: 8px 0 10px;
}
.in-modal-lead {
  font-size: 15px;
  opacity: 0.78;
  margin-bottom: 20px;
}
.in-modal-form {
  display: grid;
  gap: 14px;
}
.in-modal-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.in-modal-form input,
.in-modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(20, 24, 33, 0.18);
  border-radius: 10px;
  font: inherit;
}
.in-modal-ok {
  padding: 20px 0 4px;
  display: grid;
  gap: 12px;
}

/* Properties page grid & filters */
.in-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  background: #f7f6f3;
  border-radius: 14px;
}
.in-filter-bar select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(20, 24, 33, 0.16);
  background: #fff;
  font: inherit;
  font-size: 15px;
}
.in-wf-chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}
.in-prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.in-card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #141821;
}
.in-card-fav.on svg {
  fill: #c43c3c;
  stroke: #c43c3c;
}
.in-fav-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.in-fav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(20, 24, 33, 0.12);
  border-radius: 10px;
}

/* =========================================================
   O&O Real Estate Brand Overrides (#006EC7, #333333, #F5F8FA)
   ========================================================= */
:root {
  --ink: #1D262B;
  --text: #1D262B;
  --muted: #56514a;
  --paper: #ffffff;
  --ivory: #F5F8FA;
  --bronze: #006EC7;
  --gold: #006EC7;
  --line: rgba(0, 0, 0, 0.1);
  --g-ink: #1D262B;
  --g-tx: #1D262B;
  --g-mu: #56514a;
  --g-ac: #006EC7;
  --g-arany: #006EC7;
  --g-ln: rgba(29, 38, 43, 0.14);
  --g-ease: cubic-bezier(.37, 0, .63, 1);
  --display: 'Montserrat', system-ui, sans-serif;
  --body: 'Poppins', system-ui, sans-serif;
}

body {
  background-color: #F5F8FA;
  color: #1D262B;
  font-family: var(--body);
}

/* Logo sizing & contrast on light vs dark header */
.oo-logo {
  display: inline-flex;
  align-items: center;
}
.oo-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.25s ease;
}
/* On scrolled or inner-page light header, tint white logo to dark purple/black */
.hdr.sc .oo-logo-img,
body:not(.home) .hdr .oo-logo-img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(48%) saturate(2150%) hue-rotate(266deg) brightness(86%) contrast(95%);
}

/* Primary Ocean Country Blue buttons & accents */
.btn-p,
.sb-go.btn-p,
.zd .btn-p,
.zr .btn-p,
.hs .btn-p,
.btn-p[type="submit"],
.btn.metal {
  background: #006EC7 !important;
  background-image: none !important;
  border-color: #006EC7 !important;
  color: #ffffff !important;
}
.btn-p:hover,
.sb-go.btn-p:hover,
.zd .btn-p:hover,
.zr .btn-p:hover,
.hs .btn-p:hover,
.btn-p[type="submit"]:hover,
.btn.metal:hover {
  background: #00559E !important;
  background-image: none !important;
  border-color: #00559E !important;
  color: #ffffff !important;
}
.btn-p:active,
.sb-go.btn-p:active,
.zd .btn-p:active,
.zr .btn-p:active,
.hs .btn-p:active,
.btn-p[type="submit"]:active {
  background: #00447F !important;
  border-color: #00447F !important;
  color: #ffffff !important;
}

.btn-s {
  background: #EAF4FB !important;
  color: #006EC7 !important;
  border-color: #D6EAF8 !important;
}
.btn-s:hover {
  background: #006EC7 !important;
  color: #ffffff !important;
  border-color: #006EC7 !important;
}
.btn-s:active {
  background: #00559E !important;
  color: #ffffff !important;
  border-color: #00559E !important;
}

.btn-t {
  background: transparent !important;
  color: #006EC7 !important;
  border-color: rgba(0, 110, 199, 0.35) !important;
}
.btn-t:hover {
  background: rgba(0, 110, 199, 0.08) !important;
  color: #00559E !important;
  border-color: #006EC7 !important;
}
.on-dark .btn-t {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
.on-dark .btn-t:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #ffffff !important;
}

.btn-i {
  background: #EAF4FB !important;
  color: #006EC7 !important;
}
.btn-i:hover {
  background: #006EC7 !important;
  color: #ffffff !important;
}

.go i {
  background: #EAF4FB !important;
  color: #006EC7 !important;
  border-color: #D6EAF8 !important;
}
.go:hover i {
  background: #006EC7 !important;
  color: #ffffff !important;
  border-color: #006EC7 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
}

.ab-eye,
.hs-eye,
.go:hover,
.hdr nav a.on,
.hdr nav a:hover {
  color: #006EC7;
}

.hdr nav a .uline::after,
.hdr-top a .uline::after {
  background-color: #006EC7;
}

/* Footer dark #000000 with #006EC7 hover */
.ftr {
  background-color: #111B21 !important;
  color: #ffffff;
}
.ftr a:hover {
  color: #68C79D !important;
}

/* Crisp header contrast on scroll & inner pages */
.hdr.sc,
body:not(.home) .hdr {
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.hdr.sc .hdr-main nav a,
.hdr.sc .hdr-main .tools a,
.hdr.sc .hdr-main .tools button,
body:not(.home) .hdr .hdr-main nav a,
body:not(.home) .hdr .hdr-main .tools a,
body:not(.home) .hdr .hdr-main .tools button {
  color: #000000 !important;
}

/* Crisp footer contrast on #000000 */
.ftr,
.ftr p,
.ftr address,
.ftr li,
.ftr a {
  color: rgba(255, 255, 255, 0.85) !important;
}
.ftr h4 {
  color: #68C79D !important;
}
.ftr a:hover {
  color: #ffffff !important;
}

/* Ensure scrolled header top & main are solid white with dark text */
.hdr.sc .hdr-top,
.hdr.sc .hdr-main,
body:not(.home) .hdr .hdr-top,
body:not(.home) .hdr .hdr-main {
  background: #ffffff !important;
  color: #000000 !important;
}
.hdr.sc .hdr-top a,
.hdr.sc .hdr-top button,
body:not(.home) .hdr .hdr-top a,
body:not(.home) .hdr .hdr-top button {
  color: #000000 !important;
}

/* Ensure all footer text, slogans, and office details have high contrast on #000000 */
.ftr .ft-slogan,
.ftr .ft-slogan b,
.ftr .ft-contact,
.ftr .ft-contact address,
.ftr .ft-contact p,
.ftr .ft-contact a,
.ftr .ft-copy,
.ftr .ft-legal a,
.ftr .ft-credit a {
  color: #e5e5e5 !important;
}

/* =========================================================
   Responsive & Layout Fixes (Mobile 390px, Tablet 768px, Desktop)
   ========================================================= */
.zr, .zd {
  overflow: visible !important;
  max-width: 100% !important;
}
.zd-stage {
  overflow: hidden !important;
  max-width: 100% !important;
}
.hdr .hdd,
.hdr .lang-dd,
.hdr .me-dd {
  background: #ffffff !important;
}

/* Hero LCP: never hide hero text at opacity:0 waiting for JS */
.hero .reveal,
.hero .slogan,
.hero h1,
.hero .lead {
  opacity: 1 !important;
  transform: none !important;
}

/* Remove sticky / solid header dark gradient band */
.hdr.sc::before,
.hdr.sc::after,
body:not(.home):not(.pg-adatlap) .hdr::before,
body:not(.home):not(.pg-adatlap) .hdr::after {
  display: none !important;
}

/* Prevent clipped headings during scroll reveals */
.rv-w {
  overflow: visible !important;
}

/* Mobile drawer (#oo-mm) */
.oo-mm[hidden] {
  display: none !important;
}
.oo-mm:not([hidden]) {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  clip-path: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  transform: none !important;
  background: rgba(17, 27, 33, 0.98) !important;
  z-index: 100000 !important;
}
.oo-mm:not([hidden]) .mm-in,
.oo-mm:not([hidden]) .mm-x,
.oo-mm:not([hidden]) .mm-list a {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile search sheet when #ms-pill is clicked */
@media (max-width: 860px) {
  #hero-search.ms-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9996 !important;
    background: #ffffff !important;
    padding: 20px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }
  #hero-search.ms-open .ms-head {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  #hero-search.ms-open .ms-pill {
    display: none !important;
  }
  #hero-search.ms-open .sb-f,
  #hero-search.ms-open .sb-go {
    display: flex !important;
    width: 100% !important;
  }
}

/* Services (.ot-dots & .ot-card) responsive fix */
.ot-card {
  scale: 1 !important;
  opacity: 1 !important;
}
@media (max-width: 1024px) {
  .ot-frame {
    overflow: visible !important;
  }
  .ot-dots {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 16px !important;
    justify-content: flex-start !important;
  }
  .ot-dot {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    scale: 1 !important;
    opacity: 1 !important;
    width: 44px !important;
    height: 44px !important;
  }
  .ot-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
    transform: none !important;
    opacity: 1 !important;
    scale: 1 !important;
  }
}

/* Tomorrow's homes tablet/mobile card sizing */
@media (max-width: 1024px) {
  .op .pc {
    max-width: 340px !important;
  }
  .op .pc-img {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
  }
}

/* /properties/ full-width multi-column grid */
#lp-results,
#lp-list,
.in-prop-grid {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* Ensure fixed header never occludes mobile drawer (#oo-mm) or mobile search sheet (#ms-x) */
body.mm-open .hdr {
  z-index: 1 !important;
}
.oo-mm:not([hidden]) {
  z-index: 2147483000 !important;
}
body.ms-full .hdr {
  display: none !important;
}

/* Uniform card image sizing across property grids */
.fc-ph,
.in-prop-card .pc-img,
#ltp-siml .pc-img {
  aspect-ratio: 16 / 10 !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
}
.fc-ph img,
.in-prop-card .pc-img img,
#ltp-siml .pc-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.elementor .op .pc > a {
  position: relative !important;
  display: block !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}
.elementor .op .pc-img {
  height: 540px !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}
.elementor .op .pc-img img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.elementor .op .pc-b {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2 !important;
  padding: 28px !important;
  background: linear-gradient(180deg, rgba(14, 24, 33, 0) 0%, rgba(14, 24, 33, 0.88) 100%) !important;
  color: #ffffff !important;
}
.elementor .op .pc-b .pc-loc,
.elementor .op .pc-b h3,
.elementor .op .pc-b .op-spec span,
.elementor .op .pc-b .op-spec b {
  color: #ffffff !important;
}
@media (max-width: 1024px) {
  .elementor .op .pc-img {
    height: 360px !important;
  }
}

/* #projektek (Tomorrow's Algarve homes) slider controls */
#projektek .fs-track {
  display: flex !important;
}
#projektek .op-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
#projektek .op-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
#projektek .op-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 38, 43, 0.22);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s;
}
#projektek .op-dot.on {
  width: 26px;
  background: #006EC7;
}
#projektek .op-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
#projektek .op-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(29, 38, 43, 0.16);
  border-radius: 50%;
  background: #ffffff;
  color: #1D262B;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
#projektek .op-btn:hover {
  background: #006EC7;
  border-color: #006EC7;
  color: #ffffff;
}
#projektek .op-btn .ico {
  width: 18px;
  height: 18px;
}
#projektek .op-prev .ico {
  transform: rotate(180deg);
}

/* Callback modal [hidden] fix */
.in-modal-form[hidden],
.in-modal-ok[hidden] {
  display: none !important;
}

/* Desktop Services hotspots (.ot-dot) positioning */
@media (min-width: 1025px) {
  .ot-dots {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none;
  }
  .ot-dot {
    pointer-events: auto;
  }
}

/* /properties/ Sidebar Filter (.lp-side) */
@media (min-width: 1025px) {
  .lv-2 .lp-side {
    display: block !important;
  }
  .lv-2 #lp-live-filters {
    display: none !important;
  }
}
.in-side-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.in-side-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.in-side-hd h3 {
  font-size: 18px;
  margin: 0;
}
.in-side-grp {
  display: grid;
  gap: 6px;
}
.in-side-grp label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #333333;
}
.in-side-grp select,
.in-side-grp input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #F5F8FA;
  font: inherit;
  font-size: 14px;
}
.in-side-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

/* Footer visibility & layout consistency across all pages */
.ftr {
  position: relative;
  z-index: 2;
  width: 100%;
  clear: both;
}
.ftr,
.ftr .ft-brand,
.ftr .ft-col,
.ftr .ft-bar {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.fc .fc-fav {
  opacity: 1 !important;
}
/* Ensure closing door CTA (.zd) opens smoothly and never stays solid black */
.zd-door {
  pointer-events: none !important;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease !important;
}
.zd.live .zd-l {
  transform: translateX(-105%) !important;
  opacity: 0 !important;
}
.zd.live .zd-r {
  transform: translateX(105%) !important;
  opacity: 0 !important;
}
.om-map {
  aspect-ratio: 516 / 225 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 110, 199, 0.14);
}
.om-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* /properties/ and /projects/ sidebar + Ocean Country (#006EC7) accents */
#lp-side .ft-g,
#pj-side .ft-g {
  opacity: 1 !important;
  transform: none !important;
}
#lp-side .ft-ck[aria-checked="true"] i,
#pj-side .ft-ck[aria-checked="true"] i,
#lp-side .ft-p[aria-checked="true"],
#pj-side .ft-p[aria-checked="true"] {
  background: #006EC7 !important;
  border-color: #006EC7 !important;
  color: #ffffff !important;
}
#lp-side .ft-seg button.on,
#pj-side .ft-seg button.on,
#lp-side .ft-tag,
#pj-side .ft-tag {
  background: #006EC7 !important;
  border-color: #006EC7 !important;
  color: #ffffff !important;
}
#lp-side .ft-trk b,
#pj-side .ft-trk b {
  background: #006EC7 !important;
}
#lp-side .ft-th:hover,
#pj-side .ft-th:hover,
#lp-side .ft-th:focus-visible,
#pj-side .ft-th:focus-visible {
  border-color: #006EC7 !important;
}
#lp-side .ft-hist i.in,
#pj-side .ft-hist i.in {
  background: #006EC7 !important;
}
#lp-tools .lp-sel select,
#pj-tools .lp-sel select {
  height: 44px;
  padding: 0 36px 0 16px;
  border: 1px solid rgba(29, 38, 43, 0.16);
  border-radius: 999px;
  background: #ffffff;
  font: 500 14px var(--font-body, 'Poppins', sans-serif);
  color: #1D262B;
  cursor: pointer;
}
#lp-side .ft-cb {
  position: relative;
}
#lp-side .ft-cbl {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(29, 38, 43, 0.14);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(29, 38, 43, 0.14);
  padding: 4px;
}
#lp-side .ft-cbl[hidden] {
  display: none !important;
}
#lp-side .ft-cbl button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #1D262B;
  cursor: pointer;
  text-align: left;
}
#lp-side .ft-cbl button:hover,
#lp-side .ft-cbl button.on {
  background: #EAF4FB;
  color: #006EC7;
}
#lp-side .ft-cbl button small {
  color: #64748b;
  font-size: 12px;
}
#lp-side .ft-cbl .flag,
#lp-list .fc-loc .flag {
  width: 18px !important;
  height: 13px !important;
  flex: 0 0 18px;
}
#lp-list .fc-fav svg {
  width: 18px !important;
  height: 18px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
#lp-list .fc-fav.on svg {
  fill: #006EC7;
  stroke: #006EC7;
}
#lp-list .fc-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
@media (min-width: 1025px) {
  #lp-live-filters {
    display: none !important;
  }
  .lv-1 .lp-layout,
  .pj-layout {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 36px !important;
    align-items: start !important;
    margin-top: 24px;
    overflow-anchor: none;
  }
  .lv-1 .lp-main,
  .pj-main {
    min-height: 760px;
    overflow-anchor: none;
  }
  .pj-layout #pj-or,
  #lp-list {
    overflow-anchor: none;
  }
  .pj-layout #pj-or {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .lv-1 .lp-side,
  .pj-side {
    display: block !important;
    position: sticky !important;
    top: calc(var(--lp-hdr, 92px) + 22px) !important;
    width: 300px !important;
    max-width: 300px !important;
    max-height: calc(100vh - var(--lp-hdr, 92px) - 36px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-right: 6px;
  }
  .elementor-section:has(#lp),
  .elementor-section:has(#pj-a),
  .elementor-section:has(#lp) .elementor-column,
  .elementor-section:has(#pj-a) .elementor-column,
  .elementor-section:has(#lp) .elementor-widget-wrap,
  .elementor-section:has(#pj-a) .elementor-widget-wrap {
    overflow: visible !important;
  }
}

@media (max-width: 1024px) {
  .pj-side {
    display: none;
    margin: 16px 0 24px;
    background: #ffffff;
    border: 1px solid rgba(29, 38, 43, 0.12);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(29, 38, 43, 0.08);
  }
  .pj-side.on {
    display: block !important;
  }
  .pj-mbar {
    display: flex !important;
    margin: 20px 0 16px;
  }
}
@media (min-width: 1025px) {
  .pj-mbar {
    display: none !important;
  }
}

/* /property/ (.pg-adatlap) transparent header with dark scrim for crisp contrast */
body.pg-adatlap .hdr:not(.sc) {
  background: linear-gradient(180deg, rgba(14, 24, 33, 0.78) 0%, rgba(14, 24, 33, 0.42) 72%, rgba(14, 24, 33, 0) 100%) !important;
  box-shadow: none !important;
  color: #ffffff !important;
}
body.pg-adatlap .hdr:not(.sc) .hdr-top,
body.pg-adatlap .hdr:not(.sc) .hdr-main {
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
}
body.pg-adatlap .hdr:not(.sc) .hdr-top a,
body.pg-adatlap .hdr:not(.sc) .hdr-top button,
body.pg-adatlap .hdr:not(.sc) .hdr-main > .wrap > nav > a,
body.pg-adatlap .hdr:not(.sc) .hdr-main .tools > a,
body.pg-adatlap .hdr:not(.sc) .hdr-main .tools > button {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
body.pg-adatlap .hdr:not(.sc) .oo-logo-img {
  filter: none !important;
}

/* Dual upload logos (white_logo.png on dark/hero, logo.png on light/scrolled) */
.oo-logo-dark {
  display: none !important;
}
.oo-logo-white {
  display: block !important;
  filter: none !important;
}
.hdr.sc .oo-logo-white,
body:not(.home):not(.pg-adatlap) .hdr .oo-logo-white {
  display: none !important;
}
.hdr.sc .oo-logo-dark,
body:not(.home):not(.pg-adatlap) .hdr .oo-logo-dark {
  display: block !important;
  filter: none !important;
}

/* Uniform Ocean Country (#006EC7 / #EAF4FB / #008B55) buttons, pills, tabs, toggles & controls */
.lp-ctab,
.lp-ctabs-m .lp-ctab {
  border-color: rgba(29, 38, 43, 0.16);
  background: #ffffff;
  color: #1D262B;
}
.lp-ctab:hover,
.lp-ctabs-m .lp-ctab:hover {
  border-color: #006EC7;
  color: #006EC7;
}
.lp-ctab.on,
.lp-ctabs-m .lp-ctab.on {
  background: #006EC7 !important;
  border-color: #006EC7 !important;
  color: #ffffff !important;
}
.lp-pillb,
.lp-selb,
.lp-allb {
  border-color: rgba(29, 38, 43, 0.16);
  color: #1D262B;
}
.lp-pill.act .lp-pillb,
.lp-selb[aria-expanded="true"],
.lp-pillb:hover,
.lp-selb:hover,
.lp-allb:hover {
  border-color: #006EC7 !important;
  background: #EAF4FB !important;
  color: #006EC7 !important;
}
.lp-pop-f .k,
.lp-allb b,
.lp-view button.on,
.lp-sw[aria-checked="true"] i,
.lp-mapfab,
.mp-pin.cl,
.mp-pin.hot,
.mp-pin.sel,
.mp-area[aria-checked="true"] i,
.gm-t[aria-pressed="true"],
.gm-zcimke {
  background: #006EC7 !important;
  border-color: #006EC7 !important;
  color: #ffffff !important;
}
.lp-chip {
  background: #EAF4FB !important;
  border-color: #D6EAF8 !important;
  color: #006EC7 !important;
}
.lp-clr,
.lp-dr-f .lp-clr2,
.ft-clr,
.lp-empty .lp-clr,
.mp-pop .all {
  color: #006EC7 !important;
}
.mp-pop .all {
  background: #EAF4FB !important;
}
.lp-moreb {
  border: 1px solid #006EC7 !important;
  background: #ffffff !important;
  color: #006EC7 !important;
}
.lp-moreb:hover {
  background: #006EC7 !important;
  border-color: #006EC7 !important;
  color: #ffffff !important;
}
.ft-th {
  background: #ffffff !important;
  background-image: none !important;
  border: 2px solid #006EC7 !important;
  box-shadow: 0 2px 8px rgba(0, 110, 199, 0.28) !important;
}
.ft-ck[aria-checked="true"] i,
.ft-p[aria-checked="true"],
.ft-seg button.on,
.ft-tag,
.om-tabs button.on,
.mt-szur button.on,
.rg-b[aria-selected="true"],
.ts-tem button[aria-pressed="true"],
.szw-al li.on .n,
.hdr .tb .cnt,
.hdr .me .av,
.me-fej .av,
.mm-fiok .av {
  background: #006EC7 !important;
  background-image: none !important;
  border-color: #006EC7 !important;
  color: #ffffff !important;
}
.ft-clr:focus-visible,
.ft-tg:focus-visible::after,
.lp-pillb:focus-visible,
.lp-ctab:focus-visible,
.mp-pin:focus-visible,
.gm-t:focus-visible,
.mt-szur button:focus-visible,
.rg-b:focus-visible {
  outline-color: #006EC7 !important;
}

/* Design Parity Fixes with Elementor & WP Admin Bar */
body.admin-bar .hdr {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar .hdr {
    top: 46px !important;
  }
}
@media (max-width: 600px) {
  body.admin-bar .hdr.sc {
    top: 0 !important;
  }
}
.hdr.sc .hdr-top {
  display: none !important;
}
h1, h2, .t, .hs-h, .sz-h, .zd-h, .ev-rate b {
  font-weight: 300 !important;
}
h1 b, h2 b, .t b, .hs-h b, .sz-h b, .zd-h b {
  font-weight: 700 !important;
}
.elementor .vx > img.vx-a,
.elementor .vx > img.vx-b {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
}
.elementor .vx .vx-b,
.elementor .vx .vx-line,
.elementor .vx .vx-l {
  opacity: 1 !important;
  transform: none !important;
}
.elementor .ot-frame {
  height: 576px !important;
  overflow: hidden !important;
}
.elementor .ot-img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}
.elementor .ot-card {
  scale: 1 !important;
}
.elementor .zd-img img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}
.elementor-section:has(#zaro),
.elementor-section:has(#zaro) .elementor-column,
.elementor-section:has(#zaro) .elementor-widget-wrap,
#zaro {
  overflow: visible !important;
}
.ftr .ft-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.ftr .ft-legal li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ftr .ft-legal li + li::before {
  content: '|';
  color: rgba(255, 255, 255, 0.35);
}
.sb-ref-in {
  border: 0;
  background: transparent;
  outline: none;
  font: 500 var(--fs-kis) var(--font-body);
  color: var(--text, #1D262B);
  width: 100%;
  min-width: 0;
  padding: 0;
}
.sb-ref-in::placeholder {
  color: #333333;
  font-weight: 500;
  opacity: 1;
}

/* Inner-page hero spacing & button breathing room */
.ltp-hero.vny,
#vny,
.ltp-hero.tt-hero,
#sz-tt {
  height: auto !important;
  padding-bottom: clamp(56px, 8svh, 96px) !important;
}
.ltp-hero.tt-hero,
#sz-tt {
  padding-top: 164px !important;
  background: linear-gradient(105deg, rgba(14, 24, 33, 0.90) 0%, rgba(14, 24, 33, 0.68) 55%, rgba(14, 24, 33, 0.42) 100%),
    url("/wp-content/themes/oceancountry-theme/assets/img/stock/offmarket-villa.jpg") center/cover no-repeat !important;
}
@media (max-width: 1024px) {
  .ltp-hero.tt-hero,
  #sz-tt {
    padding-top: 112px !important;
  }
}
#pj-a {
  padding-top: clamp(148px, 16svh, 180px) !important;
  padding-bottom: clamp(32px, 5svh, 56px) !important;
}
@media (max-width: 1024px) {
  #pj-a {
    padding-top: 136px !important;
    padding-bottom: 36px !important;
  }
}
@media (max-width: 860px) {
  .kr-hero,
  .ltp-hero.vny,
  #vny,
  .ltp-hero.tt-hero,
  #sz-tt {
    padding-bottom: 52px !important;
  }
  .kr-hero .vg-act,
  .kr-hero .oc-act,
  .ltp-hero.vny .vg-act {
    gap: 20px !important;
  }
}

/* Services / Blog Steps (.sz-ut, .sz-seg, .vg-seg) */
.sz-seg .vg-seg-t,
.vg-seg .vg-seg-t {
  background: #006EC7 !important;
}
.sz-ut-s::before {
  background: rgba(29, 38, 43, 0.16) !important;
}
.sz-ut-s .n {
  background: #ffffff !important;
  border-color: rgba(0, 110, 199, 0.35) !important;
  color: #006EC7 !important;
}
.sz-ut-s b {
  color: #1D262B !important;
}
.sz-ut-s a > span:not(.n),
.sz-ut-m {
  color: #56514a !important;
}
.sz-ut-m a {
  color: #006EC7 !important;
}

/* Property Card & Detail Badges (Exclusive, Sold, etc.) */
.fc-chips {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fc-chips .fc-chip {
  position: static;
  top: auto;
  left: auto;
}
.fc-chip--sold {
  background: #111B21 !important;
  color: #ffffff !important;
}
.fc-chip--excl {
  background: #006EC7 !important;
  color: #ffffff !important;
}
.ltp-tag--sold {
  background: #111B21 !important;
  color: #ffffff !important;
  border-color: #111B21 !important;
}
.ltp-tag--excl {
  background: #006EC7 !important;
  color: #ffffff !important;
  border-color: #006EC7 !important;
}

/* Property Detail Sidebar Request Information Form */
.ltp-req-h {
  margin: 0 0 16px;
  font: 500 22px/1.15 var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1D262B;
}
.ltp-req-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.ltp-req-form input,
.ltp-req-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #ffffff;
  font: 400 14px/1.45 var(--font-body);
  color: #1D262B;
  transition: border-color 0.2s ease;
}
.ltp-req-form textarea {
  resize: vertical;
  min-height: 82px;
}
.ltp-req-form input::placeholder,
.ltp-req-form textarea::placeholder {
  color: #8c959d;
}
.ltp-req-form input:focus,
.ltp-req-form textarea:focus {
  outline: none;
  border-color: #006EC7;
}
.ltp-req-form .ltp-cb {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.ltp-req-ok {
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #EAF4FB;
  color: #1D262B;
  font-size: 14px;
  line-height: 1.5;
}
.ltp-req-ok p {
  margin: 0;
}
.ltp-epc-svg {
  height: 30px !important;
  width: auto !important;
  max-width: 110px !important;
  display: block;
  object-fit: contain;
}

/* Main Header Language Dropdown (#lang inside .hdr-main .tools) */
.hdr-main .lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.hdr-main .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: 600 12px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.hdr-main .lang-btn .ico {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}
.hdr-main .lang-btn .chev {
  width: 11px;
  height: 11px;
}
.hdr.sc .hdr-main .lang-btn,
body:not(.home) .hdr .hdr-main .lang-btn {
  color: #000000 !important;
}
.hdr-main .lang-dd {
  color: #1D262B;
  z-index: 220;
}
.hdr-main .lang.open .lang-dd {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* =================================================
 * Print Brochure Layout (1-Page A4 Luxury Brochure)
 * ================================================= */
#oc-brochure-print {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 7mm;
  }
  html, body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }
  body > *:not(#oc-brochure-print) {
    display: none !important;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  #oc-brochure-print {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 281mm;
    max-height: 281mm;
    overflow: hidden;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #1b1a18;
    background: #fff;
    box-sizing: border-box;
  }
  .ocb-hdr {
    background: #1b1a18;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #c4a389;
  }
  .ocb-hdr img {
    height: 46px;
    width: auto;
    object-fit: contain;
  }
  .ocb-hero {
    position: relative;
    width: 100%;
    height: 92mm;
    overflow: hidden;
    margin-top: 8px;
    border-bottom: 4px solid #1b1a18;
  }
  .ocb-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .ocb-ref-pill {
    position: absolute;
    right: 0;
    bottom: 14px;
    background: rgba(27, 26, 24, 0.86);
    color: #ffffff;
    padding: 7px 18px 7px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-left: 3px solid #c4a389;
  }
  .ocb-subimgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
    height: 45mm;
  }
  .ocb-subimgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .ocb-body {
    flex: 1;
    padding: 10px 2px 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }
  .ocb-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1px solid #e2ddd5;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }
  .ocb-loc {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8f6a43;
    font-weight: 600;
  }
  .ocb-price {
    font-size: 16px;
    font-weight: 700;
    color: #1b1a18;
  }
  .ocb-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    color: #1b1a18;
  }
  .ocb-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 10.5px;
    color: #444;
    background: #f7f5f1;
    border-left: 3px solid #c4a389;
    padding: 6px 12px;
    margin-bottom: 9px;
  }
  .ocb-specs span b {
    color: #1b1a18;
    font-weight: 600;
  }
  .ocb-desc {
    font-size: 10.2px;
    line-height: 1.5;
    color: #2b2b2b;
    margin: 0 0 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 11;
    -webkit-box-orient: vertical;
  }
  .ocb-ref-foot {
    font-size: 10.5px;
    font-weight: 600;
    color: #8f6a43;
    margin-top: auto;
  }
  .ocb-ftr-wrap {
    margin-top: 6px;
  }
  .ocb-ftr-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
  }
  .ocb-ftr-bar {
    flex: 1;
    background: #1b1a18;
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 3px solid #c4a389;
  }
  .ocb-ftr-url {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 3px;
    color: #ffffff;
  }
  .ocb-ftr-info {
    font-size: 9px;
    line-height: 1.45;
    color: #e4e0d8;
    margin: 0;
  }
  .ocb-ftr-epc {
    width: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
  }
  .ocb-ftr-epc img {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
  }
  .ocb-disc {
    font-size: 7.5px;
    color: #666;
    margin: 4px 0 0;
    line-height: 1.3;
  }
}

/* Property Detail: 360 Virtual Tour, Video, Floorplans & Leaflet Map */
.ltp-media-sec {
  margin-top: 40px;
}
.ltp-media-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.ltp-media-head .ab-eye {
  width: 100%;
  margin-bottom: 4px;
}
.ltp-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(29, 38, 43, 0.1);
}
.ltp-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ltp-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.ltp-plan-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(29, 38, 43, 0.12);
  background: #ffffff;
}
.ltp-plan-item img {
  width: 100%;
  height: auto;
  display: block;
}
.ltp-mp.leaflet-container {
  z-index: 1;
  font-family: var(--font-body, 'Poppins', sans-serif);
}
.lp-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(29, 38, 43, 0.16);
  border-radius: 999px;
  background: #ffffff;
  font: 500 14px var(--font-body, 'Poppins', sans-serif);
  color: #1D262B;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lp-map-btn.on,
.lp-map-btn:hover {
  background: #006EC7;
  border-color: #006EC7;
  color: #ffffff;
}
.lp-map-btn .ico {
  width: 16px;
  height: 16px;
}
#lp-osm-map {
  width: 100%;
  height: 440px;
  margin: 16px 0 24px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(29, 38, 43, 0.12);
  z-index: 1;
}
.oc-map-pin span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #006EC7;
  color: #ffffff;
  font: 600 12px/1.2 var(--font-body, 'Poppins', sans-serif);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  border: 1.5px solid #ffffff;
  transform: translate(-50%, -50%);
}
