/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-dark: #16243d;
  --color-body: #6c6e76;
  --color-accent: #fe5d07;
  --color-accent-hover: #e54f00;
  --color-header-bg: #fffcf6;
  --color-bg: #ffffff;
  --color-light-bg: #f7f7f7;
  --color-tagline: #6c6e76;
  --font-heading: 'Satoshi', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-subtitle: 'Inter', sans-serif;
  --font-nav: 'Neue Montreal', 'Inter', sans-serif;
  --max-width: 1264px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

/* ===== Header ===== */
.header {
  background: var(--color-header-bg);
  padding: 0 3%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: 0.28px;
}

.logo-tagline {
  font-family: var(--font-nav);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-tagline);
  letter-spacing: -0.08px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  color: rgba(32, 32, 31, 0.8);
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.08px;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: rgb(63, 68, 75);
  transition: width 0.4s;
  transform-origin: left center;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: rgba(32, 32, 31, 0.8);
}

/* Active nav link */
.nav-link--active::after {
  width: 100%;
}

.nav .nav-cta { display: none; }

/* Schedule Tour CTA */
.nav-cta {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--color-accent-hover); }

/* Profile dropdown */
.nav-profile {
  position: relative;
}
.nav-profile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-profile-btn--guest {
  background: #9ca3af;
  border-color: #d1d5db;
}
.nav-profile-btn--guest svg {
  stroke: #fff;
}
.nav-profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
}
.nav-profile.open .nav-profile-dropdown {
  display: block;
}
.nav-profile-dropdown a,
.nav-profile-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  color: var(--color-dark);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-profile-dropdown a:hover,
.nav-profile-dropdown button:hover {
  background: var(--color-light-bg);
}
.nav-profile-dropdown form { margin: 0; }

.nav .nav-mobile-login {
  display: none;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
}

/* ===== Hero ===== */
.hero {
  padding: 0 2rem;
  overflow: visible;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1.2;
  max-width: 560px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-nav);
  font-size: 1.375rem;
  color: var(--color-body);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgba(246, 246, 246, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-image img {
  max-height: 750px;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  border: 2px solid transparent;
  box-sizing: border-box;
  text-decoration: none;
}

/* Orange button — primary action */
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Grey/outline button — secondary action */
.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid #d1d5db;
}

.btn--outline:hover {
  border-color: var(--color-dark);
  background: var(--color-light-bg);
}

/* ===== More than a Coliving ===== */
.coliving-section {
  padding: 0;
  background-color: #fffcf6;
  box-shadow: rgba(165, 165, 165, 0.13) 0px 2px 30px 0px;
}

.coliving-inner {
  display: flex;
  align-items: stretch;
  gap: 60px;
  max-width: 100%;
}

.coliving-image {
  flex: 0 0 50%;
  overflow: hidden;
  border-radius: 10px;
}

.coliving-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.coliving-content {
  flex: 1;
  padding: 120px 0;
  max-width: 540px;
}

.coliving-content h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.coliving-content p {
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-body);
  letter-spacing: -0.08px;
}

/* ===== Work + Nature ===== */
.work-nature-section {
  padding: 60px 2rem;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.work-nature-section h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.work-nature-section p {
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-body);
}

/* ===== Image Carousel ===== */
.carousel-section {
  padding: 0 0 60px;
  overflow: hidden;
  position: relative;
}

.carousel-arrows {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-arrow:hover {
  background: var(--color-light-bg);
  border-color: var(--color-body);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.carousel-slide {
  flex: 0 0 calc(25% - 0.75rem);
  scroll-snap-align: start;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

/* ===== What Residents Get ===== */
.residents-section {
  padding: 160px 40px;
  background: #fffcf6;
}

.residents-inner {
  max-width: 82vw;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

.residents-header {
  flex: 0 0 50%;
  position: sticky;
  top: 94px;
  padding-bottom: 100px;
  z-index: 10;
  align-self: flex-start;
  background: var(--color-header-bg);
}

.residents-header h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.3rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.residents-header p {
  font-family: 'Neue Montreal', sans-serif;
  color: var(--color-body);
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 488px;
}

.residents-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.resident-card {
  background: #fff;
  border-radius: 10px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0px 0px 10px 2px rgba(190, 190, 190, 0.25);
  position: sticky;
  top: 94px;
  z-index: 1;
}

.resident-card:nth-child(2) { z-index: 2; }
.resident-card:nth-child(3) { z-index: 3; }
.resident-card:nth-child(4) { z-index: 4; }
.resident-card:nth-child(5) { z-index: 5; }
.resident-card:nth-child(6) { z-index: 6; }

.resident-card h3 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.resident-card p {
  color: var(--color-body);
  font-family: var(--font-nav);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.resident-card .card-meta {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.resident-card .card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resident-card .card-meta .meta-item svg {
  flex-shrink: 0;
}

.resident-card img {
  border-radius: 10px;
  width: 100%;
  object-fit: cover;
  margin-top: 0.5rem;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 60px 40px;
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  line-height: 1.3;
}

.cta-section p {
  color: var(--color-body);
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* ===== Created for Driven People ===== */
.driven-section {
  padding: 5rem 2rem;
  background: var(--color-header-bg);
}

.driven-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.driven-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
}

.driven-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
}

.driven-content {
  flex: 1;
}

.driven-content .label {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.08px;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.driven-content h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.driven-content p {
  color: var(--color-body);
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1.5;
}

.driven-content ul {
  padding-left: 3rem;
  margin: 0.5rem 0;
  list-style: disc;
}

.driven-content li {
  color: var(--color-body);
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1.7;
}

/* ===== Social Proof ===== */
.social-proof-section {
  padding: 60px 40px;
  background: #fff;
  text-align: center;
}

.social-proof-inner {
  max-width: 800px;
  margin: 0 auto;
}

.social-proof-inner h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.social-proof-inner p {
  font-family: var(--font-nav);
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--color-body);
  margin-bottom: 0.25rem;
}

/* ===== Pricing ===== */
.pricing-section {
  padding: 60px 40px;
  text-align: center;
  background: var(--color-header-bg);
}

.pricing-title {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.pricing-subtitle {
  font-family: var(--font-nav);
  color: var(--color-body);
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 0 2.5rem;
}

.pricing-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  background: var(--color-light-bg);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  margin-inline: auto;
}

.pricing-tab {
  padding: 12px 36px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  background: transparent;
  border-radius: 999px;
  color: var(--color-body);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.pricing-tab:hover:not(.active) {
  color: var(--color-dark);
}

.pricing-tab.active {
  background: var(--color-dark);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.pricing-panel {
  display: none;
}

.pricing-panel.active {
  display: block;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border-radius: 10px;
  padding: 35px;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(190, 190, 190, 0.25);
}

.pricing-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -1px;
}

.pricing-duration {
  font-family: var(--font-nav);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: -0.08px;
}

.pricing-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 0 0 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-nav);
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(32, 32, 31, 0.8);
  letter-spacing: -0.08px;
}

.pricing-features li svg {
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  background: #e8e8e8;
  color: var(--color-dark);
  cursor: pointer;
  transition: background 0.2s;
}

.pricing-btn:hover {
  background: #d8d8d8;
}

.pricing-btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.pricing-btn--primary:hover {
  background: #e54d00;
}

/* ===== Pricing Modal ===== */
.pricing-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.pricing-modal.active {
  display: flex;
}

.pricing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.pricing-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 60px 50px;
  max-width: 580px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pricing-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-accent);
  cursor: pointer;
  line-height: 1;
}

/* Thank-you modal */
.thankyou-modal { display: none; position: fixed; inset: 0; z-index: 3000; align-items: center; justify-content: center; }
.thankyou-modal.active { display: flex; }
.thankyou-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.thankyou-modal-content {
  position: relative; background: #fff; border-radius: 16px; padding: 40px 40px 32px;
  max-width: 480px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.thankyou-modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 2rem; color: var(--color-accent); cursor: pointer; line-height: 1; }
.thankyou-modal-img { width: 100%; border-radius: 10px; margin-bottom: 20px; object-fit: cover; max-height: 220px; }
.thankyou-modal-content h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-dark); margin-bottom: 6px; }
.thankyou-modal-content p { color: var(--color-body); margin-bottom: 20px; }
.thankyou-modal-btn { padding: 10px 28px; font-size: 0.9rem; }

.pricing-modal-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.pricing-modal-subtitle {
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 2rem;
}

.pricing-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-modal-form input,
.pricing-modal-form textarea,
.pricing-modal-form select {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
}

.pricing-modal-form input:focus,
.pricing-modal-form textarea:focus,
.pricing-modal-form select:focus {
  border-color: var(--color-accent);
}

.pricing-modal-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
  cursor: pointer;
  color: #999;
}
.pricing-modal-form select.has-value {
  color: var(--color-dark);
}
.pricing-modal-form select option {
  color: var(--color-dark);
}

.pricing-modal-form input::placeholder,
.pricing-modal-form textarea::placeholder {
  color: #999;
}

.pricing-modal-form textarea {
  resize: vertical;
  min-height: 80px;
}

.pricing-modal-form .btn {
  margin-top: 0.5rem;
  width: 60%;
  align-self: center;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 5rem 2rem;
  background: #fff;
}

.faq-inner {
  max-width: 900px;
  margin: 0 auto;
}

.faq-section h2.faq-title {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.faq-item {
  border-top: 1px solid #e0e0e0;
  padding: 1.75rem 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #000;
  font-family: var(--font-nav);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: -0.08px;
}

.faq-number {
  color: var(--color-body);
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 400;
  flex-shrink: 0;
  min-width: 2rem;
}

.faq-question > span:nth-child(2) {
  flex: 1;
}

.faq-toggle {
  width: 50px;
  height: 50px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-body);
  flex-shrink: 0;
}

.faq-icon-close {
  display: none;
}

.faq-item.open .faq-icon-open {
  display: none;
}

.faq-item.open .faq-icon-close {
  display: inline;
}

.faq-item.open .faq-toggle {
  transform: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-body);
  line-height: 1.7;
  padding-left: 3.5rem;
}

.faq-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.faq-list li {
  margin-bottom: 0.25rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 1rem;
}

/* ===== Our Houses ===== */
.houses-section {
  padding: 100px 40px;
  background: var(--color-header-bg);
}

.houses-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.houses-header {
  text-align: center;
  margin-bottom: 3rem;
}

.houses-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.625rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.houses-header p {
  font-family: var(--font-nav);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-body);
  max-width: 560px;
  margin: 0 auto;
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.house-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.house-card:hover,
.house-card.house-card--highlight {
  transform: translateY(-5px);
  border-color: rgba(254, 93, 7, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(254, 93, 7, 0.15);
  z-index: 1;
  position: relative;
}

.house-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.house-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.house-card:hover .house-card__image img {
  transform: scale(1.05);
}

.house-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.house-chip--now_open {
  background: var(--color-accent);
  color: #fff;
}

.house-chip--coming_soon {
  background: #e5e7eb;
  color: #555;
}

.house-card__info {
  padding: 1.25rem 1.25rem 1.5rem;
}

.house-card__info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.house-card__address {
  font-weight: 500;
  color: var(--color-dark) !important;
  margin-bottom: 0.15rem;
  display: block;
}

.house-card.house-card--highlight .house-card__address {
  color: var(--color-accent) !important;
}

.house-card__info p {
  font-family: var(--font-nav);
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.4;
}
.house-card__tour {
  margin-top: 12px;
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Admin house status badges */
.house-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.house-status-badge--now_open {
  background: #dcfce7;
  color: #166534;
}

.house-status-badge--coming_soon {
  background: #fef3c7;
  color: #92400e;
}

.admin-house-card {
  display: block;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.admin-house-card:hover {
  transform: translateY(-5px);
  border-color: rgba(254, 93, 7, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(254, 93, 7, 0.15);
}

@media (max-width: 900px) {
  .houses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .houses-section {
    padding: 60px 3%;
  }
}

@media (max-width: 600px) {
  .houses-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== House Detail Page ===== */
.hd-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hd-hero-image {
  position: absolute;
  inset: 0;
}

.hd-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
}

.hd-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 40px;
  color: #fff;
}

.hd-back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color 0.2s;
}

.hd-back-link:hover {
  color: #fff;
}

.hd-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.hd-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hd-hero-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.2s;
}

.hd-hero-address:hover {
  color: #fff;
  text-decoration: underline;
}

.hd-hero-meta .house-chip {
  position: static;
}

.hd-hero-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hd-tag {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-nav);
}

.hd-body {
  padding: 3rem 40px 4rem;
  background: #fff;
}

.hd-body-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hd-section {
  margin-bottom: 3rem;
}

.hd-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

.hd-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-body);
}

/* Gallery */
.hd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.hd-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.hd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.hd-empty {
  color: #999;
  font-size: 1rem;
  padding: 2rem;
  text-align: center;
  background: var(--color-header-bg);
  border-radius: 12px;
}

.hd-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Map */
.hd-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* CTA */
.hd-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-header-bg);
}

.hd-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -1px;
}

/* Lightbox */
.hd-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.hd-lightbox--open {
  display: flex;
}

.hd-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

.hd-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
}

.hd-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 3rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: background 0.2s;
  line-height: 1;
}
.hd-lightbox-arrow:hover { background: rgba(0,0,0,0.8); }
.hd-lightbox-prev { left: 24px; }
.hd-lightbox-next { right: 24px; }

@media (max-width: 768px) {
  .hd-hero {
    min-height: 320px;
  }
  .hd-hero-content {
    padding: 2rem 3%;
  }
  .hd-body {
    padding: 2rem 3% 3rem;
  }
  .hd-gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* ===== Cities ===== */
.cities-section {
  padding: 5rem 2rem;
  text-align: center;
  background: #fff;
}
.cities-inner {
  max-width: 600px;
  margin: 0 auto;
}
.cities-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -1px;
}
.cities-desc {
  color: var(--color-body);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ===== Contact / Get in Touch ===== */
.contact-section {
  padding: 80px 2rem;
  background: var(--color-header-bg);
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Corner + decorations */
.contact-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-body);
  background: #fff;
  z-index: 1;
}
.contact-corner--tl { top: -12px; left: -12px; }
.contact-corner--tr { top: -12px; right: -12px; }
.contact-corner--bl { bottom: -12px; left: -12px; }
.contact-corner--br { bottom: -12px; right: -12px; }

/* Left: info side */
.contact-info-side {
  padding: 2.5rem;
}
.contact-info-side h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.625rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.contact-desc {
  font-family: var(--font-nav);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-body);
  max-width: 540px;
  margin-bottom: 2rem;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
.contact-info-icon {
  background: var(--color-light-bg);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  flex-shrink: 0;
}
.contact-info-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
}
.contact-info-value {
  font-size: 0.8rem;
  color: var(--color-body);
}

/* Right: form side */
.contact-form-side {
  background: var(--color-light-bg);
  border-left: 1px solid #e5e7eb;
  padding: 2rem;
  display: flex;
  align-items: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-field label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-nav);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: var(--color-dark);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
}
.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}
/* Phone field with country code */
.phone-field-wrapper {
  display: flex;
  gap: 0.5rem;
}
.phone-field-wrapper input[type="tel"] {
  flex: 1;
  min-width: 0;
}
/* Tour / modal form phone wrapper overrides */
.pricing-modal-form .phone-field-wrapper,
.tour-form .phone-field-wrapper {
  display: flex;
  gap: 0.5rem;
}
.pricing-modal-form .phone-field-wrapper input[type="tel"],
.tour-form .phone-field-wrapper input[type="tel"] {
  flex: 1;
  min-width: 0;
}
/* Searchable country code dropdown */
.cc-search-wrapper {
  position: relative;
  min-width: 100px;
  width: 100px;
  flex-shrink: 0;
}
.cc-search-trigger {
  width: 100%;
  padding: 0.6rem 0.5rem;
  padding-right: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  color: var(--color-dark);
  font-family: var(--font-nav);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-search-trigger:focus,
.cc-search-trigger:hover {
  border-color: var(--color-accent);
}
.cc-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 260px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 50;
  overflow: hidden;
}
.cc-search-dropdown.open { display: block; }
.cc-search-input {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.88rem;
  outline: none;
  font-family: var(--font-nav);
  box-sizing: border-box;
}
.cc-search-list {
  max-height: 220px;
  overflow-y: auto;
}
.cc-search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.1s;
}
.cc-search-item:hover { background: #f9fafb; }
.cc-search-item--active { background: #fff7ed; }
.cc-item-code {
  font-weight: 500;
  color: var(--color-dark);
  white-space: nowrap;
  min-width: 70px;
}
.cc-item-name {
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-search-empty {
  padding: 12px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}
/* Tour/modal form overrides */
.pricing-modal-form .cc-search-wrapper,
.tour-form .cc-search-wrapper {
  width: 110px;
  min-width: 110px;
}
.pricing-modal-form .cc-search-trigger,
.tour-form .cc-search-trigger {
  padding: 18px 12px;
  padding-right: 28px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 0.95rem;
  background-position: right 12px center;
}
.phone-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
/* Date fields side by side */
.date-fields-wrapper {
  display: flex;
  gap: 0.5rem;
}
.date-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.date-field label {
  font-size: 0.82rem;
  color: #999;
  font-family: var(--font-nav);
}
.contact-form .date-field label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
}
.date-field input[type="date"] {
  width: 100%;
  font-family: var(--font-nav);
}
.pricing-modal-form .date-field input[type="date"],
.tour-form .date-field input[type="date"] {
  padding: 18px 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--color-dark);
  outline: none;
  transition: border-color 0.2s;
}
.pricing-modal-form .date-field input[type="date"]:focus,
.tour-form .date-field input[type="date"]:focus {
  border-color: var(--color-accent);
}
.contact-submit-btn {
  width: 100%;
  text-align: center;
  margin-top: 0.25rem;
}

/* Blog/About page wrapper */
.blog-contact-wrapper .contact-card {
  max-width: 1024px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-form-side {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
  .contact-info-side { padding: 2rem 1.5rem; }
  .contact-form-side { padding: 1.5rem; }
  .contact-info-grid { grid-template-columns: 1fr; }
}

/* ===== Blog Page ===== */
.blog-hero {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  margin: 0 auto;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background: url('https://nkvxkesxjuiziynzcddh.supabase.co/storage/v1/object/public/assets/images/blog-hero.jpg') center/cover no-repeat;
}

.blog-hero-overlay {
  width: 100%;
  padding: 60px 60px;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  border-radius: 0 0 16px 16px;
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.8px;
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 40px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-dark);
}

.blog-breadcrumb a {
  color: var(--color-dark);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: var(--color-accent);
}
.blog-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.blog-grid-section {
  padding: 40px 40px 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
}

.blog-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-light-bg);
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px 16px 0 0;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-body p {
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.6;
}

.blog-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  z-index: 0;
}

.blog-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0 0;
}

.blog-pagination a,
.blog-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  transition: background 0.2s;
}

.blog-pagination a:hover {
  background: var(--color-light-bg);
}

.blog-pagination .active {
  background: var(--color-dark);
  color: #fff;
}

.blog-post-hero {
  margin: 0 8px 32px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.blog-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 100px) clamp(20px, 4vw, 80px);
  overflow: hidden;
}

.blog-post-hero h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.8px;
  margin: 0;
  max-width: 50%;
}

.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.blog-post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 32px 0 16px;
  line-height: 1.3;
}

.blog-post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 24px 0 12px;
}

.blog-post-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-body);
  margin-bottom: 16px;
}

.blog-post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--color-light-bg);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.blog-post-content ul,
.blog-post-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.blog-post-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-body);
  margin-bottom: 8px;
}

.blog-post-content img {
  border-radius: 12px;
  margin: 24px 0;
}


.blog-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.blog-post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-post-author-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.blog-post-author-name {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.blog-post-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

.blog-post-share span {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-dark);
}

.blog-post-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: background 0.2s;
}

.blog-post-share a:hover {
  background: var(--color-dark);
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: #000;
  color: #fff;
  padding: 5rem 40px 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.footer-brand a {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo-title {
  color: #fff;
}

.footer-brand .logo-tagline {
  color: rgba(255,255,255,0.5);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  list-style: none;
  align-items: center;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.footer-socials a:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-col-sub {
  margin-top: 2rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.footer-col a {
  position: relative;
  width: fit-content;
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.4s;
  transform-origin: left center;
}
.footer-col a:hover {
  color: #fff;
}
.footer-col a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ========== Legal Pages ========== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-page + .contact-section {
  padding-top: 0;
}
.legal-page:has(+ .contact-section) {
  padding-bottom: 24px;
}
.legal-inner h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.legal-updated {
  color: var(--color-body);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-dark);
  margin: 28px 0 8px;
}
.legal-inner p {
  color: var(--color-body);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ===== Fade In Up Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in-up.visible {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up.delay {
  animation-delay: 250ms;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--color-header-bg);
    padding: 1.5rem 2rem;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 100;
  }
  .nav.open .nav-link { font-size: 1.1rem; padding: 0.5rem 0; }
  .nav.open .nav-mobile-login { display: block; text-align: center; margin-top: 0.5rem; font-family: var(--font-nav); font-size: 1.1rem; color: var(--color-dark); text-decoration: none; padding: 0.5rem 0; }
  .nav-profile--guest-mobile { display: none !important; }
  .header-actions .nav-cta { display: none; }
  .header { transition: transform 0.3s ease; }
  .header.header--hidden { transform: translateY(-100%); }
  .nav.open .nav-cta {
    text-align: center;
    display: block;
    margin-top: 0.5rem;
  }

  /* Hamburger → X animation */
  .mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu-btn span { transition: transform 0.3s, opacity 0.3s; }

  /* Smaller fonts on mobile */
  .logo { gap: 2px; }
  .logo-title { font-size: 1.4rem; }
  .logo-tagline { font-size: 0.75rem; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .coliving-content h2 { font-size: 2.5rem; }
  .work-nature-section h2 { font-size: 2.5rem; }
  .cta-section h2 { font-size: 2.5rem; }
  .driven-content h2 { font-size: 2.5rem; }
  .pricing-title { font-size: 2.5rem; }
  .faq-section h2.faq-title { font-size: 2.5rem; }
  .residents-header h2 { font-size: 2.5rem; }
  .contact-info-side h2 { font-size: 2rem; }
  .hero-inner { flex-direction: column; text-align: left; padding: 2rem 0; }
  .hero-content { max-width: 100%; }
  .hero-image { order: 1; }
  .hero-image img { max-height: 500px; }
  .hero-subtitle { font-size: 1.25rem; }
  .hero .btn { width: 300px; max-width: 100%; padding: 12px 20px; font-size: 1.125rem; }
  .coliving-inner { flex-direction: column; }
  .coliving-content { order: -1; padding: 2rem 2rem 1.5rem; text-align: center; }
  .coliving-image { width: 100%; }
  .coliving-image img { height: 250px; width: 100%; border-radius: 0; }
  .carousel-slide { flex: 0 0 calc(50% - 0.5rem); }
  .carousel-slide img { height: 220px; }
  .residents-section { padding: 60px 5%; }
  .residents-inner { flex-direction: column; max-width: 100%; }
  .residents-header { position: static; flex: none; padding-bottom: 2rem; width: 100%; }
  .resident-card { position: sticky; top: 70px; padding: 24px; border-radius: 16px; box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
  .resident-card img { height: 220px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 500px; }
  .driven-inner { flex-direction: column; }
  .driven-image img { height: 250px; }
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; max-width: 600px; }
  .blog-hero { height: 350px; }
  .blog-hero h1 { font-size: 2.5rem; font-weight: 400; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-columns { grid-template-columns: 1fr 1fr; }

  /* Uniform section body text on mobile */
  .coliving-content p,
  .work-nature-section p,
  .residents-header p,
  .cta-section p,
  .driven-content p,
  .pricing-subtitle { font-size: 1.125rem; line-height: 1.6; }

  .social-proof-inner p,
  .houses-header p,
  .contact-desc,
  .cities-desc { font-size: 1rem; line-height: 1.6; }

  .resident-card p { font-size: 1rem; line-height: 1.6; }

  /* Uniform section spacing on mobile */
  .driven-section,
  .faq-section,
  .cities-section,
  .contact-section { padding-top: 60px; padding-bottom: 60px; }
}

@media (max-width: 768px) {
  .blog-post-hero { min-height: 350px; }
  .blog-post-hero-overlay { padding: 32px 24px; }
  .blog-post-hero h1 { font-size: 2.4rem; letter-spacing: -0.8px; }
  .blog-post-content { padding: 24px 20px 60px; }
  .blog-hero-video { display: none; }
  .blog-hero { background: url('https://nkvxkesxjuiziynzcddh.supabase.co/storage/v1/object/public/assets/images/blog-hero.jpg') center/cover no-repeat; }
}

@media (max-width: 480px) {
  .header-inner { height: 60px; }
  .logo { gap: 1px; }
  .logo-title { font-size: 1.2rem; }
  .logo-tagline { font-size: 0.7rem; }
  .hero-title { font-size: 2.375rem; }
  .hero-subtitle { font-size: 1.375rem; }
  .coliving-content h2 { font-size: 2rem; }
  .work-nature-section h2 { font-size: 2rem; }
  .cta-section h2 { font-size: 2rem; }
  .driven-content h2 { font-size: 2rem; }
  .pricing-title { font-size: 2rem; }
  .faq-section h2.faq-title { font-size: 2rem; }
  .residents-header h2 { font-size: 2rem; }
  .pricing-amount { font-size: 2.25rem; }
  .pricing-duration { font-size: 1rem; }
  .pricing-header { gap: 0.25rem; }
  .cities-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}

/* ========== Auth Pages ========== */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 96px - 200px);
  padding: 60px 20px;
  background: #faf9f7;
}
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.auth-card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.auth-subtitle {
  color: var(--color-body);
  margin-bottom: 28px;
}
.auth-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.auth-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.auth-forgot {
  text-align: right;
  margin-top: -4px;
  font-size: 0.85rem;
}
.auth-forgot a {
  color: var(--color-body);
  text-decoration: none;
}
.auth-forgot a:hover { color: var(--color-accent); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fafafa;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.auth-btn {
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
  width: 100%;
}
.auth-link {
  text-align: center;
  margin-top: 20px;
  color: var(--color-body);
  font-size: 0.9rem;
}
.auth-link a { color: var(--color-accent); text-decoration: none; font-weight: 600; position: relative; }
.auth-link a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--color-accent); transition: width 0.4s; transform-origin: left center; }
.auth-link a:hover::after { width: 100%; }

.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}
.auth-divider span {
  color: var(--color-body);
  font-size: 0.85rem;
}
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: var(--color-dark);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-google-btn:hover {
  border-color: #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.google-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.google-status--connected {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Show/hide password toggle */
.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover {
  color: #555;
}
.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Header auth links */
.nav-link--auth {
  margin-left: 8px;
  font-weight: 600;
}
.nav-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-nav);
  font-size: inherit;
  padding: 0;
}

/* ========== Startups Directory (Redesign) ========== */

/* Hero */
.su-hero {
  background: #fff;
  text-align: center;
  padding: 100px 2rem 60px;
}
.su-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}
.su-hero p {
  font-family: var(--font-nav);
  color: var(--color-body);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.su-hero-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.su-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}
.su-stat svg { stroke: var(--color-accent); }

/* Search + Sort bar */
.su-controls {
  background: #fff;
  padding: 1rem 3%;
  border-bottom: 1px solid #e5e7eb;
}
.su-search-bar {
  display: flex;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}
.su-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-light-bg);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 1rem;
}
.su-search-input svg { stroke: var(--color-body); flex-shrink: 0; }
.su-search-input input {
  background: transparent;
  border: none;
  color: var(--color-dark);
  font-family: var(--font-nav);
  font-size: 0.9rem;
  padding: 0.65rem 0;
  width: 100%;
  outline: none;
}
.su-search-input input::placeholder { color: var(--color-body); }

.su-search-bar select {
  background: var(--color-light-bg);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: var(--color-dark);
  font-family: var(--font-nav);
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c6e76' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

/* Main layout */
.su-main {
  display: flex;
  padding: 1.5rem 3% 4rem;
  gap: 2rem;
  min-height: 60vh;
  background: #fff;
}

/* Sidebar */
.su-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--color-header-bg);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  align-self: flex-start;
  position: sticky;
  top: 110px;
}
.su-filter-group {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.su-filter-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 0;
  cursor: pointer;
  text-align: left;
}
.su-filter-heading span { text-align: left; }
.su-filter-heading svg { stroke: var(--color-body); flex-shrink: 0; }
.su-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}
.su-filter-group.open .su-chevron { transform: rotate(180deg); }
.su-filter-options {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.25rem 0 0.5rem;
}
.su-filter-group.open .su-filter-options { display: flex; }
.su-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-body);
  cursor: pointer;
  padding: 0.2rem 0;
}
.su-checkbox input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 14px;
  height: 14px;
}

/* Cards */
.su-cards { flex: 1; min-width: 0; }
.su-count {
  font-size: 0.8rem;
  color: var(--color-body);
  margin-bottom: 1rem;
}
.su-empty {
  text-align: center;
  color: var(--color-body);
  padding: 3rem 0;
  font-size: 1rem;
}

.su-card {
  display: flex;
  gap: 1rem;
  background: var(--color-header-bg);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.su-card:hover {
  transform: translateY(-2px);
  border-color: rgba(254, 93, 7, 0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 3px rgba(254, 93, 7, 0.15);
}

.su-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.su-card-icon--round { border-radius: 50%; }
.su-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.su-card-icon span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
}

.su-card-body { flex: 1; min-width: 0; }
.su-card-top { display: flex; gap: 0.75rem; align-items: flex-start; }
.su-card-info { flex: 1; min-width: 0; }
.su-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}
.su-card-info p {
  font-size: 0.82rem;
  color: var(--color-body);
  line-height: 1.5;
}
.su-card-ext {
  flex-shrink: 0;
  color: var(--color-body);
}

.su-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.su-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}
.su-tag svg { stroke: currentColor; }
.su-tag--industry { background: var(--color-light-bg); color: var(--color-body); }
.su-tag--city { background: var(--color-light-bg); color: var(--color-body); }
.su-tag--stage { text-transform: capitalize; background: var(--color-light-bg); color: var(--color-body); }
.su-tag--model { background: var(--color-light-bg); color: var(--color-body); }
.su-tag--team { background: var(--color-light-bg); color: var(--color-body); }
.su-tag--year { background: var(--color-light-bg); color: var(--color-body); }
/* Resident startup column (right side of card) */
.res-startups {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
  padding-left: 1rem;
}
.res-startup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-dark);
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff7ed;
  transition: background 0.15s;
  white-space: nowrap;
}
.res-startup-row:hover { background: #fed7aa; }
.res-startup-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.res-startup-logo--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-bg);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent);
}
.res-startup-name {
  font-size: 0.82rem;
  font-weight: 500;
}
.res-startup-more {
  font-size: 0.78rem;
  color: var(--color-body);
  font-style: italic;
  padding-left: 10px;
}

.su-card-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.su-card-more {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0 0;
  text-align: left;
}
.su-card-more:hover { text-decoration: underline; }

.person-startup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 500;
  margin: 4px 0 0;
  text-decoration: none;
}
.person-startup-link:hover { text-decoration: underline; }
.person-startup-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}
.person-startup-logo--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-bg);
  color: var(--color-accent);
  font-size: 0.65rem;
  font-weight: 700;
}

/* Tag Picker */
.tag-picker { display: flex; flex-direction: column; gap: 10px; }
.tag-picker-selected { display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; }
.tag-picker-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-border, #ddd);
  background: var(--color-light-bg, #f5f5f5);
  color: var(--color-body);
  transition: all 0.15s;
  user-select: none;
}
.tag-pill:hover { border-color: var(--color-accent); color: var(--color-accent); }
.tag-pill--active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.tag-pill--active:hover { opacity: 0.85; }
.tag-pill--selected {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  cursor: pointer;
}
.tag-pill--selected::after { content: ' ×'; font-weight: 700; }
.tag-pill--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.su-filter-count {
  font-size: 0.75rem;
  color: var(--color-body);
  opacity: 0.6;
  margin-left: 2px;
}

.su-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.su-pill {
  padding: 0.15rem 0.5rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Pagination */
.su-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding-top: 2rem;
}
.su-page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--color-light-bg);
  color: var(--color-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.su-page-btn:hover { background: #e5e7eb; }
.su-page-btn.active { background: var(--color-accent); color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .su-main { flex-direction: column; padding: 1rem; }
  .su-sidebar { width: 100%; position: static; }
  .su-search-bar { flex-direction: column; }
  .su-search-bar select { width: 100%; }
  .su-hero { padding: 80px 1.5rem 40px; }
}

/* ========== OLD startups classes (keep for detail page) ========== */
.startups-hero {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
}
.startups-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 8px;
}
.startups-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }
.startups-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.startups-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.startups-filters select {
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--color-dark);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236c6e76' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.startups-filters select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.startups-count {
  text-align: center;
  margin-bottom: 32px;
  color: var(--color-body);
  font-size: 0.9rem;
}
.startups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.startup-card-link { text-decoration: none; color: inherit; }
.startup-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.startup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.startup-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.startup-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}
.startup-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.startup-card-logo-placeholder,
.startup-detail-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.startup-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.startup-card-desc {
  color: var(--color-body);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}
.startup-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.startup-card-industry {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-dark);
  color: #fff;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.startup-card-location-row {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--color-body);
  font-size: 0.8rem;
}
.startup-card-location-item { white-space: nowrap; }
.startup-card-challenges {
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.startup-card-challenges-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-body);
  margin-bottom: 6px;
}
.startup-card-challenge-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.startup-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.startup-badge--idea { background: #e0f2fe; color: #0369a1; }
.startup-badge--pre-seed { background: #fef3c7; color: #92400e; }
.startup-badge--seed { background: #d1fae5; color: #065f46; }
.startup-badge--series-a { background: #ede9fe; color: #5b21b6; }
.startup-badge--series-b { background: #fce7f3; color: #9d174d; }
.startup-badge--series-c\+ { background: #fef3c7; color: #92400e; }
.startup-badge--growth { background: #fce7f3; color: #9d174d; }
.startup-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.startup-tag {
  padding: 2px 10px;
  background: #e5e5e5;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--color-body);
}
.startups-empty {
  text-align: center;
  color: var(--color-body);
  padding: 60px 0;
  font-size: 1.1rem;
}

/* Startup Detail Page */
/* ── Startup Detail: Hero ── */
.sd-hero {
  background: var(--color-header-bg);
  padding: 24px 20px 32px;
}
.sd-back-row {
  max-width: var(--max-width);
  margin: 0 auto 20px;
}
.sd-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.sd-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
  border: 2px solid #e8e5df;
}
.sd-hero-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
}
.sd-hero-info h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.sd-name-link {
  color: var(--color-body);
  margin-left: 6px;
  vertical-align: middle;
  transition: color 0.15s;
}
.sd-name-link:hover {
  color: var(--color-accent);
}
.sd-name-link svg {
  vertical-align: middle;
}
.sd-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.sd-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--color-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s;
}
.sd-action-btn:hover {
  background: var(--color-accent);
}
.sd-hero-desc {
  color: var(--color-body);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 640px;
}
.sd-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.sd-hero-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--color-light-bg);
  color: var(--color-dark);
  border: 1px solid #e0ddd8;
}

/* Hero nav bar */
.sd-hero-nav {
  border-top: 1px solid #e8e5df;
  margin-top: 28px;
}
.sd-hero-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sd-hero-tabs {
  display: flex;
  align-items: center;
  gap: 0;
}
.sd-hero-tab {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-body);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.sd-hero-tab:hover {
  color: var(--color-dark);
}
.sd-hero-tab--active {
  color: var(--color-dark);
  font-weight: 700;
  border-bottom-color: var(--color-dark);
}
.sd-hero-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--color-light-bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-body);
  margin-left: 4px;
}

.sd-back-link {
  color: var(--color-body);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}
.sd-back-link:hover { color: var(--color-accent); }
.sd-hero-website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.sd-hero-website:hover { text-decoration: underline; }

/* ── Startup Detail: Body ── */
.sd-body {
  background: #fff;
  padding: 40px 20px 60px;
}
.sd-body-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Left column */
.sd-main-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sd-about-card {
  padding: 0 0 28px;
  border-bottom: 1px solid #eee;
  margin-bottom: 28px;
}
.sd-about-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sd-about-card h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 16px;
}
.sd-about-text {
  color: var(--color-dark);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}
.sd-section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: 10px;
}
.sd-about-card p {
  color: var(--color-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.sd-challenge-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Right sidebar */
.sd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}
.sd-sidebar-card {
  background: var(--color-light-bg);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #ebe8e3;
}
.sd-sidebar-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.sd-sidebar-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
  border: 2px solid #e0ddd8;
}
.sd-sidebar-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
}
.sd-sidebar-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 20px;
}
.sd-sidebar-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e0ddd8;
}
.sd-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0ddd8;
}
.sd-fact-label {
  color: var(--color-body);
  font-size: 0.85rem;
  font-weight: 500;
}
.sd-fact-value {
  color: var(--color-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
}
.sd-sidebar-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.sd-sidebar-link-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.sd-sidebar-link-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Founder Card */
.founder-card {
  background: var(--color-light-bg);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #ebe8e3;
}
.founder-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.founder-card-info {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.founder-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e5e5;
}
.founder-card-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.founder-card-info strong {
  display: block;
  color: var(--color-dark);
  font-size: 0.95rem;
}
.founder-card-role {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
}
.founder-card-location {
  color: var(--color-body);
  font-size: 0.8rem;
}
.founder-card-bio {
  color: var(--color-body);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--color-border, #eee);
}
.founder-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.founder-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s;
}
.founder-action-btn:hover {
  border-color: var(--color-accent);
}
.founder-action-btn--locked {
  color: var(--color-body);
}

/* Responsive */
@media (max-width: 900px) {
  .sd-body-inner { grid-template-columns: 1fr; }
  .sd-sidebar { position: static; }
  .sd-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .sd-hero-badges { justify-content: center; }
  .sd-back-row { text-align: center; }
  .sd-hero-nav-inner { flex-direction: column; gap: 0; }
}
@media (max-width: 480px) {
  .sd-hero-info h1 { font-size: 1.5rem; }
  .sd-hero-logo { width: 56px; height: 56px; border-radius: 12px; }
}

/* Startup Updates */
.sd-updates {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.sd-updates-inner h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}
.sd-updates-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sd-update-card {
  background: var(--color-light-bg);
  border-radius: 16px;
  overflow: hidden;
}
.sd-update-image {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
}
.sd-update-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sd-update-body {
  padding: 1.5rem 2rem 2rem;
}
.sd-update-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 0.35rem;
}
.sd-update-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-body);
  margin-bottom: 1rem;
}
.sd-update-content {
  color: var(--color-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}
.sd-pitch-deck-viewer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sd-pitch-deck-viewer iframe {
  background: var(--color-surface, #f9f9f9);
  border-radius: 8px;
}
.sd-pitch-deck-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}
.sd-pitch-deck-download:hover {
  text-decoration: underline;
}
.sd-updates-empty {
  color: var(--color-body);
  font-size: 0.95rem;
  padding: 2rem 0;
}
.sd-update-content p { margin-bottom: 0.75rem; }
.sd-update-content img { max-width: 100%; border-radius: 8px; margin: 0.5rem 0; }
@media (max-width: 768px) {
  .sd-updates { padding: 0 1rem 2rem; }
  .sd-update-body { padding: 1rem 1.25rem 1.5rem; }
  .sd-update-image { max-height: 200px; }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-dark);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

/* Member Picker */
.member-picker { max-width: 100%; }
.member-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: #fafafa;
  box-sizing: border-box;
}
.member-search-input:focus { outline: none; border-color: var(--color-accent); }
.member-search-results {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-top: 4px;
  overflow: hidden;
}
.member-search-results:empty { border: none; }
.member-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.member-search-item:last-child { border-bottom: none; }
.member-search-item:hover { background: #faf9f7; }
.member-search-empty {
  padding: 12px 16px;
  color: var(--color-body);
  font-size: 0.85rem;
  background: #fff;
}
.member-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: none;
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-add-btn:hover { background: var(--color-accent); color: #fff; }
.member-list { margin-top: 12px; }
.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f7f7f7;
  border-radius: 8px;
  margin-bottom: 8px;
}
.member-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.member-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.member-item-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.member-item-email {
  display: block;
  font-size: 0.8rem;
  color: var(--color-body);
}
.member-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.member-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-remove-btn:hover { background: #fca5a5; }
.role-combo {
  position: relative;
}
.role-combo-input {
  width: 120px;
  padding: 6px 10px;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
  background: #fff;
  outline: none;
}
.role-combo-input:focus {
  border-color: var(--color-accent);
}
.role-custom-input {
  padding: 6px 8px;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--color-dark);
  outline: none;
}
.member-role-badge {
  padding: 4px 14px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========== Dashboard Layout ========== */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 96px);
}
.sidebar-mobile-toggle { display: none; }
.dashboard-sidebar {
  width: 300px;
  background: var(--color-header-bg);
  border-right: 1px solid #e8e4dd;
  padding: 16px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: width 0.2s;
  position: relative;
}
.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8 5l-5 7 5 7' fill='%23fe5d07' stroke='%23fe5d07' stroke-width='1'/%3E%3Cpath d='M16 5l5 7-5 7' fill='%23fe5d07' stroke='%23fe5d07' stroke-width='1'/%3E%3Crect x='11' y='3' width='2' height='18' rx='1' fill='%23fe5d07'/%3E%3C/svg%3E") 12 12, col-resize;
  z-index: 10;
  background: transparent;
  transition: background 0.15s;
}
.dashboard-sidebar nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dashboard-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-body);
  text-decoration: none;
  padding: 11px 20px;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
}
.dashboard-sidebar nav a svg { flex-shrink: 0; }
.dashboard-sidebar nav a span {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.dashboard-sidebar nav a:hover {
  background: rgba(0,0,0,0.04);
  color: var(--color-dark);
}
.dashboard-sidebar nav a.active {
  background: rgba(254,93,7,0.1);
  color: var(--color-accent);
  border-right: 3px solid var(--color-accent);
  font-weight: 600;
}
/* Sidebar collapsible group */
.dashboard-sidebar nav a.sidebar-group-header {
  padding: 11px 20px;
}
.sidebar-group-header svg:first-child { flex-shrink: 0; }
.sidebar-group-header:hover {
  background: rgba(0,0,0,0.04);
  color: var(--color-dark);
}
.sidebar-group-header.active {
  background: rgba(254,93,7,0.1);
  color: var(--color-accent);
  border-right: 3px solid var(--color-accent);
  font-weight: 600;
}
.sidebar-badge {
  margin-left: auto;
  color: #999;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}
.sidebar-group-header.active .sidebar-badge,
.sidebar-subnav a.active .sidebar-badge {
  color: var(--color-accent);
  font-weight: 700;
}
.sidebar-group-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: inherit;
  margin-left: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}
.sidebar-group.open .sidebar-group-toggle svg {
  transform: rotate(180deg);
}
.sidebar-subnav {
  display: none;
  flex-direction: column;
  padding-left: 0;
}
.sidebar-group.open .sidebar-subnav {
  display: flex;
}
.dashboard-sidebar nav .sidebar-subnav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-body);
  text-decoration: none;
  padding: 6px 36px 6px 36px;
  font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dashboard-sidebar nav .sidebar-subnav a svg { flex-shrink: 0; opacity: 0.6; width: 13px; height: 13px; }
.dashboard-sidebar nav .sidebar-subnav a:hover {
  background: rgba(0,0,0,0.04);
  color: var(--color-dark);
}
.dashboard-sidebar nav .sidebar-subnav a.active {
  color: var(--color-accent);
  font-weight: 600;
  background: rgba(254,93,7,0.07);
  border-radius: 6px;
}
.sidebar-subnav .sidebar-badge {
  font-size: 0.78rem;
}

.sidebar-sep {
  height: 1px;
  background: #e8e4dd;
  margin: 8px 16px;
}
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-top: 1px solid #e8e4dd;
  color: var(--color-body);
  cursor: pointer;
  padding: 12px;
  margin-top: auto;
  transition: color 0.15s;
}
.sidebar-collapse-btn:hover { color: var(--color-accent); }
.sidebar-collapse-btn svg { transition: transform 0.2s; }

/* Collapsed state */
.dashboard-sidebar.collapsed { width: 60px; }
.dashboard-sidebar.collapsed nav a span { display: none; }
.dashboard-sidebar.collapsed nav a { justify-content: center; padding: 11px 0; }
.dashboard-sidebar.collapsed .sidebar-group-header span,
.dashboard-sidebar.collapsed .sidebar-badge,
.dashboard-sidebar.collapsed .sidebar-group-toggle { display: none; }
.dashboard-sidebar.collapsed .sidebar-group-header { justify-content: center; padding: 11px 0; }
.dashboard-sidebar.collapsed .sidebar-subnav { display: none !important; }
.dashboard-sidebar.collapsed .sidebar-sep { margin: 8px 10px; }
.dashboard-sidebar.collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }
.dashboard-main {
  flex: 1;
  padding: 40px;
  background: #faf9f7;
  overflow-y: auto;
}
.dashboard-main h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 24px;
}
.dashboard-main h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
  margin: 32px 0 16px;
}
.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dashboard-header-row h1 { margin-bottom: 0; }

/* Stats */
.dashboard-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.dashboard-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  min-width: 160px;
}
.stat-card--warning { border-left: 4px solid #f59e0b; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-dark);
}
.stat-label {
  display: block;
  color: var(--color-body);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dashboard-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dashboard-table th {
  text-align: left;
  padding: 14px 20px;
  background: #f5f5f5;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-body);
  font-weight: 600;
}
.dashboard-table td {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: var(--color-dark);
  vertical-align: middle;
}

.dashboard-table td a[href^="mailto:"] {
  text-decoration: underline;
}

.table-inline-select {
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
}
.table-inline-select:focus {
  border-color: var(--color-accent);
}
.dashboard-table tr:hover td { background: #faf9f7; }

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-badge--pending { background: #fef3c7; color: #92400e; }
.status-badge--approved, .status-badge--published { background: #d1fae5; color: #065f46; }
.status-badge--rejected, .status-badge--draft { background: #fee2e2; color: #991b1b; }
.status-badge--admin { background: #ede9fe; color: #5b21b6; }
.status-badge--founder { background: #e0f2fe; color: #0369a1; }
.status-badge--investor { background: #fef3c7; color: #92400e; }
.status-badge--member { background: #d1fae5; color: #065f46; }
.status-badge--user { background: #f3f4f6; color: #6b7280; }
.status-badge--team-member { background: #fef3c7; color: #92400e; }

/* Action buttons */
.dashboard-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.admin-search {
  width: 100%;
  max-width: 400px;
  padding: 9px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.15s;
}
.admin-search:focus { border-color: var(--color-accent); }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.role-picker { position: relative; display: inline-block; }
.role-picker-btn {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
}
.role-picker-btn:hover { border-color: var(--color-accent); }
.role-picker-chevron {
  margin-left: 4px;
  opacity: 0.5;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.role-picker-btn[aria-expanded="true"] .role-picker-chevron { transform: rotate(180deg); opacity: 1; }
.role-dropdown {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px 0;
  z-index: 9999;
  min-width: 160px;
}
.role-dropdown.open { display: block; }
.role-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-dark);
  user-select: none;
}
.role-dropdown-item:hover { background: var(--color-light-bg); }
.role-dropdown-item--disabled {
  opacity: 0.7;
  cursor: default;
}
.role-dropdown-item--disabled input[type="checkbox"] {
  cursor: default;
}
.role-dropdown-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-accent);
}
.role-dropdown-save {
  display: block;
  width: calc(100% - 16px);
  margin: 6px 8px 4px;
  padding: 6px 0 !important;
  font-size: 0.82rem !important;
}
.admin-filters { display: none; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-filters.open { display: flex; }
.admin-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-nav);
  font-size: 0.8rem;
  color: var(--color-dark);
  cursor: pointer;
  margin-bottom: 12px;
}
.admin-filters-toggle:hover { background: var(--color-light-bg); }
.admin-filters-toggle svg { transition: transform 0.2s; }
.admin-filters-toggle.open svg { transform: rotate(180deg); }
.btn--small {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
}
.btn--approve {
  background: #059669;
  color: #fff;
  border: none;
  cursor: pointer;
}
.btn--approve:hover { background: #047857; }
.btn--reject {
  background: #dc2626;
  color: #fff;
  border: none;
  cursor: pointer;
}
.btn--reject:hover { background: #b91c1c; }
.text-muted { color: var(--color-body); font-size: 0.85rem; }
.dashboard-empty {
  color: var(--color-body);
  padding: 40px 0;
  text-align: center;
}

/* ========== Dashboard Forms ========== */
.dashboard-form {
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-dark);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.form-section-title:first-child {
  margin-top: 0;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: #fafafa;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group small { display: block; margin-top: 4px; color: var(--color-body); font-size: 0.8rem; }
.form-group input[type="file"] { font-size: 0.9rem; }
.form-row {
  display: flex;
  gap: 20px;
}
.form-row .form-group { flex: 1; }
.form-preview-img {
  display: block;
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Quill editor overrides */
#quill-editor {
  min-height: 300px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-body);
  font-size: 1rem;
}
#quill-editor .ql-editor { min-height: 300px; }
.ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; }
.ql-container.ql-snow { border-radius: 0 0 8px 8px; }

/* Flash messages */
.flash-message {
  padding: 14px 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}
.flash-success,
.flash-message--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error,
.flash-message--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Contact form message */
.contact-msg {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.contact-msg:not(:empty) { display: block; }
.contact-msg--success { background: #d1fae5; color: #065f46; }
.contact-msg--error { background: #fef2f2; color: #b91c1c; }

/* Admin contacts */
.contact-status-select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-body);
}
.contact-notes-input {
  width: 100%;
  min-width: 140px;
  padding: 6px 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-body);
}
.contact-notes-input:focus { outline: none; border-color: var(--color-accent); }

/* New row highlight */
.contact-row--new {
  background: #fef3c7;
  font-weight: 500;
}
.contact-row--new td:first-child {
  position: relative;
  padding-left: 20px;
}
.contact-row--new td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  border-radius: 0 2px 2px 0;
}

/* Type badge */
.contact-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.contact-type--booking-request { background: #ede9fe; color: #5b21b6; }
.contact-type--pricing-inquiry { background: #ccfbf1; color: #115e59; }
.contact-type--question, .contact-type--questions { background: #e0f2fe; color: #0369a1; }
.contact-type--expansion-suggestion { background: #d1fae5; color: #065f46; }
.contact-type--resident-application { background: #fef3c7; color: #92400e; }

/* ========== Kanban Board ========== */
.kanban-header { margin-bottom: 1rem; }
.kanban-header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.kanban-toolbar { display: flex; gap: 10px; margin-top: 0.75rem; flex-wrap: wrap; align-items: center; }
.kanban-search { flex: 1; min-width: 200px; max-width: 360px; padding: 9px 14px; margin-bottom: 0; }
.kanban-type-filter { width: 180px; padding: 9px 14px; font-size: 0.9rem; border-radius: 8px; }

.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  min-height: 60vh;
  padding-bottom: 1rem;
  align-items: flex-start;
}
.kanban-column {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  background: #f5f5f4;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.kanban-column-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px 10px 0 0;
}
.kanban-column-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kanban-column-count {
  background: rgba(0,0,0,0.08);
  color: var(--color-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.kanban-column-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  min-height: 80px;
  max-height: calc(100vh - 220px);
}

/* Kanban Card */
.kanban-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  position: relative;
}
.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
.kanban-card--new { border-left: 3px solid var(--color-accent); }
.kanban-card--ghost { opacity: 0.4; }
.kanban-card--drag { transform: rotate(2deg); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.kanban-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.kanban-card-name {
  font-size: 0.9rem;
  color: var(--color-dark);
  line-height: 1.3;
}
.kanban-card-time {
  font-size: 0.7rem;
  color: #9ca3af;
  white-space: nowrap;
  flex-shrink: 0;
}
.kanban-card .contact-type-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  margin-top: 2px;
}
.kanban-card-house {
  font-size: 0.78rem;
  color: var(--color-body);
  margin-top: 6px;
}
.kanban-card-notes {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.35;
}
.panel-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kanban-card-dates {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 4px;
}
.kanban-card-tour-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 4px;
}
.kanban-card-admin-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 6px;
}
.kanban-card-actions-row {
  margin-top: 8px;
}

/* Sub-status badges */
.kanban-substatus {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.kanban-substatus--converted { background: #d1fae5; color: #065f46; }
.kanban-substatus--closed { background: #e5e7eb; color: #4b5563; }
.kanban-substatus--closed-lost { background: #fee2e2; color: #991b1b; }

/* Sub-status picker popup */
.kanban-substatus-picker {
  position: fixed;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
}
.kanban-substatus-picker-inner {
  background: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-substatus-picker-inner p {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-dark);
}

/* Archived list */
.kanban-archived-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.kanban-card--archived {
  cursor: default;
}

/* ========== Contact Panel (Popup Card) ========== */
.contact-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.contact-panel-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.contact-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 1060px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 4rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  z-index: 5001;
  overflow-y: auto;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.contact-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.panel-layout {
  display: flex;
  min-height: 0;
}
.panel-left {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(100vh - 4rem);
  border-right: 1px solid #f0eeeb;
}
.panel-right {
  width: 340px;
  min-width: 340px;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 4rem);
  background: #faf9f7;
  border-radius: 0 12px 12px 0;
}

.contact-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-body);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.contact-panel-close:hover { background: #f3f4f6; }

.panel-name {
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: var(--color-dark);
}
.panel-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.panel-contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}
.panel-contact-row strong {
  color: var(--color-dark);
  flex-shrink: 0;
}
.panel-email, .panel-phone {
  color: var(--color-accent);
  font-size: 0.88rem;
  text-decoration: none;
  word-break: break-all;
}
.panel-email:hover, .panel-phone:hover { text-decoration: underline; }
.panel-tour-row {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}
.panel-tour-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  cursor: pointer;
}
.panel-tour-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.panel-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.panel-meta-item {
  font-size: 0.85rem;
  color: var(--color-body);
}
.panel-meta-item strong {
  color: var(--color-dark);
  margin-right: 4px;
}

.panel-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.panel-status-row strong { color: var(--color-dark); }
.panel-status-select { flex: 1; }

.panel-section {
  margin-bottom: 20px;
}
.panel-section h3 {
  font-size: 0.88rem;
  color: var(--color-dark);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}
.panel-user-notes {
  font-size: 0.85rem;
  color: var(--color-body);
  line-height: 1.5;
  background: #f9fafb;
  padding: 12px;
  border-radius: 6px;
  white-space: pre-wrap;
}
.panel-admin-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.panel-no-notes {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 0;
}
.panel-admin-note {
  background: #fffbeb;
  border-radius: 6px;
  padding: 10px 12px;
  border-left: 3px solid var(--color-accent);
}
.panel-admin-note-meta {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-bottom: 4px;
}
.panel-admin-note-text {
  font-size: 0.82rem;
  color: var(--color-dark);
  line-height: 1.4;
}
.panel-add-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel-add-note textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
}
.panel-add-note textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.panel-add-note .btn { align-self: flex-end; }

.panel-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.panel-archive-btn { color: #ef4444; border-color: #fca5a5; }
.panel-archive-btn:hover { background: #fef2f2; border-color: #ef4444; }

/* ========== Pipeline Bar (Dashboard) ========== */
.pipeline-bar {
  display: flex;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.pipeline-segment {
  transition: flex 0.3s;
  cursor: pointer;
  position: relative;
  min-width: 2px;
}
.pipeline-segment:hover { opacity: 0.85; }
.pipeline-segment--new { background: #f59e0b; }
.pipeline-segment--contacted { background: #3b82f6; }
.pipeline-segment--in-conversation { background: #8b5cf6; }
.pipeline-segment--converted { background: #10b981; }
.pipeline-segment--closed { background: #9ca3af; }
.pipeline-segment--closed-lost { background: #ef4444; }

.pipeline-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pipeline-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-body);
  cursor: pointer;
  text-decoration: none;
}
.pipeline-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pipeline-legend-count {
  font-weight: 700;
  color: var(--color-dark);
}

/* Dashboard mini-cards */
.dashboard-mini-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dashboard-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.dashboard-mini-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--color-accent);
}
.dashboard-mini-card-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-dark);
}
.dashboard-mini-card-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-left: auto;
  white-space: nowrap;
}

/* ========== Mobile Kanban Tabs ========== */
.kanban-mobile-tabs {
  display: none;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  margin-top: 12px;
  -webkit-overflow-scrolling: touch;
}
.kanban-mobile-tab {
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  color: var(--color-body);
  transition: all 0.15s;
}
.kanban-mobile-tab.active {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

@media (max-width: 768px) {
  .kanban-board {
    flex-direction: column;
    min-height: auto;
  }
  .kanban-column {
    max-width: 100%;
    min-width: 100%;
  }
  .kanban-column-body {
    max-height: none;
  }
  .kanban-mobile-tabs { display: flex; }
  .kanban-toolbar { flex-direction: column; }
  .kanban-search { min-width: 100%; }
  .contact-panel {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 2rem);
  }
  .panel-layout { flex-direction: column; }
  .panel-left {
    border-right: none;
    border-bottom: 1px solid #f0eeeb;
    max-height: none;
    padding: 1.5rem;
  }
  .panel-right {
    width: auto;
    min-width: auto;
    max-height: none;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
  }
  .kanban-substatus-picker {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
  }
}

/* ========== Community Tabs ========== */
.community-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  margin-bottom: 32px;
}
.community-tab {
  padding: 10px 28px;
  border: 2px solid var(--color-dark);
  border-radius: 8px;
  background: none;
  color: var(--color-dark);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.community-tab:hover {
  background: var(--color-dark);
  color: #fff;
}
.community-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.community-tab-count {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.8rem;
  margin-left: 4px;
}
.community-tab.active .community-tab-count {
  background: rgba(255,255,255,0.3);
}
.community-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.community-empty {
  text-align: center;
  color: var(--color-body);
  padding: 60px 20px;
  font-size: 1.1rem;
}

/* ========== Person Cards ========== */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}
.person-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.person-card:hover {
  transform: translateY(-2px);
  border-color: rgba(254, 93, 7, 0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 3px rgba(254, 93, 7, 0.15);
}
.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--color-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-avatar span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
}
.person-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.person-city {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--color-body);
  margin-bottom: 10px;
}
.person-bio {
  font-size: 0.85rem;
  color: var(--color-body);
  line-height: 1.5;
  margin-bottom: 14px;
}
.person-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.person-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-light-bg);
  color: var(--color-dark);
  transition: background 0.2s, color 0.2s;
}
.person-link:hover {
  background: var(--color-accent);
  color: #fff;
}
.person-link svg { flex-shrink: 0; }

@media (max-width: 600px) {
  .community-tabs { flex-direction: column; align-items: stretch; }
  .community-tab { text-align: center; }
  .person-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .person-card { padding: 20px 16px; }
  .person-avatar { width: 60px; height: 60px; }
  .res-startups { margin-left: 0; padding-left: 0; padding-top: 8px; flex-direction: row; flex-wrap: wrap; }
}

/* ========== Author Page ========== */
.author-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-posts { display: flex; flex-direction: column; gap: 16px; }
.author-post-link {
  display: block;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.author-post-link:hover { border-color: var(--color-accent); }
.author-post-link h3 { font-size: 1rem; color: var(--color-dark); margin-bottom: 4px; }
.author-post-link p { font-size: 0.85rem; color: var(--color-body); margin: 0; }

/* ========== Member Profile ========== */
.member-profile-page { max-width: 800px; margin: 0 auto; padding: 60px 24px 80px; }
.member-profile-header { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.member-profile-avatar {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
  background: var(--color-light-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.member-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-profile-avatar span { font-size: 2.5rem; font-weight: 700; color: var(--color-accent); }
.member-profile-info h1 { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-dark); margin-bottom: 4px; }
.member-profile-city { display: flex; align-items: center; gap: 4px; font-size: 0.9rem; color: var(--color-body); margin-bottom: 12px; }
.member-profile-links { display: flex; gap: 8px; }
.member-profile-bio h2, .member-profile-startups h2 { font-size: 1.15rem; margin-bottom: 12px; color: var(--color-dark); }
.member-profile-bio p { color: var(--color-body); line-height: 1.7; }
.member-profile-startups { margin-top: 32px; }
.member-startup-list { display: flex; flex-direction: column; gap: 12px; }
.member-startup-card {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; transition: border-color 0.15s;
}
.member-startup-card:hover { border-color: var(--color-accent); }
.member-startup-icon { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--color-light-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.member-startup-icon img { width: 100%; height: 100%; object-fit: cover; }
.member-startup-icon span { font-weight: 700; color: var(--color-accent); }
.member-startup-card h3 { font-size: 0.95rem; color: var(--color-dark); margin-bottom: 2px; }
.member-startup-card p { font-size: 0.82rem; color: var(--color-body); margin: 0; }

@media (max-width: 600px) {
  .member-profile-header { flex-direction: column; text-align: center; }
  .member-profile-city { justify-content: center; }
  .member-profile-links { justify-content: center; }
}

/* ========== Responsive Dashboard ========== */
@media (max-width: 900px) {
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar {
    width: 100% !important;
    padding: 0;
    border-right: none;
    border-bottom: 1px solid #e8e4dd;
    flex-direction: column;
  }
  .dashboard-sidebar nav {
    display: none;
    flex-direction: column;
    padding: 8px 0;
  }
  .dashboard-sidebar.mobile-open nav {
    display: flex;
  }
  .dashboard-sidebar nav a {
    padding: 10px 20px;
    gap: 8px;
    font-size: 0.9rem;
  }
  .dashboard-sidebar nav a svg { width: 16px; height: 16px; }
  .dashboard-sidebar nav a.active { border-right: none; background: rgba(232, 108, 23, 0.06); }
  .sidebar-collapse-btn { display: none; }
  .sidebar-sep { display: none; }
  .sidebar-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    width: 100%;
  }
  .sidebar-mobile-toggle svg { transition: transform 0.2s; }
  .dashboard-sidebar.mobile-open .sidebar-mobile-toggle svg { transform: rotate(180deg); }
  .dashboard-main { padding: 24px 16px; }
  .startups-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; gap: 0; }
  .dashboard-stats { flex-direction: column; }
}

@media (max-width: 480px) {
  .startups-grid { grid-template-columns: 1fr; }
  .startup-detail-header { flex-direction: column; }
}

/* ===== About Page ===== */

/* Shared label style (orange uppercase, like .driven-content .label) */
.about-label {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.08px;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Hero */
.about-hero {
  padding: 120px 2rem 80px;
  text-align: center;
}
.about-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.about-hero-label {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.08px;
  margin-bottom: 0.75rem;
}
.about-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.625rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}
.about-hero-lead {
  font-family: var(--font-nav);
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--color-body);
  margin-bottom: 0.5rem;
}
.about-hero-sub {
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-accent);
  font-weight: 500;
}

/* Origin — side-by-side with image (driven-style) */
.about-origin {
  padding: 5rem 2rem;
  background: var(--color-header-bg);
}
.about-origin-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.about-origin-content {
  flex: 1;
}
.about-origin-content h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.about-origin-content p {
  color: var(--color-body);
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.08px;
  margin-bottom: 1rem;
}
.about-origin-content p:last-child { margin-bottom: 0; }
.about-origin-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
}
.about-origin-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
}

/* More than a Coliving — full-bleed image + text */
.about-coliving {
  background: #fff;
  padding: 0;
  box-shadow: rgba(165, 165, 165, 0.13) 0px 2px 30px 0px;
}
.about-coliving-inner {
  display: flex;
  align-items: stretch;
  max-width: 100%;
}
.about-coliving-image {
  flex: 0 0 45%;
  border-radius: 16px;
  overflow: hidden;
}
.about-coliving-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.about-coliving-content {
  flex: 1;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-coliving-content h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}
.about-coliving-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
}
.about-coliving-content p {
  font-family: var(--font-nav);
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--color-body);
  margin-bottom: 1rem;
}
.about-coliving-content p:last-child { margin-bottom: 0; }

/* What Makes Foundry Different — cards */
.about-different {
  padding: 80px 2rem;
  background: var(--color-header-bg);
  text-align: center;
}
.about-different-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.about-different-header h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 3rem;
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.about-pillar {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 2px solid transparent;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.about-pillar:hover {
  transform: translateY(-5px);
  border-color: rgba(254, 93, 7, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(254, 93, 7, 0.15);
}
.about-pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}
.about-pillar h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -1px;
}
.about-pillar p {
  font-family: var(--font-nav);
  font-size: 1.05rem;
  line-height: 1.56;
  color: var(--color-body);
}

/* Who Lives Here — image + text (reversed layout) */
.about-who {
  padding: 5rem 2rem;
  background: var(--color-header-bg);
}
.about-who-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.about-who-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
}
.about-who-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
}
.about-who-content {
  flex: 1;
}
.about-who-content h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.about-who-lead {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
}
.about-who-content p {
  color: var(--color-body);
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.08px;
  margin-bottom: 1rem;
}
.about-who-content p:last-child { margin-bottom: 0; }

/* Location — image banner + overlaid content */
.about-location-wrap {
  background: #fff;
}
.about-location {
  position: relative;
  padding: 5rem 2rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.about-location-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
}
.about-location-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
}
.about-location-content {
  flex: 1;
}
.about-location-content h2 {
  font-family: var(--font-heading);
  font-size: 3.625rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.about-location-lead {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1rem;
}
.about-location-content p {
  color: var(--color-body);
  font-family: var(--font-nav);
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.08px;
  margin-bottom: 1rem;
}
.about-location-content p:last-child { margin-bottom: 0; }

.about-contact-wrap .contact-section {
  background: var(--color-header-bg);
}

/* About page — responsive */
@media (max-width: 1024px) {
  .about-origin-inner { gap: 2.5rem; }
  .about-origin-content h2 { font-size: 2.5rem; }
  .about-who-inner { gap: 2.5rem; }
  .about-who-content h2 { font-size: 2.5rem; }
  .about-location { flex-direction: column; gap: 2rem; }
  .about-location-content h2 { font-size: 2.5rem; }
}

@media (max-width: 900px) {
  .about-hero { padding: 100px 20px 60px; }
  .about-hero h1 { font-size: 2.25rem; }
  .about-hero-lead { font-size: 1.125rem; }

  .about-origin { padding: 3rem 1.25rem; }
  .about-origin-inner { flex-direction: column; gap: 2rem; }
  .about-origin-content h2 { font-size: 2rem; }
  .about-origin-image img { height: 250px; width: 100%; }

  .about-coliving-inner { flex-direction: column; }
  .about-coliving-content { order: -1; padding: 2.5rem 1.25rem; text-align: center; }
  .about-coliving-image { flex: none; height: 250px; }
  .about-coliving-content h2 { font-size: 2rem; }

  .about-different { padding: 3rem 1.25rem; }
  .about-different-header h2 { font-size: 2rem; }
  .about-pillars { grid-template-columns: 1fr; gap: 1.5rem; }

  .about-who { padding: 3rem 1.25rem; }
  .about-who-inner { flex-direction: column; gap: 2rem; }
  .about-who-content { order: -1; }
  .about-who-content h2 { font-size: 2rem; }
  .about-who-image img { height: 250px; width: 100%; }

  .about-location { padding: 3rem 1.25rem; flex-direction: column; gap: 2rem; }
  .about-location-content { order: -1; }
  .about-location-content h2 { font-size: 2rem; }
  .about-location-image img { height: 250px; width: 100%; }
}

/* Schedule Tour page */
.tour-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 96px);
  padding: 2rem;
  background: var(--color-header-bg);
}
.tour-card {
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  text-align: center;
}
.tour-card h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}
.tour-card > p {
  font-family: var(--font-nav);
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.tour-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tour-form input,
.tour-form textarea,
.tour-form select {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.tour-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
  cursor: pointer;
}
.tour-form select {
  color: #999;
}
.tour-form select option {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px;
}
.tour-form input:focus,
.tour-form textarea:focus,
.tour-form select:focus {
  border-color: var(--color-accent);
}
.tour-form input::placeholder,
.tour-form textarea::placeholder {
  color: #999;
}
.tour-form textarea {
  resize: vertical;
  min-height: 80px;
}
.tour-form .btn {
  margin-top: 0.5rem;
  width: 100%;
}
@media (max-width: 480px) {
  .tour-card { padding: 2rem 1.5rem; }
  .tour-card h1 { font-size: 1.5rem; }
}

/* Homepage — learn more link */
.coliving-learn-more {
  display: inline-block;
  margin-top: 20px;
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}
.coliving-learn-more:hover {
  color: var(--color-accent-hover);
}
