/* ==========================================================================
   Single Apartment Template v2
   ========================================================================== */

.hal-single-apartment {
  max-width: 1400px;
  margin: 0 auto;
  color: #1a2332;
  flex: 1;
  padding: 80px 0;
}

/* ---- Breadcrumb ---- */
.hal-breadcrumb {
  font-size: 13px;
  color: #5b6472;
  margin-bottom: 20px;
}

.hal-breadcrumb a {
  color: #5b6472;
  text-decoration: none;
}

.hal-breadcrumb a:hover {
  color: #1f8a70;
}

.hal-breadcrumb span {
  margin: 0 8px;
}

.hal-breadcrumb strong {
  color: #1a2332;
}

/* ---- Layout ---- */
.hal-single-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1024px) {
  .hal-single-apartment {
    padding: 60px 0;
  }
  .hal-single-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hal-single-layout {
    display: block;
  }
}

/* ---- Status badge ---- */
.hal-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.hal-badge-available {
  background: #e6f5ef;
  color: #1f8a70;
}

.hal-badge-unavailable {
  background: #fdecec;
  color: #c0392b;
}

/* ---- Title / rating / meta ---- */
.hal-title-container {
  display: flex;
  margin-bottom: 15px;
  flex-direction: column;
}

.hal-single-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 0px;
}

.hal-title-container .hal-card-status-badge {
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #e6f5ef;
  border-left: 3px solid #008b74;
  align-self: flex-start;
  color: #1a2332;
}

.hal-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hal-stars {
  color: #f2b632;
  font-size: 14px;
  letter-spacing: 2px;
}

.hal-rating-count {
  font-size: 14px;
  color: #5b6472;
}

.hal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #1a2332;
}

.hal-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hal-meta-item i {
  color: #1f8a70;
}

/* Gallery styling is defined further down, scoped to .hal-swiper-gallery */

/* ---- Info cards (About, Amenities, Details, Energy, Contact) ---- */
.hal-info-card {
  background: #ffffff;
  border: 1px solid #e7eaec;
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 22px;
}

.hal-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1a2332;
}

.hal-card-heading i {
  color: #1f8a70;
}

.hal-card-text {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

/* ---- Amenities grid ---- */
.hal-amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 700px) {
  .hal-amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hal-amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1a2332;
}

.hal-amenity-item i {
  color: #1f8a70;
  font-size: 12px;
}

/* ---- Details grid ---- */
.hal-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .hal-details-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.hal-detail-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f6f8f9;
  border-radius: 8px;
  padding: 14px 16px;
}

.hal-detail-box i {
  color: #1f8a70;
  font-size: 18px;
}

.hal-detail-label {
  display: block;
  font-size: 12px;
  color: #5b6472;
}

.hal-detail-box strong,
.hal-energy-box strong {
  font-size: 15px;
  color: #1a2332;
}

/* ---- Energy grid ---- */
.hal-energy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .hal-energy-grid {
    grid-template-columns: 1fr;
  }
}

.hal-energy-box {
  background: #f6f8f9;
  border-radius: 8px;
  padding: 16px;
}

.hal-energy-box strong {
  margin-top: 4px;
  font-size: 17px;
}

/* ---- Contact form ---- */
.hal-form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 700px) {
  .hal-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.hal-form-row-full {
  grid-template-columns: 1fr;
}

.hal-inquiry-form input,
.hal-inquiry-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e7eaec;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1a2332;
  box-sizing: border-box;
}

.hal-inquiry-form input[readonly] {
  background: #f6f8f9;
  color: #5b6472;
}

.hal-inquiry-form textarea {
  min-height: 110px;
  resize: vertical;
}

.hal-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hal-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1f8a70;
  color: #ffffff;
  border: none;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.hal-form-submit:hover {
  opacity: 0.9;
}

.hal-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hal-form-response {
  margin: 12px 0 0;
  font-size: 14px;
}

.hal-form-response.hal-success {
  color: #1f8a70;
}

.hal-form-response.hal-error {
  color: #c0392b;
}

/* ---- Prev / Next navigation ---- */
.hal-single-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  padding-top: 10px;
}

.hal-single-nav a {
  color: #1a2332;
  text-decoration: none;
}

.hal-single-nav a:hover {
  color: #1f8a70;
}

.hal-nav-overview {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5b6472;
}

/* ---- Sidebar / Pricing card ---- */
.hal-single-sidebar {
  position: sticky;
  top: 20px;
}

.hal-pricing-card {
  background: #ffffff;
  border: 1px solid #e7eaec;
  border-radius: 10px;
  padding: 24px 26px;
}

.hal-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
  color: #1a2332;
}

.hal-price-total {
  display: flex;
  flex-direction: row;
  border-radius: 0;
  padding: 14px 0px;
  margin: 14px 0 20px;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  border-width: 1px 0px 1px 0px;
  border-style: solid;
  border-color: #e7eaec;
}

.hal-price-total span:first-child {
  font-size: 13px;
  color: #5b6472;
}

.hal-price-total strong {
  font-size: 14px;
  color: #1f8a70;
  margin: 2px 0;
}

.hal-price-total-sub {
  font-size: 12px;
  color: #5b6472;
}

.hal-price-subheading {
  font-size: 14px;
  font-weight: 700;
  margin: 20px 0 12px;
  color: #1a2332;
}

.hal-mwst-box {
  background: #e6f5ef;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 13px;
  color: #1a2332;
}

.hal-mwst-box strong {
  margin-bottom: 6px;
  color: #1f8a70;
}

.hal-mwst-box p {
  font-size: 14px;
  margin-bottom: 10px;
}

.hal-mwst-box p {
  margin: 0;
  color: #5b6472;
  line-height: 1.6;
  font-size: 10px;
}

.hal-sidebar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}

.hal-sidebar-button:hover {
  opacity: 0.9;
}

.hal-sidebar-button-primary {
  background: #1f8a70;
  color: #ffffff;
}

.hal-sidebar-button-secondary {
  background: #ffffff;
  color: #1f8a70;
  border: 2px solid #1f8a70;
}

.hal-swiper-gallery {
  margin-bottom: 28px;
}

.hal-swiper-gallery .swiper {
  width: 100%;
}

.hal-swiper-gallery .swiper-slide {
  background-size: cover;
  background-position: center;
}

.main-slider {
  height: 460px;
  border-radius: 10px;
  overflow: hidden;
}

.main-slider .swiper-slide {
  width: 100% !important;
  cursor: zoom-in;
}

.thumb-slider {
  height: 90px;
  margin-top: 12px;
  box-sizing: border-box;
}

.thumb-slider .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.5;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.thumb-slider .swiper-slide-thumb-active {
  opacity: 1;
}

.hal-swiper-gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .main-slider {
    height: 280px;
  }
  .thumb-slider .swiper-slide {
    width: 33.33%;
  }
}

@media (max-width: 767px) {
  .hal-single-apartment {
    padding: 40px 0;
  }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.hal-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.92);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.hal-lightbox-overlay.hal-lightbox-open {
  display: flex;
}

.hal-lightbox-image-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hal-lightbox-image-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.hal-lightbox-close,
.hal-lightbox-prev,
.hal-lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.hal-lightbox-close:hover,
.hal-lightbox-prev:hover,
.hal-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hal-lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
}

.hal-lightbox-prev,
.hal-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 18px;
}

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

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

.hal-lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
}

@media (max-width: 700px) {
  .hal-lightbox-prev,
  .hal-lightbox-next {
    width: 42px;
    height: 42px;
  }
  .hal-lightbox-close {
    width: 38px;
    height: 38px;
    top: 14px;
    right: 14px;
  }
  .hal-lightbox-prev {
    left: 10px;
  }
  .hal-lightbox-next {
    right: 10px;
  }
}
