/* Project Landing Page Styles */

/* Breadcrumbs */
.project-breadcrumbs {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 20px 0;
  background: #fff;
}

.section-apartments-list .project-breadcrumbs {
  background: transparent;
}

.projects-archive .project-breadcrumbs {
  background: transparent;
}


@media (max-width: 768px) {
  .projects-archive .project-breadcrumbs {
    padding: 0;
    margin-bottom: 0;
  }
  
  .projects-archive .page-header {
    margin-top: 0;
  }
}

.project-breadcrumbs .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  gap: 16px;
}

.breadcrumbs-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breadcrumbs-mobile {
  display: none;
  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;
}

.breadcrumbs-mobile svg {
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

@media (hover: hover) {
  .breadcrumbs-mobile:hover {
    color: var(--color-text-secondary);
  }
}

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

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

.project-breadcrumbs .breadcrumb-separator {
  width: 1px;
  height: 14px;
  background-color: #e0e0e0;
  display: inline-block;
  flex-shrink: 0;
}

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

/* Archive filters: hide mobile toggle on desktop */
@media (min-width: 1025px) {
  .projects-archive .project-filters-toggle {
    display: none;
  }
}

.project-landing section {
  margin-top: 50px;
}

@media (max-width: 768px) {
  .project-landing section {
    margin-top: 30px;
  }
}

.project-hero-image img {
  width: 100%;
  height: auto;
  min-height: 500px;
  max-height: 700px;
  object-fit: cover;
  display: block;
}

.project-landing .project-hero {
  margin: 0;
}

.project-hero {
  background: #fff;
  padding: 25px 0;
}

.project-hero .container {
  max-width: 1200px;
}

.project-hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 35px;
  max-width: 900px;
}

.project-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-title-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-title {
  margin: 0;
}

.project-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.project-district-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 15px;
}

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

.project-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 18px 40px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero-actions .btn-primary {
  background: #111;
  color: #fff;
  border: 2px solid #111;
}

@media (hover: hover) {
  .hero-actions .btn-primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.hero-actions .btn-outline {
  background: transparent;
  border: 2px solid #ddd;
  color: var(--color-text);
}

@media (hover: hover) {
  .hero-actions .btn-outline:hover {
    border-color: var(--color-text);
    background: #111;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Specs Grid - New Layout */
.project-specs-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 0 30px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 40px;
}

.spec-item:last-child {
  border-right: none;
  padding-right: 0;
}

.spec-label {
  font-size: 14px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.sticky-nav {
  position: sticky;
  top: var(--header-height, 63px);
  background: #fff;
  z-index: 999;
  border-top: none;
  border-bottom: none;
  padding: 0;
  height: 40px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.17);
  overflow: visible; /* Allow items to be visible */
  margin-top: 0;
  margin-bottom: 0;
}

.sticky-nav .container {
  background: #fff;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}

.project-nav-anchors {
  margin-bottom: 0;
}

html {
  scroll-padding-top: 130px;
  /* Header (76) + Nav (54) */
  scroll-behavior: smooth;
}

.sticky-nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

/* Якщо 5+ елементів, використовуємо space-between і прибираємо gap */
.sticky-nav ul:has(li:nth-child(5)),
.sticky-nav ul.nav-space-between {
  justify-content: space-between;
  gap: 0;
}

.sticky-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
  padding: 0;
  white-space: nowrap;
}

@media (hover: hover) {
  .sticky-nav a:hover {
    color: var(--color-text);
  }
}

.sticky-nav a.active {
  color: var(--color-text);
  font-weight: 500;
}

@media (max-width: 992px) {
  .project-title {
    font-size: 42px;
  }

  .project-specs-grid {
    flex-wrap: wrap;
    gap: 20px;
  }

  .spec-item {
    border-right: none;
    padding-right: 0;
    min-width: 45%;
  }
}

@media (min-width: 1025px) {
  .sticky-nav {
    top: var(--header-height, 63px);
  }
}

@media (max-width: 1024px) {
  .sticky-nav {
    top: var(--header-height, 63px);
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .project-hero {
    padding: 30px 0 17px;
  }

  .project-title {
    font-size: 32px;
  }

  .project-title-row {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .sticky-nav {
    top: var(--header-height, 63px);
    margin-top: 0;
    margin-bottom: 0;
  }

  .sticky-nav .container {
    padding: 12px 0;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .sticky-nav .container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .sticky-nav .container::before,
  .sticky-nav .container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 10;
    pointer-events: none;
  }
  
  .sticky-nav .container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  }
  
  .sticky-nav .container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  }

  .sticky-nav ul {
    gap: 20px !important;
    flex-wrap: nowrap;
    padding: 0 16px;
    padding-bottom: 0;
    display: flex;
    min-width: max-content;
  }

  .sticky-nav a {
    white-space: nowrap;
    font-size: 13px;
    flex-shrink: 0;
  }
}


/* Advantages Section */
.section-project-advantages {
  background: transparent;
}

.section-project-advantages h2 {
  margin-top: 0;
  margin-bottom: 30px;
  text-align: left;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.advantage-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adv-icon {
  width: 100%;
  height: 240px;
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
  background: transparent;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.adv-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.adv-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
}

.adv-content h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--color-text);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.adv-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Advantages Slider - для таблету та мобільного */
.advantages-swiper {
  display: none !important;
  margin-bottom: 60px;
  padding-bottom: 50px;
  position: relative;
}

.advantages-swiper .swiper-slide {
  height: auto;
}

.advantages-swiper .advantage-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Advantages Navigation Buttons - використовуються глобальні стилі з swiper-custom.css */

.advantages-swiper .swiper-pagination {
  display: none !important;
}

/* Location Section */
.section-project-location {
  margin-top: 30px;
}

.section-project-location h2 {
  margin-bottom: 16px;
}

.infra-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 900px;
}

.location-content {
  display: flex;
  flex-direction: column;
}

.map-wrapper {
  position: relative;
  margin-bottom: 30px;
}

.map-container {
  height: 480px !important;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #111;
  position: relative;
}

/* Custom Zoom Controls */
.custom-map-controls {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #111;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zoom-btn {
  width: 44px;
  height: 44px;
  background: #fff;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: all 0.2s;
}

.zoom-btn:last-child {
  border-bottom: none;
}

@media (hover: hover) {
  .zoom-btn:hover {
    background: #f5f5f5;
  }
}

.zoom-btn:active {
  background: #e8e8e8;
}

/* Infrastructure Grid */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.infra-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.infra-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
  line-height: 1.3;
}

.infra-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

@media (max-width: 992px) {
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

}

@media (max-width: 768px) {
  .infra-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .map-container {
    height: 350px !important;
    border-width: 1px;
  }

  .custom-map-controls {
    top: 16px;
    left: 16px;
  }

  .infra-description {
    font-size: 15px;
  }
}

.advantages-actions {
  text-align: center;
  margin-top: 0;
}

.btn-large {
  min-width: 320px;
  padding: 18px 40px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline {
  background: transparent;
  border: 2px solid #111;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

@media (hover: hover) {
  .btn-outline:hover {
    background: #111;
    color: #fff;
  }
}

/* Десктоп: тільки grid, слайдер прихований */
@media (min-width: 1024px) {
  .advantages-grid {
    display: grid;
  }

  .advantages-swiper {
    display: none !important;
  }
}

/* Таблет: 2 слайди */
@media (max-width: 1023px) and (min-width: 769px) {

  /* Приховуємо grid на таблеті */
  .advantages-grid {
    display: none;
  }

  /* Показуємо слайдер на таблеті */
  .advantages-swiper {
    display: block !important;
  }

  .section-project-advantages h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }
}

/* Мобільний: 1 слайд */
@media (max-width: 768px) {
  .advantages-grid {
    display: none;
  }

  .advantages-swiper {
    display: block !important;
    margin-bottom: 20px;
  }

.advantages-swiper .swiper-button-next,
.advantages-swiper .swiper-button-prev {
  top: 120px;
  transform: translateY(-50%);
}

  .adv-icon {
    height: 200px;
  }

  .advantages-swiper .swiper-button-next,
  .advantages-swiper .swiper-button-prev {
    top: 100px;
  }

  .section-project-advantages h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .btn-large {
    width: 100%;
    min-width: auto;
  }
}

/* Specs Section */
.section-project-specs {
  background: #f9f9f9;
  padding-bottom: 0;
  margin-bottom: 0;
}

.section-project-specs h2 {
  margin-top: 0;
  margin-bottom: 30px;
  text-align: left;
}

.specs-wrapper {
  position: relative;
  margin-bottom: 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  margin-bottom: 0;
  align-items: flex-start;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.spec-label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.spec-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.2;
}

.spec-item:last-child {
  margin-bottom: 0;
}

.specs-toggle-wrapper {
  display: none;
  margin-top: 15px;
  margin-bottom: 0;
  /* Приховано на десктопі та планшеті */
  align-items: flex-start;
}

.specs-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.specs-toggle-text {
  text-decoration: underline;
}

@media (hover: hover) {
  .specs-toggle-btn:hover {
    color: var(--color-text-secondary);
  }
}

.specs-toggle-icon {
  width: 23px;
  height: 23px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}

.specs-toggle-icon:after {
  content: 'next';
  font-family: swiper-icons;
  font-size: 12px;
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
  color: #000;
  display: block;
  transform: rotate(90deg);
  transition: color 0.3s ease;
}

.specs-grid.expanded~.specs-toggle-wrapper .specs-toggle-icon {
  transform: rotate(180deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Планшет: 2 колонки, всі характеристики видимі, без кнопки */
@media (max-width: 1023px) and (min-width: 769px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 50px;
    align-items: flex-start;
  }

  .section-project-specs h2 {
    margin-bottom: 30px;
  }

  .specs-toggle-wrapper {
    display: none;
    /* Кнопка не показується на планшеті */
  }

  /* Показуємо всі характеристики на планшеті */
  .spec-item-hidden-mobile {
    display: flex !important;
  }
}

/* Мобільний: 2 колонки, перші 2 видимі, з кнопкою */
@media (max-width: 768px) {
  .section-project-specs {
    margin-top: 30px;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .section-project-specs h2 {
    margin-bottom: 15px;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 30px;
    padding: 0;
    align-items: flex-start;
    margin-bottom: 0;
    transition: gap 0.4s ease;
  }

  .specs-grid.expanded {
    gap: 20px 30px;
  }

  .spec-item {
    align-items: flex-start;
  }

  .specs-toggle-wrapper {
    display: flex;
    margin-top: 20px;
    margin-bottom: 0;
    /* Показуємо кнопку тільки на мобільному, після всіх видимих елементів */
    align-items: flex-start;
  }

  /* На мобільному показуємо тільки перші 2 (індекси 0-1) */
  .spec-item-hidden-mobile {
    display: flex;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    margin: 0;
  }

  .specs-grid.expanded .spec-item-hidden-mobile {
    max-height: 200px;
    opacity: 1;
    margin: 0;
  }
}

.acf-map {
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
  position: relative;
  overflow: hidden;
}

.acf-map img {
  max-width: inherit !important;
}

/* Contacts section styles moved to assets/css/sections/contacts.css */

/* Permit Documents Section */
.section-permit-documents {
  margin-top: 50px;
}

.section-permit-documents h2 {
  margin-top: 0;
  margin-bottom: 30px;
  text-align: left;
}

.permit-documents-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.permit-document-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.permit-document-item:last-child {
  border-bottom: none;
}

.permit-document-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s;
}

@media (hover: hover) {
  .permit-document-link:hover {
    color: var(--color-text-secondary);
  }
}

.permit-document-title {
  font-size: 16px;
  font-weight: 400;
  text-decoration: underline;
  color: inherit;
}

.permit-document-format {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 400;
  text-transform: uppercase;
  padding-right: 10px;
}

@media (max-width: 768px) {
  .section-permit-documents {
    margin-top: 30px;
  }

  .section-permit-documents h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .permit-document-item {
    padding: 12px 0;
  }

  .permit-document-title {
    font-size: 14px;
  }

  .permit-document-format {
    font-size: 12px;
  }
}

/* Gallery Section */
.section-project-gallery {
  background: transparent;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

.section-project-gallery .container {
  overflow: hidden;
}

.section-project-gallery h2 {
  margin-top: 0;
  margin-bottom: 30px;
  text-align: left;
}

.project-gallery-slider {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
  overflow: hidden !important;
}

.project-gallery-slider:after {
  display: none !important;
}

.project-gallery-slider .swiper-wrapper {
  display: flex;
}

.project-gallery-slider .swiper-slide {
  height: 70vh;
  min-height: 500px;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}

.project-gallery-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}

/* Gallery Navigation Buttons - використовуються глобальні стилі з swiper-custom.css */

.gallery-actions {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .section-project-gallery {
    padding: 17px 0;
    margin-top: 0;
  }

  .section-project-gallery h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .project-gallery-slider {
    margin-bottom: 0;
  }

  .project-gallery-slider .swiper-slide {
    height: 220px;
    min-height: 220px;
    border-radius: 8px;
  }

  /* Кнопки навігації використовують глобальні стилі */
}

/* =========================================
   Apartment List & Filters (Added)
   ========================================= */
.section-apartments-list {
  padding: 0 0 60px;
}

.apartments-header {
  margin-bottom: 40px;
}

.apartments-title {
  font-size: 40px;
  color: var(--color-text);
  margin: 0 0 10px 0;
}

.apartments-count {
  font-size: 21px;
  color: var(--color-text-secondary);
  margin: 0;
}

.apartments-wrapper {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  position: relative;
}

/* Sidebar Filters */
.apartments-filters {
  background: #fff;
  padding: 30px 24px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 100px;
  /* Adjust based on sticky header */
}

.filter-group {
  margin-bottom: 30px;
}

.filter-label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 15px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-rooms-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-rooms-buttons label {
  cursor: pointer;
  margin: 0;
}

.filter-rooms-buttons input {
  display: none;
}

.filter-rooms-buttons span {
  display: block;
  min-width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.3s ease;
  padding: 0 15px;
}

.filter-rooms-buttons input:checked+span {
  background: #111;
  color: #fff;
  border-color: var(--color-text);
}

/* Стилі для посилань-кнопок (SEO сторінки квартир) */
.filter-rooms-links .filter-room-link {
  display: block;
  min-width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.3s ease;
  padding: 0 15px;
  text-decoration: none;
}

.filter-rooms-links .filter-room-link:hover {
  border-color: #999;
  background: #f5f5f5;
}

.filter-rooms-links .filter-room-link.active {
  background: #111;
  color: #fff;
  border-color: var(--color-text);
}

/* No results with district suggestions */
.no-results-district {
  text-align: center;
  padding: 60px 20px;
}

.no-results-message {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-text);
}

.no-results-suggestion {
  font-size: 16px;
  margin-bottom: 30px;
  color: #666;
}

.district-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.district-link {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.district-link:hover {
  border-color: #111;
  background: #f5f5f5;
}

.range-slider {
  margin: 15px 0;
}

/* jQuery UI Slider Styles */
.range-slider.ui-slider {
  position: relative;
  height: 3px;
  background: #EAEAEA;
  border-radius: 1px;
  border: none !important;
  margin: 20px 0;
}

.range-slider.ui-slider .ui-slider-range {
  position: absolute;
  height: 100%;
  background: #636363;
  border-radius: 1px;
  top: 0;
}

/* Slider markers will be added via JavaScript */

.range-slider.ui-slider .ui-slider-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #636363;
  border-radius: 50%;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  margin-left: -8px;
  outline: none;
  z-index: 2;
  box-shadow: none;
  touch-action: pan-y; /* Дозволяє рух слайдера на тачскрінах */
}

/* Збільшена touch area для мобільних (невидимий клікабельний простір) */
.range-slider.ui-slider .ui-slider-handle::before {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  /* background: rgba(255, 0, 0, 0.1); */ /* Розкоментуй для дебагу */
}

@media (hover: hover) {
  .range-slider.ui-slider .ui-slider-handle:hover {
    border-color: var(--color-text);
  }
}

.range-slider.ui-slider .ui-slider-handle:focus {
  border-color: var(--color-text);
}

.range-slider.ui-slider .ui-slider-handle.ui-state-active {
  border-color: var(--color-text);
}

.range-slider.ui-slider .ui-slider-handle.ui-state-active {
  border-color: var(--color-text);
}

/* Slider markers/dots */
.slider-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #F8F7F7;
  border: 1px solid #141414;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Tooltip for slider handle */
.slider-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #636363;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.slider-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #636363;
}

/* Показувати тултіп при будь-якій взаємодії */
.range-slider.ui-slider .ui-slider-handle.ui-state-active .slider-tooltip,
.range-slider.ui-slider .ui-slider-handle.ui-state-hover .slider-tooltip,
.range-slider.ui-slider .ui-slider-handle:hover .slider-tooltip,
.range-slider.ui-slider .ui-slider-handle:focus .slider-tooltip,
.range-slider.ui-slider:hover .ui-slider-handle .slider-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Покращений UX для мобільних */
@media (max-width: 768px) {
  /* Тултіп завжди видимий */
  .range-slider.ui-slider .ui-slider-handle .slider-tooltip {
    opacity: 1;
    visibility: visible;
  }
  
  /* Збільшені хендли для тачскріну */
  .range-slider.ui-slider .ui-slider-handle {
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-width: 3px;
  }
  
  /* Вища трек-лінія для легшого попадання */
  .range-slider.ui-slider {
    height: 6px;
    margin: 30px 0; /* Більше простору для взаємодії */
  }
  
  /* Збільшена touch area */
  .range-slider.ui-slider .ui-slider-handle::before {
    width: 48px;
    height: 48px;
  }
  
  /* Трохи більші маркери */
  .slider-marker {
    width: 10px;
    height: 10px;
  }
}

/* Для дуже маленьких екранів */
@media (max-width: 480px) {
  .range-slider.ui-slider {
    margin: 35px 0;
  }
  
  .range-slider.ui-slider .ui-slider-handle {
    width: 28px;
    height: 28px;
    margin-left: -14px;
  }
  
  .range-slider.ui-slider .ui-slider-handle::before {
    width: 52px;
    height: 52px;
  }
  
  /* Більше простору для фільтрів */
  .filter-group {
    margin-bottom: 30px;
  }
  
  /* Більші тултіпи на маленьких екранах */
  .slider-tooltip {
    font-size: 14px;
    padding: 8px 12px;
  }
}

.range-inputs {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 14px;
  color: var(--color-text);
}

.range-label {
  font-weight: 400;
  color: var(--color-text);
}

/* Toggle Switch */
.toggle-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  width: 70px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #636363;
  border-radius: 50px;
  position: relative;
  transition: .4s;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 32px;
  width: 32px;
  left: 3px;
  bottom: 3px;
  background-color: #636363;
  border-radius: 50%;
  transition: .4s;
}

.toggle-switch input:checked+.toggle-slider {
  background-color: #636363;
}

.toggle-switch input:checked+.toggle-slider:before {
  transform: translateX(30px);
  background-color: #fff;
}

.toggle-label {
  font-size: 16px;
  color: var(--color-text);
  font-weight: 400;
}

#apply-filters {
  margin-top: 10px;
  width: 100%;
  padding: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#apply-filters:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Apartments Grid */
.apartments-grid-wrapper {
  width: 100%;
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}


.apartment-card {
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  background: #fff;
}

@media (hover: hover) {
  .apartment-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .apartment-card:hover .arrow {
    transform: translateX(4px);
  }
}

.apt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.apt-title {
  margin: 0;
}

.apt-status-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.apt-status-available {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.apt-status-reserved {
  background-color: #fff3e0;
  color: #e65100;
}

.apt-details {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

.apt-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.apt-detail-label {
  font-size: 13px;
  color: var(--color-text-dark);
  font-weight: 400;
}

.apt-detail-value {
  font-size: 13px;
  color: var(--color-text-dark);
  font-weight: 400;
}

.apt-image {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

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

.apt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid #f0f0f0;
}

.apt-price {
  position: relative;
  padding: 12px 20px;
  flex: 1;
  border-right: 1px solid #f0f0f0;
}

.apt-discount-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: #FF6B9D;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.apt-price-content {
  display: flex;
  flex-direction: column;
}

.apt-price-per-sqm {
  font-size: 13px;
  font-weight: 400;
  color: #636363;
  line-height: 1.4;
}

.apt-price-total {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

.apt-actions {
  flex-shrink: 0;
  padding: 0 20px;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.arrow {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.arrow svg {
  display: block;
  width: 46px;
  height: 24px;
}

.btn-block {
  width: 100%;
  display: block;
  text-align: center;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 40px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  z-index: 10;
}

/* Mobile Sticky Filter Button */
.mobile-filter-sticky {
  display: none;
  position: sticky;
  top: 63px; /* Header height */
  background: #fff;
  z-index: 999;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-filter-sticky .container {
  padding: 12px var(--container-padding);
}

.mobile-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  justify-content: center;
}

.mobile-filter-toggle svg {
  width: 19px;
  height: 14px;
  flex-shrink: 0;
}

@media (hover: hover) {
  .mobile-filter-toggle:hover {
    background: #f5f5f5;
  }
}

/* Filter Close Button */
.filter-close {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10001;
  color: var(--color-text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.filter-close svg {
  width: 24px;
  height: 24px;
  display: block;
}

@media (hover: hover) {
  .filter-close:hover {
    opacity: 0.7;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .apartments-wrapper {
    grid-template-columns: 1fr;
  }

  .apartments-filters {
    position: static;
  }
}

@media (max-width: 768px) {
  .breadcrumbs-desktop {
    display: none;
  }

  .breadcrumbs-mobile {
    display: flex;
  }

  .mobile-filter-sticky {
    display: block;
  }

  .apartments-header {
    position: relative;
  }

  .apartments-filters {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background: #fff;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 60px 24px 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .apartments-filters #apartment-filter-form {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .apartments-filters .filter-group {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }

  .apartments-filters .filter-label {
    text-align: center;
  }

  .apartments-filters .filter-rooms-buttons {
    justify-content: center;
  }

  .apartments-filters .toggle-switch {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .apartments-filters .toggle-label {
    order: 2;
  }

  .apartments-filters .toggle-slider {
    order: 1;
  }

  /* Sliders should not be centered, they stay full width */
  .apartments-filters .range-slider {
    width: 100%;
    max-width: 100%;
  }

  .apartments-filters #apply-filters {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .apartments-filters.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .filter-close {
    display: flex !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10001 !important;
  }

  /* Prevent body scroll when filter is open */
  body.filter-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .apartments-title {
    font-size: 32px;
  }

  .apartments-count {
    font-size: 16px;
  }
}

/* Super Advantage Section (formerly Resident Club) */
.section-super-advantage {
  margin-top: 50px;
  background: #fcfcfc;
  overflow: hidden;
}

.sa-header {
  margin-bottom: 50px;
}

.sa-header h2 {
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 30px;
}

.sa-description {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  line-height: 1.6;
}

.sa-slider {
  padding: 0 100px 50px !important;
  position: relative;
}

/* Дозволяємо Swiper самому розраховувати ширину слайдів */
.sa-slider.swiper-initialized .swiper-slide,
.sa-slider .swiper.swiper-initialized .swiper-slide {
  box-sizing: border-box;
  height: auto;
}

.sa-item {
  height: auto;
  width: 100%;
}

.sa-image {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #eee;
}

.sa-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .sa-item:hover .sa-image img {
    transform: scale(1.05);
  }
}

.sa-item h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
}

.sa-slider .swiper-button-next,
.sa-slider .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #000;
  transition: all 0.3s ease;
  top: 150px;
  transform: translateY(-50%);
}

.sa-slider .swiper-button-next:after,
.sa-slider .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

@media (hover: hover) {
  .sa-slider .swiper-button-next:hover,
  .sa-slider .swiper-button-prev:hover {
    background: #000;
    color: #fff;
  }
}

@media (max-width: 768px) {
  .sa-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .sa-image {
    height: 250px;
  }

  .sa-slider .swiper-button-next,
  .sa-slider .swiper-button-prev {
    top: 125px;
  }
}

.no-swiper-desktop {
  display: flex;
  gap: 30px;
  justify-content: flex-start;
}

.no-swiper-desktop .sa-item {
  flex: 0 0 calc(50% - 15px);
  max-width: 600px;
}

@media (max-width: 768px) {
  .no-swiper-desktop {
    display: block;
  }
}

/* Progress Section */
.section-project-progress {
  margin-top: 50px;
}

.section-project-progress h2 {
  margin-top: 0;
  margin-bottom: 30px;
  text-align: left;
}

.progress-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.progress-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.progress-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.progress-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

.progress-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.progress-card:hover .progress-card-image img {
  transform: scale(1.05);
}

.progress-card-content {
  padding: 12px 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.progress-card-date {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.progress-card-label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.progress-card-label span {
  border-bottom: 1px solid rgba(120, 120, 120, 0.2);
}

.progress-actions {
  text-align: center;
  margin-top: 30px;
}

@media (max-width: 1024px) {
  .progress-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-project-progress {
    margin-top: 30px;
  }

  .section-project-progress h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .progress-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
  }

  .progress-card-image {
    height: 200px;
  }

  .progress-card-content {
    padding: 16px;
  }

  .sa-slider {
    padding: 0 0 50px !important;
  }
}

/* Progress Single Page */
.project-progress-single,
.project-progress-archive {
  margin-top: 50px;
}

.progress-single-header,
.progress-archive-header {
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

@media (hover: hover) {
  .back-link:hover {
    color: var(--color-text);
  }
}

.progress-single-header h1,
.progress-archive-header h1 {
  margin: 0 0 12px 0;
}

.progress-single-date {
  font-size: 18px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.progress-single-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.progress-single-image img {
  width: 100%;
  height: auto;
  display: block;
}

.progress-single-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 40px;
}

.progress-single-gallery {
  margin-top: 40px;
}

.progress-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.progress-single-gallery h2 {
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
}

.progress-gallery-select-wrapper {
  flex-shrink: 0;
}

/* Progress Gallery Slider */
.progress-gallery-slider {
  position: relative;
  margin-bottom: 40px;
}

.progress-gallery-slider .swiper-wrapper {
  margin-bottom: 0;
}

.progress-gallery-slider .swiper-slide {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.progress-gallery-image-wrapper {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: 8px;
}

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

.progress-gallery-slider .swiper-button-next,
.progress-gallery-slider .swiper-button-prev {
  width: 46px;
  height: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #111;
  border-radius: 8px;
  color: var(--color-text);
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
}

.progress-gallery-slider .swiper-button-next {
  right: 20px;
}

.progress-gallery-slider .swiper-button-prev {
  left: 20px;
}

.progress-gallery-slider .swiper-button-next:after,
.progress-gallery-slider .swiper-button-prev:after {
  font-size: 12px;
  font-weight: bold;
}

/* Progress Navigation Select */
.progress-report-select {
  min-width: 200px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  transition: border-color 0.3s ease;
}

@media (hover: hover) {
  .progress-report-select:hover {
    border-color: var(--color-text);
  }
}

.progress-report-select:focus {
  outline: none;
  border-color: var(--color-text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .progress-gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .progress-gallery-select-wrapper {
    width: 100%;
  }

  .progress-report-select {
    width: 100%;
  }

  .progress-gallery-image-wrapper {
    height: 50vh;
  }

  .progress-gallery-slider .swiper-button-next,
  .progress-gallery-slider .swiper-button-prev {
    width: 36px;
    height: 20px;
  }

  .progress-gallery-slider .swiper-button-next {
    right: 12px;
  }

  .progress-gallery-slider .swiper-button-prev {
    left: 12px;
  }

  .progress-gallery-slider .swiper-button-next:after,
  .progress-gallery-slider .swiper-button-prev:after {
    font-size: 10px;
  }

  .progress-single-gallery h2 {
    font-size: 24px;
  }

  .project-progress-single,
  .project-progress-archive {
    margin-top: 30px;
  }

  .progress-single-header h1,
  .progress-archive-header h1 {
    font-size: 36px;
  }

  .progress-single-description {
    font-size: 14px;
  }

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

  .progress-navigation {
    flex-direction: column;
  }

  .progress-navigation .btn {
    max-width: 100%;
  }
}

/* Offers & News Section */
.section-project-offers {
  margin-top: 80px;
}

.section-project-offers h2 {
  margin: 0 0 40px 0;
  text-align: left;
}

.offers-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.offers-news-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
  height: 190px;
}

.offers-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.offers-news-image {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.offers-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.offers-news-card:hover .offers-news-image img {
  transform: scale(1.05);
}

.offers-news-content {
  width: 50%;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offers-news-date {
  font-size: 13px;
  color: var(--color-text);
  font-weight: 400;
}

.offers-news-title {
  font-size: 21px;
  margin: 0;
  line-height: 1.4;
  color: var(--color-text);
}

.offers-news-link {
  color: var(--color-text);
  text-decoration: underline;
  font-size: 16px;
}

.offers-news-footer {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
}

.btn-view-all {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid #111;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
  width: calc((100% - 60px) / 3);
  max-width: 100%;
}

@media (hover: hover) {
  .btn-view-all:hover {
    background: #111;
    color: #fff;
  }
}

@media (max-width: 1024px) {
  .offers-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .btn-view-all {
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 768px) {
  .offers-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-project-offers h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .offers-news-card {
    flex-direction: column;
  }

  .offers-news-image {
    width: 100%;
    height: 200px;
  }

  .offers-news-content {
    width: 100%;
  }

  .btn-view-all {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .breadcrumbs-desktop {
    display: none;
  }

  .breadcrumbs-mobile {
    display: flex;
  }

  .apartments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .apt-actions {
    margin: 0;
    padding: 0 16px;
  }
}

/* Utility classes for inline style removal */
.offer-image-placeholder {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}

.btn-with-margin-top {
  margin-top: 20px;
}

.installment-info {
  margin-top: 40px;
}

.visual-picker-container {
  position: relative;
}

.genplan-image {
  width: 100%;
  height: auto;
}

/* Map tooltip styles */
#map-tooltip {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    z-index: 10000;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 280px;
}

/* Tooltip content wrapper */
.tooltip-content-wrapper {
    padding-right: 24px; /* Space for close button */
}

/* Tooltip title */
.tooltip-title {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
}

/* Tooltip distance */
.tooltip-distance {
    font-size: 13px;
    opacity: 0.9;
}

/* Tooltip close button */
.tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    transition: opacity 0.2s;
    z-index: 1;
}

.tooltip-close:hover {
    opacity: 0.7;
}

/* Mobile tooltip specific styles */
#map-tooltip.map-tooltip-mobile {
    position: fixed;
    transform: translateZ(0); /* Force GPU acceleration */
}
