/* ===== VARIABLES ===== */
:root{
  --btn: 48px;        /* center & dot size */
  --orbit-diam: 230px;/* diameter of the orbit circle */
}

/* ===== BASE STYLES ===== */
/* CONFLICT RESOLVED: Combined html,body from both files - used Barlow Condensed font from first file, 
   layout properties from second file, kept all unique properties */
html, body { 
  margin:0; 
  padding:0; 
  height:100%; 
  font-family: 'Barlow Condensed', Arial, sans-serif;  /* ✅ FROM FIRST FILE */
}

/* ===== VIEWER & MAP LAYOUT ===== */
/* FROM SECOND FILE - 3D viewer layout */
#viewer-container { 
  position:absolute; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  transition: opacity 0.3s ease;
}

/* CONFLICT RESOLVED: Used second file's #map positioning (50% height for split screen)
   instead of first file's 100vh (full screen) */
#map {
height: 100dvh;
}

#canvas { 
  width:100%; 
  height:100%; 
  touch-action:none; 
  pointer-events:auto; 
  user-select:none; 
}

/* ===== IMAGE CONTROLS ===== */
/* FROM SECOND FILE - 3D viewer navigation */
.image-controls {
  position:absolute; 
  bottom:10px; 
  left:50%; 
  transform:translateX(-50%);
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  z-index:20; 
  pointer-events:none;
}

.navigation-ring {
  position:relative; 
  width:160px; 
  height:160px; 
  border-radius:50%;
  display:flex; 
  align-items:center; 
  justify-content:center; 
  user-select:none; 
  pointer-events:none;
}

.nav-button.ring-button {
  position:absolute; 
  width:40px; 
  height:40px; 
  border:none; 
  border-radius:50%;
  background:rgba(0,0,0,0); 
  color:#fff; 
  display:flex; 
  align-items:center; 
  justify-content:center;
  font-size:20px; 
  cursor:pointer; 
  transform:translateX(-50%); 
  pointer-events:auto; 
  z-index:21;
}

#nextImageBtn.ring-button { 
  top:15px; 
  left:50%; 
}

#prevImageBtn.ring-button { 
  bottom:15px; 
  left:50%; 
}

.nav-button.ring-button:hover { 
  transform:translateX(-50%) scale(1.08); 
}

/* ===== LOADING STATES ===== */
#viewer-loading {
  display:none; 
  position:absolute; 
  top:50%; 
  left:50%; 
  transform:translate(-50%,-50%);
  z-index:100; 
  background:rgba(0,0,0,0.7); 
  padding:16px 20px; 
  border-radius:10px; 
  text-align:center; 
  color:#fff;
}

.spinner { 
  width:36px; 
  height:36px; 
  border:4px solid rgba(255,255,255,0.12); 
  border-top-color:#22d3ee; 
  border-radius:50%; 
  animation:spin 1s linear infinite; 
  margin:0 auto 8px; 
}

@keyframes spin { 
  to { transform: rotate(360deg); } 
}

/* ===== MAPBOX STYLES ===== */
/* FROM SECOND FILE */
.mapboxgl-marker.view-cone { z-index: 10; }

/* CONFLICT RESOLVED: Added both Mapbox control styles from first file */
.mapboxgl-ctrl.mapboxgl-ctrl-attrib {
  position: absolute;
}

.mapboxgl-ctrl-logo {
  transform: scale(0.8) !important;
  opacity:0.6;
}

/* ===== DRAGGING STATES ===== */
/* FROM SECOND FILE */
.dragging-pano .image-controls,
.dragging-pano .image-controls *,
.dragging-pano .nav-button,
.dragging-pano .nav-button *,
.dragging-pano .ring-button,
.dragging-pano .ring-button * {
  pointer-events: none !important;
}

/* ===== BRANCH BUTTON POSITIONING ===== */
/* FROM SECOND FILE */
#branchImageBtn.ring-button {
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.navigation-ring.has-branch #branchImageBtn.ring-button {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg); /* Rotate to point down */
  right: auto;
  top: auto;
}

.navigation-ring.has-branch #nextImageBtn.ring-button {
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.navigation-ring.has-branch #prevImageBtn.ring-button {
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
}

.small-btn {
  display:none;
}

/* ===== LOGO STYLES ===== */
/* FROM FIRST FILE */
.logo-wrapper {
  position: fixed;
  top: 24px;
  left: 24px;
  background-color:;
  padding: 2px;
  padding-bottom:0px;
  border-radius:0px;
  z-index: 9999;
}

.logo-wrapper path {
  fill: #ff8400; 
}

.logo-wrapper img {
  height: 40px;
  width: auto;
}

.logoinv-wrapper {
  position: fixed;
  top: 24px;
  left: 24px;
  background-color:;
  padding: 2px;
  padding-bottom:0px;
  border-radius:0px;
  z-index: 9999;
}

.logoinv-wrapper path {
  fill: #ff8400; 
}

.logoinv-wrapper img {
  height: 20px;
  width: auto;
}

.lala-wrapper {
  position: fixed;
  bottom: 8px;
  right: 8px;
  background-color:;
  padding: 2px;
  padding-bottom:0px;
  border-radius:0px;
  z-index: 9999;
}

.lala-wrapper path {
  fill: #ff8400; 
}

.lala-wrapper img {
  height: 26px;
  width: auto;
}

/* Globe login button above lalaland logo - subtle, almost hidden */
.globe-login-button {
  position: fixed;
  bottom: 42px;  /* Above lalaland logo (26px + 8px + 8px) */
  right: 14px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.2s ease;
  padding: 0;
  opacity: 0.4;  /* Very subtle by default */
}

.globe-login-button svg {
  fill: #888;
  transition: fill 0.2s ease;
}

.globe-login-button:hover {
  opacity: 1;
}

.globe-login-button:hover svg {
  fill: #ff8400;
}

.globe-login-button:active {
  transform: scale(0.9);
}

/* Show green when logged in */
.globe-login-button.logged-in {
  opacity: 0.8;
}

.globe-login-button.logged-in svg {
  fill: #4ade80;  /* Green when logged in */
}

/* ===== MODAL STYLES ===== */
/* FROM FIRST FILE */
#lotModal {
  display: none;
  position: fixed;
  background: #fcfaf3;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  width: calc(100% - 40px);
  border: 1px solid #d8cbbc;
  overflow: hidden;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
}

#lotModal.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
  #lotModal:not(.expanded) {
    height: 45dvh;
    width: calc(100% - 40px);
    max-width: none;
  }
}

@media (min-width: 768px) {
  #lotModal:not(.expanded) {
    position: fixed;
    top: 50%;
    left: 30vw;
    width: 360px;
    height: 70%;
    max-height: 620px;
    transform: translate(-50%, -50%);
  }
  #lotModal.expanded {
    position: fixed;
    top: 50%;
    left: 30vw;
    width: 56%;
    height: 80%;
    max-height: 920px;
    transform: translate(-50%, -50%);
  }
}

/* ===== MODAL HEADER ===== */
/* FROM FIRST FILE */
.modal-header {
  position: relative;
  background: #fffdf8;
  padding: 16px 52px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #ff8400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.header-lot-number {
  font-size: 20px;
  font-weight: 700;
  color: #ac8f5f;
  display: none; /* Hidden by default */
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lot-number-header {
  font-weight: 400;
  color: #8a8880;
  display: none; /* Hidden by default */
}

/* Header Controls Container */
.header-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header-control:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Default SVG size for all header controls */
.header-control svg {
  width: 12px;
  height: 12px;
  transition: transform 0.4s ease;
  stroke: #888;
  stroke-width: 1.5px;
  transform-origin: center;
  transform-box: fill-box;
}

/* Back button specifics */
#backButton {
  left: 12px;
  display: none;
}

#backButton svg {
  width: 16px; /* Larger for back button */
  height: 16px;
}

/* Close button specifics */
.close-x {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Hover effects */
.header-control:hover svg {
  stroke: #666;
}

/* Rotation animations */
.header-control:hover#backButton svg {
  transform: rotate(-360deg);
}

.header-control.close-x:hover svg {
  transform: rotate(360deg);
}

/* ===== MODAL CONTENT ===== */
/* FROM FIRST FILE */
.modal-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0;
}

.modal-content-wrapper {
  position: relative;
  height: calc(100% - 54px);
  overflow: hidden;
}

.modal-info {
  display: block;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  contain: strict;
}

.modal-info::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar {
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: rgba(200, 200, 200, 0.2);
  border-radius: 3px;
  z-index: 10;
}

.custom-scrollthumb {
  position: absolute;
  width: 6px;
  background: #c0c0c0;
  border-radius: 3px;
  transition: height 0.2s, background 0.2s;
}

.custom-scrollthumb:hover,
.custom-scrollthumb.active {
  background: #a0a0a0;
}

/* ===== INFO ROWS ===== */
/* FROM FIRST FILE */
.info-row {
  position: relative;
  flex: none;
  height: calc(100% / 3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  gap: 4px;
  scroll-snap-align: center;
  transition: background 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

@media (min-width: 768px) {
  .info-row {
    height: calc(100% / 5);
  }
}

.info-row:last-child {
  border-bottom: none;
}

.info-row.active {
  background: #f2efe4;
  opacity: 1;
}

.lot-left {
  display: flex;
  flex-direction: column;
  line-height: 1;
  align-items: flex-end;
  text-align: right;
}

.lot-left .lote-label {
  font-size: 20px;
  color: #b18d69;
  padding-left:.5em;
}

.lot-left .lote-number {
  font-size: 40px;
  color: #8a8880;
  font-weight: 400;
}

.lot-middle {
  font-size: 24px;
  color: #8a8880;
  line-height: 1;
  display: flex;
  align-items: baseline;
}

.lot-middle--sold {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
}

.lot-price--hidden {
  flex: 0 !important;
  width: 0 !important;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

/* ===== FEATURED ROWS ===== */
/* FROM FIRST FILE */
.info-row--featured {
  flex: none;
  position: relative;
  box-sizing: border-box;
  margin-right: 14px;
}

.info-row--featured.animate-featured::before,
.info-row--featured.animate-featured .border-left {
  content: '';
  position: absolute;
  background: #ff8400;
  animation: draw-vertical 0.3s forwards;
  z-index: 2;
}

.info-row--featured.animate-featured::before {
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  animation-delay: 0s;
}

.info-row--featured.animate-featured .border-left {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 0;
  animation-delay: 0.6s;
}

.info-row--featured.animate-featured::after,
.info-row--featured.animate-featured .border-top {
  content: '';
  position: absolute;
  background: #ff8400;
  animation: draw-horizontal 0.3s forwards;
  z-index: 2;
}

.info-row--featured.animate-featured::after {
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  animation-delay: 0.3s;
}

.info-row--featured.animate-featured .border-top {
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  animation-delay: 0.9s;
}

.featured-label {
  position: absolute;
  top: -20px;
  right: 12px;
  background: #ff8400;
  color: #fcfaf3;
  font-size: 14px;
  padding: 2px 6px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.info-row--featured.animate-featured .featured-label {
  animation: label-pop 0.3s forwards;
  animation-delay: 1.4s;
}

@keyframes draw-horizontal {
  to { width: 100%; }
}

@keyframes draw-vertical {
  to { height: 100%; }
}

@keyframes label-pop {
  to { opacity: 1; }
}

/* ===== PRICING STYLES ===== */
/* FROM FIRST FILE */
.sup {
  font-size: 60%;
  position: relative;
  top: -0.6em;
  text-transform: uppercase;
  color:#b18d69;
}

.lot-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  position: relative;
  line-height: 1;
}

.price-wrapper {
  position: relative;
  line-height: 1;
  display: inline-block;
}

.price {
  font-size: 24px;
  color: #8a8880;
  line-height: 1;
}

.mdp {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #b18d69;
  line-height: 1;
  text-align: center;
}

.arrow {
  margin-left: 8px;
  display: flex;
  align-items: center;
}

.arrow-hidden {
  opacity: 0;
  pointer-events: none;
}

.arrow svg {
  width: 16px;
  height: 16px;
}

.info-row--featured .arrow svg {
  animation: arrow-wiggle 0.35s ease-in-out infinite alternate;
}

@keyframes arrow-wiggle {
  0%   { transform: translateX(0); }
  100% { transform: translateX(3px); }
}

@keyframes arrow-bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(3px);
  }
}

.wiggle-arrow {
  animation: arrow-wiggle 0.35s ease-in-out infinite alternate;
}

/* ===== LOADING SPINNER ===== */
/* FROM FIRST FILE */
.loading-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ac8f5f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.border-left,
.border-top,
.featured-label {
  position: absolute;
  pointer-events: none;
}

/* ===== DETAILED VIEW ===== */
/* FROM FIRST FILE */
.lot-details {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fcfaf3;
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 5;
  border-radius: 12px;
}

.lot-details.active {
  transform: translateX(0);
}

.details-header {
  margin-bottom: 24px;
  position: relative;
}

.details-lot-number {
  font-size: 32px;
  color: #8a8880;
}

.details-lot-number span {
  font-size: 48px;
  font-weight: 400;
}

.details-featured-label {
  position: absolute;
  top: -10px;
  right: 0;
  background: #ff8400;
  color: white;
  padding: 4px 8px;
  font-size: 14px;
}

.details-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.details-label {
  font-size: 18px;
  color: #a9a698;
}

.details-value {
  font-size: 24px;
  color: #8a8880;
}

.modal-content-wrapper.show-details .modal-info,
.modal-content-wrapper.show-details .custom-scrollbar {
  opacity: 0;
  pointer-events: none;
}

/* ===== PLUS/MINUS BUTTONS ===== */
/* FROM FIRST FILE */
.plus-button {
  right: 40px;
  transition: all 0.3s ease;
  display: none; /* Hidden by default */
}

.modal-content-wrapper.show-details .plus-button {
  display: none !important;
}

@media (max-width: 767px) {
  #lotModal.expanded {
    width: calc(100% - 40px);
    height: calc(100dvh - 40px);
    top: 20px !important;
  }
}

#lotModal.expanded .modal-content-wrapper {
  height: calc(100% - 54px);
  overflow-y: auto;
}

#lotModal.expanded .lot-details {
  padding: 16px;
}

#lotModal.expanded .details-body {
  gap: 24px;
}

#lotModal.expanded .details-section {
  padding-bottom: 12px;
}

#lotModal.expanded .details-label {
  font-size: 18px;
}

#lotModal.expanded .details-value {
  font-size: 24px;
}

#lotModal.expanded .details-lot-number {
  font-size: 32px;
}

#lotModal.expanded .details-lot-number span {
  font-size: 48px;
}

#lotModal.expanded .plus-button .plus-icon {
  display: none;
}

#lotModal.expanded .plus-button .minus-icon {
  display: block;
}

.plus-button path.plus-icon {
  transition: transform 0.4s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.plus-button path.minus-icon {
  display: none;
  transition: transform 0.4s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.plus-button:hover path.plus-icon {
  transform: rotate(360deg);
}

.plus-button:hover path.minus-icon {
  animation: spinMinus 0.6s ease;
}

#lotModal.expanded .plus-button:hover path.minus-icon {
  animation: spinMinus 0.6s ease;
}

@keyframes spinMinus {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.bottom-plus-button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
  display: none;
  transition: transform 0.3s ease, background 0.3s ease;
  pointer-events:none;
}

.bottom-plus-button:hover {
  transform: translateX(-50%) scale(1.1);
}

.bottom-plus-button svg {
  width: 20px;
  height: 20px;
}

.modal-content-wrapper.show-details ~ .bottom-plus-button {
  display: none;
}

#lotModal.expanded .bottom-plus-button {
  display: none !important;
}

/* ===== SIDE LENGTH LABELS ===== */
/* FROM FIRST FILE */
.side-length-label {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform-origin: center center;
}

@keyframes pop-in {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

body.fonts-loaded .side-length-label {
  opacity: 1;
}

/* ===== TOASTERS ===== */
/* FROM FIRST FILE */
#toaster,
#ctaToaster {
  position: fixed;
  width: 50%;
  max-width: 400px;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, border-radius 0.3s ease;
  z-index: 10000;
  border-radius: 6px;
  font-size: 14px;
  text-align:center;
  white-space: pre-line;
}

#toaster {
  background: #323232;
  color: white;
  padding: 12px 12px;
}

#ctaToaster {
  background: #25d366;
  color: white;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.3s ease-in;
}

#toaster.show,
#ctaToaster.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  border-radius: 0 0 6px 6px;
}

#ctaToaster:hover {
  filter: brightness(1.1);
}

/* ===== BUTTON STYLES ===== */
/* FROM FIRST FILE */
.whatsapp-button {
  position: fixed;
  bottom: 5px;
  right: 5px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  animation: none;
  transition: transform 0.2s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button img {
  width: 60%;
  height: 60%;
}

.whatsapp-button.bounce {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-8px);
  }
}

.lalaland-button {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ff8400;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  animation: none;
  transition: transform 0.2s ease;
  border: none;
  outline: none;
  pointer-events: auto;
}

.lalaland-button:hover {
  transform: scale(1.1);
}

.lalaland-button.hide {
  opacity: 0;
  pointer-events: none;
}

.lalaland-button img {
  width: 60%;
  height: contain;
}

.lalaland-button.bounce {
  animation: bounce 0.6s ease;
}

.map-reset-button {
  position: fixed;
  bottom: 80px;
  left: calc(50% - 24px);
  width: 48px;
  height: 48px;
  border: none;
  outline: none;
  background-color: #fcfaf3;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 1;
  pointer-events: auto;
}

.map-reset-button.hide {
  opacity: 0;
  pointer-events: none;
}

.map-reset-button:hover {
  transform: scale(1.1);
}

.map-reset-button svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ===== MODAL SCROLLING FIXES ===== */
/* FROM FIRST FILE */
#lotModal:not(.expanded) .lot-details {
  overflow-y: hidden !important;
}

#lotModal.expanded .lot-details {
  overflow-y: auto !important;
}

.detail-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  box-sizing: border-box;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0px;
}

.tag-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.featured-tag {
  background: #ff8400;
  color: #fcfaf3;
  font-size: 14px;
  font-weight: 200;
  padding: 3px 6px;
  border-radius: 0px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nickname {
  color: #FF8400;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-style: normal;
}

.subtitle-row {
  color: #8a8880;
  font-size: 13px;
  margin-bottom: 0px;
  padding-left: 0px;
  font-style: normal;
  text-align: center;
}

.detail-data-row {
  display: flex;
  width: 100%;
  padding: 6px 20px 12px 20px;
  box-sizing: border-box;
  gap: 8px;
  align-items: center;
  margin-top:12px;
}

.detail-data-row > div {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.detail-data-row .lot-left {
  flex: 1;
  text-align: left;
  padding-left: 0;
  margin-left: 0;
}

.detail-data-row .lot-price {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.detail-data-row .price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0.7em;
  margin-right: 2em;
}

.detail-data-row .price {
  font-size: 24px;
  line-height: 1;
  position: relative;
  top: 0.1em;
}

.detail-data-row .mdp {
  font-size: 14px;
  color: #b18d69;
  line-height: 1;
  margin-top: 2px;
  position: relative;
  left: 0;
  transform: none;
}

.detail-extra-row {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #e0e0e0;
  margin: 0;
  padding: 0;
  margin-top: 8px;
}

.lot-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0;
  padding: 0;
}

.lot-details {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.price-per-m2-column {
  flex: 0 0 auto;
  font-size: 24px;
  color: #8a8880;
  line-height: 1;
  font-weight: 400;
  display: flex;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.price-per-m2-column.editing {
  background: #fff;
  outline: 2px solid #ff8400;
  color: #333;
  padding: 4px 8px;
}

.price-per-m2-column:focus {
  outline: 2px solid #ff8400;
}

.price-per-m2-column sup.sup {
  font-size: 60%;
  position: relative;
  top: -0.6em;
  text-transform: uppercase;
  color: #b18d69;
}

.lot-details .lot-left {
  align-items: flex-start !important;
}

.lot-details .lote-number {
  margin-left: 0 !important;
  text-align: left !important;
}

/* ===== MAP INFO BUTTON ===== */
/* FROM FIRST FILE */
.map-info-button {
  position: fixed;
  bottom: 20px;
  left: 0px;
  width: 48px; 
  height: 48px;
  border: none; 
  outline: none;
  background-color: rgba(0,0,0,0);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0);
  display: flex; 
  align-items: center; 
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: transform .2s ease, opacity .3s ease;
}
.map-info-button:hover { 
  transform: scale(1.1); 
}
.map-info-button svg { 
  width: 24px; 
  height: 24px; 
  stroke: #fcfaf3; 
  fill: #fcfaf3; 
  stroke-width: 2; 
}

.map-info-button.hide {
  opacity: 0;
  pointer-events: none;
}

/* ===== CTA BUTTONS ===== */
/* FROM FIRST FILE */
.detail-cta-section {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  height: 18.5%;
  box-sizing: border-box;
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 0;
}

.cta-header-label {
  font-size: 12px;
  color: #8a8880;
  text-align: center;
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-buttons-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.cta-button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Barlow Condensed';
  transition: background-color 0.3s ease;
  text-align: center;
}

.cta-button.first {
  background-color: #ff8400;
  color: #fcfaf3;
}

.cta-button.first:hover {
  background-color: #e67300;
}

.cta-button.second {
  background-color: #ff8400;
  color: #fcfaf3;
}

.cta-button.second:hover {
  background-color: #e67300;
}

.cta-button.third {
  background-color: #ff8400;
  color: #fcfaf3;
  pointer-events:none;
  opacity:50%;
}

.cta-button.third:hover {
  background-color: #ff8400;
}

.schedule-appointment-btn {
  background-color: #ff8400;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 0px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  margin-top: 16px;
  transition: background-color 0.3s ease;
  font-family: 'Barlow Condensed';
}

.schedule-appointment-btn:hover {
  background-color: #e67300;
}

.calendly-embed-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fcfaf3;
  z-index: 1000;
  overflow: hidden;
}

.calendly-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== GPS BUTTON ===== */
/* FROM FIRST FILE */
.gps-button {
  position: fixed;
  bottom: 140px;
  right: 11px;
  width: 48px;
  height: 48px;
  border: none;
  outline: none;
  background-color: #fcfaf3;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 1;
  pointer-events: auto;
}

.gps-button.hide {
  opacity: 0;
  pointer-events: none;
}

.gps-button:hover {
  transform: scale(1.1);
}

.gps-button svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ===== CAMERA & PHOTO STYLES ===== */
/* FROM FIRST FILE */
#cameraButton{
  position: fixed;
  bottom: 200px;
  right: 11px;
  z-index: 9999;
  display: none;
}
#takePhotoBtn{
  width: 48px; 
  height: 48px;
  border: none; 
  outline: none;
  background:#fcfaf3;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  display:flex; 
  align-items:center; 
  justify-content:center;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  font-size: 20px; 
  line-height: 1;
}
#takePhotoBtn:hover{ 
  transform: scale(1.1); 
}

.photo-marker{
  width: 40px; 
  height: 40px;
  background-size: cover; 
  background-position:center;
  border-radius: 50%;
  border: 2px solid #fcfaf3;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  position: relative;
}
.photo-timestamp{
  position: absolute;
  bottom: -12px; 
  left: 50%;
  transform: translateX(-50%);
  background: #1A1A1A; 
  color:#fcfaf3;
  font-size: 10px; 
  padding: 2px 6px; 
  border-radius: 10px;
  white-space: nowrap;
}

#photoModal{
  display:none; 
  position:fixed; 
  inset:0;
  background: rgba(0,0,0,0.92); 
  z-index: 10000;
}
#photoModal #modalImage{
  max-width:90%; 
  max-height:90%;
  margin:auto; 
  display:block; 
  position:relative; 
  top:50%; 
  transform:translateY(-50%);
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
#photoModal #closeModal{
  position:absolute; 
  top:20px; 
  right:20px;
  background:#f44336; 
  color:white; 
  border:none; 
  border-radius:50%;
  width:40px; 
  height:40px; 
  font-size:20px; 
  cursor:pointer;
}

/* ===== MODE SPECIFIC STYLES ===== */
/* FROM FIRST FILE */
#lotModal.pin-mode #backButton,
#lotModal.pin-mode .plus-button,
#lotModal.pin-mode .bottom-plus-button {
  display: none !important;
}

#lotModal.pin-mode .modal-info,
#lotModal.pin-mode .custom-scrollbar {
  display: none !important;
}

/* ===== AUTH STYLES ===== */
/* FROM FIRST FILE */
.auth-controls {
  display: none;
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  gap: 8px;
}
.auth-btn {
  width: 32px; 
  height: 32px;
  display:flex; 
  align-items:center; 
  justify-content:center;
  border-radius:50%; 
  background:none; 
  border:none; 
  cursor:pointer;
  transition: all .3s ease;
}
.auth-btn:hover { 
  background: rgba(255,255,255,0.1); 
}
.auth-btn svg { 
  transition: fill .3s ease; 
}
.auth-btn:hover svg { 
  fill: #ff8400; 
}

#auth-modal input { 
  background:#333; 
  color:#fcfaf3; 
  border:1px solid #555; 
  border-radius:4px; 
}
#auth-modal button { 
  cursor:pointer; 
  transition: opacity .2s; 
}
#auth-modal button:hover { 
  opacity:.9; 
}
#auth-modal #auth-cancel:hover { 
  color:#fcfaf3; 
}

#auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10005;
}

.auth-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  max-width: 400px;
  width: 90%;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  color: #fcfaf3;
}

#auth-modal h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  color: #ff8400;
}

#auth-modal label {
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  color: #ddd;
}

#auth-modal input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fcfaf3;
  font-size: 14px;
}

#auth-modal input:focus {
  border-color: #ff8400;
  outline: none;
}

#auth-modal button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

#auth-modal button.primary {
  background: #ff8400;
  color: #fcfaf3;
}

#auth-modal button.primary:hover {
  background: #e67400;
}

#auth-modal button.secondary {
  background: #333;
  color: #fcfaf3;
  margin-top: 8px;
}

#auth-modal button.secondary:hover {
  background: #444;
}

@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

#auth-modal input,
#auth-modal button {
  width: 100%;
  box-sizing: border-box;
}

#lotModal #lotDetails {
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

/* ===== AVAILABILITY BUTTONS ===== */
/* FROM FIRST FILE */
#cycleAvailabilityBtn.sold {
  background-color: #f44336;
}
#cycleAvailabilityBtn.sold svg {
  stroke: white;
}
#cycleAvailabilityBtn.featured {
  background-color: #ff8400;
}
#cycleAvailabilityBtn.featured svg {
  stroke: white;
}
#cycleAvailabilityBtn.available {
  background-color: #fcfaf3;
}
#cycleAvailabilityBtn.available svg {
  stroke: #333;
}

.hide-button {
  display: none !important;
}

/* ===== UNIT CONTROLS ===== */
/* FROM FIRST FILE */
.unit-controls {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  gap: 6px;
  z-index: 3;
}

.unit-btn {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  background: transparent;
  border: none;
  padding: 0;
  transition: all 0.3s ease;
  font-size: 10px;
  line-height: 1;
  color: #ff8400;
  user-select: none;
}

.unit-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #666;
}

.unit-btn.active {
  color: #ff8400;
  background-color: transparent;
}

.unit-btn sup {
  font-size: 0.7em;
  line-height: 1;
  vertical-align: top;
  transform: translateY(-0.1em);
  display: inline-block;
}

.unit-btn-sort,
.unit-btn-compare {
  width: auto;
  height: auto;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  background: #ff8400;
  color: #fcfaf3;
  transition: all 0.3s ease;
  font-family: 'Barlow Condensed', Arial, sans-serif; 
}

.unit-btn-sort:hover,
.unit-btn-compare:hover {
  background: #ff8400;
  color: #fcfaf3;
  text-decoration: underline;
}

.unit-btn-sort.active,
.unit-btn-compare.active {
  background: #ff8400;
  color: #fcfaf3;
  text-decoration: underline;
}

/* ===== ROW ACTION BUTTONS ===== */
.row-actions {
  position: absolute;
  top: 8px;
  right: 24px; /* Move left to avoid scrollbar */
  display: none;
  gap: 6px;
  align-items: flex-start;
  z-index: 10;
}

.info-row.center .row-actions,
.info-row.active .row-actions {
  display: flex;
}

.row-action-btn {
  background: #ff8400;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fcfaf3;
  transition: all 0.2s ease;
  padding: 0;
  opacity: 0;
  transform: scale(0.5);
}

/* Show buttons immediately on initial load (no animation) */
#lotModal.initial-load .info-row.center .row-action-btn,
#lotModal.initial-load .info-row.active .row-action-btn {
  opacity: 1 !important;
  transform: scale(1) !important;
  animation: none !important;
}

/* Only animate when animations-ready class is present (after first scroll) */
#lotModal.animations-ready .info-row.center .row-action-btn.edit-btn,
#lotModal.animations-ready .info-row.active .row-action-btn.edit-btn {
  animation: popIn 0.3s ease forwards;
  animation-delay: 0.05s;
}

#lotModal.animations-ready .info-row.center .row-action-btn.cycle-btn,
#lotModal.animations-ready .info-row.active .row-action-btn.cycle-btn {
  animation: popIn 0.3s ease forwards;
  animation-delay: 0.15s;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.row-action-btn:hover {
  background: #e67700;
  transform: scale(1.1);
}

.row-action-btn:active {
  transform: scale(0.95);
}

.row-action-btn svg {
  pointer-events: none;
}

/* Hide floating edit and cycle buttons - now in row */
#editBtn,
#cycleAvailabilityBtn {
  display: none !important;
}

#lotModal.lot-mode .unit-controls {
  display: flex;
}

#lotModal.info-mode .auth-controls {
  display: flex;
}

/* ===== SCROLLING FIXES ===== */
/* FROM FIRST FILE */
#lotModal.info-mode .modal-info {
  overflow-y: auto !important;
  scroll-snap-type: none !important;
}

#lotModal.info-mode .modal-info::-webkit-scrollbar {
  display: none;
}

#lotModal.lot-mode .modal-info {
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

#lotModal.info-mode .modal-info {
  overflow-y: auto !important;
  scroll-snap-type: none !important;
  -webkit-overflow-scrolling: touch !important;
}

#lotModal.info-mode .modal-info {
  scroll-snap-type: none;
}

#lotModal.info-mode .info-row {
  scroll-snap-align: none;
  height: auto !important;
  min-height: 80px;
}

.custom-scrollbar {
  display: block !important;
}

/* ===== FAQ STYLES ===== */
/* FROM FIRST FILE */
.faq-section {
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #333;
}

.cta-section {
  background-color: #f0f7ff;
  border-left: 4px solid #a17345;
  padding: 15px;
  margin-top: 2em;
}

.cta-link {
  display: block;
  margin: 10px 0;
  padding: 8px 15px;
  background-color: #a17345;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.cta-link:hover {
  background-color: #8a5f38;
}

.emoji {
  font-size: 1.2em;
  margin-right: 5px;
}

/* ===== SHARE BUTTON ===== */
/* FROM FIRST FILE */
.share-button {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.share-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.share-button:hover svg {
  stroke: #ff8400;
}

.share-button svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s ease;
  stroke: #ff8400;
  stroke-width: 1.5px;
  transform-origin: center;
  transform-box: fill-box;
}

.share-button:hover svg {
  transform: rotate(360deg);
}

#lotModal:not(.info-mode):not(.pin-mode) .share-button {
  display: none;
}

#lotModal.info-mode .share-button,
#lotModal.pin-mode .share-button {
  display: flex;
}

/* ===== COMMUNITY SEARCH MENU ===== */
/* FROM FIRST FILE */
.community-circle-menu{
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  width: var(--orbit-diam);
  height: var(--orbit-diam);
  pointer-events: none;
  opacity: 0;
}

.community-circle-menu.active {
  opacity:1;
  pointer-events: auto;
}

.community-option{
  position: absolute;
  width: var(--btn);
  height: var(--btn);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fcfaf3;
  border: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font: 600 10px/1 system-ui, sans-serif;
  color: #8a8880;
  cursor: pointer;
  pointer-events: none;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform:uppercase;
  opacity: 0;
}

.community-circle-menu.active .community-option {
  pointer-events: auto;
}

.community-circle-menu.active .community-option[data-community="positionFive"] {
  animation: circle-pop-in 0.35s cubic-bezier(0.25, 1.25, 0.5, 1) forwards;
  animation-delay: 0.6s;
}

.community-circle-menu.active .community-option[data-community="positionFour"] {
  animation: circle-pop-in 0.35s cubic-bezier(0.25, 1.25, 0.5, 1) forwards;
  animation-delay: 0.4s;
}

.community-circle-menu.active .community-option[data-community="positionOne"] {
  animation: circle-pop-in 0.35s cubic-bezier(0.25, 1.25, 0.5, 1) forwards;
  animation-delay: 0.1s;
}

.community-circle-menu.active .community-option[data-community="positionTwo"] {
  animation: circle-pop-in 0.35s cubic-bezier(0.25, 1.25, 0.5, 1) forwards;
  animation-delay: 0.25s;
}

.community-circle-menu.active .community-option[data-community="positionThree"] {
  animation: circle-pop-in 0.35s cubic-bezier(0.25, 1.25, 0.5, 1) forwards;
  animation-delay: 0.25s;
}

@keyframes circle-pop-in {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ===== EDITING STYLES ===== */
/* FROM FIRST FILE */
.edit-outline {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
  border: 2px dashed #ff8400;
  background: transparent;
  box-sizing: border-box;
}

.price-edit {
  font-size: 24px;
  color: #8a8880;
  border: 1px solid #ff8400;
  border-radius: 4px;
  padding: 2px 8px;
  background: #fcfaf3;
  width: 80px;
  text-align: center;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 400;
}

.price-edit:focus {
  outline: none;
  border-color: #ff8400;
  box-shadow: 0 0 0 2px rgba(255,132,0,0.2);
  background: #fff;
}

/* ===== MODAL OPEN STATES ===== */
/* FROM FIRST FILE */
body.modal-open .lalaland-button,
body.modal-open #communitySearchBtn,
body.modal-open #cameraButton {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .25s ease;
}

/* CONFLICT RESOLVED: Added missing auth control visibility rule */
#lotModal.info-mode .auth-controls {
  display: flex;
}

/* CONFLICT RESOLVED: Added missing hide-in-detail rule */
.auth-controls.hide-in-detail {
  display: none !important;
}

.modal-content-wrapper.viewer-active {
  padding: 0 !important;
  position: relative;
}

/* Ensure modal content areas are properly reset */
#lotModal:not(.show) #lotDetails,
#lotModal:not(.show) #modalInfo,
#lotModal:not(.show) #calendlyEmbed,
#lotModal:not(.show) #viewer-container {
  display: none !important;
}

#lotModal.show #lotDetails,
#lotModal.show #modalInfo {
  display: block;
}
