/* ==========================================================================
   HAUS LANG BAAN - Public Website CSS (Stitch Source of Truth)
   Reference: Screen 10 (Home), Screen 2 (Mobile), Screen 3 (Catalog), Screen 4 (Detail)
   ========================================================================== */

/* Hero Section (Screen 10) */
.hero-section-stitch {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 64px;
  padding-bottom: 120px;
  background-image: url('../images/hero/haus-lang-baan-hero-v2.png');
  background-size: cover;
  background-position: center 52%;
  background-repeat: no-repeat;
}

.hero-overlay-stitch {
  position: absolute;
  inset: 0;
  background-color: rgba(252, 249, 244, 0.14);
}

.hero-content-stitch {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 64px;
}

.hero-title-stitch {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--on-surface);
  margin-bottom: 8px;
  line-height: 1;
}

.hero-subtitle-stitch {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-subtitle-stitch::before,
.hero-subtitle-stitch::after {
  content: '';
  width: 48px;
  height: 1px;
  background-color: var(--on-surface);
}

/* 3 Feature Action Cards (Screen 10) */
.hero-cards-grid-stitch {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card-stitch {
  background-color: var(--bg-surface);
  border: 1px solid rgba(208, 197, 185, 0.5);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.feature-card-stitch:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-stitch i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-card-stitch h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.feature-card-stitch p {
  color: var(--secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.feature-card-stitch .arrow-icon {
  color: var(--outline);
  transition: var(--transition-fast);
}

.feature-card-stitch:hover .arrow-icon {
  color: var(--primary);
}

/* Search Bar (Screen 10 & Screen 3) */
.search-section-stitch {
  background-color: var(--bg-surface);
  padding: 60px 0;
  border-bottom: 1px solid rgba(208, 197, 185, 0.3);
}

.search-bar-box-stitch {
  background: var(--bg-surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.search-field-col {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--outline-variant);
}

.search-field-col:last-child {
  border-right: none;
}

.search-field-col label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 4px;
}

.search-field-col select, .search-field-col input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--on-surface);
  outline: none;
  padding: 0;
  cursor: pointer;
}

/* Property Grid & Card (Screen 10 & Screen 3) */
.section-gap-stitch {
  padding: var(--section-gap) 0;
}

.property-card-stitch {
  background: var(--bg-surface);
  border: 1px solid rgba(208, 197, 185, 0.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.property-card-stitch:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media-stitch {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--bg-surface-high);
}

.card-media-stitch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.property-card-stitch:hover .card-media-stitch img {
  transform: scale(1.05);
}

.card-badge-top {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.card-body-stitch {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-stitch {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--on-surface);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-price-stitch {
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 16px;
}

.card-specs-stitch {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--secondary);
  padding-top: 16px;
  border-top: 1px solid rgba(208, 197, 185, 0.4);
  margin-top: auto;
}

.card-specs-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* More Than An Agency Section (Screen 10) */
.services-section-stitch {
  background-color: var(--bg-surface-low);
  padding: var(--section-gap) 0;
  text-align: center;
}

.services-grid-stitch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
  margin-top: 64px;
}

.service-item-stitch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-item-stitch i {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-item-stitch p {
  font-size: 15px;
  color: var(--on-surface);
}

.service-item-stitch p span {
  display: block;
  font-size: 12px;
  color: var(--secondary);
  margin-top: 2px;
}

/* Team Section (Screen 10) */
.team-section-stitch {
  padding: var(--section-gap) 0;
  text-align: center;
  background-color: var(--bg-surface);
}

.team-grid-stitch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.team-card-stitch {
  background: var(--bg-surface-lowest);
  border: 1px solid var(--outline-variant);
  padding: 32px 24px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.team-avatar-stitch {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  filter: grayscale(100%);
  transition: var(--transition-fast);
}

.team-card-stitch:hover .team-avatar-stitch {
  filter: grayscale(0%);
}

.team-card-stitch h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--on-surface);
}

.team-actions-stitch {
  display: flex;
  gap: 8px;
}

.team-actions-stitch a {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-tel {
  border: 1px solid var(--outline-variant);
  color: var(--secondary);
}

.btn-tel:hover {
  border-color: var(--on-surface);
  color: var(--on-surface);
}

.btn-line-green {
  background-color: #00B900;
  color: #ffffff;
}

.btn-line-green:hover {
  background-color: #009900;
}

/* Responsive Public Rules */
@media (max-width: 992px) {
  .hero-cards-grid-stitch { grid-template-columns: 1fr; margin-top: 24px; }
  .search-bar-box-stitch { flex-direction: column; }
  .search-field-col { width: 100%; border-right: none; border-bottom: 1px solid var(--outline-variant); }
  .services-grid-stitch { grid-template-columns: repeat(2, 1fr); }
  .team-grid-stitch { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .hero-title-stitch { font-size: 48px; }
  .services-grid-stitch { grid-template-columns: 1fr; }
  .team-grid-stitch { grid-template-columns: 1fr; }
}


/* ==========================================================
   HAUS PROPERTY GALLERY V2
   ========================================================== */

.haus-property-gallery {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 6px;
  height: clamp(380px, 48vw, 610px);
  overflow: hidden;
  border-radius: 16px;
}

.haus-gallery-main,
.haus-gallery-thumb {
  position: relative;
  border: 0;
  padding: 0;
  background: #eee;
  overflow: hidden;
  cursor: pointer;
}

.haus-gallery-main {
  width: 100%;
  height: 100%;
}

.haus-gallery-main img,
.haus-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.haus-gallery-main:hover img,
.haus-gallery-thumb:hover img {
  transform: scale(1.025);
}

.haus-gallery-thumbs {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
}

.haus-gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: rgba(0,0,0,.46);
  color: white;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}


/* LIGHTBOX */

.haus-lightbox-nav {
  position: fixed;
  z-index: 10005;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(20,20,20,.56);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  backdrop-filter: blur(8px);
}

.haus-lightbox-prev {
  left: 24px;
}

.haus-lightbox-next {
  right: 24px;
}

.haus-lightbox-counter {
  position: fixed;
  z-index: 10005;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20,20,20,.62);
  color: white;
  font-size: 13px;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}


@media (max-width: 768px) {

  .haus-property-gallery {
    display: block;
    height: auto;
    border-radius: 0;
  }

  .haus-gallery-main {
    height: 58vw;
    min-height: 260px;
  }

  .haus-gallery-thumbs {
    margin-top: 5px;
    height: 44vw;
    min-height: 180px;
  }

  .haus-lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .haus-lightbox-prev {
    left: 10px;
  }

  .haus-lightbox-next {
    right: 10px;
  }
}




/* ===== HAUS HERO GLASS V3 START ===== */

/* HERO — ให้เห็นเนื้อหาด้านล่างเร็วขึ้น */
.hero-section-stitch {
  min-height: 74vh !important;
  padding-top: 54px !important;
  padding-bottom: 78px !important;
  background-size: cover !important;
  background-position: center 50% !important;
  background-repeat: no-repeat !important;
}


/* ลดฟิล์มขาวบน Wallpaper */
.hero-overlay-stitch {
  background:
    linear-gradient(
      180deg,
      rgba(252,249,244,0.04) 0%,
      rgba(252,249,244,0.07) 52%,
      rgba(252,249,244,0.11) 100%
    ) !important;
}


/* Logo / Heading spacing */
.hero-title-stitch {
  margin-bottom: 2px !important;
}

.hero-subtitle-stitch {
  margin-bottom: 0 !important;
  opacity: .76;
  letter-spacing: .18em;
}


/* กลุ่มการ์ด */
.hero-cards-grid-stitch {
  width: min(100%, 1080px) !important;
  margin: 28px auto 0 !important;
  gap: 18px !important;
}


/* ===============================
   GLASS CARD
   =============================== */

.feature-card-stitch {
  position: relative;
  overflow: hidden;

  min-height: 190px;

  padding:
    24px 22px 20px !important;

  border-radius:
    28px !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.70),
      rgba(255,255,255,.52)
    ) !important;

  border:
    1px solid rgba(255,255,255,.52) !important;

  -webkit-backdrop-filter:
    blur(20px) saturate(140%);

  backdrop-filter:
    blur(20px) saturate(140%);

  box-shadow:
    0 14px 38px rgba(46,35,24,.09),
    inset 0 1px 0 rgba(255,255,255,.68);

  transition:
    transform .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}


/* แสงกระจกบาง ๆ */
.feature-card-stitch::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.34),
      rgba(255,255,255,.07) 35%,
      transparent 62%,
      rgba(255,255,255,.11)
    );

  pointer-events: none;
}


/* ให้องค์ประกอบอยู่เหนือ glass shine */
.feature-card-stitch > * {
  position: relative;
  z-index: 1;
}


/* ไอคอนด้านบน */
.feature-card-stitch > i {
  font-size: 1.55rem !important;
  margin-bottom: 14px !important;
  opacity: .86;
}


/* ชื่อการ์ด */
.feature-card-stitch h3 {
  margin-bottom: 5px !important;

  letter-spacing:
    .075em;

  font-weight:
    500 !important;
}


/* Subtitle */
.feature-card-stitch p {
  margin-bottom: 0 !important;
  opacity: .70;

  font-size:
    .88rem;
}


/* ===============================
   CIRCULAR GLASS PLAY BUTTON
   =============================== */

.feature-card-stitch .arrow-icon {
  width: 42px !important;
  height: 42px !important;

  margin-top:
    17px !important;

  padding: 0 !important;

  display:
    inline-grid !important;

  place-items:
    center;

  border-radius:
    50% !important;

  background:
    rgba(255,255,255,.34) !important;

  border:
    1px solid rgba(255,255,255,.58);

  -webkit-backdrop-filter:
    blur(12px);

  backdrop-filter:
    blur(12px);

  box-shadow:
    0 7px 20px rgba(54,42,28,.08),
    inset 0 1px 0 rgba(255,255,255,.70);

  transition:
    transform .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}


/* สามเหลี่ยม Play */
.feature-card-stitch .arrow-icon i {
  font-size:
    11px !important;

  transform:
    translateX(1.5px);

  opacity:
    .82;
}


/* ===============================
   HOVER
   =============================== */

.feature-card-stitch:hover {
  transform:
    translateY(-4px);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.78),
      rgba(255,255,255,.59)
    ) !important;

  box-shadow:
    0 19px 48px rgba(46,35,24,.13),
    inset 0 1px 0 rgba(255,255,255,.80);
}


.feature-card-stitch:hover .arrow-icon {
  transform:
    translateY(-2px) scale(1.05);

  background:
    rgba(255,255,255,.52) !important;

  box-shadow:
    0 10px 26px rgba(54,42,28,.12);
}


/* ===============================
   MOBILE
   =============================== */

@media (max-width: 768px) {

  .hero-section-stitch {
    min-height: auto !important;
    padding-top: 42px !important;
    padding-bottom: 56px !important;
  }

  .hero-cards-grid-stitch {
    margin-top: 22px !important;
    gap: 12px !important;
  }

  .feature-card-stitch {
    min-height: 165px;
    border-radius: 22px !important;
    padding: 20px 18px !important;
  }

  .feature-card-stitch .arrow-icon {
    width: 38px !important;
    height: 38px !important;
  }
}

/* ===== HAUS HERO GLASS V3 END ===== */

/* =========================================================
   HAUS GLASS FORWARD BUTTON V4
   ========================================================= */

.feature-card-stitch .arrow-icon {
  width: 44px !important;
  height: 44px !important;

  display: inline-grid !important;
  place-items: center !important;

  margin-top: 17px !important;
  padding: 0 !important;

  border-radius: 50% !important;

  background:
    rgba(255,255,255,0.26) !important;

  border:
    1px solid rgba(255,255,255,0.58) !important;

  backdrop-filter:
    blur(14px) saturate(140%);

  -webkit-backdrop-filter:
    blur(14px) saturate(140%);

  box-shadow:
    0 7px 20px rgba(42,32,22,0.07),
    inset 0 1px 0 rgba(255,255,255,0.72);

  color:
    rgba(106,91,72,0.88);

  transition:
    transform .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    color .22s ease;
}


/* สามเหลี่ยมเส้นมน */
.feature-card-stitch .haus-forward-icon {
  width: 19px;
  height: 19px;

  display: block;

  transform:
    translateX(1px);
}


.feature-card-stitch .haus-forward-icon path {
  fill: none;

  stroke:
    currentColor;

  stroke-width:
    2;

  stroke-linecap:
    round;

  stroke-linejoin:
    round;
}


/* Hover */
.feature-card-stitch:hover .arrow-icon {
  transform:
    translateY(-2px) scale(1.06);

  background:
    rgba(255,255,255,0.44) !important;

  color:
    rgba(88,72,52,0.96);

  box-shadow:
    0 10px 27px rgba(42,32,22,0.11),
    inset 0 1px 0 rgba(255,255,255,0.84);
}


/* ตอนกด */
.feature-card-stitch .arrow-icon:active {
  transform:
    scale(0.96);
}


@media (max-width: 768px) {

  .feature-card-stitch .arrow-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .feature-card-stitch .haus-forward-icon {
    width: 17px;
    height: 17px;
  }
}

