/* =============================================
   AVANT-GARDE POOLS - DESTINATION PAGES STYLESHEET
   ============================================= */

.agx-destination {
  padding-top: var(--ag-header-height, 100px);
  background-color: #dcecf4;
}

@media (max-width: 1023px) {
  .agx-destination {
    padding-top: var(--ag-header-height, 84px);
  }
}

@media (max-width: 767px) {
  .agx-dest-hero {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
  }
  .agx-destination > .agx-section:first-of-type {
    padding-top: 40px !important;
  }
}

.agx-dest-hero {
  position: relative;
  padding: clamp(80px, 8vw, 130px) 0;
  background-color: #dcecf4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.agx-dest-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/luxury-poolside-hero.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.agx-dest-hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - clamp(32px, 6vw, 112px)), 1200px);
  margin: 0 auto;
}

.agx-dest-hero-eyebrow {
  display: none !important;
}

.agx-dest-hero-headline {
  font-family: var(--agx-font-heading);
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--agx-color-navy);
  margin: 0 auto 24px;
  max-width: 840px;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

@media (min-width: 1280px) {
  .agx-dest-hero-headline {
    font-size: clamp(40px, 3.2vw, 52px);
    max-width: 900px;
  }
}

@media (max-width: 1279px) and (min-width: 768px) {
  .agx-dest-hero-headline {
    font-size: clamp(32px, 4vw, 44px);
    max-width: 680px;
  }
}

@media (max-width: 767px) {
  .agx-dest-hero-headline {
    font-size: clamp(26px, 7.5vw, 34px);
    max-width: 360px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
}

.agx-dest-hero-subheadline {
  font-family: var(--agx-font-body);
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--agx-text-primary);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 767px) {
  .agx-dest-hero-subheadline {
    font-size: 15px;
    max-width: 320px;
  }
}

.agx-dest-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 4.5vw, 80px);
  align-items: center;
}

.agx-dest-split__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 50, 77, 0.07);
}

.agx-dest-split__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agx-ticker-section {
  width: 100%;
  background: #f5fafe;
  border-top: 1px solid rgba(23, 50, 77, 0.05);
  border-bottom: 1px solid rgba(23, 50, 77, 0.05);
  padding: 18px 0;
}

.agx-ticker-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  padding-inline: clamp(20px, 4vw, 72px);
}

.agx-ticker-wrap::-webkit-scrollbar {
  display: none;
}

.agx-ticker-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin-inline: auto;
}

.agx-ticker-item {
  font-family: var(--agx-font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--agx-color-navy);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding-inline: 14px;
  flex-shrink: 0;
}

.agx-ticker-item::after {
  content: "•";
  margin-left: 28px;
  color: var(--agx-color-gold);
  font-weight: bold;
}

.agx-ticker-item:last-child::after {
  display: none;
}

@media (max-width: 767px) {
  .agx-ticker-wrap {
    padding-inline: 16px;
  }
  .agx-ticker-item {
    font-size: 12px;
    letter-spacing: 1.6px;
    padding-inline: 10px;
  }
  .agx-ticker-item::after {
    margin-left: 20px;
  }
}

.agx-dest-services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
  justify-content: flex-start;
}

.agx-dest-services__card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 8px;
  background: var(--agx-bg-secondary, #ffffff);
  box-shadow: 0 4px 12px rgba(23, 50, 77, 0.01);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  width: 100%;
}

@media (min-width: 768px) {
  .agx-dest-services__card {
    width: calc(50% - 10px);
  }
}

@media (min-width: 1024px) {
  .agx-dest-services__card {
    width: calc(33.333% - 14px);
  }
}

.agx-dest-services__card:hover {
  border-color: var(--agx-color-gold, #c4a052);
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.06);
}

.agx-dest-services__name {
  font-family: var(--agx-font-heading);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 500;
  color: var(--agx-color-navy, #17324d);
  margin-bottom: 12px;
  line-height: 1.25;
  margin-top: 0;
}

.agx-dest-services__content {
  font-family: var(--agx-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--agx-text-secondary, #4a5568);
  margin-bottom: 20px;
  max-height: 4.8em;
  overflow: hidden;
  transition: max-height 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.agx-dest-services__card.is-expanded .agx-dest-services__content {
  max-height: 600px;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.agx-dest-services__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 50, 77, 0.04);
}

.agx-dest-services__read-more {
  background: none;
  border: none;
  font-family: var(--agx-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--agx-color-navy, #17324d);
  cursor: pointer;
  padding: 0;
  transition: color 200ms ease;
}

.agx-dest-services__read-more:hover {
  color: var(--agx-color-gold, #c4a052);
}

.agx-dest-services__explore {
  font-family: var(--agx-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--agx-color-gold, #c4a052);
  text-decoration: none;
  transition: color 200ms ease;
}

.agx-dest-services__explore:hover {
  color: var(--agx-color-navy, #17324d);
}

.agx-dest-container {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: 72px;
}

@media (max-width: 1199px) {
  .agx-dest-container {
    padding-inline: 48px;
  }
}

@media (max-width: 1023px) {
  .agx-dest-container {
    padding-inline: 32px;
  }
}

@media (max-width: 767px) {
  .agx-dest-container {
    padding-inline: 20px;
  }
}

.agx-destination .agx-heading__title {
  font-size: clamp(28px, 3.2vw, 42px);
  color: var(--agx-color-navy, #17324d);
}

.agx-destination .agx-heading__eyebrow {
  color: var(--agx-color-gold, #c4a052);
}

.agx-destination .agx-heading__eyebrow::before {
  background-color: var(--agx-color-gold, #c4a052);
}

@media (max-width: 1023px) {
  .agx-dest-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .agx-dest-split__image-wrapper {
    order: -1;
  }
}
