/* ── Widget base ─────────────────────────────────────────────────────────────── */

.elementor-widget-imagemappro_deltaspark {
  width: 100%;
  font-family: "Montserrat", sans-serif;
  color: #321611;
}

/* ── Hide page title ─────────────────────────────────────────────────────────── */

.entry-title,
.page-title,
h1.entry-title {
  display: none !important;
}

/* ── Toggle buttons ──────────────────────────────────────────────────────────── */

.ds-toggle-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 0 40px;
}

.ds-toggle {
  padding: 10px 28px;
  border: 2px solid #4E0D28;
  border-radius: 50px;
  background: transparent;
  color: inherit;
  font-family: "Inter Regular", Sans-serif;
  font-size: 29px;
  font-weight: 300;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s;
}

.ds-toggle:hover,
.ds-toggle:active,
.ds-toggle:focus,
.ds-toggle--active {
  background: #c3cfeb;
  border-color: #c3cfeb;
  color: #4E0D28;
  outline: none;
}

/* ── Page header ─────────────────────────────────────────────────────────────── */

.ds-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 40px;
}

.ds-instruction {
  margin: 0;
  font-family: "Marcellus Regular", Sans-serif;
  font-size: 55px;
  font-weight: 400;
  color: #4E0D28;
}

.ds-parking {
  flex-shrink: 0;
  font-family: "Inter Regular", Sans-serif;
  font-size: 29px;
  font-weight: 400;
  color: #4E0D28;
  white-space: nowrap;
}

/* ── Availability legend ─────────────────────────────────────────────────────── */

.ds-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
  font-family: "Inter Regular", Sans-serif;
  font-size: 29px;
  font-weight: 400;
  color: #4E0D28;
}

.ds-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ds-legend-swatch {
  display: inline-block;
  width: 35px;
  height: 35px;
}

.ds-swatch--available { background: #c3cfeb; }
.ds-swatch--reserved  { background: #ac8a93; }
.ds-swatch--sold      { background: #4e0d28; }

/* ── ImageMapPro map wrapper ─────────────────────────────────────────────────── */

.ds-map-wrap {
  margin-bottom: 32px;
  text-align: center;
}

.ds-map-wrap .imp-wrap {
  width: 100% !important;
}

.ds-map-wrap--mobile {
  display: none;
}

/* ── Mobile accordion table ──────────────────────────────────────────────────── */

.ds-mob-table {
  width: 100%;
}

.ds-mob-header {
  display: grid;
  grid-template-columns: 1fr minmax(80px, auto) 104px;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px solid #321611;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #321611;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ds-mob-row {
  border-bottom: 1px solid #321611;
}

.ds-mob-row--vermittelt .ds-mob-row__main,
.ds-mob-row--reserviert .ds-mob-row__main {
  opacity: 0.35;
}

.ds-mob-row__main {
  display: grid;
  grid-template-columns: 1fr minmax(80px, auto) 104px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  min-height: 51px;
}

.ds-mob-row__toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #321611;
  letter-spacing: 0.7px;
  text-align: left;
  min-width: 0;
}

.ds-mob-row__topnum {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-mob-row__icon {
  position: relative;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.ds-mob-row__icon::before,
.ds-mob-row__icon::after {
  content: '';
  position: absolute;
  background: #321611;
}

.ds-mob-row__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.ds-mob-row__icon::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
  transition: opacity 0.2s;
}

.ds-mob-row__toggle[aria-expanded="true"] .ds-mob-row__icon::after {
  opacity: 0;
}

.ds-mob-row__price {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #321611;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

.ds-mob-row__detail {
  padding-bottom: 12px;
}

.ds-mob-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #321611;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #321611;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .ds-map-wrap--desktop { display: none; }
  .ds-map-wrap--mobile  { display: block; }
  .ds-details-btn { width: 104px; height: 31px; font-size: 13px; }

  .ds-filters {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ── Section 2: Filter dropdowns ────────────────────────────────────────────── */

.ds-filters {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  background: transparent;
  border: none;
}

.ds-filter-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  border: 1.5px solid #c17049;
  background: transparent;
}

.ds-filter-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c17049'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  pointer-events: none;
}

.ds-filters select,
.ds-filters select:not([size]):not([multiple]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 36px 0 20px !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #321611 !important;
  height: 30px !important;
  line-height: 30px !important;
  cursor: pointer;
  box-shadow: none !important;
  letter-spacing: 0.05em !important;
  outline: none !important;
  text-transform: uppercase !important;
}

.ds-filters select:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ── Section 2: Apartments table ─────────────────────────────────────────────── */

.result-wrapper {
  font-family: mundial, sans-serif;
  font-size: 14px;
  margin-top: 44px;
  background: transparent;
  padding: 0 40px;
  max-width: 100%;
  overflow-x: auto;
}

.ds-apartments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: mundial, sans-serif;
  border-top: none !important;
}

.ds-apartments-table thead tr {
  border-top: none !important;
}

.ds-apartments-table thead th {
  text-align: left;
  padding: 12px 20px 12px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #321611;
  letter-spacing: 0.9px;
  border: none !important;
  border-bottom: 2px solid #321611 !important;
  white-space: nowrap;
  text-transform: uppercase !important;
}

.ds-apartments-table tbody tr,
.ds-apartments-table tbody tr:nth-child(even),
.ds-apartments-table tbody tr:nth-child(odd) {
  background: transparent !important;
  background-color: transparent !important;
}

.ds-apartments-table tbody tr:nth-child(odd) td,
.ds-apartments-table tbody tr:nth-child(odd) th {
  background-color: transparent !important;
}

.ds-table__row--aktiv:hover td,
.ds-apartments-table tbody tr:nth-child(odd).ds-table__row--aktiv:hover td {
  background-color: rgba(78, 13, 40, 0.15) !important;
}

.ds-apartments-table tbody td {
  padding: 12px 20px 12px 0;
  border: none;
  border-bottom: 1px solid #321611;
  color: #321611;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.8px;
  white-space: nowrap;
  vertical-align: middle;
}

.ds-table__row--vermittelt td,
.ds-table__row--reserviert td {
  color: rgba(50, 22, 17, 0.35) !important;
}

.ds-table__status--aktiv      { color: #321611; }
.ds-table__status--reserviert { color: rgba(50, 22, 17, 0.35); }
.ds-table__status--vermittelt { color: rgba(50, 22, 17, 0.35); }

.ds-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 34px;
  border: 1.5px solid #c17049 !important;
  border-radius: 50px;
  background: transparent !important;
  color: #321611 !important;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
}

.ds-details-btn:hover {
  background: rgba(193, 112, 73, 0.1) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  outline: none !important;
}

.ds-details-btn:focus,
.ds-details-btn:active {
  background: transparent !important;
  border-color: #c17049 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ── Pagination ───────────────────────────────────────────────────────────────── */

.ds-pagination {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 0 8px;
}

.ds-pagination__btn {
  width: 18px;
  height: 22px;
  padding: 0;
  border: 0.3px solid #857f6b;
  background: #f3eee9;
  color: #857f6b;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.8px;
  cursor: pointer;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  line-height: 1;
}

.ds-pagination__nav {
  width: auto;
  padding: 0 6px;
  font-size: 12px;
}

.ds-pagination__btn:hover:not(:disabled) {
  background: rgba(133, 127, 107, 0.15);
}

.ds-pagination__btn--active {
  background: #857f6b;
  color: #f3eee9;
  border-color: #857f6b;
}

.ds-pagination__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ds-legal-note {
  margin-top: 90px;
  color: #4E0D28;
  font-family: "Inter Regular", Sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.ds-no-results {
  padding: 32px;
  text-align: center;
  color: #4E0D28;
  font-size: 14px;
}

@media (max-width: 1200px) {
  .ds-apartments-table thead th { font-size: 15px; padding: 10px 8px 10px 0; }
  .ds-apartments-table tbody td { font-size: 13px; padding: 10px 8px 10px 0; }
  .ds-details-btn { font-size: 13px; width: 110px; }
  .ds-legal-note { font-size: 15px; margin-top: 60px; }
}

@media (max-width: 900px) {
  .result-wrapper { padding: 0 16px; }
  .ds-apartments-table thead th { font-size: 12px; padding: 8px 6px 8px 0; }
  .ds-apartments-table tbody td { font-size: 11px; padding: 8px 6px 8px 0; }
  .ds-details-btn { font-size: 11px; width: 90px; height: 28px; }
  .ds-filters select,
  .ds-filters select:not([size]):not([multiple]) { font-size: 13px !important; }
  .ds-legal-note { font-size: 13px; margin-top: 40px; }
}

@media (max-width: 812px) {
  .result-wrapper {
    padding: 0 8px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ds-apartments-table thead th { font-size: 11px; padding: 6px 4px 6px 0; }
  .ds-apartments-table tbody td { font-size: 10px; padding: 6px 4px 6px 0; }
  .ds-details-btn { font-size: 10px; width: 80px; height: 26px; }
}

/* ── Detail popup ────────────────────────────────────────────────────────────── */

.ds-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.ds-popup[aria-hidden="false"] {
  display: block !important;
}

.ds-popup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 23, 18, 0.5);
  cursor: pointer;
  z-index: 99999;
}

.ds-popup__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100000;
  background: #f3eee9;
  width: 707px;
  max-width: 96vw;
  max-height: 92vh;
  overflow-y: auto;
  padding: 50px 25px 39px;
  color: #321611;
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 39px;
}

.ds-popup__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  border: 1.5px solid #c17049;
  border-radius: 50px;
  background: transparent;
  color: #321611;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s;
}

.ds-popup__back:hover {
  background: rgba(193, 112, 73, 0.08);
}

.ds-popup__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ds-popup__title {
  font-family: "Montserrat", sans-serif;
  font-size: 45px;
  font-weight: 500;
  color: #2e1712;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2.25px;
  line-height: 1.1;
}

.ds-popup__floor-label {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #321611;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ds-popup__gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds-popup__photo {
  display: block;
  width: 100%;
  height: 418px;
  object-fit: cover;
  background: #e5ddd7;
}

.ds-popup__nav-row {
  display: flex;
  gap: 10px;
}

.ds-popup__nav {
  width: 72px;
  height: 27px;
  border: 1.5px solid #b77351;
  border-radius: 25px;
  background: transparent;
  color: #c17049;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.ds-popup__nav:hover {
  background: rgba(193, 112, 73, 0.1);
}

.ds-popup__details {
  display: flex;
  gap: 91px;
  align-items: flex-start;
}

.ds-popup__labels,
.ds-popup__values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ds-popup__labels span,
.ds-popup__values span {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #321611;
  letter-spacing: 1px;
  line-height: 1;
}

.ds-popup__actions {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}

.ds-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 25px;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  height: 34px;
}

.ds-popup__btn--primary {
  background: #2e1712;
  color: #e8ded4 !important;
  border: 1.5px solid #2e1712;
  min-width: 240px;
}

.ds-popup__btn--primary:hover {
  background: #1e0f0b;
  border-color: #1e0f0b;
}

.ds-popup__btn--outline {
  background: transparent;
  color: #321611 !important;
  border: 1.5px solid #c17049;
  min-width: 260px;
}

.ds-popup__btn--outline:hover {
  background: rgba(193, 112, 73, 0.08);
}

@media (max-width: 768px) {
  .ds-popup__panel {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 24px 16px 24px;
    gap: 24px;
  }
  .ds-popup__title { font-size: 28px; }
  .ds-popup__floor-label { font-size: 15px; }
  .ds-popup__photo { height: 220px; }
  .ds-popup__labels span,
  .ds-popup__values span { font-size: 15px; }
  .ds-popup__details { gap: 24px; }
  .ds-popup__btn { min-width: 0; font-size: 13px; }
}

/* ── Legacy ──────────────────────────────────────────────────────────────────── */
.imp-floormap-container {
  display: flex;
  justify-content: space-between;
}

.imp-map-wrapper {
  width: 49%;
  background-color: #f8f5ee;
}

.floor-map {
  color: #ffffff;
  width: 100%;
}

#floor-map {
  width: 49%;
}

#floor-map,
#building-map {
  min-height: 400px;
  display: flex;
  align-items: center;
}

#floor-map > *,
#building-map > * {
  width: 100%;
}

/* legacy .result-wrapper overridden by Section 2 block above */

#flats-list {
  display: block;
  margin-top: 0;
}

.apartment-card {
  overflow: hidden;
  background: #2e7d32;
}

.apartment-photo {
  display: block;
  position: relative;
}

.apartment-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.sold-label {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}
.sold-label--verkauft  { background: crimson; }
.sold-label--vermietet { background: #c07800; }
.sold-label--reserviert{ background: #555; }

.apartment-info {
  padding: 15px;
}

.apartment-title {
  font-size: 1.2em;
  margin: 0 0 10px;
}

/* Container for all filters */
.appartment-filters {
  display: flex;
  flex-direction: column;
}

.checkbox-wrapper {
  margin: 0 auto 34px;
  display: flex;
  gap: 15px;
}

.checkbox-wrapper input {
  display: none;
}

.checkbox-wrapper label {
  padding: 15px 20px;
  border-radius: 100px;
  border: 1px solid #9ad3e5;
  color: #2E7D32;
}

.checkbox-wrapper input:checked + label {
  background-color: #2e7d32;
  color: #ffffff;
  border: 1px solid #2e7d32;
}

/* Each individual filter */
.appartment-filters .filter {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.appartment-filters .filter label {
  margin: 28px auto 0px;
  color: #2e7d32;
}

/* Apply button spans full width above filters */
.appartment-filters .reset_filters_btn {
  padding: 10px 15px;
  background-color: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 10px;
  width: fit-content;
  border: 1px solid #7ec8e3;
  color: #2e7d32;
  border-radius: 50px;
  margin: 44px auto 68px;
}

.appartment-filters .reset_filters_btn:hover {
  background-color: #2e7d32;
  color: #ffffff;
  border-color: #2e7d32;
}

.appartment-filters .reset_filters_btn:focus {
  background-color: transparent;
  color: #2e7d32;
  outline: none;
  box-shadow: none;
}

.appartment-filters .reset_filters_btn:focus:hover {
  background-color: #2e7d32;
  color: #ffffff;
}

/* Custom Range Slider Styles */
.custom-range-slider {
  position: relative;
  width: 100%;
  margin: 14px 0 20px 0;
  padding: 0 10px;
  user-select: none;
}

.custom-slider-track {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #7ec8e3;
  border-radius: 4px;
  transform: translateY(-50%);
  z-index: 1;
  cursor: pointer;
}

/* Larger click area for track */
.custom-slider-track::before {
  content: "";
  position: absolute;
  top: -15px;
  bottom: -15px;
  left: 0;
  right: 0;
}

.custom-slider-fill {
  position: absolute;
  top: 50%;
  left: 10px;
  height: 3px;
  background: linear-gradient(90deg, #2e7d32 0%, #1b5e20 100%);
  border-radius: 4px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  display: none;
}

/* Hide fill for single-thumb sliders */
.custom-range-slider.no-fill .custom-slider-fill {
  display: none;
}

.custom-slider-steps {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 3px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
}

.custom-slider-step {
  position: absolute;
  width: 1px;
  height: 11px;
  background: #7ec8e3;
  transform: translateX(-50%) translateY(-5px);
  border-radius: 1px;
}

.custom-slider-step.hidden {
  display: none;
}

.custom-slider-thumb {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 11px;
  height: 11px;
  background: #2e7d32;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Larger touch target for thumb */
.custom-slider-thumb::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
}

.custom-slider-thumb:hover {
  background: #1b5e20;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.custom-slider-thumb.active {
  cursor: grabbing;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.4);
}

.custom-slider-labels {
  position: absolute;
  top: 100%;
  left: 10px;
  right: 10px;
  margin-top: 6px;
  height: 25px;
  font-size: 13px;
  font-weight: 500;
  color: #2e7d32;
  pointer-events: none;
}

.custom-slider-label {
  position: absolute;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Dual thumb styles */
.custom-slider-thumb[data-thumb="min"] {
  z-index: 5;
}

.custom-slider-thumb[data-thumb="max"] {
  z-index: 4;
}

/* Hide steps for price slider */
.custom-range-slider.no-steps .custom-slider-steps {
  display: none;
}

.list_header {
  font-size: 23px;
  font-family: mundial, sans-serif;
  font-weight: 600;
  color: #2e7d32;
}

/* Apartment Card */
.apartment-card {
  border: 1px solid #ddd;
  overflow: hidden;
  background: #2e7d32;
  display: flex;
  flex-direction: column;
  color: #f8f5ee;
  padding: 18px;
  font-family: mundial, sans-serif;
}

.apartment-card-header {
  margin-bottom: 18px;
}

.apartment-card-header .apartment-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.apartment-card-header .apartment-category {
  font-size: 13px;
}

.apartment-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.apartment-data-row {
  display: flex;
  gap: 80px;
}

.data-col {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-item {
  display: flex;
  flex-direction: column;
}

.data-value {
  font-weight: 200;
  color: #92b68c;
}

.apartment-photo {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.apartment-photo img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  display: block;
}

.apartment-actions {
  display: flex;
  justify-content: center;
}

.details-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #ffffff;
  color: #2e7d32;
  border-radius: 50px;
  text-decoration: none;
  transition:
    background-color 0.12s ease,
    transform 0.12s ease;
  font-size: 15px;
}

.details-btn:hover {
  background: #c3d3b9;
  color: #2e7d32;
  transform: translateY(-1px);
}

/* Mobile Responsive - 480px */
@media (max-width: 480px) {
  .imp-floormap-container {
    flex-direction: column;
  }

  .imp-map-wrapper,
  #floor-map {
    width: 100%;
  }

  #floor-map,
  #building-map {
    min-height: 300px;
  }

  .result-wrapper {
    padding: 20px;
    margin-top: 30px;
    font-size: 13px;
  }

  #flats-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .checkbox-wrapper {
    margin: 0 auto 24px;
    gap: 10px;
  }

  .checkbox-wrapper label {
    padding: 12px 16px;
    font-size: 12px;
  }

  .appartment-filters .filter label {
    margin: 20px auto 0px;
    font-size: 12px;
  }

  .appartment-filters .reset_filters_btn {
    margin: 30px auto 50px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .custom-range-slider {
    margin: 10px 0 16px 0;
    padding: 15px 10px;
  }

  .custom-slider-thumb::before {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
  }

  .custom-slider-track::before {
    top: -20px;
    bottom: -20px;
  }

  .custom-slider-labels {
    font-size: 11px;
  }

  .list_header {
    font-size: 18px;
  }

  .apartment-card {
    padding: 14px;
  }

  .apartment-card-header {
    margin-bottom: 14px;
  }

  .apartment-card-header .apartment-title {
    font-size: 15px;
  }

  .apartment-card-header .apartment-category {
    font-size: 11px;
  }

  .apartment-card-content {
    gap: 10px;
    font-size: 11px;
  }

  .apartment-data-row {
    gap: 40px;
  }

  .apartment-photo img {
    height: 150px;
  }

  .details-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}