/* Absolute Stays — travel agencies partner page */
.mp-ag {
  --ag-ink: #0a1628;
  --ag-sea: #154a5c;
  --ag-deep: #0c2430;
  --ag-foam: #d7ebe8;
  --ag-muted: #5c6b78;
  --ag-line: rgba(10, 22, 40, 0.1);
  --ag-soft: #f4f7f8;
  overflow-x: clip;
  background: #fff;
  color: var(--ag-ink);
}

.mp-ag .mp-header {
  position: relative;
  top: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ag-line);
}

.mp-ag .mp-brand-name {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.mp-ag .mp-brand-sub {
  font-family: var(--mp-serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-weight: 600;
  color: var(--ag-sea);
  letter-spacing: 0.02em;
}

.mp-ag .mp-header-actions .mp-btn-primary {
  background: var(--ag-ink);
  color: #fff;
  border-color: var(--ag-ink);
}

.mp-ag .mp-header-actions .mp-btn-primary:hover {
  background: var(--ag-sea);
  border-color: var(--ag-sea);
  color: #fff;
}

.mp-ag .mp-nav a {
  font-size: 0.86rem;
  font-weight: 650;
}

.ag-pin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(-110%);
  transition: transform 0.28s ease;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ag-line);
}

body.is-subnav-pin .ag-pin {
  transform: translateY(0);
}

.ag-pin nav,
.ag-sticky nav {
  display: flex;
  gap: 0.15rem 1.1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.7rem 1.1rem;
  max-width: 1120px;
  margin: 0 auto;
}

.ag-pin nav::-webkit-scrollbar,
.ag-sticky nav::-webkit-scrollbar {
  display: none;
}

.ag-pin a,
.ag-sticky a {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ag-muted);
  text-decoration: none;
  white-space: nowrap;
}

.ag-pin a.is-on,
.ag-pin a:hover,
.ag-sticky a.is-on,
.ag-sticky a:hover {
  color: var(--ag-ink);
}

.ag-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
}

.ag-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ag-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 28, 0.28) 0%, rgba(8, 18, 28, 0.18) 38%, rgba(8, 18, 28, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 18, 28, 0.45) 0%, transparent 55%);
}

.ag-sticky {
  position: relative;
  z-index: 2;
  align-self: start;
  margin-top: 4.6rem;
}

.ag-sticky a {
  color: rgba(255, 255, 255, 0.72);
}

.ag-sticky a.is-on,
.ag-sticky a:hover {
  color: #fff;
}

.ag-hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 0 4.2rem;
  max-width: 38rem;
}

.ag-brand-mark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.ag-brand-mark span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.ag-brand-mark em {
  font-family: var(--mp-serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-weight: 600;
  color: var(--ag-foam);
}

.ag-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--mp-serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 600;
  font-size: clamp(2.35rem, 5.4vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.ag-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.ag-hero .ag-lead {
  color: rgba(255, 255, 255, 0.88);
}

.ag-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.mp-ag .ag-hero .mp-btn-primary {
  background: #fff;
  color: var(--ag-ink);
  border-color: #fff;
}

.mp-ag .ag-hero .mp-btn-primary:hover {
  background: var(--ag-foam);
  border-color: var(--ag-foam);
  color: var(--ag-ink);
}

.mp-ag .ag-hero .mp-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.mp-ag .ag-hero .mp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.ag-sec {
  padding: 4.5rem 0;
}

.ag-sec-alt {
  background: var(--ag-soft);
}

.ag-sec-deep {
  background: var(--ag-deep);
  color: #fff;
}

.ag-sec-deep .ag-lead,
.ag-sec-deep .ag-kicker,
.ag-sec-deep p {
  color: rgba(255, 255, 255, 0.78);
}

.ag-sec-deep h2,
.ag-sec-deep h3,
.ag-sec-deep strong {
  color: #fff;
}

.ag-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ag-sea);
}

.ag-sec h2 {
  margin: 0 0 0.85rem;
  font-family: var(--mp-serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.ag-sec > .mp-wrap > .ag-lead {
  margin-bottom: 2rem;
  color: var(--ag-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 40rem;
}

.ag-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ag-reveal.is-in {
  opacity: 1;
  transform: none;
}

.ag-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2rem;
  margin-top: 0.5rem;
}

.ag-offer-grid article {
  padding-top: 1.1rem;
  border-top: 1px solid var(--ag-line);
}

.ag-offer-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.ag-offer-grid p {
  margin: 0;
  color: var(--ag-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.ag-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.ag-markets span {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--ag-line);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ag-sec-deep .ag-markets span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ag-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.ag-split-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.ag-split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.ag-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.ag-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.15rem;
  border-top: 1px solid var(--ag-line);
  color: var(--ag-muted);
  line-height: 1.5;
}

.ag-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--ag-sea);
}

.ag-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
  counter-reset: agstep;
}

.ag-steps article {
  padding-top: 0.2rem;
}

.ag-steps article::before {
  counter-increment: agstep;
  content: counter(agstep, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--mp-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ag-sea);
}

.ag-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.ag-steps p {
  margin: 0;
  color: var(--ag-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.ag-api {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.4rem;
}

.ag-api h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.ag-api p {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.ag-contact-wrap {
  max-width: 40rem;
}

.mp-ag .hs-ct-card {
  background: #fff;
  border: 1px solid var(--ag-line);
  box-shadow: none;
}

@media (max-width: 900px) {
  .ag-offer-grid,
  .ag-split,
  .ag-api,
  .ag-steps {
    grid-template-columns: 1fr;
  }

  .ag-hero {
    min-height: min(88vh, 720px);
  }

  .ag-sticky {
    display: none;
  }

  .ag-hero-copy {
    padding-bottom: 3.2rem;
  }

  .ag-sec {
    padding: 3.4rem 0;
  }
}

@media (max-width: 560px) {
  .ag-brand-mark {
    flex-direction: column;
    gap: 0.1rem;
  }

  .ag-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .ag-ctas .mp-btn {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ag-pin {
    transition: none;
  }
}
