*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root { --brand: #6b207d; }

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  padding: 60px 40px;
}

.listings-section {
  max-width: 1300px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 36px;
  letter-spacing: -0.5px;
}

.outer-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.outer-prev,
.outer-next {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.outer-prev:hover,
.outer-next:hover {
  background: #e2e2e2;
}

.outer-prev svg,
.outer-next svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.outer-prev.swiper-button-disabled,
.outer-next.swiper-button-disabled { opacity: 0.35; cursor: default; }

.outer-swiper { flex: 1; overflow: hidden; padding-bottom: 16px; margin-bottom: -16px; }

.outer-swiper .swiper-wrapper { align-items: stretch; }

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

/* ── Card ── */
.card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #ebebeb;
  transition: box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); }

/* ── Image + price badge ── */
.inner-swiper-wrap { position: relative; }

.inner-swiper {
  width: 100%;
  height: 220px;
}

.inner-swiper .swiper-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.inner-prev,
.inner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-prev { left: 6px; }
.inner-next { right: 6px; }

.inner-prev svg,
.inner-next svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  min-width: 20px;
}

.card-price-badge {
  position: absolute;
  bottom: 0;
  right: 10px;
  background: #fff;
  color: #2d2d2d;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 8px 14px;
  z-index: 5;
}

/* ── Card body ── */
.card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-top { flex: 1; }

.card-title {
  font-family: 'FS Albert', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #2d2d2d;
  line-height: 1.25;
  margin-bottom: 8px;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--brand);
  font-weight: 500;
  margin-bottom: 16px;
}

/* ── Bottom section (meta + link) always pinned ── */
.card-bottom {
  padding-top: 14px;
  border-top: 1px solid #e8e8e8;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: start;
  margin-bottom: 10px;
  min-height: 54px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4a4a5a;
}

.meta-item svg {
  width: 18px;
  height: 18px;
  stroke: #4a4a5a;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
  margin-right: 3px;
}

.card-view-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a4a5a;
  transition: color 0.2s;
}

.card-view-link:hover .pc-link { color: #2d2d2d; }

/* ── Tablet & mobile: full width slider, arrows on both sides ── */
@media (max-width: 1024px) {
  .outer-slider-wrapper {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .outer-swiper {
    width: 100%;
    flex: 1;
  }

  .outer-prev,
  .outer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 20;
    flex-shrink: 0;
  }

  .outer-prev {
    left: -15px;
  }

  .outer-next {
    right: -15px;
  }

  .outer-prev svg,
  .outer-next svg {
    width: 16px;
    height: 16px;
  }

  .inner-swiper,
  .inner-swiper .swiper-slide img {
    height: 200px;
  }

  .card-body {
    padding: 18px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-meta {
    min-height: 0;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  body { padding: 36px 16px; }

  .inner-swiper,
  .inner-swiper .swiper-slide img {
    height: 180px;
  }

  .card-body {
    padding: 14px;
  }

  .card-title {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .card-location {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .card-price-badge {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .inner-prev,
  .inner-next {
    width: 28px;
    height: 28px;
  }

  .inner-prev svg,
  .inner-next svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
  }
}
