.single-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 60px ;
    height: 100dvh;
}

.single-kv {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 960px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    overflow: hidden; /* Keeps gradient inside rounded corners */
    z-index: 0; /* Base layer */
}

.single-kv::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    border-radius: 0 0 40px 40px;
    pointer-events: none;
    z-index: 1; /* Gradient above background */
}

.icon-wrapper {
    position: relative;
    width: 100%;
    bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    z-index: 2; /* Ensures icon-wrapper stays in front of gradient */
}

.property-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
}

.single-status {
  margin-top: 1rem;
  color: #ffffff;
  display: inline-block;
  padding: 0 1rem;
  border-radius: 6px;
  font-size: 20px;
}

.single-status p{
  color: #ffffff;
  font-size: 28px;
  font-family: 'HenrySans', sans-serif;
}

/* details */
.property-details {
  padding: 80px 0; /* reduced from 80px */
  margin: 0 200px;
  text-align: center;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.detail-header{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-header h1{
  font-size: 80px;
  letter-spacing: -2px;
  line-height: 80px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* smaller min */
  gap: 20px; /* reduced from 40px */
  margin-bottom: 30px; /* reduced */
}

.info-item {
  text-align: center;
  border-right: 1px solid #ddd;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.info-item:last-child {
  border-right: none;
}

.info-item i {
  display: block;
  font-size: 1.5rem; /* smaller icons */
  margin-bottom: 8px;
  color: #345b34;
}

.info-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-itemli {
  padding: 4px 0;
  font-size: 0.95rem; /* smaller text */
}

.cta-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* tighter */
  justify-content: center;
}

.cta-buttons .btn {
  font-size: 0.9rem;
  padding: 10px 16px; /* smaller buttons */
}

.proximity-wrap{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 0;
  margin: 0 200px;
  gap: 84px;
}


.prox-head h1{
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -2px;
}

.prox-left{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 80px;
}

.prox-list{
  display: flex;
  flex-direction: column;
  gap:40px;
}

.prox-list h4{
  font-size: 20px;
  color: #354637;
}

.prox-list ul li{
  list-style: none;
  font-size: 16px;
  line-height: 24px;
}

.prox-list-wrap{
  display: flex;
  flex-direction: column;
  gap:20px;
}

.prx-detail{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prox-right{
  border-radius: 20px;
  max-width: 960px;
  max-height: 840px;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.map-side{
  border-radius: 40px;
  overflow: hidden;
  height: 840px;
  width: 960px;
}

.map-side img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.unit-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.unit-header h1{
  font-size: 80px;
  letter-spacing: -2px;
  line-height: 80px;
}

.lts-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto 20px; /* centered margin, less aggressive */
  min-height: 240px;  /* flexible height */
  text-align: center;
  gap: 20px;
}

.lts-title{
  font-family: "HenrySans", sans-serif;
  font-weight: 600px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #345b34;
}

.lts-wrap p{
  font-size: 10px;
  color: #345b34;
}


/* === Tablet (<= 1024px) === */
@media (max-width: 1024px) {
  .single-hero {
    padding: 60px 40px;
  }

  .icon-wrapper {
    padding: 0 40px;
  }

  .info-grid {
    grid-template-columns: 2fr 1fr;
    gap: 16px;
  }

  .prox-head{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .prox-left{
    width: 100%;
    gap: 30px;
  }

  .prox-list{
    width: 100%;
  }

  .map-side {
    width: 100%;
    height: 600px;    /* shorter height for tablets */
    border-radius: 30px;
  }

  .map-side img{
    width: 100%;
    height: 100%;
  }

  .property-details,
  .proximity-wrap,
  .unit-wrapper {
    margin: 0 60px;
    gap: 60px;
    flex-direction: column;
  }

  .detail-header h1,
  .prox-head h1,
  .unit-header h1 {
    font-size: 56px;
    line-height: 64px;
  }

  .prox-right {
    max-width: 100%;
    height: auto;
  }
}

/* === Mobile (<= 768px) === */
@media (max-width: 768px) {
  .single-hero {
    padding: 40px 20px;
    height: auto;
  }

  .single-kv {
    border-radius: 20px;
  }

  .single-kv::after {
    border-radius: 0 0 20px 20px;
  }

  .icon-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }

  .property-details,
  .proximity-wrap,
  .unit-wrapper {
    margin: 0 20px;
    padding: 40px 0;
    gap: 40px;
  }

  .detail-header h1,
  .prox-head h1,
  .unit-header h1 {
    font-size: 36px;
    line-height: 42px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .info-item {
    border-right: none;
    gap: 20px;
    padding: 10px 0;
  }

  .proximity-wrap {
    flex-direction: column;
    gap: 40px;
  }

  .prox-left {
    gap: 40px;
  }

  .map-side {
    width: 100%;
    height: 400px;    /* smaller height for mobile */
    border-radius: 20px;
  }

}

/* === Small Mobile (<= 480px) === */
@media (max-width: 480px) {
  .detail-header h1,
  .prox-head h1,
  .unit-header h1 {
    font-size: 28px;
    line-height: 34px;
  }

  .single-status p {
    font-size: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
}
