:root {
  --bg: #ffffff;
  --bg-elevated: #f2f2f2;
  --primary-color: #0a0a0a;
  --primary-text: #ffffff;
  --text-color: #0a0a0a;
  --text-muted: rgba(0, 0, 0, 0.6);
  --border-color: rgba(0, 0, 0, 0.15);
  --error-color: #ff6b6b;
  --radius: 0px;
  --font-body: 'Lora', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
  --header-height: 72px;
  --container-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn:disabled,
.btn:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--primary-text);
}

section {
  padding: 4rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#site-header.scrolled {
  background: var(--bg);
  border-bottom: 1px solid var(--border-color);
}

#site-header.scrolled .header-nav a:not(.btn) {
  color: var(--text-color);
}

#site-header.scrolled .menu-toggle span {
  background: var(--text-color);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a:not(.btn) {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  z-index: 99;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a:not(.btn) {
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1.25rem;
}

body.menu-locked {
  overflow: hidden;
}

@media (min-width: 900px) {
  .header-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-overlay.hide-close .lightbox-backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: var(--bg);
  color: var(--text-color);
  border: none;
  border-radius: var(--radius);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.pswp__gallery-thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.5);
  scrollbar-width: none;
}

.pswp__gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.pswp__gallery-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.pswp__gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pswp__gallery-thumb:hover {
  opacity: 0.8;
}

.pswp__gallery-thumb--active {
  opacity: 1;
}

.lightbox-overlay.hide-close .lightbox-close {
  display: none;
}

body.lightbox-locked {
  overflow: hidden;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  padding: 0;
  overflow: hidden;
}


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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-color);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.hero-play-btn:hover {
  opacity: 1;
}

.hero-info {
  position: absolute;
  left: 1.5rem;
  bottom: 7rem;
  right: 1.5rem;
  color: #ffffff;
  text-align: center;
}

.hero-info h1 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.hero-price {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-info {
    left: 2.5rem;
    right: 2.5rem;
    bottom: 2.5rem;
  }

  .hero-info h1 {
    font-size: 2.25rem;
  }

  .hero-price {
    font-size: 1.8rem;
  }
}

.spec-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.spec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
}

@media (min-width: 600px) {
  .spec-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }

  .spec-card {
    padding: 1.5rem 2rem;
  }
}

.spec-card svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.spec-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.spec-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.description-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-muted);
}

.description-content p + p {
  margin-top: 1rem;
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  width: 100%;
  scroll-snap-align: start;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

@media (min-width: 600px) {
  .carousel-item {
    width: 45%;
  }
}

@media (min-width: 1000px) {
  .carousel-item {
    width: 33.333%;
  }
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bg);
  color: var(--text-color);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.carousel-arrow:hover {
  opacity: 1;
}

.carousel-prev {
  left: 0.75rem;
}

.carousel-next {
  right: 0.75rem;
}

.tour-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: var(--bg-elevated);
}

.tour-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.seg-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.seg-tab {
  padding: 0.6rem 1.25rem;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.seg-tab.active {
  background: var(--primary-color);
  color: var(--primary-text);
  border-color: var(--primary-color);
}

.video-panel,
.floorplan-panel {
  display: none;
}

.video-panel.active,
.floorplan-panel.active {
  display: block;
}

.video-panel video {
  width: 100%;
  margin: 0 auto;
}

.floorplan-image-btn {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.floorplan-image-btn img {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.floorplan-image-btn:hover img {
  transform: scale(1.01);
}

.amenities-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.amenity-tag {
  padding: 0.5rem 1.1rem;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border-radius: var(--radius);
}

.contact-section {
  padding: 6rem 0;
}

.agent-card {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.agent-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
}

.agent-card h3 {
  font-size: 1.3rem;
}

.agent-title {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin: 0.25rem 0 1rem;
}

.agent-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.agent-link svg {
  flex-shrink: 0;
  color: #0a0a0a;
}

.agent-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.broker-logo {
  display: block;
  max-height: 70px;
  width: auto;
}

.logo-divider {
  flex-shrink: 0;
  width: 3px;
  height: 80px;
  background: #0a0a0a;
}

@media (min-width: 768px) {
  .agent-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4.5rem;
    max-width: 780px;
    text-align: left;
  }

  .agent-photo {
    width: 240px;
    height: 240px;
    margin: 0;
    flex-shrink: 0;
  }

  .agent-card h3 {
    font-size: 2rem;
  }

  .agent-title {
    font-size: 1.2rem;
    margin: 0.35rem 0 1.25rem;
  }

  .agent-link {
    justify-content: flex-start;
    font-size: 1.2rem;
  }

  .agent-link svg {
    width: 21px;
    height: 21px;
  }

  .agent-logos {
    justify-content: flex-start;
  }

  .brokerage-logo {
    max-width: 150px;
    max-height: 70px;
  }

  .contact-logo {
    max-height: 75px;
  }
}

.cta-section {
  position: relative;
  padding: 5rem 0;
  background: #c7c7c7 url('../assets/cta-background.jpeg') center/cover no-repeat;
}

.cta-card {
  background: var(--bg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.cta-text {
  margin-bottom: 2rem;
}

.cta-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-text p {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .cta-card {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 3.5rem;
    padding: 3.5rem;
  }

  .cta-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
  }

  .cta-text h2 {
    font-size: 2rem;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  border-radius: var(--radius);
}

.submit-btn {
  width: 100%;
}

.form-success,
.form-error {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.form-success {
  color: var(--text-color);
}

.form-error {
  color: var(--error-color);
}

.map-embed {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border-color);
}

.modal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  width: min(680px, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  text-align: left;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.disclaimer-body p {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.disclaimer-body p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.copyright {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.disclaimer-link {
  background: none;
  border: none;
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
