/* Property Detail Page Styles */
.settle-detail .sd-hero {
  padding: 24px 16px 8px;
  border-bottom: 1px solid #eee;
}

/* Summary (below gallery) */
.settle-detail .sd-summary.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px 8px;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 24px;
}
.settle-detail .sd-title-under {
  font-size: 26px;
  margin: 6px 0 8px;
}
.settle-detail .sd-address-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 14px;
  margin: 0 0 14px;
}
.settle-detail .sd-address-line .sd-pin { font-size: 16px; }
.settle-detail .sd-address-line .sd-map-link {
  margin-left: 10px;
  font-size: 13px;
  text-decoration: underline;
  color: #111827;
}
.settle-detail .sd-summary-right {
  display: flex;
  flex-direction: column;
  gap: 14px; /* removes awkward large gap and normalizes spacing */
}

.settle-detail .sd-summary-right .sd-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.06);
}

/* Right-side form card (light, clear, elevated) */
.settle-detail .sd-form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
  border-radius: 20px;
  padding: 18px;
}
.settle-detail .sd-form-title {
  margin: 2px 0 14px;
  font-size: 20px;
  font-weight: 800; /* highlight heading */
  letter-spacing: .2px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fee2e2; /* soft highlight */
  color: #111827;
  line-height: 1.1;
}
.settle-detail .sd-form-field {
  margin-bottom: 14px;
}
.settle-detail .sd-form-field label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.settle-detail .sd-form-field input[type="text"],
.settle-detail .sd-form-field input[type="tel"],
.settle-detail .sd-form-field input[type="email"] {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #111827;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.settle-detail .sd-form-field input::placeholder {
  color: #9ca3af;
}
.settle-detail .sd-form-field input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}
.settle-detail .sd-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  color: #374151;
  font-size: 14px;
}
.settle-detail .sd-form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ef4444;
}
.settle-detail .sd-form-submit {
  width: 100%;
  background: #ef4444;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(239, 68, 68, .25);
  transition: transform .05s ease, box-shadow .15s ease, background .15s ease;
}
.settle-detail .sd-form-submit:hover { background: #dc2626; }
.settle-detail .sd-form-submit:active { transform: translateY(1px); }
.settle-detail .sd-form-submit:disabled { opacity: .7; cursor: not-allowed; }

.settle-detail .sd-form-msg {
  margin-top: 10px;
  font-size: 13px;
}
.settle-detail .sd-form-msg.ok { color: #10b981; }
.settle-detail .sd-form-msg.err { color: #ef4444; }

/* Rent widget */
.settle-detail .sd-rent-card {
  background: #fff1f2; /* soft rose */
  border: 1px solid #fde2e4;
  border-radius: 20px;
}
.settle-detail .sd-rent-title {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 800;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffe4e6; /* subtle highlight */
  color: #111827;
  line-height: 1.1;
}
.settle-detail .sd-rent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.settle-detail .sd-rent-left .sd-rent-label {
  font-weight: 600;
  margin: 4px 0 2px;
}
.settle-detail .sd-rent-left .sd-rent-note {
  color: #6b7280;
  font-size: 13px;
}
.settle-detail .sd-rent-right {
  text-align: right;
}
.settle-detail .sd-rent-right .sd-rent-value {
  color: #ef4444;
  font-weight: 800;
  font-size: 18px;
}
.settle-detail .sd-rent-right .sd-rent-hint {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}
/* Multiple rows spacing and separator */
.settle-detail .sd-rent-row + .sd-rent-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #f5c2c7;
}
/* Original price (struck through) */
.settle-detail .sd-rent-original {
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
  font-size: 13px;
  margin-left: 8px;
}

/* About text with collapsible behavior */
.settle-detail .sd-about {
  position: relative;
  max-height: none;
  overflow: visible;
}
.settle-detail .sd-about.sd-collapsed {
  max-height: 140px;
  overflow: hidden;
}
.settle-detail .sd-about-fade {
  display: none;
}
.settle-detail .sd-about.sd-collapsed .sd-about-fade {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}
.settle-detail .sd-about-toggle {
  margin-top: 8px;
  background: transparent;
  border: 0;
  color: #ef4444;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* Responsive for summary */
@media (max-width: 1024px) {
  .settle-detail .sd-summary.container {
    grid-template-columns: 1fr;
  }
}

/* Map */
.settle-detail .sd-map.container {
  max-width: 1140px;
  margin: 6px auto 8px;
  padding: 0 16px;
}
/* When map is inside the left column (no .container) */
.settle-detail .sd-map {
  margin: 6px 0 8px;
  padding: 0;
}
.settle-detail #sd-map {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid #e5e7eb;
}
.settle-detail #sd-map-embed {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  background: #eef2f7;
  border: 1px solid #e5e7eb;
}

/* Settl standards */
.settle-detail .sd-standards.container {
  max-width: 1140px;
  margin: 18px auto;
  padding: 0 16px;
}
/* When standards are inside the left column (no .container) */
.settle-detail .sd-standards {
  margin: 12px 0;
  padding: 0;
}
.settle-detail .sd-standards-grid {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 18px;
}
.settle-detail #sd-map-embed {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  background: #eef2f7;
  border: 1px solid #e5e7eb;
}

/* Settl standards */
.settle-detail .sd-standards.container {
  max-width: 1140px;
  margin: 18px auto;
  padding: 0 16px;
}
.settle-detail .sd-standards-grid {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 18px;
}
/* Standards: icon above label, clean look */
.settle-detail .sd-standard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: #111827;
}

.settle-detail .sd-standard .sd-ico {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* No badge background/border for a cleaner look */
  background: transparent;
  border: 0;
  color: #111827;
}

.settle-detail .sd-standard .sd-ico svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Grid spacing and alignment */
.settle-detail .sd-standards-grid {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 24px;
  justify-items: center;
}

/* Responsive columns */
@media (max-width: 960px) {
  .settle-detail .sd-standards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .settle-detail .sd-standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .settle-detail .sd-standards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .settle-detail .sd-standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Slider controls */
.settle-detail .sd-g-main { position: relative; }
.settle-detail .sd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.settle-detail .sd-prev { left: 10px; }
.settle-detail .sd-next { right: 10px; }
.settle-detail .sd-nav:focus { outline: 2px solid #111827; outline-offset: 2px; }

/* Active thumbnail */
.settle-detail .sd-thumb-active img {
  outline: 2px solid #111827;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Buttons reset for thumbs */
.settle-detail .sd-g-right button.sd-thumb,
.settle-detail .sd-g-right .sd-g-tile {
  background: transparent;
  border: 0;
  padding: 0;
}
.settle-detail .sd-breadcrumbs {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 6px;
}
.settle-detail .sd-title {
  font-size: 28px;
  margin: 0 0 4px;
}
.settle-detail .sd-address {
  color: #374151;
  margin: 0 0 12px;
}

.settle-detail .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px;
}

.settle-detail .sd-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  grid-gap: 24px;
}

.settle-detail .sd-gallery {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
}
.settle-detail .sd-gallery-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}
.settle-detail .sd-thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.settle-detail .sd-thumbs img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}

.settle-detail .sd-section {
  margin: 24px 0;
}
.settle-detail .sd-h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.settle-detail .sd-h3 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.settle-detail .sd-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.settle-detail .sd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}
.settle-detail .sd-chip img {
  width: 18px; height: 18px; object-fit: contain;
}

.settle-detail .sd-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.settle-detail .sd-map-link {
  margin-left: 10px;
  font-size: 13px;
}

.settle-detail .sd-right .sd-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}
.settle-detail .sd-sticky {
  position: sticky;
  top: 90px;
}
.settle-detail .sd-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.settle-detail .sd-price-label {
  color: #6b7280;
  font-size: 13px;
}
.settle-detail .sd-price-value {
  font-weight: 700;
  font-size: 22px;
}

.settle-detail .sd-rent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.settle-detail .sd-rent-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px dashed #e5e7eb;
}
.settle-detail .sd-rent-item:first-child {
  border-top: 0;
}
.settle-detail .ri-label {
  color: #111827;
}
.settle-detail .ri-price {
  text-align: right;
}
.settle-detail .ri-original {
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 6px;
}
.settle-detail .ri-discount {
  font-weight: 600;
}

.settle-detail .sd-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.settle-detail .sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.settle-detail .sd-btn-primary {
  background: #111827;
  color: #fff;
}
.settle-detail .sd-btn-outline {
  border: 1px solid #d1d5db;
  color: #111827;
  background: #fff;
}

.settle-detail .sd-video iframe {
  width: 100%;
  height: 420px;
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .settle-detail .sd-grid {
    grid-template-columns: 1fr;
  }
  .settle-detail .sd-sticky {
    position: static;
  }
  .settle-detail .sd-gallery-main img {
    height: 400px;
  }
  .settle-detail .sd-thumbs {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 640px) {
  .settle-detail .sd-gallery-main img {
    height: 280px;
  }
  .settle-detail .sd-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .settle-detail .sd-details {
    grid-template-columns: 1fr;
  }
}

/* Video promo banner */
.settle-detail .sd-video-promo.container {
  max-width: 1140px;
  margin: 12px auto 0;
  padding: 0 16px;
}
/* When placed inside the left column (no container class) */
.settle-detail .sd-video-promo {
  margin: 12px 0;
}

.settle-detail .sd-video-trigger {
  width: 100%;
  height: 320px;
  border: 0;
  padding: 0;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  background: #0b0b0b;
}

/* Settl community */
.settle-detail .sd-community {
  margin: 18px 0 6px;
}
.settle-detail .sd-comm-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
}

.settle-detail .sd-comm-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.settle-detail .sd-comm-card.comm-b {
  grid-template-columns: 1fr 1.2fr; /* reversed layout for second card */
}

.settle-detail .comm-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settle-detail .comm-stack .comm-line {
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: .3px;
  color: #111827;
}
.settle-detail .comm-stack .hl { color: #ef4444; }

.settle-detail .comm-sub {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}
.settle-detail .comm-desc {
  margin: 0;
  color: #374151;
}
.settle-detail .comm-bullets {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #111827;
}

.settle-detail .comm-collage {
  display: grid;
  gap: 8px;
}
.settle-detail .collage-a {
  grid-template-columns: 1.2fr 1fr;
  grid-auto-rows: 110px;
}
.settle-detail .collage-a img:nth-child(1) { grid-row: 1 / span 2; height: 100%; }
.settle-detail .collage-a img:nth-child(2) { grid-column: 2; }
.settle-detail .collage-a img:nth-child(3) { grid-column: 2; }
.settle-detail .collage-a img:nth-child(4) { grid-column: 1; }
.settle-detail .collage-a img:nth-child(5) { grid-column: 2; }
.settle-detail .collage-a img:nth-child(6) { grid-column: 1; }

.settle-detail .collage-b {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 90px;
}
.settle-detail .collage-b img:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.settle-detail .collage-b img:nth-child(2) { grid-column: 3; grid-row: 1; }
.settle-detail .collage-b img:nth-child(3) { grid-column: 3; grid-row: 2; }
.settle-detail .collage-b img:nth-child(4) { grid-column: 1; grid-row: 3; }
.settle-detail .collage-b img:nth-child(5) { grid-column: 2; grid-row: 3; }
.settle-detail .collage-b img:nth-child(6) { grid-column: 3; grid-row: 3; }

.settle-detail .comm-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
}

/* Responsive community layout */
@media (max-width: 960px) {
  .settle-detail .sd-comm-card,
  .settle-detail .sd-comm-card.comm-b {
    grid-template-columns: 1fr;
  }
  .settle-detail .collage-a { grid-auto-rows: 120px; }
  .settle-detail .collage-b { grid-auto-rows: 110px; }
}

/* FAQs (accordion) */
.settle-detail .sd-faq {
  margin: 18px 0;
}
.settle-detail .sd-acc {
  display: grid;
  gap: 10px;
}
.settle-detail .sd-acc-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.settle-detail .sd-acc-toggle {
  width: 100%;
  background: #fff;
  border: 0;
  padding: 12px 14px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.settle-detail .sd-acc-toggle:focus {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}
.settle-detail .sd-acc-toggle .caret {
  transform: rotate(0deg);
  transition: transform .15s ease;
}
.settle-detail .sd-acc-item.open .sd-acc-toggle .caret {
  transform: rotate(180deg);
}
.settle-detail .sd-acc-panel {
  display: none;
  padding: 12px 14px 14px;
  border-top: 1px dashed #e5e7eb;
  color: #374151;
  background: #fafafa;
}
.settle-detail .sd-acc-item.open .sd-acc-panel {
  display: block;
}
.settle-detail .sd-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
}
.settle-detail .sd-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.2));
}
.settle-detail .sd-video-play {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #ef233c;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(239,35,60,.35);
}
.settle-detail .sd-video-caption {
  position: absolute;
  left: 26px;
  top: 26px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Modal */
.settle-detail .sd-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.settle-detail .sd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}
.settle-detail .sd-modal-dialog {
  position: relative;
  width: min(100% - 40px, 960px);
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.settle-detail .sd-modal-close {
  position: absolute;
  right: 8px;
  top: 4px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.settle-detail .sd-modal-body {
  padding: 0;
}
.settle-detail .sd-modal-iframe-wrap {
  position: relative;
  width: 100%;
  /* 16:9 ratio */
  padding-bottom: 56.25%;
  height: 0;
}
.settle-detail .sd-modal-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
