/* Detail page */
.apdt-hero {
  padding: 20px 0;
  background: #fff;
}

.apdt-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr;
  gap: 24px;
}

.apdt-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.apdt-main {
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
}

.apdt-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apdt-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.apdt-thumb {
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
}

.apdt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apdt-summary .apdt-back {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--te-accent);
  text-decoration: none;
}

/* Back link chip styling */
.apdt-back { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border:none; border-radius:999px; color:var(--te-accent); color:#fff; font-weight:600; font-size:16px; box-shadow:none }
.apdt-back:hover { filter:brightness(.95); color:#fff; }

.apdt-title {
  margin: 0 0 8px;
  font-size: 28px;
}

.apdt-badges {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.apdt-badge.status {
  background: var(--te-green);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.apdt-price {
  font-size: 22px;
  color: var(--te-green);
  font-weight: 800;
  margin: 8px 0 10px;
}

.apdt-features {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #6b7280;
}

.apdt-features .feat {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.apdt-info {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
}

.apdt-contact {
  display: grid;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.apdt-contact input,
.apdt-contact textarea {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 8px;
}

.apdt-sticky { position: sticky; top: 84px; height: max-content; }
.apdt-success { background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;border-radius:8px;padding:10px;margin-bottom:10px }

.apdt-details {
  padding: 24px 0;
  background: #f8fafc;
}

.apdt-columns { display: grid; grid-template-columns: 1fr; gap: 24px; }

.apdt-col h2,
.apdt-col h3 {
  margin: 16px 0 10px;
}

.apdt-list {
  padding-left: 18px;
}

/* Image Slider Styles */
.image-slider-container {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 12px;
}

.image-slider {
  display: flex;
  transition: transform 0.3s ease;
  cursor: grab;
  user-select: none;
}

.image-slider:active {
  cursor: grabbing;
}

.slide {
  min-width: 33.333%;
  padding: 0 5px;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.slide img:hover {
  transform: scale(1.02);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #ff6b35;
}

.dot:hover {
  background-color: #ff8c5a;
}

.apdt-faq details {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin-bottom: 8px;
}

/* Generic map/image placeholder to force image display */
.map-placeholder { border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; height:360px }
.map-placeholder img { width:100%; height:100%; display:block; object-fit:cover }

/* Social row under the form */
.apdt-social{display:flex;gap:10px;align-items:center;margin-top:10px}
.apdt-social a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;border:1px solid #e5e7eb;color:#0b4d3b;text-decoration:none}
.apdt-social a:hover{background:#f3f4f6}

/* Property Information Cards */
.property-info-cards {
  margin-bottom: 30px;
}

.info-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media(max-width:768px){.info-two{grid-template-columns:1fr}}

.info-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.info-card h2 {
  color: #2c5530;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px 0;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

.info-items {
  display: grid;
  gap: 12px;
}

.feature-tags{display:flex;flex-wrap:wrap;gap:8px}
.feature-tags .tag{background:#eef5f1;color:#0b4d3b;border:1px solid #d8e7de;border-radius:999px;padding:6px 10px;font-size:12px}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: #495057;
  flex: 1;
}

.info-value {
  font-weight: 600;
  color: #212529;
  text-align: right;
}

/* Image Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 6px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10001;
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 16px 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

#modalImage {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  border-radius: 8px;
}

.modal-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  max-width: 80%;
  overflow-x: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.modal-thumb:hover,
.modal-thumb.active {
  opacity: 1;
  border: 2px solid white;
}

@media (max-width: 1024px) {
  .apdt-hero-grid {
    grid-template-columns: 1fr;
  }
  
  .apdt-columns {
    grid-template-columns: 1fr;
  }
  
  .apdt-main {
    height: 340px;
  }
  
  .slide {
    min-width: 50%;
  }
  
  .slide img {
    height: 200px;
  }
  
  .info-card {
    padding: 15px;
  }
  
  .modal-prev,
  .modal-next {
    font-size: 24px;
    padding: 12px 16px;
  }
  
  .modal-thumbnails {
    max-width: 90%;
  }
  
  .modal-thumb {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .slide {
    min-width: 100%;
  }
  
  .slide img {
    height: 180px;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .info-value {
    text-align: left;
  }
  
  #modalImage {
    max-width: 95%;
    max-height: 60%;
  }
  
  .modal-counter {
    font-size: 14px;
    padding: 6px 10px;
  }
  
  .modal-close {
    font-size: 28px;
    right: 20px;
  }
}