@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --ink: #121824;
  --ink-soft: #3c4a60;
  --sand: #f4f1eb;
  --sage: #a9b4c8;
  --sage-dark: #2a3852;
  --stone: #d6d2c8;
  --terracotta: #c68f6a;
  --mist: #c5d3e6;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(18, 24, 36, 0.18);
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 2px;
  --charcoal: #101827;
  --charcoal-soft: #1b2436;
  --cream: #f6f2eb;
  --accent: #9aa0a8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 242, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 24, 36, 0.08);
}

.topbar {
  background: #0c1320;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a {
  color: rgba(255, 255, 255, 0.9);
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pill {
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.pill.accent {
  background: var(--accent);
  border-color: transparent;
  color: var(--charcoal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 30%, #d8c2a1, #8a6a3a);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(27, 36, 32, 0.2);
}

.logo-image {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--mist);
  color: var(--sage-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.button.primary {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(15, 22, 36, 0.3);
}

.button.primary:hover {
  transform: translateY(-1px);
  background: #0c1220;
}

.button.ghost {
  border-color: rgba(27, 36, 32, 0.2);
  color: var(--ink-soft);
}

.button.ghost:hover {
  border-color: var(--sage-dark);
  color: var(--sage-dark);
}



.hero .button.ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.hero .button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
}

.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  align-items: center;
  padding: 120px 0 80px;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(10, 15, 25, 0.8), rgba(10, 15, 25, 0.4)),
    url('images/photo_gallery/photo-01.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-video::before {
  background-image: linear-gradient(120deg, rgba(10, 15, 25, 0.75), rgba(10, 15, 25, 0.35));
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(198, 123, 91, 0.35), transparent 60%);
  z-index: -1;
}

.hero-content {
  display: grid;
  gap: 24px;
  max-width: 640px;
}

.hero-content.center {
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
}

.hero-panel {
  background: rgba(12, 18, 32, 0.28);
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(3px);
}

.hero-content > * {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.4s;
}

.hero-content > *:nth-child(5) {
  animation-delay: 0.5s;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.05;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .button {
  padding: 14px 24px;
  font-size: 1rem;
}

.hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.section {
  padding: 80px 0;
}

.availability-page .section {
  padding: 60px 0;
}

.availability-hero {
  background: linear-gradient(120deg, rgba(197, 211, 230, 0.65), rgba(243, 239, 231, 0.9));
}

.availability-mid {
  background: var(--mist);
}

.availability-form-bg {
  background: #f3efe7;
}

.availability-form-section {
  margin-top: -20px;
  padding-top: 40px;
}

.availability-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
}

.availability-card {
  background: transparent;
  border: none;
  padding: 0;
}

.availability-card.availability-copy {
  background: #f3efe7;
  padding: 20px 22px;
}

.availability-side {
  display: grid;
  gap: 18px;
}

.availability-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.availability-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.section.dark {
  background: var(--charcoal);
  color: var(--white);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-subtitle {
  color: var(--ink-soft);
  max-width: 520px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
}

.features-page .feature-list {
  grid-template-columns: 1fr;
}

.feature-list li {
  background: var(--white);
  border: 1px solid rgba(18, 24, 36, 0.12);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.card .feature-list {
  margin-top: 12px;
}

.card .feature-list li {
  background: transparent;
  border: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(18, 24, 36, 0.08);
}

.card .feature-list li:last-child {
  border-bottom: none;
}

.card.dark {
  background: var(--charcoal-soft);
  color: var(--white);
  box-shadow: none;
}

.card-grid .card:nth-child(1) {
  animation-delay: 0.1s;
}

.card-grid .card:nth-child(2) {
  animation-delay: 0.2s;
}

.card-grid .card:nth-child(3) {
  animation-delay: 0.3s;
}

.card-grid .card:nth-child(4) {
  animation-delay: 0.4s;
}

.card-grid .card:nth-child(5) {
  animation-delay: 0.5s;
}

.card-grid .card:nth-child(6) {
  animation-delay: 0.6s;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.split.swap {
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
}

.split.swap.reverse {
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 1fr);
}

.feature-block {
  background: var(--white);
  border: 1px solid rgba(18, 24, 36, 0.06);
  padding: 32px;
}

.feature-block h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature-block h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 10px;
}

.feature-block .feature-list {
  margin-top: 12px;
}

.feature-block .feature-list li {
  background: transparent;
  border: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(18, 24, 36, 0.06);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.feature-block .feature-list li:last-child {
  border-bottom: none;
}

.feature-photo {
  background: var(--white);
  border: none;
  padding: 0;
}

.features-page .feature-block,
.availability-page .contact-card {
  background: rgba(18, 24, 36, 0.06);
  border: none;
  border-radius: 10px;
  box-shadow: none;
}

.features-page .split {
  align-items: stretch;
}

.features-page .feature-block,
.features-page .feature-photo {
  min-height: 420px;
}

.features-page .feature-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features-page .feature-photo {
  overflow: hidden;
}

.features-page .feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-page .feature-photo,
.availability-page .availability-photo-grid img,
.availability-page .availability-form-photo,
.contact-page .contact-photo {
  border-radius: 10px;
}

.contact-page .contact-panel {
  padding: 0;
  background: transparent;
  border: none;
}

.contact-page .contact-card h3 {
  letter-spacing: 0.02em;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea,
.contact-page .contact-form select {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 24, 36, 0.08);
}

.features-page .feature-block .feature-list li,
.availability-page .contact-form input,
.availability-page .contact-form textarea,
.availability-page .contact-form select,
.contact-page .contact-form input,
.contact-page .contact-form textarea,
.contact-page .contact-form select {
  border-radius: 8px;
}

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-media img {
  height: 100%;
  object-fit: cover;
}

.floor-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.plan-card {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: none;
  border: none;
  display: grid;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  align-items: start;
  justify-items: center;
  text-align: center;
  min-height: 420px;
}

.plan-card img {
  width: 100%;
  max-width: 360px;
  height: 220px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.plan-card .plan-meta {
  width: 100%;
}

.plan-card .button {
  width: 100%;
  justify-content: center;
}

.floor-plans .plan-card:nth-child(1) {
  animation-delay: 0.1s;
}

.floor-plans .plan-card:nth-child(2) {
  animation-delay: 0.2s;
}

.floor-plans .plan-card:nth-child(3) {
  animation-delay: 0.3s;
}

.plan-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.plan-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.gallery-grid a {
  display: block;
  width: 100%;
}

.gallery-grid img {
  border-radius: var(--radius-sm);
  height: 180px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.gallery-grid.large img {
  height: 220px;
}

.gallery-grid img:nth-child(1) {
  animation-delay: 0.1s;
}

.gallery-grid img:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-grid img:nth-child(3) {
  animation-delay: 0.3s;
}

.gallery-grid img:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery-grid img:nth-child(5) {
  animation-delay: 0.5s;
}

.gallery-grid img:nth-child(6) {
  animation-delay: 0.6s;
}

.availability-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.availability-table th,
.availability-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(27, 36, 32, 0.08);
}

.availability-table th {
  background: var(--mist);
  font-weight: 600;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.map-placeholder {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d9e3d9, #f7f2ea);
  padding: 0;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.map-placeholder::after {
  content: 'The Foundry Apartments';
  position: absolute;
  bottom: 18px;
  left: 20px;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.map-pin {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--terracotta);
  position: absolute;
  top: 45%;
  left: 55%;
  transform: rotate(-45deg);
  box-shadow: 0 10px 20px rgba(198, 123, 91, 0.4);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.availability-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.contact-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contact-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.contact-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.availability-page .contact-card,
.contact-page .contact-card {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.availability-page .section-header {
  margin-bottom: 28px;
}

.availability-page .availability-table {
  background: var(--white);
  border: none;
  box-shadow: 0 24px 70px rgba(18, 24, 36, 0.12);
}

.availability-page .availability-table th {
  background: rgba(18, 24, 36, 0.03);
}

.availability-page .availability-layout {
  gap: 40px;
}

.availability-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
}

.availability-copy {
  max-width: 460px;
  text-align: center;
  margin: 0 auto;
}

.availability-copy .quick-links {
  justify-content: center;
}

.availability-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
  padding: 0;
  min-height: 460px;
  height: 100%;
  grid-auto-rows: 1fr;
  max-width: 520px;
}

.availability-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.availability-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.availability-copy-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 24, 36, 0.06);
  padding: 24px;
}

.availability-copy-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.availability-copy-card p {
  color: var(--ink-soft);
}

.availability-preview .availability-photo-grid img {
  height: 150px;
}

.availability-form {
  max-width: 720px;
  margin: 0 auto;
}

.availability-form-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 28px 70px rgba(18, 24, 36, 0.16);
  border: 1px solid rgba(18, 24, 36, 0.08);
  max-width: 980px;
  width: 100%;
  margin-left: auto;
  height: 100%;
}

.availability-form-card iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  height: 100%;
  border-radius: 10px;
  background: #ffffff;
}

.availability-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: stretch;
}

.apply-form-section {
  background: linear-gradient(130deg, rgba(243, 236, 227, 0.8), rgba(227, 235, 240, 0.9));
}

.apply-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: stretch;
}

.apply-form-copy {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(18, 24, 36, 0.12);
  border: 1px solid rgba(18, 24, 36, 0.06);
}

.apply-form-copy h3 {
  margin: 18px 0 10px;
}

.apply-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}

.apply-checklist li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.apply-checklist li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.apply-note {
  background: rgba(15, 22, 36, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.apply-form-card {
  border-color: rgba(18, 24, 36, 0.12);
  box-shadow: 0 30px 70px rgba(18, 24, 36, 0.18);
}

.tour-form-section {
  background: linear-gradient(140deg, rgba(232, 238, 233, 0.9), rgba(246, 242, 235, 0.95));
}

.tour-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: stretch;
}

.tour-form-copy {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 55px rgba(18, 24, 36, 0.12);
  border: 1px solid rgba(18, 24, 36, 0.06);
}

.tour-form-copy h3 {
  margin: 18px 0 10px;
}

.tour-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}

.tour-checklist li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.tour-checklist li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sage-dark);
}

.tour-note {
  background: rgba(15, 22, 36, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.tour-form-card {
  border-color: rgba(18, 24, 36, 0.1);
  box-shadow: 0 26px 64px rgba(18, 24, 36, 0.16);
}

.availability-form-copy {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(18, 24, 36, 0.12);
  border: 1px solid rgba(18, 24, 36, 0.06);
}

.availability-form-copy .section-title {
  margin-bottom: 12px;
}

.availability-form-copy .section-subtitle {
  margin-bottom: 18px;
}

.availability-note {
  background: rgba(15, 22, 36, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.92rem;
}

.availability-note p {
  margin: 0 0 6px;
}

.availability-note p:last-child {
  margin-bottom: 0;
}

.availability-form-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.availability-form-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.availability-page .availability-photo img,
.contact-page .contact-photo img {
  height: 340px;
}

.features-page .feature-block,
.availability-page .availability-form,
.contact-page .contact-card {
  min-height: 340px;
}

.availability-page .contact-form input,
.availability-page .contact-form textarea,
.availability-page .contact-form select,
.contact-page .contact-form input,
.contact-page .contact-form textarea,
.contact-page .contact-form select {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 24, 36, 0.12);
}

.availability-page .contact-form textarea,
.contact-page .contact-form textarea {
  min-height: 140px;
}

.availability-page .contact-card h3,
.contact-page .contact-card h3 {
  font-size: 1.25rem;
}

.availability-page .contact-card p,
.contact-page .contact-card p {
  color: var(--ink-soft);
}

.availability-page .availability-side {
  gap: 24px;
}

.availability-page .page-hero h1,
.contact-page .page-hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
}

.availability-page .page-hero p,
.contact-page .page-hero p {
  font-size: 1.05rem;
}

.availability-page .availability-side .contact-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(18, 24, 36, 0.06);
  padding: 28px;
}

.availability-page .availability-side .contact-card {
  box-shadow: 0 20px 50px rgba(18, 24, 36, 0.1);
}

.contact-page .contact-layout {
  gap: 32px;
}

/* Contact page bold styling */
.contact-page .contact-panel {
  padding: 0;
  background: transparent;
  border: none;
}

.contact-page .contact-panel .contact-card {
  background: #101827;
  border: none;
  color: var(--white);
  box-shadow: 0 24px 70px rgba(16, 24, 39, 0.35);
  padding: 28px;
}

.contact-page .contact-panel .contact-card p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-page .contact-card:last-child {
  background: #0f172a;
  border: none;
  color: var(--white);
  box-shadow: 0 24px 70px rgba(16, 24, 39, 0.35);
  padding: 32px;
}

.contact-page .contact-card:last-child p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-page .contact-card h3 {
  margin-bottom: 10px;
  color: var(--white);
}

.contact-page .contact-card p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-page .contact-panel .button.ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.contact-page .contact-panel .button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-page .contact-form input,
.contact-page .contact-form textarea,
.contact-page .contact-form select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.contact-page .contact-form input::placeholder,
.contact-page .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-page .contact-form select {
  color: rgba(255, 255, 255, 0.7);
}

.contact-page .contact-card:last-child .button.primary {
  background: var(--accent);
  color: #0f172a;
}

/* Contact page rebuild */
.contact-page .contact-rebuild {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.contact-page .contact-stack {
  display: grid;
  grid-template-rows: 240px 1fr;
  gap: 20px;
}

.contact-page .contact-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(16, 24, 39, 0.25);
}

.contact-page .contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-page .contact-info-card {
  background: #0f172a;
  color: var(--white);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(16, 24, 39, 0.35);
  height: 100%;
}

.contact-page .contact-info-card p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-page .contact-info-card .button.ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.contact-page .contact-info-card .button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-page .contact-form-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(16, 24, 39, 0.12);
  height: 100%;
}

.contact-page .contact-form-card .eyebrow {
  color: var(--accent);
}

.contact-page .contact-form-card p {
  color: var(--ink-soft);
}

.contact-page .contact-form-card .contact-form input,
.contact-page .contact-form-card .contact-form textarea,
.contact-page .contact-form-card .contact-form select {
  background: rgba(248, 248, 248, 0.9);
  border: 1px solid rgba(18, 24, 36, 0.12);
}


@media (max-width: 980px) {
  .contact-page .contact-rebuild {
    grid-template-columns: 1fr;
  }
}

/* Bold contact page treatment */
.contact-page .contact-panel {
  padding: 0;
  background: transparent;
  border: none;
}

.contact-page .contact-panel .contact-card {
  background: #101827;
  border: none;
  color: var(--white);
  box-shadow: 0 24px 70px rgba(16, 24, 39, 0.35);
}

.contact-page .contact-panel .contact-card p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-page .contact-card:last-child {
  background: #0f172a;
  border: none;
  color: var(--white);
  box-shadow: 0 24px 70px rgba(16, 24, 39, 0.35);
}

.contact-page .contact-card:last-child p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-page .contact-form input,
.contact-page .contact-form textarea,
.contact-page .contact-form select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.contact-page .contact-form input::placeholder,
.contact-page .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-page .contact-form select {
  color: rgba(255, 255, 255, 0.7);
}

.contact-page .contact-card:last-child .button.primary {
  background: var(--accent);
  color: #0f172a;
}

.contact-grid .contact-card:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-grid .contact-card:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-card .button {
  margin-top: 8px;
}

/* Resident portal */
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.portal-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(16, 24, 39, 0.2);
}

.portal-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.portal-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(16, 24, 39, 0.12);
}

.portal-note {
  margin-top: 20px;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }
}

/* Resident portal page (new layout) */
.resident-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.resident-card {
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(16, 24, 39, 0.12);
}

.resident-card h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.resident-card p {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.resident-card.resident-dark {
  background: #0f172a;
  color: var(--white);
}

.resident-card.resident-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.resident-card.resident-dark .button.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.resident-card.resident-dark .button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.resident-card-media {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.resident-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.resident-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(27, 36, 32, 0.2);
  font-family: inherit;
}

footer {
  background: #0e1412;
  color: var(--white);
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer-grid h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-logos img {
  height: 40px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.75);
}

.footer-estream {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.footer-estream img {
  height: 36px;
  width: auto;
}

.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(130deg, var(--mist), #f3efe7);
}

.cta-strip {
  background: var(--accent);
  color: var(--charcoal);
  padding: 14px 0;
  font-weight: 600;
  text-align: center;
}

.cta-strip a {
  color: var(--charcoal);
  text-decoration: underline;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.page-hero p {
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 560px;
}

.quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 32, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 85vh;
  background: #0c1220;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
}

.lightbox-content img {
  width: 900px;
  height: 520px;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-title {
  color: var(--white);
  font-size: 1rem;
  margin: 6px 0 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(12, 18, 32, 0.85);
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-nav.prev {
  left: -16px;
}

.lightbox-nav.next {
  right: -16px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #0c1220;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

.promo-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.promo-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.72);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.promo-modal__content {
  position: relative;
  z-index: 1;
  max-width: min(900px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 1.2, 0.2, 1), opacity 0.3s ease;
  will-change: transform, opacity;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.promo-modal.is-open .promo-modal__backdrop {
  opacity: 1;
}

.promo-modal.is-open .promo-modal__content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.promo-modal.is-open .promo-modal__content {
  animation: promo-wham 0.45s cubic-bezier(0.12, 1.15, 0.2, 1);
}

@keyframes promo-wham {
  0% {
    transform: translateY(40px) scale(0.86) rotate(-0.6deg);
    opacity: 0;
  }
  50% {
    transform: translateY(-10px) scale(1.1) rotate(0.25deg);
    opacity: 1;
  }
  70% {
    transform: translateY(3px) scale(0.97) rotate(-0.1deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

.promo-modal__content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background: #fff;
}

.promo-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(12, 16, 22, 0.85);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    position: absolute;
    top: 72px;
    right: 4%;
    left: 4%;
    min-width: 220px;
    gap: 10px;
  }

  .navbar {
    position: relative;
  }

  .topbar .container {
    justify-content: center;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 100px 0 70px;
  }

  .section {
    padding: 70px 0;
  }

  .split,
  .split.swap,
  .split.swap.reverse {
    grid-template-columns: 1fr;
  }

  .feature-photo {
    order: -1;
  }

  .features-page .feature-block,
  .features-page .feature-photo {
    min-height: auto;
  }

  .features-page .feature-photo img {
    height: 280px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .map-placeholder::after {
    left: 12px;
    bottom: 12px;
  }

  .gallery-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .availability-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .availability-preview {
    grid-template-columns: 1fr;
  }

  .availability-editorial {
    grid-template-columns: 1fr;
  }

  .availability-form-layout {
    grid-template-columns: 1fr;
  }

  .tour-form-layout {
    grid-template-columns: 1fr;
  }

  .tour-form-copy {
    order: -1;
  }

  .availability-table th,
  .availability-table td {
    padding: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 75vh;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .section {
    padding: 60px 0;
  }

  .gallery-grid.large,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid img {
    height: 140px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .availability-table,
  .availability-table thead,
  .availability-table tbody,
  .availability-table th,
  .availability-table td,
  .availability-table tr {
    display: block;
  }

  .availability-table thead {
    display: none;
  }

  .availability-table tr {
    border-bottom: 1px solid rgba(27, 36, 32, 0.08);
    padding: 12px 0;
  }

  .availability-table td {
    padding: 8px 0;
  }

  .availability-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin-bottom: 4px;
  }

  .footer-logos img {
    height: 32px;
  }

  .lightbox-content {
    padding: 12px;
    max-width: 94vw;
  }

  .lightbox-content img {
    width: 100%;
    height: 60vh;
    max-height: 60vh;
  }

  .lightbox-nav.prev {
    left: -8px;
  }

  .lightbox-nav.next {
    right: -8px;
  }
}

@media (max-width: 520px) {
  .gallery-grid.large,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 180px;
  }

  .gallery-grid {
    justify-items: center;
  }

  .gallery-grid img {
    max-width: 420px;
  }
}

@media (max-width: 820px) {
  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-badges {
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .logo-image {
    height: 44px;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.88rem;
  }

  .navbar {
    gap: 14px;
  }

  .nav-cta .button {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .page-hero h1,
  .page-hero p,
  .hero h1,
  .hero p {
    white-space: nowrap;
  }
}
