/* ========== villas.html — 18座度假村全览 ========== */

/* ---------- hero ---------- */
.villas-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.villas-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.villas-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.villas-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,30,44,.72) 0%, rgba(10,77,104,.55) 100%);
}

.villas-hero .container {
  position: relative;
  z-index: 2;
  padding: 100px 0 60px;
  color: #fff;
}

.villas-hero .eyebrow {
  color: #7fd3e6;
}

.villas-hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  margin: 12px 0 16px;
  color: #fff;
}

.villas-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #cfe9f1;
  max-width: 640px;
}

/* ---------- filter ---------- */
.villas-filter-section {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

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

.region-filter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--sea);
  cursor: pointer;
  transition: all .25s var(--ease);
}

.region-filter button:hover {
  border-color: var(--sky);
  background: #f0f9fb;
}

.region-filter button.active {
  background: var(--sea);
  color: #fff;
  border-color: var(--sea);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: rgba(10,77,104,.1);
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
}

.region-filter button.active .filter-count {
  background: rgba(255,255,255,.25);
}

/* ---------- list section ---------- */
.villas-list-section {
  padding: 40px 0 0;
}

.villas-list-section:first-of-type {
  padding-top: 48px;
}

/* ---------- region header ---------- */
.region-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.region-header h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--sea);
  margin: 6px 0 0;
}

.region-header p {
  font-size: 14px;
  color: var(--mist);
  margin: 0;
  white-space: nowrap;
}

/* ---------- villa card (full layout) ---------- */
.villas-grid-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.villa-card-full {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.villa-card-full:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(12,34,48,.1);
}

.villa-card-img {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.villa-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .8s var(--ease);
}

.villa-card-full:hover .villa-card-img img {
  transform: scale(1.06);
}

.villa-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--sea);
}

.villa-card-tag.tag-hot { background: #ff6f8b; }
.villa-card-tag.tag-new { background: #0a4d68; }
.villa-card-tag.tag-love { background: #e85d75; }
.villa-card-tag.tag-dive { background: #0077b6; }
.villa-card-tag.tag-family { background: #2d9f6f; }

.villa-card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.villa-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.villa-card-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--sea);
  margin: 0;
}

.villa-card-boat {
  font-size: 12px;
  color: var(--mist);
  white-space: nowrap;
}

.villa-card-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #587e8c;
  margin: 0 0 14px;
}

.villa-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.villa-card-features span {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--sky);
  background: #eef7fa;
  border: 1px solid #d6eef4;
}

.villa-card-price {
  font-size: 13px;
  color: #587e8c;
  margin-bottom: 14px;
}

.villa-card-price b {
  font-size: 18px;
  color: var(--sea);
}

.villa-card-cta {
  display: inline-block;
  margin-top: auto;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--sea);
  text-align: center;
  cursor: pointer;
  transition: background .25s var(--ease);
  text-decoration: none;
}

.villa-card-cta:hover {
  background: #083d54;
}

/* ---------- responsive ---------- */

/* ---------- CTA banner ---------- */
.cta-banner-section {
  padding: 0 72px 88px;
}

.cta-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.cta-img-wrap {
  overflow: hidden;
}

.cta-img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease);
}

.cta-banner:hover .cta-img {
  transform: scale(1.12);
}

.cta-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7,38,52,.82), rgba(7,38,52,.35));
  z-index: 1;
}

.cta-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 64px;
  color: #fff;
  z-index: 2;
}

.cta-content h2 {
  font-size: 46px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}

.cta-content p {
  font-size: 17px;
  color: #dceef3;
  margin: 0 0 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

@media (max-width: 1100px) {
  .cta-banner-section {
    padding: 0 32px 64px;
  }
  .cta-content {
    padding: 0 36px;
  }
  .cta-content h2 {
    font-size: 32px;
  }
  .cta-img {
    height: 300px;
  }
}

@media (max-width: 680px) {
  .cta-banner-section {
    padding: 0 20px 48px;
  }
  .cta-content {
    padding: 0 28px;
  }
  .cta-content h2 {
    font-size: 26px;
  }
}
@media (max-width: 1100px) {
  .villas-grid-full {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .villas-hero {
    min-height: 320px;
  }

  .villas-hero .container {
    padding: 80px 0 40px;
  }

  .villas-grid-full {
    grid-template-columns: 1fr;
  }

  .villa-card-full {
    grid-template-columns: 1fr;
  }

  .villa-card-img {
    min-height: 180px;
  }

  .region-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .region-header p {
    white-space: normal;
  }
}
