.house-detail img {
  width: 100%;
  border-radius: 12px;
}

.gallery-wrapper {
  position: relative;
}

.gallery-main {
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main img {
  transition: transform 0.4s ease;
}

.gallery-main:hover img {
  transform: scale(1.08);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbs img {
  width: 80px;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 8px;
}

.gallery-thumbs img:hover {
  opacity: 1;
}

.spec-list {
  list-style: none;
  padding: 0;
}

.spec-list li {
  margin-bottom: 8px;
}

.cta-box {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}
.gallery-main img {
  width: 100%;
  border-radius: 14px;
  cursor: pointer;
}

.gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.gallery-thumbs img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  opacity: .85;
  transition: .25s;
}
.gallery-thumbs img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 6px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-counter {
  position: absolute;
  top: 20px;
  left: 30
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: #6c6c6c;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.house-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.house-subtitle {
  color: #666;
  margin-bottom: 18px;
}

/* Tabs */
.info-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  border: none;
  background: #f2f2f2;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: .25s;
}

.tab-btn.active {
  background: #a33b3b;
  color: #fff;
}

/* Body */
.tab-content-wrapper {
  background: #fafafa;
  border-radius: 16px;
  padding: 18px;
  min-height: 220px;
}

.tab-content {
  display: none;
  animation: fadeUp .35s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeUp {
  from {opacity: 0; transform: translateY(6px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Lists */
.spec-list li,
.list-clean li {
  margin-bottom: 10px;
  font-size: 15px;
}

.soft-text {
  color: #555;
  margin-bottom: 12px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: #6c6c6c;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.nearby-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  cursor: default;
}

.nearby-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: #a93333;
}

.nearby-icon {
  width: 44px;
  height: 44px;
  background: #a93333;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.nearby-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.nearby-text p {
  font-size: 13px;
  color: #777;
}

/* Responsive */
@media (max-width: 575px) {
  .nearby-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================= */
/* HOUSE DETAIL TAB ONLY */
/* ============================= */

.house-tabs * {
  box-sizing: border-box;
}

/* GRID */
.house-tabs .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* CARD */
.house-tabs .feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  border: 1px solid #eee;
  transition: all .35s ease;
}

.house-tabs .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

/* ICON */
.house-tabs .feature-icon {
  width: 48px;
  height: 48px;
  background: #a93333;
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
}

/* TEXT */
.house-tabs .feature-card h4 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
}

.house-tabs .feature-card p {
  font-size: 13px;
  color: #777;
  margin: 0;
}

/* MOBILE */
@media (max-width: 575px) {
  .house-tabs .feature-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================= */
/* PROMOTION TAB */
/* ============================= */

.house-tabs .promo-box {
  background: linear-gradient(135deg, #fff7f7, #ffffff);
  border-radius: 18px;
  padding: 26px 24px;
  border: 1px solid #f1dcdc;
}

.house-tabs .promo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.house-tabs .promo-item:not(:last-child) {
  margin-bottom: 8px;
}

.house-tabs .promo-item:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transform: translateX(4px);
}

.house-tabs .promo-icon {
  width: 34px;
  height: 34px;
  background: #a93333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.house-tabs .promo-note {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #888;
  text-align: right;
}
/* ============================= */
/* LOAN TAB */
/* ============================= */

.house-tabs .loan-box {
  background: #f9fafb;
  border-radius: 18px;
  padding: 26px 24px;
  border: 1px solid #eee;
}

.house-tabs .loan-intro {
  font-size: 15px;
  color: #444;
  margin-bottom: 18px;
  line-height: 1.6;
}

.house-tabs .loan-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.house-tabs .loan-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.house-tabs .loan-step:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.house-tabs .loan-icon {
  width: 36px;
  height: 36px;
  background: #a93333;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.location-highlight {
  padding: 90px 0;
  background: #fff;
  text-align: center;
}

.section-subtitle {
  color: #666;
  font-size: 18px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.location-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: all .3s ease;
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.icon-box {
  width: 70px;
  height: 70px;
  background: #f3f3f3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: #444;
}

.location-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.location-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.location-card li {
  font-size: 16px;
  color: #444;
  margin-bottom: 12px;
}

.location-card strong {
  font-size: 22px;
  font-weight: 700;
  margin: 0 4px;
}

.note {
  display: block;
  margin-top: 20px;
  font-size: 12px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 28px;
  }
}
  /* ===== Map Section (Premium) ===== */
  .map-section{
    padding: 70px 0;
    background: #fff;
  }
  .map-section .container{
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .map-head{
    text-align: center;
    margin-bottom: 22px;
  }
  .map-kicker{
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(15, 28, 45, .55);
  }
  .map-title{
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    color: #0f1c2d;
  }
  .map-desc{
    margin: 0 auto;
    max-width: 720px;
    color: rgba(15, 28, 45, .65);
    font-size: 15px;
    line-height: 1.65;
  }

  .map-card{
    margin-top: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 28, 45, .08);
    box-shadow: 0 18px 50px rgba(15, 28, 45, .10);
    overflow: hidden;
  }

  .map-frame{
    position: relative;
    width: 100%;
    /* ratio: 16:9 -> ปรับได้ตามชอบ */
    aspect-ratio: 16 / 9;
    background: #f3f5f7;
  }
  .map-frame iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .map-actions{
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.92));
  }

  .btn-map{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: .2s ease;
    white-space: nowrap;
  }

  /* ปรับสีให้เข้าธีมคุณได้ */
  .btn-map.primary{
    background: #9f2d2f;
    color: #fff;
    box-shadow: 0 14px 26px rgba(159,45,47,.25);
  }
  .btn-map.primary:hover{
    transform: translateY(-1px);
    filter: brightness(.98);
  }

  .btn-map.ghost{
    background: #fff;
    color: #9f2d2f;
    border: 1px solid rgba(159,45,47,.28);
  }
  .btn-map.ghost:hover{
    transform: translateY(-1px);
    background: rgba(159,45,47,.06);
  }

  @media (max-width: 768px){
    .map-title{ font-size: 26px; }
    .map-actions{
      flex-direction: column;
      padding: 14px;
    }
    .btn-map{ width: 100%; }
    .map-frame{ aspect-ratio: 4 / 3; }
  }