* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
  height: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  overflow: hidden;
  position: fixed;
  width: 100%;
}

:root {
  --header-height: 50px;
  --sub-header-height: 34px;
  --bottom-nav-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}



.no-page-scroll {
  overflow: hidden !important;
  touch-action: none;
}

.header {
  background: #003968;
  color: #fff;
  padding: 8px 4px;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--safe-top);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-height);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo {
  position: fixed;
  background: transparent;
  padding: 0;
  margin: 0;
  left: -4px;
  height: 54px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-spacer {
  flex: 1;
}

.header-right-logo {
  position: fixed;
  background: transparent;
  padding: 0;
  margin: 0;
  right: -8px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-right-logo img {
  padding: 4px;
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-logo-image {
  image-rendering: auto;
  backface-visibility: visible;
  transform: none !important;
  filter: none !important;
  opacity: 1;
}

.header-logo-image-left {
  max-height: none;
  width: auto;
}

.header-logo-image-right {
  height: 100%;
  width: auto;
}

@media (max-width: 380px) {
  .header-right-logo {
    right: -10px;
    height: 66px;
  }
}

#planLabel {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lot-sticky-header {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--safe-top) + var(--header-height));
  z-index: 999;
  height: var(--sub-header-height);
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #ffffff;
  border-bottom: 1px solid #d8d8d8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lot-sticky-content {
  width: 100%;
  color: #003968;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lot-sticky-content .status-text {
  font-weight: 700;
}

main {
  position: fixed;
  top: calc(var(--header-height) + var(--sub-header-height) + var(--safe-top));
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
  overflow: hidden;
}

#siteplanPage #lotTitle,
#siteplanPage #lotAddress {
  display: none;
}

.pages {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

@media (min-width: 769px) and (any-hover: hover) and (pointer: fine) {
  .pages {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #9db0c1 transparent;
    -ms-overflow-style: auto;
  }

  .pages::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .pages::-webkit-scrollbar-track {
    background: transparent;
  }

  .pages::-webkit-scrollbar-thumb {
    background: #9db0c1;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
  }

  .pages::-webkit-scrollbar-thumb:hover {
    background: #7f96aa;
    border: 2px solid transparent;
    background-clip: content-box;
  }
}

.iframe-wrapper {
  position: relative;
}

.lod-opus-logo {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 4;
  pointer-events: none;
}

.lod-opus-logo img {
  opacity: 60%;
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.iframe-touch-guard {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  touch-action: pan-y;
}

.iframe-touch-guard.is-pass-through {
  pointer-events: none;
}

.iframe-two-finger-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #003968;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 6;
}

.iframe-two-finger-hint.show {
  opacity: 1;
}

.lod-page-touch-hint {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 8;
  display: grid;
  gap: 7px;
  max-width: min(280px, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 8px;
  background: #003968;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.lod-touch-hint-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.lod-touch-hint-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #8fd2ff;
  font-size: 12px;
  opacity: 0.95;
}

.lod-page-touch-hint.show {
  opacity: 1;
  transform: translateY(0);
}

.iframe-desktop-tip {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: min(300px, calc(100% - 24px));
  background: #003968;
  color: #ffffff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 7;
}

.iframe-desktop-tip.show {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none),
(any-pointer: coarse),
(pointer: coarse) {
  .iframe-desktop-tip {
    display: none !important;
  }
}

@media (any-hover: hover) and (pointer: fine) {

  .iframe-touch-guard,
  .iframe-two-finger-hint {
    display: none !important;
  }
}

.pages.idle-scroll-hint {
  --idle-nudge-y: -100px;
  will-change: transform;
  animation: pageIdleScrollHint 1500ms cubic-bezier(0.30, 1, 0.36, 1);
}

.pages.idle-scroll-hint-up {
  --idle-nudge-y: -100px;
}

.pages.idle-scroll-hint-down {
  --idle-nudge-y: 100px;
}

@keyframes pageIdleScrollHint {
  0% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(var(--idle-nudge-y, -100px));
  }

  100% {
    transform: translateY(0);
  }
}

.page {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 4px 0px;
}

.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.card h3 {
  padding: 10px 10px 0px 10px;
  font-size: 14px;
  margin-bottom: 4px;
  color: #003968;
  flex-shrink: 0;
}

.camera-controls {
  padding: 0 10px 10px 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cam-btn {
  background: #fdfdfd;
  color: #003968;
  border: 1px solid #c9d6e0;
  padding: 6px 14px;
  font-size: 13px;
  min-width: 80px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  touch-action: manipulation;
}

.cam-btn:hover {
  background: #f0f7ff;
  border-color: #003968;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 57, 104, 0.12);
}

.cam-btn:active {
  transform: scale(0.96);
}

.cam-btn.active {
  background: #003968;
  color: #fff;
  border-color: #003968;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.card h4 {
  padding: 0px 10px 0px 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #003968;
  flex-shrink: 0;
}


.lot-info-card {
  position: absolute;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
  pointer-events: none;
  min-width: 240px;
}

.lot-info-card b {
  color: #0b4a6f;
}

.lot-info-card .status {
  font-weight: 600;
}

.hidden {
  display: none;
}

.svg-wrapper,
#siteplanWrapper {
  touch-action: pan-y;
  overflow: hidden;
}

.active-lot polygon {
  stroke: #000;
}

.active-lot-emissive polygon {
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.75));
}

.svg-wrapper.panning,
#siteplanWrapper.panning {
  touch-action: none;
}

.siteplan-wrapper {
  position: relative;
  flex: 1;
  background: #fafafa;
  border-radius: 0px;
  overflow: hidden;
}

#siteplanContainer {
  width: 100%;
  height: 100%;
}

@media (min-width: 769px) {
  #siteplanContainer {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
  }

  #siteplanContainer>svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
}

.siteplan-top-controls {
  padding: 0px 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.siteplan-controls-spacer {
  flex: 1;
}


.compass {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.floor-controls {
  padding: 0px 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-bottom: 8px;
}

#floorPlanPage .floor-controls {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#floorPlanPage .floor-controls>.btn {
  flex-shrink: 0;
}

.btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  touch-action: manipulation;
}

.zoom-step-btn {
  min-width: 38px;
  padding: 8px 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.btn:active {
  transform: scale(0.95);
}

.btn.active {
  background: #003968;
  color: #fff;
  border-color: #003968;
}



.svg-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  min-height: 0;
}

.svg-area.no-floor-options {
  gap: 0;
}

.svg-wrapper {
  flex: 1;
  border-radius: 0px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  cursor: grab;
  min-height: 0;
}

.svg-wrapper:active {
  cursor: grabbing;
}

#svgContainer {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

#svgContainer.loading {
  opacity: 0;
}

/* Scrollbar styles */
.options-container::-webkit-scrollbar,
.thumbs::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.options-container::-webkit-scrollbar-track,
.thumbs::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 6px;
}

.options-container::-webkit-scrollbar-thumb,
.thumbs::-webkit-scrollbar-thumb {
  background: #fd9400;
  border-radius: 6px;
  border: 2px solid #e0e0e0;
}

.options-container::-webkit-scrollbar-thumb:hover,
.thumbs::-webkit-scrollbar-thumb:hover {
  background: #ff6b35;
}

.options-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px;
  background: #fafafa;
  border-radius: 8px;
  max-height: 70px;
  min-height: 70px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thick;
  scrollbar-color: #fd9400 #e0e0e0;
  flex-shrink: 0;
}

.options-container.is-hidden {
  display: none !important;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #eee;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.option-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.option-item label {
  cursor: pointer;

}

.gallery-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.slider {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thick;
  scrollbar-color: #fd9400 #e0e0e0;
  flex-shrink: 0;
}

.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.thumbnail.active {
  border-color: #003968;
}


.lot-thumb {
  width: 100%;
  max-width: 220px;
  /* 👈 controls size */
  margin: 0 auto 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  background: #fff;
}

.lot-thumb img {
  width: 100%;
  height: auto;
  max-height: 140px;
  /* 👈 prevents tall images */
  object-fit: contain;
  /* 👈 key line */
  display: block;
}

.thumb-label {
  padding: 6px 8px;
  font-size: 12px;
  text-align: center;
  background: #f7f7f7;
  color: #444;
}



.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
  z-index: 10;
}

.nav:active {
  background: rgba(0, 0, 0, 0.6);
}

.nav.left {
  left: 8px;
}

.nav.right {
  right: 8px;
}

.video-wrapper {
  flex: 1;
  border-radius: 0px;
  overflow: hidden;
  background: #a9a9a9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.play-button svg {
  width: 36px;
  height: 36px;
  fill: #fff;
  margin-left: 2px;
}

.play-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

#lodPage,
#vtPage {
  height: 100%;
  min-height: 100%;
}

#lodPage .card,
#vtPage .card {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#lodPage .lod-iframe-wrap,
#vtPage .vt-iframe-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 0;
  touch-action: pan-y;
}

#lodPage .lod-iframe-wrap {
  position: relative;
  background: #fff;
}



#lodPage .lod-iframe-wrap iframe,
#vtPage .vt-iframe-wrap iframe {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  margin-top: -1px;
  margin-left: -1px;
  border: 0;
  display: block;
  pointer-events: auto;
  touch-action: pan-y !important;
}

#lodPage .lod-iframe-wrap iframe {
  opacity: 1;
  transition: opacity 0.2s ease;
}



.iframe-nav-controls {
  display: none !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 10px;
  padding: 8px 12px 4px 12px;
  flex-shrink: 0;
  background: #fff;
}

.iframe-nav-hint {
  width: 100%;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  color: #5f6f7f;
  margin-top: 1px;
}

.nav-arrow-btn {
  min-width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
  font-weight: 800;
  background: #f9f9f9;
  color: #003968;
  border: 1px solid #cacaca;

}

.nav-arrow-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
  margin: 0 auto;
}

.nav-arrow-btn .scroll-mouse-icon.up {
  transform: rotate(180deg);
}

.nav-arrow-btn:active {
  transform: scale(0.94);
  box-shadow: 0 3px 8px rgba(0, 57, 104, 0.14);
}

.nav-arrow-btn:disabled {
  background: #c5ced8;
  border-color: #b5c0cc;
  color: #eef2f6;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}




.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2px 16px;
  padding-bottom: calc(2px + var(--safe-bottom));
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
  z-index: 2000;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7b7b7b;
  transition: all 0.25s ease;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ar-btn {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.nav-btn.active {
  background: #fd9400;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 179, 0, 0.45);
}

.nav-btn:active {
  transform: scale(0.92);
}

.gif-wrapper {
  padding: 0px 16px 0px 16px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  background: #a9a9a9;
}

.gif-wrapper img {

  max-width: 100%;
  max-height: 100%;
  border-radius: 0px;
  object-fit: contain;
}

.gif-wrapper1 {
  padding: 0px 16px;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  background: #fff;
}

.gif-wrapper1 img {

  max-width: 100%;
  max-height: 100%;
  border-radius: 0px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .iframe-nav-controls {
    display: none !important;
  }

  .compass {
    width: 56px;
  }

  #siteplanContainer {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
  }

  #siteplanContainer>svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }

  .floor-controls {
    margin-bottom: 8px;
  }

  .card h3 {
    font-size: 13px;
  }

  .card h4 {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .card h3 {
    font-size: 13px;
  }

  .card h4 {
    font-size: 11px;
  }

  .btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .option-item {
    padding: 6px 10px;
    font-size: 11px;
  }

  .thumbnail {
    width: 70px;
    height: 52px;
  }

  .lod-opus-logo img {
    width: 120px;
    max-width: 100%;
  }
}

#lodPage .lod-iframe-wrap,
#lodPage .lod-iframe-wrap iframe {
  touch-action: pan-y !important;
}

/* Offer Image Feature */
.offer-image-wrap {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 10px);
  left: 10px;
  z-index: 1001;
  max-width: calc(100% - 20px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.offer-action-btn {
  background: #003968;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
}

.offer-action-btn:hover {
  background: #00264d;
}

.offer-image-wrap.hidden {
  display: none;
  opacity: 0;
}

.offer-image-wrap img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
}

.close-offer-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.close-offer-btn:hover {
  background: #f0f0f0;
}

/* Offer Divider */
.offer-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid #eee;
  margin: 4px 0;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 2000;
  /* Higher than offer image wrap */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
  opacity: 0;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.modal h3 {
  margin-top: 0;
  margin-bottom: 6px;
  color: #003968;
}

.inquire-lot-summary {
  color: #003968;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
}

.inquire-lot-summary .status-text {
  color: #00866b;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #003968;
  outline: none;
}

.form-success-message {
  background-color: #e6f9f0;
  color: #0d5c3a;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
}
.form-success-message.hidden {
  display: none;
}

.submit-btn {
  background: #003968;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #00264d;
}
