/* --- Global fixes to allow shrinking and prevent horizontal scroll --- */
html, body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden; /* hide accidental horizontal overflow */
}

/* ensure all elements use border-box */
*, *::before, *::after { box-sizing: inherit; }

/* allow grid/flex children to shrink properly */
.property-layout,
.visuals-section,
.viewer-section,
.blueprint-section,
.property-info {
  min-width: 0; /* IMPORTANT: allows children to shrink on small screens */
}

/* responsive images / blueprints */
img, picture, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* force grid columns to be flexible and shrinkable */
.visuals-section {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

/* remove any hard min-width that prevents responsiveness */
.property-visuals { min-width: 0; }

/* make #container flexible on small screens */
#container {
  max-width: 100%;
  height: auto;
  min-height: 240px; /* fallback */
}

/* avoid oversized fixed paddings on tiny screens */
@media (max-width: 480px) {
  .site-nav { padding: 10px 12px; }
  .property-layout { padding: 16px 12px; }
  .property-header { padding: 36px 12px 18px; margin-top: 56px; }
}

/* If a nav overlap exists, ensure page content is pushed down */
:root {
  --site-nav-height: 56px;
}
body { padding-top: var(--site-nav-height); }
@media (min-width: 769px) { body { padding-top: calc(var(--site-nav-height) + 8px); } }

/* Debugging helpers (temporary: uncomment if you see unexpected overflow) */
/* * { outline: 1px dashed rgba(255,0,0,0.06) } */

/* Make mobile card layout (if you still use block card transform) compact */
@media (max-width: 768px) {
  .pricing-table td::before { white-space: normal; }
  .book-btn, .btn { width: auto; display: inline-block; padding: 10px 16px; }
}

/* catch any element causing overflow (temporary) */
html[data-overflow-debug="on"] * {
  /* show bounding boxes to detect overflow */
  outline: 1px solid rgba(0,0,0,0.04);
}



/* ===== NAVIGATION ===== */
.site-nav {
  display: flex;
  top: 0;
  left: 0;
  right: 0;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: #fff;
  padding: 15px 40px;
  position: fixed;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: gray;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    border-top: 1px solid #222;
    transition: all 0.4s ease;
  }

  .nav-links li {
    width: 100%;
    padding: 12px 20px;
  }

  .nav-links a {
    display: block;
    width: 100%;
  }

  .nav-links.show {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
  }
}

/* ===== BASE STYLES ===== */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
  color: #1e293b;
}

/* ===== HEADER ===== */
.property-header {
  text-align: center;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, #1776d6, #1e40af);
  color: white;
  margin-top: 60px;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}
.property-header h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #fff;
}
.property-header .location {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== MAIN LAYOUT ===== */
.property-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 60px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== VISUALS SECTION ===== */
.visuals-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}
.viewer-section,
.blueprint-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.viewer-section h3,
.blueprint-section h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
#container {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.blueprint-img {
  width: 100%;
  border-radius: 8px;
  height: auto;
}

/* ===== PROPERTY INFO ===== */
.property-info {
  margin: 0 auto;
  max-width: 900px;
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.property-info h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #1e40af;
  border-bottom: 2px solid #1776d6;
  padding-bottom: 8px;
}
.details-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 20px;
}
.details-list li {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.property-info h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #1e293b;
}
.property-info p {
  line-height: 1.6;
  color: #334155;
}
.book-btn {
  background: linear-gradient(135deg, #1776d6, #1e40af);
  display: inline-block;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.book-btn:hover {
  background: linear-gradient(135deg, #1e40af, #0c4a6e);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 118, 214, 0.4);
}

/* ===== FOOTER ===== */
.property-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #fff;
  background-color: #000;
  margin-top: 60px;
}

/* ===== RESPONSIVENESS ===== */

/* Tablets (<=1024px) */
@media (max-width: 1024px) {
  .property-layout {
    padding: 30px 25px;
  }
  .visuals-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  #container {
    height: 420px;
  }
}

/* Small tablets and large phones (<=768px) */
@media (max-width: 768px) {
  .property-header {
    padding: 50px 15px 25px;
    margin-top: 55px;
  }
  .property-header h1 {
    font-size: 1.8rem;
  }
  .property-header .location {
    font-size: 1rem;
  }
  .property-layout {
    padding: 20px 15px;
  }
  .details-list {
    grid-template-columns: 1fr 1fr;
  }
  #container {
    height: 360px;
  }
  .book-btn {
    width: 100%;
    font-size: 1rem;
    padding: 12px 20px;
  }
}

/* Phones (<=480px) */
@media (max-width: 480px) {
  .property-header {
    padding: 40px 10px 25px;
  }
  .property-header h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .property-header .location {
    font-size: 0.95rem;
  }
  .property-layout {
    padding: 15px 10px;
  }
  .details-list {
    grid-template-columns: 1fr;
  }
  .visuals-section {
    gap: 15px;
  }
  #container {
    height: 280px;
  }
  .book-btn {
    width: 100%;
    font-size: 0.95rem;
  }
  .property-footer {
    font-size: 0.8rem;
    padding: 15px;
  }
}
