@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap');
/* Добавьте стили для карточки с фотографиями и описанием проекта */


.photo-scroll {
  max-width: 100%;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden; /* Отключает вертикальный скроллинг */
  position: relative;
  height: 250px; /* Установите желаемую высоту блока */
  margin-bottom: 10px;

}

.photo-scroll img {
  border-radius: 20px;
  margin-right: 10px;

  height: 100%; /* Устанавливаем высоту изображения в 100% от родительского блока */
  object-fit: cover; /* Растягиваем изображение на всю высоту блока с сохранением соотношения сторон */

}

.interior_photo-scroll {
  margin-bottom: 10px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden; /* Отключает вертикальный скроллинг */

  position: relative;
}

.interior_photo-scroll img {
  border-radius: 20px;
  margin-right: 10px;

  height: 250px;
  display: inline-block;
  border-radius: 15px;

}
.details-roomType{
  margin-top: 15px;
  width: 100%;
}
.floorPlan-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden; /* Отключает вертикальный скроллинг */

}

.floorPlan {
  width: 350px;
  max-height: 470px;
  position: relative;
  color: #50c878;
  text-align: center;
  margin-right: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  display: flex; /* Добавляем flex-контейнеру */
  flex-direction: column; /* Устанавливаем направление колонок */
  justify-content: center; /* Центрируем содержимое по вертикали */
  align-items: center; /* Центрируем содержимое по горизонтали */
}

.floorPlan img {
padding: 15px;
  margin-top: 0px;
  margin-bottom: 30px; /* 10 px 30px 5px 10px */
  border-radius: 10px;
  max-width: 345px;
  max-height: 345px;
  margin-right: 0px;
  display: inline-block;
  align-items: center;
}

.floorPlan-details {
  width: 100%;
  color: #515151;
  margin-bottom: 10px;
}

.floorPlan-name {
  text-align: left;
margin-left: 10px;
  font-size: 80%;

  white-space: nowrap;
  margin-bottom: 5px;
}

.floorPlan-sqft-price {
  color: #bacaba;

  font-size: 70%;
}


:root {
  --bg_gradient: linear-gradient(to bottom right, #ffffff, rgb(255, 255, 255));
  --bg: #ffffff;
  --primary: rgb(33, 174, 89);
  --secondary: rgba(119, 133, 126, 0.6);
  --invert_bg: rgb(235, 235, 235);
  --invert_primary: #333;
  --invert_secondary: #3335;
  --link_hover_color: #e1e1e1;

  --radius: 10px;
  --button_radius: 2px;
}

* {
  margin: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: var(--primary);
}
a:hover {
  color: var(--link_hover_color);
  
}

body {
  justify-items: center;
  font-family: 'Rubik', sans-serif;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
  padding-bottom: 10px;
  margin: 0;
}

.title {
  margin: 15px;
}


/* Header */
.header {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  grid-column: span 2;
}
.header .logo {
  padding: 6px 20px;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 7px; /* Add border radius */
  background: var(--primary);
  color: var(--bg);

}
.header .menu {
  display: none;
}
.header .phone {
  display: none;
}
.header .mobile-menu {
  display: block;
  font-size: 30px;
}

/* Content */
.content {
  grid-column: span 2;
}
.content__title {
  text-align: center;
  font-weight: 500;
  margin: 10px 0 15px;
  font-size: 22px;
}
.content__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px; /* уменьшено значение */
  
}

/* Footer */
.footer {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 300;
}

/* UI Components */
.block-title {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 10px;
}
.block {
  width: 100%;
  text-transform: initial;
  font-weight: 300;
  font-size: 15px;
  background: var(--invert_bg);
  color: var(--invert_primary);
  padding: 8px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.block_flex {
  display: flex;
  gap: 5px;
}
input {
  width: 100%;
  flex-grow: 1;
  padding: 5px;
  outline: none;
  border: 0.5px solid var(--invert_secondary);
  border-radius: var(--button_radius);
}
button {
  cursor: pointer;
  background: var(--bg_gradient);
  color: var(--primary);
  border: 0.5px solid var(--invert_secondary);
  border-radius: var(--button_radius);
}

.card__img {
  position: relative;
  border-radius:0px;
  height: 30vw;
  max-height: 200px;
  background: var(--img) center / cover;
  

}
.card__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  color: white;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px;
  border-radius:10px;

}
.card__title,
.card__district{
  margin: 5px 0;
}

.card__completion-date,
.card__initial-payment  {
  margin-top: 10px;
  font-size: 16px;
}

.card__content {
  display: grid;
  padding-left: 5px;
}
.card__title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 3px;
}
.card__desc {
  opacity: 0.8;
}
.card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__rating {
  opacity: 0.2;
  letter-spacing: -1px;
}
.card__price {
  letter-spacing: -1px;
  font-size: 18px;
}
.card__price strong {
  font-weight: 500;
}
.card__price i {
  font-size: 15px;
  position: relative;
  top: -1px;
  left: -2px;
  opacity: 0.4;
}
.card__button {
  cursor: pointer;
  display: inline-block;
  padding: 7px 25px;
  margin: 10px auto 15px;
  background: var(--bg_gradient);
  color: var(--primary);
  border-radius: var(--button_radius);
  font-size: 15px;
}

.hide-list {
  display: none;
}

.list-toggle-btn {
  cursor: pointer;
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
  border-radius: 5px;
}

.list-toggle-btn:hover {
  background-color: white;
  color: black;
  border: 2px solid #4caf50;
}




/* Adaptive layout */
@media (max-width: 768px) {
  /* Layout */
.adaptive {
  width: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr minmax(100px, auto);
}

.adaptive > * {
  background: var(--bg_gradient);
  color: var(--primary);
}


  .adaptive {
    grid-template-rows: 60px 1fr minmax(2px, auto);
  }
  .header .logo {
    padding: 6px 15px;
  }
  .header .menu {
    display: flex;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
  }
  .header .mobile-menu {
    font-size: 24px;
  }
  .header .phone {
    display: flex;
    gap: 5px;
  }
  .header .phone i {
    font-size: 12px;
  }
  .header .menu,
  .header .phone {
    font-size: 14px;
    font-weight: 400;
  }
  .content__title {
    font-size: 20px;
  }
  .card__img {
    height: 150px;
  }
}

