/* ============================================================
   ROOFUP — Property Detail Page  |  Optimized & Redesigned
   Design: Refined editorial real estate aesthetic
   Tokens: CSS custom properties for easy theming
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --c-ink:        #1a1a1a;
  --c-ink-soft:   #4a4f5a;
  --c-ink-muted:  #8a919e;
  --c-surface:    #ffffff;
  --c-surface-2:  #f7f7f6;
  --c-surface-3:  #f0efed;
  --c-border:     #e5e3df;
  --c-border-s:   #d0ceca;
  --c-accent:     #1d4ed8;
  --c-accent-s:   #1e40af;
  --c-accent-bg:  #eff6ff;
  --c-green:      #166534;
  --c-green-bg:   #f0fdf4;
  --c-amber:      #92400e;
  --c-amber-bg:   #fffbeb;
  --c-red:        #991b1b;
  --c-red-bg:     #fef2f2;
  --radius-sm:    3px;
  --radius-md:    5px;
  --radius-lg:    8px;
  --radius-xl:    10px;
  --shadow-card:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lift:  0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --transition:   0.18s ease;
}

/* ── Utility / Accessibility ────────────────────────────────── */
.blur {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}


/* ── Mobile / Touch Enhancements ───────────────────────────── */
* {
  -webkit-tap-highlight-color: transparent;
}

a, button, [role="button"], label {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Page Container ─────────────────────────────────────────── */
.property_detail_container {
  padding-bottom: 60px;
  color: var(--c-ink);
  line-height: 1.6;
}

/* ── Breadcrumb + Share Row ─────────────────────────────────── */
.property_detail_tools {
  display: flex;
  align-items: center;
  padding: 14px 0 10px;
}

#property_detail_breadcrumb {
  width: calc(100% - 60px);
}

#property_detail_breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  font-size: 13px;
  color: var(--c-ink-muted);
}

#property_detail_breadcrumb ul li {
  display: flex;
  align-items: center;
  line-height: 22px;
}

#property_detail_breadcrumb ul li a {
  color: var(--c-ink-muted);
  text-decoration: none;
  transition: color var(--transition);
}

#property_detail_breadcrumb ul li a:hover {
  color: var(--c-accent);
}

#property_detail_breadcrumb ul li::before {
  content: '/';
  margin: 0 6px;
  color: var(--c-border-s);
  font-size: 12px;
}

#property_detail_breadcrumb ul li:first-child::before {
  display: none;
}

#property_detail_share {
  width: 60px;
  text-align: right;
}

#property_detail_share ul,
#property_detail_share ul li {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
}

#property_detail_share ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--c-border-s);
  border-radius: var(--radius-md);
  color: var(--c-ink-soft);
  font-size: 15px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}

#property_detail_share ul li a:hover {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

/* ── Title + Price Row ──────────────────────────────────────── */
.property-title-price-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 18px;
  gap: 16px;
}

.property-title-price-wrap .page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.property-title-price-wrap .property-price-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.property-price-wrap .property-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: -0.5px;
}

.property-price-wrap .property-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-ink-muted);
  margin-left: 4px;
}

/* ── Label Badges ───────────────────────────────────────────── */
.property-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}

.property-labels ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.property-labels ul li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  background: var(--c-surface-3);
  color: var(--c-ink-soft);
  border: 1px solid var(--c-border);
}

.property-labels ul.cashback_bar li {
  background: var(--c-green-bg);
  color: var(--c-green);
  border-color: #bbf7d0;
}

.property-labels ul.cashback_bar li a {
  color: var(--c-green);
  text-decoration: none;
  font-weight: 600;
}

/* ── Photo Gallery ──────────────────────────────────────────── */
.property_detail_images_container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  gap: 6px;
}

.property_detail_images_main {
  flex: 0 0 calc(66.666% - 3px);
  max-width: calc(66.666% - 3px);
}

.property_detail_images_main a {
  display: block;
  height: 460px;
  will-change: transform;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition);
}

.property_detail_images_main a:hover {
  transform: scale(1.005);
}

.property_detail_images_sider {
  flex: 0 0 calc(33.333% - 3px);
  max-width: calc(33.333% - 3px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.property_detail_images_sider a {
  display: block;
  flex: 1;
  height: 227px;
  will-change: transform;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition);
}

.property_detail_images_sider a:hover {
  transform: scale(1.005);
}

.property_detail_images_container .total_images {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(255,255,255,0.95);

  color: var(--c-ink);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.08);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.property_detail_images_container .total_images:hover {
  background: #fff;
}

.property_detail_images_container .total_images i {
  font-size: 14px;
  color: var(--c-ink-soft);
}

/* ── Popup Image Viewer ─────────────────────────────────────── */
.popup-image-wrapper {
  background: rgba(0,0,0,.7);
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 999999999;
  top: 0;
  padding: 16px;
  padding: env(safe-area-inset-top, 16px) env(safe-area-inset-right, 16px) env(safe-area-inset-bottom, 16px) env(safe-area-inset-left, 16px);
}

.popup-image {
  width: 100%;
  max-width: 1000px;
  background: var(--c-surface);
  height: calc(100% - 40px);
  margin: 8px auto;
  border-radius: var(--radius-xl);
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 20px;
  box-shadow: var(--shadow-lift);
}

.popup-image-header {
  background: var(--c-ink);
  color: #fff;
  display: flex;
  align-items: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 4px 8px 4px 16px;
}

.popup-image-header .popup-image-tools {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
}

.popup-image-header .popup-image-closed {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
  color: rgba(255,255,255,.7);
  font-size: 18px;
}

.popup-image-header .popup-image-closed:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.popup-image-body {
  padding: 16px;
  height: 420px;
}

.popup-image-body .slick-slide img {
  max-height: 420px;
  border-radius: var(--radius-md);
}

.popup-image-body .slick-prev,
.popup-image-body .slick-next {
  height: 44px;
  width: 44px;
  z-index: 1;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,.4);
  border: none;
  transition: background var(--transition);
}

.popup-image-body .slick-prev:hover,
.popup-image-body .slick-next:hover {
  background: rgba(0,0,0,.65);
}

.popup-image-body .slick-prev { left: 20px; }
.popup-image-body .slick-next { right: 20px; }

/* ── Two-Column Layout ──────────────────────────────────────── */
.property_detail_2_columns {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
}

.property_detail_2_columns .property_detail_container_left {
  flex: 0 0 68%;
  max-width: 68%;
  padding-right: 24px;
}

.property_detail_2_columns .property_detail_container_right {
  flex: 0 0 32%;
  max-width: 32%;
  padding-left: 0;
}

/* ── Block Wrapper (white card) ─────────────────────────────── */
.property_detail_block_wrapper {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

/* ── Block Title ─────────────────────────────────────────────── */
.property_detail_block_title {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

.property_detail_block_title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.2px;
}

/* ── Block Content ──────────────────────────────────────────── */
.property_detail_block_content {
  color: var(--c-ink-soft);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
}

/* ── Overview Stats Grid ────────────────────────────────────── */
.property_detail_overview .property_detail_block_content {
  display: flex;
  gap: 24px;
}

.property_detail_overview_left {
  flex: 0 0 65%;
  max-width: 65%;
}

.property_detail_overview_right {
  flex: 0 0 35%;
  max-width: 35%;
}

.property_detail_overview_right #property_map {
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.property_detail_overview_left ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  margin-top: 4px;
  list-style: none;
  padding: 0;
}

.property_detail_overview_left ul li {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.property_detail_overview_left ul li label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: 4px;
}

.property_detail_overview_left ul li > div {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.property_detail_overview_left ul li i {
  margin-right: 4px;
  color: var(--c-accent);
}

/* ── Description + Details Tabbed Block ─────────────────────── */

/* Tab wrapper replaces both old block wrappers */
.property_detail_tabbed {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Tab nav bar */
.pd-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--c-surface-2);
}

.pd-tab-nav::-webkit-scrollbar {
  display: none;
}

.pd-tab-btn {
  flex-shrink: 0;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  margin-bottom: -1px;
}

.pd-tab-btn:hover {
  color: var(--c-ink);
  background: var(--c-surface);
}

.pd-tab-btn.active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  background: var(--c-surface);
  font-weight: 600;
}

/* Tab panels */
.pd-tab-panels {
  padding: 28px;
}

.pd-tab-panel {
  display: none;
}

.pd-tab-panel.active {
  display: block;
}

/* About tab — description text */
.listing-desc-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink-soft);
}

/* Details tab — unified key/value list */
.property_detail_key_wrapper ul,
.property_detail_additional ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}

.property_detail_additional ul li,
.property_detail_key_wrapper ul li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  break-inside: avoid;
  gap: 12px;
}

.property_detail_additional ul li:last-child,
.property_detail_key_wrapper ul li:last-child {
  border-bottom: none;
}

.property_detail_additional label,
.property_detail_key_wrapper label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-muted);
  flex-shrink: 0;
}

.property_detail_additional span,
.property_detail_key_wrapper span {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  text-align: right;
  word-break: break-word;
}

/* Section divider inside Details tab */
.pd-details-section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 4px;
}

.pd-details-section-title:first-child {
  padding-top: 0;
}

/* Last update note */
.property_detail_spec .last_update {
  font-size: 12px;
  color: var(--c-ink-muted);
  font-weight: 400;
  display: block;
  margin-top: 20px;
}

/* Mobile — single column */
@media (max-width: 600px) {
  .pd-tab-btn {
    padding: 12px 16px;
    font-size: 13px;
  }

  .pd-tab-panels {
    padding: 16px;
  }

  .property_detail_key_wrapper ul,
  .property_detail_additional ul {
    columns: 1;
  }
}

/* ── Mortgage Calculator ─────────────────────────────────────── */
.property_detail_calc .property_detail_block_content {
  display: flex;
  gap: 24px;
}

.property_detail_calc .property_detail_calc_left,
.property_detail_calc .property_detail_calc_right {
  flex: 1;
  width: 50%;
}

.property_detail_calc .property_detail_calc_right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.property_detail_calc_form ul {
  list-style: none;
  margin: 0 -8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.property_detail_calc_form ul li {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 8px;
  margin-bottom: 16px;
}

.property_detail_calc_form ul li strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.property_detail_calc_form ul li > div {
  display: flex;
  border: 1px solid var(--c-border-s);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.property_detail_calc_form ul li > div:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}

.property_detail_calc_form ul li > div label {
  background: var(--c-surface-2);
  border-right: 1px solid var(--c-border-s);
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-muted);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  margin: 0;
}

.property_detail_calc_form ul li > div input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--c-ink);
  background: transparent;
  border: none;
  outline: none;
}

.property_detail_calc_right #monthly {
  color: var(--c-accent);
  font-weight: 700;
  font-size: 22px;
}

.property_detail_calc_right #cmhc,
.property_detail_calc_right #cmhc i { color: var(--c-red); }

.property_detail_calc_right #land,
.property_detail_calc_right #land i { color: var(--c-amber); }

#mortgage_chart {
  width: 260px;
  height: 260px;
}

/* ── Schools ─────────────────────────────────────────────────── */
.find_school_container > h3 {
  font-size: 17px;
  color: var(--c-ink);
  margin-bottom: 14px;
}

.find_school_container > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.find_school_container > ul > li {
  padding: 16px 20px 12px;
  list-style: none;
}

.find_school_container > ul > li:nth-child(2n+1) {
  background: var(--c-surface-2);
}

.find_school_container > ul ul {
  list-style: none;
  border: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.pro_school_row {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
}

.pro_school_row_hide {
  padding-top: 16px;
  width: 100%;
}

.pro_school_name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
}

.pro_school_score {
  width: 80px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  text-align: center;
}

.pro_school_score span {
  color: #f59e0b;
  font-size: 20px;
}

.pro_school_distance {
  width: 120px;
  text-align: right;
  font-size: 13px;
  color: var(--c-ink-muted);
  font-weight: 400;
}

.pro_school_distance a {
  color: var(--c-accent);
  font-size: 12px;
  text-decoration: none;
}

.find_school_container .pro_school_tag ul li {
  font-size: 12px;
  border-radius: var(--radius-sm);
  background: var(--c-accent-bg);
  color: var(--c-accent-s);
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  line-height: 20px;
  list-style: none;
}

.pro_school_row_hide ul li {
  list-style: none;
  font-size: 13.5px;
  color: var(--c-ink-soft);
  padding: 4px 0;
}

.pro_school_row_hide .pro_school_basic li label,
.pro_school_row_hide .pro_school_academic li label {
  color: var(--c-ink-muted);
  margin-right: 6px;
}

/* ── Contact Form ────────────────────────────────────────────── */
.rcf {
  padding: 16px;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.property_detail_faq ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.property_detail_faq ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.65;
}

.property_detail_faq ul li strong,
.property_detail_faq ul li a {
  font-weight: 600;
  color: var(--c-ink);
}

.property_detail_faq ul li a {
  color: var(--c-accent);
  text-decoration: none;
}

/* ── History Table ───────────────────────────────────────────── */
.property_detail_history .property_detail_block_content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.property_detail_history .property_detail_block_content th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
}

.property_detail_history .property_detail_block_content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-ink-soft);
}

/* ── Property Row ─────────────────────────────────────────────── */
.property-row {
  margin-top: 10px;
}

/* ── Mobile Bottom CTA ───────────────────────────────────────── */
.contact-us {
  display: none;
}

/* ── Sold Nearby ─────────────────────────────────────────────── */
.property_detail_sold_nearest .sold-nearby-table-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */

/* ── Tablet (≤ 900px) ────────────────────────────────────────── */
@media (max-width: 900px) {
  .property_detail_2_columns .property_detail_container_left,
  .property_detail_2_columns .property_detail_container_right {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

  .property_detail_2_columns .property_detail_container_right {
    margin-top: 0;
  }

  .property_detail_overview .property_detail_block_content {
    flex-wrap: wrap;
    gap: 16px;
  }

  .property_detail_overview_left,
  .property_detail_overview_right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .property_detail_history .property_detail_block_content {
    overflow-x: auto;
  }

  .property_detail_history .property_detail_block_content table {
    min-width: 480px;
  }
}

/* ── Mobile (≤ 767px) ────────────────────────────────────────── */
@media (max-width: 767px) {
  .property-title-price-wrap {
    flex-wrap: wrap;
    gap: 6px;
  }

  .property-title-price-wrap .page-title,
  .property-title-price-wrap .property-price-wrap {
    width: 100%;
  }

  .property-title-price-wrap .property-price-wrap {
    justify-content: flex-start;
    padding: 8px 0;
  }

  .property_detail_calc .property_detail_block_content {
    flex-wrap: wrap;
  }

  .property_detail_calc .property_detail_calc_left,
  .property_detail_calc .property_detail_calc_right {
    width: 100%;
    flex: 0 0 100%;
  }
}

/* ── Small Mobile (≤ 480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  .property_detail_images_sider {
    display: none;
  }

  .property_detail_images_main {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .property_detail_images_main a {
    height: 260px;
  }

  .property-title-price-wrap .page-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .property-price-wrap .property-price {
    font-size: 22px;
  }

  .property_detail_block_wrapper {
    padding: 16px;
  }

  .property_detail_key_wrapper ul,
  .property_detail_additional ul {
    columns: 1;
  }

  .property_detail_additional ul li,
  .property_detail_key_wrapper ul li {
    flex-direction: row;
  }

  .property_detail_overview_left ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .property_detail_calc_form ul li {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .property_detail_block_title {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .pro_school_row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .pro_school_name,
  .pro_school_score,
  .pro_school_distance {
    width: 100%;
    text-align: left;
  }

  .contact-us {
    display: flex;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    z-index: 999999;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
  }

  .contact-us a {
    flex: 1;
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 48px;
    cursor: pointer;
    color: #fff;
    background: var(--c-accent);
    border: none;
    text-decoration: none;
    transition: background var(--transition);
  }

  .contact-us a:hover {
    background: var(--c-accent-s);
  }
}