.catalog__filters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}
.catalog__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
}
@media (max-width: 480px) {
  .catalog__body {
    grid-template-columns: repeat(1, 1fr);
  }
}
.catalog__pagination {
  margin-top: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.catalog__pagination .pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.catalog__pagination .pagination__btn {
  padding: 10px 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.catalog__pagination .pagination__btn:hover:not(:disabled) {
  background: var(--blue);
  color: white;
}
.catalog__pagination .pagination__btn:disabled {
  opacity: 0.5;
}
.catalog__pagination .pagination__btn.active {
  background: var(--blue);
  color: white;
}
.catalog__pagination .pagination__dots {
  padding: 10px 5px;
  color: #999;
}
@media (max-width: 768px) {
  .catalog__pagination .pagination {
    gap: 6px;
  }
  .catalog__pagination .pagination__btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

.cform select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 25px center;
  background-size: 24px;
  padding-right: 60px;
}
.cform select:hover {
  cursor: pointer;
}
.cform option {
  background: #fff;
  color: #333;
  padding: 10px;
}
.cform__item {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
}
.cform__label {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 10px;
}
.cform__control {
  padding: 18px 30px;
  background: #f5f5f5;
  border: none;
  border-radius: 20px;
  width: 100%;
}
.cform__control:focus {
  outline: none;
}
.cform__checkbox-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.cform__checkbox-label {
  position: relative;
  margin: 0;
}
.cform__checkbox-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}
.cform__checkbox-label input:checked + span {
  background: #f5f5f5;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 16px 30px;
}
.cform__checkbox-label span {
  display: inline-block;
  padding: 16px 30px;
  background: #f5f5f5;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.cform__checkbox-label span:hover {
  background: #e8e8e8;
}
.cform__range {
  width: 100%;
}
.cform__range-inputs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0px;
}
@media (max-width: 768px) {
  .cform__range-inputs {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
  }
}
.cform__range-input-field {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  background: #f5f5f5;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  outline: none;
  border: none;
  padding: 16px 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}
.cform__range-input-field:first-child {
  border-radius: 20px 0 0 20px;
  border-right: 1px solid #a6a6a6;
}
.cform__range-input-field:last-child {
  border-radius: 0 20px 20px 0;
}
.cform__range-input-field label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #666;
  margin: 0;
}
.cform__range-input-field input {
  padding: 0;
  margin: 0;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  line-height: 1;
  text-align: right;
  font-weight: 500;
  color: #333;
  background: none;
  border: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.cform__range-input-field input:focus {
  outline: none;
}
.cform__range-slider-container {
  position: relative;
  padding: 0 20px;
}
.cform__range-track {
  position: relative;
  height: 2px;
  background: var(--blue);
  border-radius: 10px;
  cursor: pointer;
}
.cform__range-track-fill {
  position: absolute;
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(#667eea), to(#764ba2));
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 10px;
  pointer-events: none;
}
.cform__range-slider {
  position: relative;
  width: 100%;
}
.cform__range-slider-input {
  position: absolute;
  top: -8px;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background: transparent;
  pointer-events: none;
}
.cform__range-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  pointer-events: auto;
  -webkit-transition: 0.1s;
  transition: 0.1s;
  position: relative;
  z-index: 2;
}
.cform__range-slider-input::-webkit-slider-thumb:hover {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
.cform__range-slider-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  pointer-events: auto;
}
.cform__range-slider-input::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
}
.cform__range-slider-input::-moz-range-track {
  background: transparent;
  border: none;
}
.cform__result {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  background: #f5f5f5;
  padding: 18px 30px;
  border-radius: 20px;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .cform__result {
    white-space: normal;
  }
}
.cform__btn-reset, .cform__btn-submit {
  padding: 18px 30px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: none;
  background: #f5f5f5;
  color: #666;
}
.cform__btn-reset:active, .cform__btn-submit:active {
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}
.cform__btn-submit {
  background: var(--blue);
  color: white;
}
.cform__btn-submit:hover {
  background: #000;
}
.cform__btn-reset {
  background: #f5f5f5;
  color: #666;
}
.cform__btn-reset:hover {
  background: #eeeeee;
  color: #333;
}
@media (max-width: 1024px) {
  .cform .catalog__filters {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .cform .catalog__filters {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 16px;
  }
  .cform__item {
    width: 100%;
  }
  .cform__result {
    width: 100%;
    text-align: center;
  }
  .cform__btn-reset, .cform__btn-submit {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
}
@media (max-width: 480px) {
  .cform__range-inputs {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .cform__range-inputs .cform__range-input-field:first-child {
    border-radius: 20px 20px 0 0;
    border-right: none;
    border-bottom: 1px solid #a6a6a6;
  }
  .cform__range-inputs .cform__range-input-field:last-child {
    border-radius: 0 0 20px 20px;
  }
}

.apartment {
  padding: 30px;
  border-radius: 30px;
  background: #f5f5f5;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 24px;
}
.apartment__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.apartment__price {
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
}
.apartment__life {
  background-color: var(--blue);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.apartment__preview {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 400px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}
.apartment__preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.apartment__info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}
.apartment__info-content h3 {
  margin: 0;
  padding: 0;
}
.apartment__info-list {
  font-size: 14px;
  color: #aaa;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
.apartment__info-list span {
  border-right: 1px solid #aaa;
  padding-right: 8px;
}
.apartment__info-list span:last-child {
  border-right: none;
}
.apartment__btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  margin-top: 8px;
  text-align: center;
}
.apartment__btn:hover {
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
}

.dvl-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.dvl-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}
.dvl-modal__container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 90vh;
  margin: 50px auto;
  background: white;
  border-radius: 24px;
  overflow-y: auto;
  z-index: 10000;
}
.dvl-modal__container::-webkit-scrollbar {
  width: 8px;
}
.dvl-modal__container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.dvl-modal__container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
.dvl-modal__close {
  position: sticky;
  top: 20px;
  right: 20px;
  float: right;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 10001;
}
.dvl-modal__content {
  padding: 30px;
  clear: both;
}
.dvl-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .dvl-modal__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.dvl-modal__left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}
.dvl-modal__right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.dvl-modal__status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.dvl-modal__status.available {
  background: #4caf50;
  color: white;
}
.dvl-modal__status.reserved {
  background: #ff9800;
  color: white;
}
.dvl-modal__status.sold {
  background: #9e9e9e;
  color: white;
}
.dvl-modal__title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.dvl-modal__gallery {
  width: 100%;
  height: 350px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.dvl-modal__gallery img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 16px;
  -webkit-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
          box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.dvl-modal__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 16px;
}
.dvl-modal__detail-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.dvl-modal__detail-item-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}
.dvl-modal__detail-item-value {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}
.dvl-modal__price-value {
  color: var(--blue);
  font-size: 18px;
}
.dvl-modal__form-wrapper {
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px;
  height: 100%;
}
.dvl-modal__form-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}
.dvl-modal__form-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}
.dvl-modal__error {
  text-align: center;
  padding: 60px;
}
.dvl-modal__error h3 {
  font-size: 24px;
  color: #f44336;
  margin-bottom: 15px;
}

.dvl-booking-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}
.dvl-booking-form__group {
  width: 100%;
}
.dvl-booking-form__input, .dvl-booking-form__textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  background: white;
}
.dvl-booking-form__input:focus, .dvl-booking-form__textarea:focus {
  outline: none;
  border-color: var(--blue);
  -webkit-box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
          box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.dvl-booking-form__textarea {
  resize: vertical;
  min-height: 80px;
}
.dvl-booking-form__submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  margin-top: 8px;
}
.dvl-booking-form__submit:hover {
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
}
.dvl-booking-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  -webkit-transform: none;
      -ms-transform: none;
          transform: none;
}
.dvl-booking-form__message {
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
}
.dvl-booking-form__message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.dvl-booking-form__message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}