/* ===== TOWNS PAGE ===== */
.towns-page {
  background: var(--page-bg);
}

.towns-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 650px;
  background: var(--blue-dark);
}

.towns-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 25, 40, 0.95) 0%, rgba(5, 25, 40, 0.84) 38%, rgba(5, 25, 40, 0.46) 72%, rgba(5, 25, 40, 0.22) 100%),
    url('../media/hero.webp') center/cover no-repeat;
  transform: scale(1.02);
}

.towns-hero .navbar {
  position: relative;
  z-index: 3;
}

.towns-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 50px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
  to bottom,
  rgba(238, 246, 251, 0) 0%,
  rgba(238, 246, 251, 0.10) 58%,
  rgba(238, 246, 251, 0.25) 90%,
  rgba(238, 246, 251, 0.33) 94%,
  #eef6fb 100%
);
}

.towns-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1700px;
  margin-inline: auto;
  padding: 86px 60px 118px;
  display: grid;
  grid-template-columns: minmax(420px, 720px) minmax(340px, 420px);
  justify-content: space-between;
  align-items: center;
  gap: 70px;
}

.towns-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(46px, 5.4vw, 70px);
  line-height: 1.03;
  letter-spacing: -1.6px;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.56);
}

.towns-hero-copy p {
  max-width: 650px;
  margin-bottom: 38px;
  font-size: 21px;
  line-height: 1.5;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.48);
}

.towns-actions {
  width: min(100%, 580px);
}

.towns-hero-card {
  width: 100%;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.towns-hero-card h2 {
  margin: 4px 0 14px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.towns-hero-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.towns-card-phone {
  min-height: 50px;
  margin-top: 22px;
  padding: 13px 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(15, 77, 150, 0.28);
}

.towns-intro,
.towns-grid-section,
.towns-cta {
  width: min(calc(100% - 64px), 1180px);
  margin-inline: auto;
}

.towns-intro {
  margin-top: -54px;
  position: relative;
  z-index: 4;
  padding: 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
  gap: 34px;
  align-items: center;
}

.towns-intro-copy h2,
.towns-section-head h2,
.towns-cta h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(32px, 3.3vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.9px;
}

.towns-intro-copy p,
.towns-section-head p,
.towns-cta p {
  color: #475569;
  font-size: 18px;
  line-height: 1.65;
}

.towns-intro-image {
  overflow: hidden;
  border-radius: 24px;
  min-height: 300px;
  background: #dbeafe;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
}

.towns-intro-image img,
.town-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.towns-grid-section {
  margin-top: 74px;
  margin-bottom: 72px;
}

.towns-section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.towns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.town-card {
  width: 100%;
  min-height: 286px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(310px, 0.42fr) minmax(0, 1fr);
  align-items: stretch;
  border-radius: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.town-card:hover {
  transform: translateY(-3px);
}

.town-style-about {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 77, 150, 0.08);
  box-shadow: var(--shadow);
}

.town-style-about:hover {
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.town-style-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 251, 0.94));
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: var(--shadow);
}

.town-style-box:hover {
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.13);
}

.town-card-image {
  min-height: 286px;
  background: #dbeafe;
}

.town-card-content {
  min-width: 0;
  padding: 36px 38px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-content: center;
  align-items: start;
}

.town-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf4fb;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.town-style-box .town-card-icon {
  background: #f0f9ff;
}

.town-card h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.55px;
}

.town-card p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.town-card-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(140deg, #063b58 0%, #0f6f95 42%, #8bd3dc 100%);
}

.town-card-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(5, 25, 40, 0.24));
}

.town-card-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  pointer-events: none;
}

.placeholder-sea { background: linear-gradient(140deg, #064e63 0%, #0891b2 48%, #b8ecf1 100%); }
.placeholder-sunset { background: linear-gradient(140deg, #082f49 0%, #0f4d96 42%, #f6ad55 100%); }
.placeholder-village { background: linear-gradient(140deg, #083344 0%, #0f766e 48%, #d9f99d 100%); }
.placeholder-wine { background: linear-gradient(140deg, #12343b 0%, #0f766e 46%, #f5d0a9 100%); }
.placeholder-nature { background: linear-gradient(140deg, #064e3b 0%, #0f766e 48%, #bbf7d0 100%); }

.placeholder-art {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.placeholder-sun {
  position: absolute;
  top: 34px;
  right: 38px;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.34);
}

.placeholder-hill {
  position: absolute;
  left: -8%;
  bottom: 68px;
  height: 122px;
  border-radius: 55% 55% 0 0;
  background: rgba(7, 62, 79, 0.62);
  transform: rotate(-4deg);
}

.placeholder-hill-one {
  width: 76%;
}

.placeholder-hill-two {
  left: 33%;
  bottom: 78px;
  width: 82%;
  height: 96px;
  background: rgba(6, 95, 70, 0.38);
  transform: rotate(3deg);
}

.placeholder-shore {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 36px;
  height: 54px;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(-2deg);
}

.placeholder-wave {
  position: absolute;
  left: -8%;
  right: -8%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.placeholder-wave-one { bottom: 63px; }
.placeholder-wave-two { bottom: 51px; opacity: 0.72; }

.placeholder-road {
  position: absolute;
  left: 20%;
  bottom: -38px;
  width: 58px;
  height: 160px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
  transform: rotate(17deg);
  opacity: 0.58;
}

.placeholder-vine {
  position: absolute;
  width: 88px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(-8deg);
}

.placeholder-vine-one { left: 38px; top: 76px; }
.placeholder-vine-two { left: 58px; top: 96px; width: 126px; opacity: 0.66; }

.placeholder-label {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(5, 25, 40, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 38px rgba(5, 25, 40, 0.22);
  backdrop-filter: blur(10px);
}

.placeholder-title {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.35px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.placeholder-subtitle {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.towns-cta {
  margin-bottom: 78px;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 251, 0.92));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: center;
}

.towns-cta-actions {
  width: 100%;
  grid-template-columns: 1fr;
}

.towns-page .contact-icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 1200px) {
  .towns-hero-inner {
    padding: 72px 42px 110px;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
    gap: 44px;
  }

  .town-card {
    grid-template-columns: minmax(280px, 0.44fr) minmax(0, 1fr);
  }

  .town-card-content {
    padding: 32px;
  }
}

@media (max-width: 1000px) {
  .towns-hero {
    min-height: auto;
  }

  .towns-hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 86px 30px 118px;
  }

  .towns-hero-copy p,
  .towns-actions {
    margin-left: auto;
    margin-right: auto;
  }

  .towns-hero-card {
    max-width: 560px;
  }

  .towns-intro,
  .towns-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .towns-intro-image {
    min-height: 340px;
  }

  .town-card {
    grid-template-columns: minmax(250px, 0.46fr) minmax(0, 1fr);
    min-height: 260px;
  }

  .town-card-image,
  .town-card-placeholder {
    min-height: 260px;
  }

  .town-card-content {
    padding: 28px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
  }

  .town-card-icon {
    width: 54px;
    height: 54px;
  }

  .towns-cta-actions {
    width: min(100%, 430px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .towns-hero-inner {
    padding: 34px 18px 104px;
  }

  .navbar { row-gap: 30px; }

  .towns-hero-copy h1 {
    font-size: clamp(36px, 8vw, 48px);
  }

  .towns-hero-copy p {
    font-size: 18px;
  }

  .towns-actions {
    grid-template-columns: 1fr;
    width: min(100%, 430px);
  }

  .towns-intro,
  .towns-grid-section,
  .towns-cta {
    width: min(calc(100% - 32px), 620px);
  }

  .towns-intro,
  .towns-cta {
    padding: 24px 18px;
    border-radius: 26px;
  }

  .towns-intro-image {
    min-height: 260px;
    border-radius: 22px;
  }

  .towns-grid {
    gap: 16px;
  }

  .town-card {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 26px;
  }

  .town-card-image,
  .town-card-placeholder,
  .town-card-image img {
    min-height: 235px;
  }

  .town-card-content {
    padding: 24px 20px 26px;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .town-card-icon {
    margin-bottom: 0;
  }

  .town-card p {
    font-size: 15.5px;
  }

  .placeholder-label {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .payment-cards { margin-top: 10px; }
}

@media (max-width: 480px) {
  .towns-hero-inner {
    padding: 24px 14px 96px;
  }

  .towns-hero-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .towns-hero-card h2,
  .towns-intro-copy h2,
  .towns-section-head h2,
  .towns-cta h2 {
    font-size: clamp(27px, 7vw, 32px);
  }

  .towns-intro-copy p,
  .towns-section-head p,
  .towns-cta p {
    font-size: 15.5px;
    line-height: 1.55;
  }

  .town-card h3 {
    font-size: 22px;
  }

  .town-card p {
    font-size: 15px;
  }

  .placeholder-title {
    font-size: 19px;
  }
}


/* Scoped fix: keep towns page contact SVG icons uniform and reduce only the first WhatsApp label. */
.towns-page .towns-actions .contact-icon,
.towns-page .towns-actions .contact-icon svg,
.towns-page .towns-cta-actions .contact-icon,
.towns-page .towns-cta-actions .contact-icon svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.towns-page .towns-actions .whatsapp-btn > span:last-child {
  font-size: 14.5px;
}
