body, html {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica', sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  display: inline-block;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#heroVideo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listings {
  padding: 0;
  margin: 0;
  width: 100%;
}
.listing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.listings-map-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
  width: 100%;
}

.listing-sidebar {
  width: 30%;
  height: 100%;
  overflow-y: auto;
  background: #f5f5f5;
  padding: 1rem;
  box-sizing: border-box;
}

.map-area {
  width: 70%;
  height: 100%;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.listing-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.contact {
  padding: 2rem;
  background: #fff;
}

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

input, textarea {
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

button {
  background-color: #111;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 1rem;
}

#map {
  height: 100%;
  width: 100%;
  border-radius: 0;
}

.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 400px;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .listings-map-wrapper {
    flex-direction: column;
  }

  .listing-sidebar {
    width: 100%;
    height: auto;
    max-height: 300px;
  }

  .map-area {
    height: 400px;
  }

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

  .nav-links {
  display: flex !important;
  flex-direction: row;
  gap: 1rem;
  background: none;
  padding: 0;
}

.menu-toggle {
  display: none !important;
}
}

@media (max-width: 1024px) {
  .listings-map-wrapper {
    flex-direction: column;
    height: auto;
  }

  .listing-sidebar, .map-area {
    width: 100%;
    height: auto;
  }

  .listing-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .map-area {
    height: 400px;
  }
}

.map-area {
  width: 70%;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

#map {
  border: 1px solid #ccc;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .map-area {
    flex-grow: 1;
    height: calc(100vh - 300px); /* fills screen minus estimated header/listings */
  }

  #map {
    height: 100% !important;
    min-height: 300px;
  }
}

@media (max-width: 1024px) {
  .listings-map-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }

  .listing-sidebar {
    height: auto;
    max-height: 50%;
    width: 100%;
  }

  .map-area {
    flex-grow: 1;
    height: 50%;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  #map {
    height: 100% !important;
    width: 100% !important;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.navbar.transparent {
  background-color: transparent;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  color: white;
}

.navbar.black {
  background-color: black;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Prevent navbar from overlapping listings content */
.listings-page .listings-map-wrapper {
  padding-top: 80px;
}

/* Scrolled state for navbar */
.navbar.scrolled {
  background-color: black !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


/* Solid black navbar for listings */
body.listings-page .navbar {
  background-color: black !important;
  color: white !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}


/* Home page transparent navbar */
body.home-page .navbar {
  background-color: transparent;
  backdrop-filter: blur(4px);
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Listings page solid black navbar */
body.listings-page .navbar {
  background-color: black;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
}


/* Listings page: fully solid black navbar */
body.listings-page .navbar {
  position: static !important;
  background-color: #000 !important;
  color: white !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: none !important;
}


/* Remove top padding for static navbar on listings page */
body.listings-page .listings-map-wrapper {
  padding-top: 0 !important;
}
.listing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.listing-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}
.listing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 0;
}
@media (max-width: 768px) {
  .listing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
}

.listing-card h3,
.listing-card p {
  text-align: center;
}
.section-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: #1a1a1a;
}

/* === Featured Videos Section Fix (Reapplied) === */
.listing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.listing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 0;
}

.listing-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .listing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
}

/* === Enforce equal size and full row fit for listing videos === */
.listing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.listing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 0;
}

.listing-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .listing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

  .listing-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}
}

/* === Style for h2 Headings (e.g., "Featured Listings") === */
h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  padding: 2rem 0 1.5rem;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}
.highlight {
  outline: 3px solid #007BFF;
  box-shadow: 0 0 10px #007BFF;
  transition: outline 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* === Responsive Improvements for Listings Page === */
@media (max-width: 1200px) {
  .listing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .listings-map-wrapper {
    flex-direction: column;
    height: auto;
  }

  .listing-sidebar {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 1rem;
  }

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

  .map-area {
    width: 100%;
    height: 400px;
    padding: 1rem;
    box-sizing: border-box;
  }

  .listing-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .listing-card h3 {
    font-size: 1rem;
  }

  .listing-card p {
    font-size: 0.9rem;
  }

  .carousel-prev,
  .carousel-next {
    font-size: 12px;
    padding: 2px 6px;
  }

  .carousel-dot {
    height: 8px;
    width: 8px;
    margin: 0 3px;
  }
}

/* === Force white text in navbar and all children === */



/* FINAL OVERRIDES */

/* Default navbar text is white */
.navbar,
.navbar * {
  color: white;
  fill: white;
}

/* Listings page: force white */
body.listings-page .navbar,
body.listings-page .navbar * {
  color: white !important;
  fill: white !important;
}

/* Scrolled state: force white */
.navbar.scrolled,
.navbar.scrolled * {
  color: white !important;
  fill: white !important;
}

/* Transparent home page navbar: force black */
body.home-page .navbar.transparent,
body.home-page .navbar.transparent * {
  color: black !important;
  fill: black !important;
}
.carousel-image {
  transition: transform 0.6s ease-in-out;
}
.slide-scale-out {
  transform: translateX(-100%) scale(1.1);
}
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 1rem;
  }

  .filter-bar label {
    flex: 0 0 auto;
    min-width: 120px;
  }

  .price-input-wrapper,
  .filter-bar select {
    font-size: 0.85rem;
    height: 36px;
  }
}

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

.filter-bar label {
  flex: 1 1 160px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.filter-bar select,
.price-input-wrapper {
  width: 100%;
  height: 40px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  box-sizing: border-box;
}

.price-input-wrapper {
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.price-input-wrapper input[type="number"] {
  border: none;
  outline: none;
  padding: 4px 8px;
  font-size: 0.9rem;
  width: 100%;
  background: transparent;
}

.carousel {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.carousel-dots {
  text-align: center;
  margin-top: 10px;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.6);
  color: #333;
  border: none;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-dots {
  text-align: center;
  margin-top: 8px;
}

.carousel-dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot.active {
  background-color: #333;
}

@keyframes slide-loop {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 600px) {
  .listing-card {
    display: flex;
    flex-direction: column;
    height: auto;
  }
}



.listing-card {

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: auto;
}
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.listing-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
}

.listing-card {

  width: 100%;
  max-width: 840px;
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
  margin: 0 auto;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.05s ease-in-out;

  display: flex;
  flex-direction: column;
  height: auto;
}

.listing-card:hover {
  transform: scale(1.01);
}



@media (max-width: 768px) {
  

  .listing-card {

    padding: 0.75rem;
  
  display: flex;
  flex-direction: column;
  height: auto;
}
}

.listing-card {

  width: 100%;
  max-width: 840px;
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
  margin: 0 auto;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
  min-

  .listing-card {
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .listing-card {
    margin: 0 1rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    height: auto;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.listing-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
}

.listing-card {

  width: 100%;
  max-width: 840px;
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
  margin: 0 auto;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: transform 0.05s ease-in-out;
  background-color: #fff;

  display: flex;
  flex-direction: column;
  height: auto;
}

.listing-card:hover {
  transform: scale(1.01);
}



@media (max-width: 768px) {
  .listing-card {
    margin: 0 0.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: auto;
  }
}

  h2,
  p {
    font-size: 1rem;
    line-height: 1.4;
  }

.listing-card {

  margin-left: auto !important;
  margin-right: auto !important;

  display: flex;
  flex-direction: column;
  height: auto;
}

@media (max-width: 768px) {
  .listing-card {
    /* If you meant to set a minimum height, write it out fully, e.g.: */
    /* min-height: 200px; */

    display: flex;
    flex-direction: column;
    height: auto;
  }
}
  
}

@media (max-width: 768px) {
  
}
