/* ==========================================================================
   APARTMENT SINGLE PAGE STYLES (Max-width: 1400px)
   ========================================================================== */
:root {
  --apt-bg: #faf8f5;
  --apt-teal: #13524c;
  --apt-teal-hover: #0d3b37;
  --apt-gold: #b08d57;
  --apt-text-dark: #2c2a29;
  --apt-text-muted: #6e6a63;
  --apt-placeholder-bg: #e5e0d5;
  --apt-border: #e2ddd5;
  --apt-white: #ffffff;
  --apt-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --apt-font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
}

.apartment-single-wrapper {
  background-color: var(--apt-bg);
  color: var(--apt-text-dark);
  font-family: var(--apt-font-sans);
  padding: 30px 20px 80px;
  line-height: 1.6;
}

.apt-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Breadcrumb */
.apt-breadcrumb {
  font-size: 13px;
  color: var(--apt-text-muted);
  margin-bottom: 16px;
}
.apt-breadcrumb a {
  color: var(--apt-text-muted);
  text-decoration: none;
}
.apt-breadcrumb a:hover {
  text-decoration: underline;
}
.apt-breadcrumb .separator {
  margin: 0 6px;
}

/* Header Section */
.apt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.apt-title {
  font-family: var(--apt-font-serif);
  color: var(--apt-teal);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.apt-location {
  font-size: 15px;
  color: var(--apt-text-muted);
  margin: 0 0 14px 0;
}

/* Verified Badge */
.apt-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--apt-teal);
  color: var(--apt-white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}

/* Score Card */
.apt-score-card {
  background-color: var(--apt-white);
  border: 1px solid var(--apt-border);
  border-radius: 16px;
  padding: 16px 24px;
  min-width: 190px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.score-title {
  display: block;
  font-size: 12px;
  color: var(--apt-text-muted);
  margin-bottom: 4px;
}
.score-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.score-num {
  font-family: var(--apt-font-serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--apt-teal);
  line-height: 1;
}
.score-total {
  font-size: 14px;
  color: var(--apt-text-muted);
}
.score-status {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--apt-teal);
  display: flex;
  align-items: center;
  gap: 5px;
}
.score-status .heart-icon {
  color: #d9534f;
  font-size: 15px;
}

/* Gallery Grid */
.apt-gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.gallery-main-photo {
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  background-color: var(--apt-placeholder-bg);
}

.apt-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-sub-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
}

.photo-placeholder {
  background-color: var(--apt-placeholder-bg);
  border-radius: 18px;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--apt-text-muted);
  font-size: 13px;
}

/* Main Body Grid (2 Columns) */
.apt-body-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.apt-section {
  margin-bottom: 40px;
}

.apt-section-title {
  font-family: var(--apt-font-serif);
  color: var(--apt-teal);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 16px 0;
}

.apt-description {
  font-size: 15px;
  color: var(--apt-text-dark);
}

/* Amenities */
.amenities-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.amenities-header .apt-section-title {
  margin-bottom: 0;
}
.sample-tag {
  font-size: 12px;
  color: var(--apt-text-muted);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--apt-text-dark);
}

.amenity-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--apt-gold);
  color: var(--apt-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Verified Info Box */
.apt-verified-box {
  background-color: #efece6;
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}
.apt-verified-box p {
  margin: 12px 0 0 0;
  font-size: 14px;
  color: var(--apt-text-dark);
}

/* Availability Box */
.apt-availability-box {
  background-color: var(--apt-white);
  border: 1px solid var(--apt-border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 24px;
  margin-bottom: 40px;
}
.apt-availability-title {
  font-family: var(--apt-font-serif);
  color: var(--apt-teal);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px 0;
}
.apt-availability-box p {
  margin: 0;
  font-size: 14px;
  color: var(--apt-text-muted);
}

/* Location & Interactive Map */
.apt-location-section {
  margin-bottom: 0;
}
.apt-map-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--apt-border);
  background-color: #dce3dc;
}
.apt-map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}
.apt-map-canvas .leaflet-tile-pane {
  filter: saturate(0.45) contrast(0.95) brightness(1.03);
}

/* Custom Teal Pin Marker */
.apt-custom-pin {
  width: 30px;
  height: 30px;
  background-color: var(--apt-teal);
  color: var(--apt-white);
  border: 2.5px solid var(--apt-white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(19, 82, 76, 0.35);
}
.apt-custom-pin span {
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Bottom-Left "Interactive map" Pill Button */
.apt-map-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 500;
  background-color: var(--apt-white);
  color: var(--apt-text-dark);
  border: 1px solid var(--apt-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
.apt-map-badge:hover {
  background-color: var(--apt-teal);
  color: var(--apt-white);
  border-color: var(--apt-teal);
}

/* Booking Card (Right Sidebar) */
.booking-card {
  background-color: var(--apt-white);
  border: 1px solid var(--apt-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 24px;
}

.booking-price {
  margin-bottom: 20px;
}
.price-amount {
  font-family: var(--apt-font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--apt-teal);
}
.price-period {
  font-size: 14px;
  color: var(--apt-text-muted);
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--apt-text-dark);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--apt-border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--apt-text-dark);
  background-color: var(--apt-white);
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none;
  border-color: var(--apt-teal);
}

.btn-primary-book {
  width: 100%;
  background-color: var(--apt-teal);
  color: var(--apt-white);
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: background-color 0.2s ease;
}
.btn-primary-book:hover {
  background-color: var(--apt-teal-hover);
}

.booking-notes {
  margin: 18px 0;
  font-size: 12px;
  color: var(--apt-text-muted);
  line-height: 1.5;
}
.booking-notes p {
  margin: 0 0 8px 0;
}

.btn-whatsapp {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border: 1.5px solid var(--apt-teal);
  border-radius: 50px;
  color: var(--apt-teal);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.btn-whatsapp:hover {
  background-color: var(--apt-teal);
  color: var(--apt-white);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .apt-body-grid {
    grid-template-columns: 1fr 330px;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .apt-gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-main-photo {
    min-height: 300px;
  }
  .apt-body-grid {
    grid-template-columns: 1fr;
  }
  .booking-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .apartment-single-wrapper {
    padding: 20px 16px 60px;
  }
  .apt-header {
    flex-direction: column;
    align-items: stretch;
  }
  .apt-score-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
  }
  .score-title {
    margin-bottom: 0;
  }
  .gallery-sub-photos {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .photo-placeholder {
    min-height: 140px;
  }
  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-row-split {
    grid-template-columns: 1fr;
  }
  .apt-map-wrapper {
    height: 260px;
    border-radius: 16px;
  }
  .apt-availability-box {
    padding: 20px;
  }
}
