@import "variables.css";

/* ===================================================================
   Demo Disclaimer Banner
=================================================================== */
.demo-banner {
  background: #F5C518;
  color: #1a1200;
  border-bottom: 3px solid #c9a000;
  text-align: center;
  padding: 0.55rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.demo-banner strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ===================================================================
   Header / Nav
=================================================================== */
header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 1.5rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo img {
  height: 72px;
}

nav .nav-links {
  list-style: none;
  display: flex;
  gap: 2.25rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: auto;
  margin-right: 2rem;
}

nav .nav-links li a {
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

nav .nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.5px;
  left: 0;
  bottom: -4px;
  background: var(--gold);
  transition: width 0.25s ease;
}

nav .nav-links li a:hover {
  color: var(--gold-hover);
}

nav .nav-links li a:hover::after {
  width: 100%;
}


/* ===================================================================
   Footer
=================================================================== */
.site-footer {
  background: var(--dark);
  color: #d0c8bc;
  padding: 2.5rem 2rem;
  font-family: 'Open Sans', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1 1 250px;
}

.footer-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.9;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact a {
  color: var(--gold);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--dark-mid);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

.tech-preview-btn,
.main-site-btn {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold);
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.tech-preview-btn:hover,
.main-site-btn:hover {
  background: var(--gold);
  color: var(--dark);
}


/* ===================================================================
   Hero
=================================================================== */
.hero {
  position: relative;
  height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: center/cover no-repeat url('../images/hero-home.jpg');
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 2, 0.52);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(800px, 90%);
  margin: 0 auto;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-sub {
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.35);
}

.hero-search input {
  flex: 1;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  border: none;
  outline: none;
  color: var(--text-1);
  background: #fff;
}

.hero-search button {
  padding: 0.95rem 1.75rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.hero-search button:hover {
  background: var(--gold-hover);
}


/* ===================================================================
   Shared Section Scaffolding
=================================================================== */
.section {
  padding: 80px 20px;
  background: var(--surface-1);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-3);
  font-size: 1rem;
}


/* ===================================================================
   Services
=================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.service-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ===================================================================
   Testimonials
=================================================================== */
.testimonials-section {
  background: center/cover fixed no-repeat url("../images/testimonials-bg.jpg");
  color: #fff;
  padding: 6rem 0;
  overflow: hidden;
  position: relative;
}

.testimonials-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 2, 0.65);
  z-index: 1;
}

.testimonials-inner {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.testimonials-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 2.5rem;
  color: inherit;
}

.testimonial-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.testimonial-track {
  display: grid;
  grid: 1fr / 1fr;
  width: 100%;
  position: relative;
}

.testimonial-card {
  grid-area: 1 / 1;
  padding: 2.5rem 2.25rem;
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);

  opacity: 0;
  transform: translateX(20px);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.quote {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
  color: #f0ebe4;
}

.author {
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.testimonial-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  appearance: none;
  border: 0;
  cursor: pointer;
  z-index: 3;
  padding: 0.55rem 0.9rem;
  border-radius: 50%;
  line-height: 1;
  font-size: 1.7rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  transition: background 200ms ease;
}

.testimonial-btn:hover { background: rgba(255, 255, 255, 0.32); }
.testimonial-btn.prev  { left: -5rem; }
.testimonial-btn.next  { right: -5rem; }


/* ===================================================================
   What Makes Us Unique
=================================================================== */
.unique-section {
  background: var(--surface-2);
  padding: 5rem 2rem;
  text-align: center;
}

.unique-container {
  max-width: 1000px;
  margin: 0 auto;
}

.unique-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--garnet);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.unique-content p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  text-align: left;
}

.unique-content p:last-child {
  margin-bottom: 0;
}


/* ===================================================================
   About Page
=================================================================== */
.about-hero {
  background: url("../images/hero-about.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 2, 0.58);
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.about-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.15rem;
  color: #f0ebe4;
  line-height: 1.65;
}

.about-team {
  background: var(--surface-1);
  padding: 5rem 2rem;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.team-card {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  transition: box-shadow 0.3s ease;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-photo img {
  width: 280px;
  height: 280px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.team-info {
  flex: 1;
  text-align: left;
}

.team-info h2 {
  font-family: 'Playfair Display', serif;
  color: var(--text-1);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.team-info p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.team-contact {
  margin-top: 1.2rem;
  text-align: center;
}

.team-contact h3 {
  color: var(--text-1);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-contact .title {
  color: var(--garnet);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.team-contact .license {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.team-contact .phone {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.team-contact .email a {
  color: var(--garnet);
  font-size: 0.9rem;
  text-decoration: none;
}

.team-contact .email a:hover {
  text-decoration: underline;
}

.team-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ===================================================================
   Contact Page
=================================================================== */
.contact-page {
  width: min(1000px, 100%);
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}

.contact-page h1 {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin: 0 0 2rem;
  color: var(--text-1);
}

.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-container form {
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

.contact-page label {
  font-weight: 600;
  color: var(--text-2);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  background: var(--surface-1);
  color: var(--text-1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-page input:focus,
.contact-page textarea:focus {
  outline: none;
  border-color: var(--garnet);
  box-shadow: 0 0 0 3px rgba(120, 47, 64, 0.12);
}

.contact-page button {
  justify-self: start;
  background: var(--garnet);
  color: #fff;
  border: 0;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 0.25rem;
}

.contact-page button:hover {
  background: var(--garnet-hover);
}

.contact-page button:active {
  transform: translateY(1px);
}

.contact-info {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.5rem;
  font-family: 'Open Sans', sans-serif;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 1rem;
  color: var(--text-1);
  font-size: 1.35rem;
}

.contact-info p {
  margin: 0.6rem 0;
  color: var(--text-2);
  line-height: 1.65;
  font-size: 0.95rem;
}

.success-message {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-weight: 600;
  text-align: center;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--text-1);
  font-size: 0.95rem;
}

.contact-page .g-recaptcha {
  margin: 0.75rem 0 0;
  transform-origin: 0 0;
}


/* ===================================================================
   Featured Listings (demo home page)
=================================================================== */
.featured-section {
  background: var(--surface-2);
  padding: 4.5rem 2rem;
}

.featured-carousel-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.featured-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.featured-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-1);
}

.featured-header a {
  font-size: 0.85rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.featured-header a:hover {
  color: var(--gold-hover);
}

.featured-carousel {
  overflow: hidden;
}

.featured-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.35s ease;
}

.featured-card {
  flex: 0 0 calc(33.333% - 1rem);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.featured-card img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
}

.featured-card-placeholder {
  width: 100%;
  height: 195px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.85rem;
}

.featured-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.featured-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-1);
}

.featured-card-location {
  font-size: 0.88rem;
  color: var(--text-2);
}

.featured-card-details {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 600;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.featured-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
  justify-content: center;
}

.featured-nav-btn {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--text-2);
}

.featured-nav-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}


/* ===================================================================
   Listings Page — Hero & Search
=================================================================== */
.listings-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #4a4a4a 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}

.listings-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.listings-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}

.listings-hero p {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.listings-search {
  display: flex;
  max-width: 480px;
  margin: 1.1rem auto 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.25);
}

.listings-search input {
  flex: 1;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  border: none;
  outline: none;
  color: var(--text-1);
}

.listings-search button {
  padding: 0.7rem 1.25rem;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.listings-search button:hover {
  background: var(--gold-hover);
}


/* ===================================================================
   Filter Bar
=================================================================== */
.filter-bar-section {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 1.5rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filter-group label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
}

.filter-group select {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: 'Open Sans', sans-serif;
  background: var(--surface-1);
  color: var(--text-1);
  cursor: pointer;
  min-width: 120px;
  transition: border-color 0.2s;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-apply {
  padding: 0.42rem 1.25rem;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.82rem;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.2s;
}

.filter-apply:hover { background: var(--gold-hover); }

.filter-reset {
  padding: 0.42rem 0.75rem;
  color: var(--text-3);
  font-size: 0.82rem;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  align-self: flex-end;
  border-radius: 4px;
  transition: color 0.2s;
}

.filter-reset:hover { color: var(--text-1); }

/* Mobile-only toggle; hidden on desktop */
.filter-toggle {
  display: none;
}

/* On desktop this wrapper is invisible to flex layout */
.filter-groups-wrap {
  display: contents;
}

/* Dot indicator for active filters */
.filter-active-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--garnet);
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}


/* ===================================================================
   Listings Grid & Cards
=================================================================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.listing-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.listing-photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.listing-photo-placeholder {
  background: var(--surface-3);
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.listing-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.listing-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-1);
}

.listing-location {
  color: var(--text-2);
  font-size: 0.9rem;
}

.listing-details {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 600;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: 0.15rem;
}

.listing-remarks {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0.1rem 0 0;
  flex: 1;
}

.listing-id {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.listings-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
}

.pagination-count {
  color: var(--text-3);
  font-size: 0.88rem;
  font-family: 'Open Sans', sans-serif;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  background: var(--garnet);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
  min-width: 2.2rem;
  text-align: center;
  display: inline-block;
}

.pagination-btn:hover {
  background: var(--garnet-hover);
}

.pagination-btn.current {
  background: var(--gold);
  color: #222;
  cursor: default;
}

.pagination-btn.disabled {
  background: #ccc;
  color: #888;
  cursor: default;
  pointer-events: none;
}

.pagination-ellipsis {
  color: var(--text-3);
  padding: 0 0.2rem;
  font-size: 0.95rem;
  user-select: none;
}

.pagination-info {
  color: var(--text-3);
  font-size: 0.9rem;
}

.listings-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-3);
  font-size: 1.05rem;
}


/* ===================================================================
   Listing Detail Page
=================================================================== */
.detail-section {
  padding: 3rem 1.5rem 5rem;
  background: var(--surface-2);
  min-height: 80vh;
}

.detail-container {
  max-width: 860px;
  margin: 0 auto;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.detail-back:hover { color: var(--gold); }

.detail-photo {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.detail-photo-placeholder {
  width: 100%;
  height: 260px;
  background: var(--surface-3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-1);
}

.detail-price-suffix {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 0.15rem;
}

.detail-status {
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-3);
  color: var(--text-3);
}

.detail-status.active  { background: #e0f0e6; color: #266037; }
.detail-status.closed  { background: #f2e8db; color: #7a4f1a; }
.detail-status.pending { background: #dce9f5; color: #1a4a7a; }

.detail-address {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

.detail-stats {
  display: flex;
  gap: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-1);
}

.stat-label {
  font-size: 0.72rem;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  font-weight: 700;
}

.detail-type {
  font-size: 0.82rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-3);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
}

.detail-remarks {
  margin-bottom: 2rem;
}

.detail-remarks h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-1);
}

.detail-remarks p {
  line-height: 1.85;
  color: var(--text-2);
  font-size: 0.98rem;
}

.detail-street-address {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.2rem;
  font-family: 'Open Sans', sans-serif;
}

/* Property details / financial facts grid */
.detail-facts {
  margin-bottom: 2rem;
}

.detail-facts-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--text-1);
}

.detail-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
}

.detail-fact {
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.detail-fact:nth-last-child(-n+3):nth-child(3n+1),
.detail-fact:nth-last-child(-n+2):nth-child(3n+2),
.detail-fact:last-child {
  border-bottom: none;
}

.detail-fact dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 0.25rem;
}

.detail-fact dd {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-1);
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}

/* Footer: meta + CTA */
.detail-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-mls {
  font-size: 0.82rem;
  color: var(--text-3);
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.02em;
}

.detail-dom {
  font-size: 0.82rem;
  color: var(--text-3);
  font-family: 'Open Sans', sans-serif;
}

.detail-agent {
  font-size: 0.82rem;
  color: var(--text-2);
  font-family: 'Open Sans', sans-serif;
}

.detail-cta {
  display: inline-block;
  padding: 0.75rem 2.25rem;
  background: var(--garnet);
  color: #fff;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.detail-cta:hover { background: var(--garnet-hover); }


/* ===================================================================
   Photo Gallery (detail page)
=================================================================== */
.photo-gallery {
  margin-bottom: 1.5rem;
}

.gallery-main img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--border-light);
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.6;
  transition: border-color 0.15s, opacity 0.15s;
}

.gallery-thumb:hover { opacity: 0.9; }

.gallery-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}
