/* The cover and the residence features belong to the front page. */
.residence-cover {
  position: relative;
  isolation: isolate;
  color: #fffdf5;
  background: #14272c;
}
.residence-landscape,
.residence-cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.residence-landscape { overflow: hidden; }
.residence-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 52%;
}
.residence-cover::after {
  content: "";
  background: linear-gradient(90deg, rgb(9 21 28 / .82), rgb(9 21 28 / .66) 32%, rgb(9 21 28 / .12) 59%, transparent 73%),
              linear-gradient(0deg, rgb(9 21 28 / .5), transparent 20%);
}
.residence-cover-inner {
  min-height: clamp(32rem, 42vw, 40.5rem);
  padding-block: clamp(4rem, 6.5vw, 7.25rem);
  display: flex;
  align-items: center;
  position: relative;
}
.residence-opening { max-width: 39rem; }
.residence-kicker {
  font: 550 .76rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.residence-opening .residence-kicker { color: #f0e6c7; }
.residence-opening h1 {
  color: inherit;
  margin: 1.05rem 0 1.1rem;
  font: 400 clamp(3.1rem, 4.9vw, 4.9rem)/1.04 var(--serif);
  letter-spacing: -.045em;
  text-wrap: initial;
}
.residence-opening h1 span { display: block; }
.residence-intro {
  max-width: 41ch;
  color: #fffdf5;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.52;
}
.residence-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 46px;
  padding: .77rem 1.18rem;
  margin-top: 1.55rem;
  background: #faf6e9;
  color: #163637;
  font: 550 1rem/1.35 var(--sans);
  text-decoration: none;
}
.residence-cta:hover { color: #153632; background: #fff; }
.residence-cta:focus-visible { outline-color: white; }
.residence-location {
  position: absolute;
  right: 0;
  bottom: 1.3rem;
  font: 450 .83rem/1.4 var(--sans);
  letter-spacing: .025em;
  color: #fffdf5;
}
.residence-location span { margin: 0 .35rem; color: #eadbb9; }
.residence-paths, .residence-guides, .residence-visit, #algarve-edit, .residence-team {
  padding-block: clamp(3.25rem, 5.3vw, 5.6rem);
}
.residence-paths h2, .visit-copy h2, .residence-guide-heading h2,
#edit-title, .residence-team h2 {
  font: 400 clamp(2.05rem, 3.2vw, 3.15rem)/1.1 var(--serif);
  letter-spacing: -.042em;
  text-wrap: balance;
}
.residence-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 4.5rem);
  margin-top: 1.9rem;
}
.residence-options article { border-top: 1px solid #aab2a5; padding-top: 1rem; }
.residence-options h3, .residence-guide-list h3 {
  font: 550 clamp(1.19rem, 1.55vw, 1.46rem)/1.3 var(--sans);
  letter-spacing: -.016em;
}
.residence-options h3 a, .residence-guide-list h3 a {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.residence-options h3 a:hover, .residence-guide-list h3 a:hover { text-decoration: underline; }
.residence-options .draw-arrow, .residence-guide-list .draw-arrow { color: var(--olive); width: 1rem; }
.residence-options p, .residence-guides p { max-width: 55ch; margin: .38rem 0 0; }
.residence-visit { background: #eeeae0; }
.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7.4rem);
  align-items: center;
}
.visit-figure img { width: 100%; aspect-ratio: 5 / 3.7; object-fit: cover; object-position: 50% 49%; }
.visit-figure figcaption { color: var(--muted); font-size: .83rem; margin: .55rem 0 0; }
.visit-copy .residence-kicker { color: var(--olive); margin-bottom: .7rem; }
.visit-copy h2 { max-width: 18ch; margin: 0; }
.visit-copy > p:not(.residence-kicker) { max-width: 46ch; margin: 1.15rem 0; }
.visit-copy .arrow-link, .residence-team .arrow-link { min-height: 44px; font-size: 1rem; }
.residence-guides {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7.4rem);
}
.residence-guide-heading p { margin: 1rem 0 0; max-width: 34ch; }
.residence-guide-list article { border-top: 1px solid var(--line); padding: .7rem 0 1.4rem; }
.residence-guide-list article:first-child { border-top-color: #99a395; }
.residence-guide-list article:last-child { padding-bottom: 0; }
.guide-sub { display: inline-block; padding-block: .5rem .15rem; color: var(--olive); font-size: .98rem; }
.residence-team h2 { max-width: 22ch; margin-top: .7rem; }
.residence-team .residence-kicker { color: #dce2cf; }
#algarve-edit .features-heading { margin-bottom: 1.7rem; }
#algarve-edit .story-card h3 { font-size: 1.38rem; }
@media (max-width: 780px) {
  .residence-cover-inner { min-height: 31rem; }
  .residence-paths, .residence-guides, .residence-visit, #algarve-edit, .residence-team { padding-block: 2.75rem; }
  .residence-options { gap: 1.2rem; margin-top: 1.4rem; }
  .residence-guides { grid-template-columns: 1fr 1.35fr; gap: 1.7rem; }
  .visit-layout { gap: 1.8rem; }
}
@media (max-width: 600px) {
  .residence-landscape { display: block; position: relative; z-index: auto; }
  .residence-landscape img { display: block; width: 100%; height: auto; aspect-ratio: 840 / 520; }
  .residence-landscape::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgb(9 21 28 / .47)); }
  .residence-cover::after { display: none; }
  .residence-cover-inner { min-height: 0; padding-block: 1.65rem 2.15rem; }
  .residence-opening h1 { margin: .7rem 0 .75rem; font-size: clamp(2.48rem, 9.9vw, 3.55rem); line-height: 1.06; }
  .residence-intro { font-size: 1.08rem; line-height: 1.45; }
  .residence-cta { margin-top: 1.2rem; }
  .residence-location { top: -1.85rem; bottom: auto; right: 0; font-size: .72rem; }
  .residence-options, .residence-guides, .visit-layout { grid-template-columns: minmax(0, 1fr); }
  .residence-options { gap: 1.1rem; }
  .residence-options article { padding-top: .45rem; }
  .residence-options p { margin-top: 0; }
  .visit-layout { gap: 1.45rem; }
  .visit-figure img { aspect-ratio: 3 / 2; }
  #algarve-edit .features-heading { margin-bottom: 1.15rem; }
}
@media (max-width: 360px) {
  .residence-cta { gap: .65rem; padding-inline: .85rem; font-size: .94rem; }
}
@media print {
  .residence-cover { color: var(--ink); background: white; }
  .residence-cover::after, .residence-landscape, .residence-location, .residence-cta { display: none; }
  .residence-cover-inner { min-height: 0; padding-block: 1rem; }
  .residence-intro, .residence-opening .residence-kicker { color: var(--ink); }
}
