:root {
  --ink: #17212b;
  --muted: #596979;
  --line: #dde6ee;
  --paper: #f8fbfd;
  --panel: #ffffff;
  --blue: #236fa8;
  --blue-dark: #134b77;
  --teal: #0d8f8a;
  --wood: #b1723f;
  --sun: #f2c94c;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 251, 253, 0.92);
  border-bottom: 1px solid rgba(221, 230, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 3px solid var(--blue);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 46%, var(--blue) 47%, var(--blue) 53%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--teal) 47%, var(--teal) 53%, transparent 54%),
    #fff;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-dark);
  background: #e9f4fb;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(24px, 5vw, 64px) clamp(18px, 4vw, 56px) clamp(44px, 6vw, 80px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.35)),
    linear-gradient(180deg, #eff8fc 0%, #f8fbfd 75%);
}

.hero-media {
  min-height: 0;
}

.hero-media img {
  width: min(100%, 760px);
  height: min(76vh, 760px);
  min-height: 500px;
  object-fit: cover;
  object-position: 50% 46%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.rental-note {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 780;
}

.hero-actions,
.location-section,
.location-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.primary-action {
  color: #fff;
  background: var(--blue-dark);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--blue);
}

.secondary-action {
  color: var(--blue-dark);
  background: #dff0f8;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: #cde7f4;
}

.summary-section,
.amenities-section,
.nearby-section,
.gallery-section,
.video-section,
.location-section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.summary-item {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.summary-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.summary-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #e9f4fb;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e9f4fb;
}

.bed-icon::before,
.bath-icon::before,
.work-icon::before,
.cool-icon::before,
.wifi-icon::before,
.bed-icon::after,
.bath-icon::after,
.work-icon::after,
.cool-icon::after,
.wifi-icon::after {
  position: absolute;
  content: "";
  display: block;
}

.bed-icon::before {
  left: 8px;
  right: 8px;
  bottom: 13px;
  height: 14px;
  border: 3px solid var(--wood);
  border-top-left-radius: 5px;
}

.bed-icon::after {
  left: 11px;
  bottom: 25px;
  width: 11px;
  height: 8px;
  background: var(--sun);
  border-radius: 2px;
}

.bath-icon::before {
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 14px;
  border: 3px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.bath-icon::after {
  top: 9px;
  left: 20px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--teal);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 10px 0 0;
}

.work-icon::before {
  left: 9px;
  right: 9px;
  bottom: 14px;
  height: 4px;
  background: var(--wood);
}

.work-icon::after {
  left: 13px;
  right: 13px;
  bottom: 8px;
  height: 19px;
  border: 3px solid var(--blue);
  border-top: 0;
}

.cool-icon::before {
  left: 10px;
  top: 11px;
  width: 24px;
  height: 12px;
  border: 3px solid var(--blue);
  border-radius: 4px;
}

.cool-icon::after {
  left: 14px;
  bottom: 9px;
  width: 16px;
  height: 8px;
  border-bottom: 3px solid var(--teal);
  border-radius: 50%;
}

.wifi-icon::before {
  left: 10px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-top: 4px solid var(--blue);
  border-radius: 50%;
}

.wifi-icon::after {
  left: 19px;
  bottom: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 -9px 0 -2px var(--wood);
}

.amenities-section {
  color: #fff;
  background: #17384e;
}

.amenities-section .eyebrow {
  color: #9ed9f0;
}

.amenity-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
}

.amenity-list span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px 14px 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 750;
}

.amenity-list span::before {
  width: 10px;
  height: 10px;
  margin-left: -24px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--sun);
  content: "";
}

.nearby-section {
  background: #f8fbfd;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.nearby-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.06);
}

.nearby-card.highlight-card {
  color: var(--ink);
  border-left: 4px solid var(--teal);
  background: #ffffff;
}

.nearby-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #e9f4fb;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.highlight-card .nearby-label {
  color: var(--blue-dark);
  background: #e9f4fb;
}

.nearby-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.highlight-card p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.08);
}

.photo-card img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center;
  background: #d7e7ef;
}

.feature-photo {
  grid-column: auto;
}

.feature-photo img {
  object-position: 50% 45%;
}

figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 720;
}

.video-section {
  background: #eaf4f8;
}

.video-section video {
  width: min(100%, 920px);
  max-height: 720px;
  margin: 0 auto;
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow);
}

.location-section {
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
}

.location-section > div {
  max-width: 640px;
}

.location-section p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.location-actions {
  justify-content: flex-start;
}

.site-footer {
  padding: 28px clamp(18px, 4vw, 56px);
  color: #dce8ef;
  background: #0f2230;
}

.site-footer p {
  margin: 0 auto;
  max-width: 1180px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media img {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .summary-grid,
  .amenity-list,
  .nearby-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-photo {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding-inline: 8px;
  }

  .hero {
    padding-top: 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .summary-grid,
  .amenity-list,
  .nearby-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-photo {
    grid-column: auto;
  }

  .photo-card img {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .location-section {
    align-items: flex-start;
  }
}

/* Accessibility: skip-to-content link, visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #236fa8;
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}
