/* Single Apartment Page Styles */
.apt-container {
  padding-top: 0;
  padding-bottom: 60px;
}

/* --- Breadcrumbs (Placeholder) --- */
.apt-breadcrumbs {
  background: transparent;
}

.apt-breadcrumbs-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.apt-breadcrumbs-desktop .breadcrumb-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

@media (hover: hover) {
  .apt-breadcrumbs-desktop .breadcrumb-link:hover {
    color: var(--color-text);
  }
}

.apt-breadcrumbs-desktop .breadcrumb-separator {
  width: 1px;
  height: 12px;
  background-color: #ddd;
  display: inline-block;
}

.apt-breadcrumbs-desktop .breadcrumb-current {
  color: var(--color-text);
}

/* Mobile breadcrumbs */
.apt-breadcrumbs .breadcrumbs-mobile {
  display: none;
}

@media (max-width: 768px) {
  .apt-breadcrumbs {
    margin-bottom: 0;
    background: transparent;
  }

  .apt-breadcrumbs-desktop {
    display: none;
  }
  
  .apt-breadcrumbs .breadcrumbs-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
  }
  
  .apt-breadcrumbs .breadcrumbs-mobile svg {
    width: 46px;
    height: 24px;
    flex-shrink: 0;
  }
  
  @media (hover: hover) {
    .apt-breadcrumbs .breadcrumbs-mobile:hover {
      color: var(--color-text-secondary);
    }
  }
}

/* --- Hero Section --- */
.apt-hero {
  margin-bottom: 80px;
}

.apt-hero > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Gallery */
.apt-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apt-main-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}

.apt-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.apt-gallery-prev,
.apt-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.apt-gallery-prev {
  left: 20px;
}

.apt-gallery-next {
  right: 20px;
}

.apt-gallery-prev.swiper-button-disabled,
.apt-gallery-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .apt-gallery-prev {
    left: 10px;
  }

  .apt-gallery-next {
    right: 10px;
  }
}

/* Project Hero Section - Apartment Page Specific Styles */
.project-hero {
  background: transparent;
}

.apt-container .project-hero {
  padding: 60px 0 0;
}

.project-hero .project-hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-hero .project-hero-left {
  width: 100%;
}

.project-hero .project-hero-right {
  width: 100%;
}

.project-hero .project-hero-right-content {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 40px;
  align-items: start;
}

.project-hero .project-description p {
  margin: 0;
}

.project-hero .project-specs-inline {
  display: flex;
  flex-direction: row;
  gap: 40px;
  width: 100%;
}

.project-hero .project-specs-inline .spec-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.project-hero .project-specs-inline .spec-label {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.project-hero .project-specs-inline .spec-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .project-hero .project-hero-right-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .project-hero .project-specs-inline {
    flex-direction: column;
    gap: 20px;
  }

  .project-hero .project-hero-content {
    margin-bottom: 0;
  }
}

.apt-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.apt-thumb {
  aspect-ratio: 1;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

@media (hover: hover) {
  .apt-thumb:hover {
    border-color: var(--color-accent);
  }
}

.apt-thumb.active {
  border-color: var(--color-accent);
}

.apt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Side */
.apt-info {
  display: flex;
  flex-direction: column;
}

.apt-title {
  margin-bottom: 15px;
  font-size: 30px;
}

.apt-specs-table {
  width: 100%;
  margin-bottom: 30px;
  border-collapse: collapse;
}

.apt-specs-table tr {
  border-bottom: 1px solid #eee;
}

.apt-specs-table td {
  padding: 15px 0;
  font-size: 16px;
  color: var(--color-text);
}

.apt-specs-table td:first-child {
  color: var(--color-text-secondary);
  width: 40%;
}

.apt-specs-table td:last-child {
  text-align: right;
  font-weight: 500;
}

.apt-price-row td {
  font-weight: 500;
  font-size: 20px;
  padding-top: 25px;
  border-bottom: none;
}

.apt-info .apt-actions {
  margin-top: auto;
  padding: 0;
}

.btn-apt-primary {
  display: inline-block;
  width: 100%;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid #111;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 8px;
}

@media (hover: hover) {
  .btn-apt-primary:hover {
    background: transparent;
    color: var(--color-text);
  }
}

.apt-promo-box {
  display: none; /* Приховано на сторінці квартир */
  margin-top: 30px;
  background: #fff;
  border: 1px solid #f0f0f0;
  padding: 20px;
  border-radius: 8px;
}

.apt-promo-badge {
  display: inline-block;
  background: #e57373;
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.apt-promo-text {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

/* Calculator styles are now in assets/css/sections/installment.css */

/* Responsive */
@media (max-width: 900px) {

  .apt-hero > .container {
    display: block;
    gap: 0;
  }

  .apt-container {
    padding-top: 0;
    padding-bottom: 40px;
  }

  .apt-title {
    margin: 20px 0 20px;
    font-size: 24px;
  }
}

/* Utility classes */
.apt-no-image-placeholder {
  color: #ccc;
}

.apt-status-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #111;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
