:root{
  --bg: #0f1412;
  --panel: rgba(255,255,255,0.08);
  --panel2: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.74);
  --line: rgba(255,255,255,0.14);

  --cedar: #c08b5c;
  --pine: #7fb28a;

  --radius: 20px;
  --shadow: 0 18px 45px rgba(0,0,0,0.45);
  --max: 1120px;

  --focus: 0 0 0 4px rgba(192,139,92,0.35), 0 0 0 2px rgba(255,255,255,0.18);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(127,178,138,0.18), transparent 60%),
    radial-gradient(1000px 600px at 90% 0%, rgba(192,139,92,0.16), transparent 55%),
    radial-gradient(900px 650px at 50% 90%, rgba(255,255,255,0.08), transparent 55%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font: inherit; }

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: #ffffff;
  color: #000000;
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; top: 12px; outline: none; }

.header{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15,20,18,0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

/* Mobile header: prevent horizontal overflow and stacking issues */
@media (max-width: 560px){
  .container{ padding: 0 14px; }

  .nav{
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .brand{ flex: 1 1 auto; }

  .navlinks{
    order: 3;
    flex: 1 1 100%;
    gap: 6px;
    flex-wrap: wrap;
  }

  .navlinks a{ padding: 9px 10px; }

  .cta{
    padding: 10px 12px;
    border-radius: 13px;
  }
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.logo{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(255,255,255,0.95), transparent 60%),
    linear-gradient(135deg, var(--cedar), var(--pine));
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

.navlinks{
  display: flex;
  align-items: center;
  gap: 10px;
}

.navlinks a{
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
}
.navlinks a:hover{
  background: rgba(255,255,255,0.07);
  color: var(--text);
}
.navlinks a:focus-visible{
  outline: none;
  box-shadow: var(--focus);
}

.cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, var(--cedar), #d9b48f);
  color: rgba(15,20,18,0.95);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,0.25);
}
.cta:hover{ filter: brightness(1.03); }
.cta:focus-visible{ outline: none; box-shadow: var(--focus); }

.ghost{
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.ghost:hover{ background: rgba(255,255,255,0.11); }

.card{
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section{
  padding: 28px 0;
}

.sectionHeader{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sectionHeader h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.sectionHeader p{
  margin: 0;
  color: var(--muted);
}

/* Full-screen slideshow landing */
.heroFull{ padding: 0; }
.heroStage{
  position: relative;
  min-height: calc(100vh - 62px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px){
  .heroStage{ min-height: calc(100svh - 62px); }
}

.heroSlides{
  position: absolute;
  inset: 0;
}

.heroSlide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 800ms ease, transform 800ms ease;
}

.heroSlide.is-active{
  opacity: 1;
  transform: scale(1);
}

.heroOverlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,20,18,0.15), rgba(15,20,18,0.78) 65%, rgba(15,20,18,0.95)),
    radial-gradient(900px 450px at 15% 20%, rgba(192,139,92,0.18), transparent 60%),
    radial-gradient(900px 450px at 85% 15%, rgba(127,178,138,0.14), transparent 60%);
}

.heroContent{
  position: relative;
  z-index: 2;
  padding: 42px 0 34px;
  display: grid;
  align-content: end;
  min-height: calc(100vh - 62px);
}
@media (max-width: 560px){
  .heroContent{
    padding: 28px 0 22px;
    min-height: calc(100svh - 62px);
  }
  .heroText{ max-width: 100%; }
}

.heroText{
  max-width: 720px;
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  color: rgba(255,255,255,0.82);
  font-weight: 800;
  font-size: 13px;
}

.kdot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 7px rgba(127,178,138,0.16);
}

.heroText h1{
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.8px;
}

.heroText p{
  margin: 0;
  color: rgba(255,255,255,0.80);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 62ch;
}

.heroActions{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.heroMetaRow{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 720px;
}
@media (max-width: 720px){
  .heroMetaRow{ grid-template-columns: 1fr; }
}

.metaPill{
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}

.metaPill strong{
  display: block;
  font-size: 14px;
  letter-spacing: -0.1px;
}

.metaPill span{
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

.heroControls{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 560px){
  .heroControls{
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .iconBtn{
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}

.dots{
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.22);
}
.dot.is-active{ background: rgba(255,255,255,0.92); }

.iconBtn{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}
.iconBtn:hover{ background: rgba(255,255,255,0.12); }
.iconBtn:focus-visible{ outline: none; box-shadow: var(--focus); }

.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .grid2{ grid-template-columns: 1fr; }
}

.propertyCard{
  padding: 0;
}

.propertyMedia{
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
}

.propertyMedia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.propertyBody{
  padding: 16px;
  display: grid;
  gap: 10px;
}

.badges{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge{
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.80);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
}

.propertyBody h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.propertyBody p{
  margin: 0;
  color: var(--muted);
}

.cardActions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.disclaimer{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

.footer{
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
}

.footerGrid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}
@media (max-width: 900px){
  .footerGrid{ grid-template-columns: 1fr; }
}

.small{ font-size: 13px; }

/* Property page */
.pageHeader{
  padding: 26px 0 10px;
}
.pageHeader h1{
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.4px;
}
.pageHeader p{
  margin: 8px 0 0;
  color: var(--muted);
}

.gallery{
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
}
@media (max-width: 950px){
  .gallery{ grid-template-columns: 1fr; }
}

.galleryMain{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.galleryMain img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}

.galleryThumbs{
  display: grid;
  gap: 10px;
}

.thumb{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
  cursor: pointer;
}
.thumb:hover{ background: rgba(255,255,255,0.10); }
.thumb:focus-visible{ outline: none; box-shadow: var(--focus); }

.thumb img{
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
}

.details{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.detailRow{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px){
  .detailRow{ grid-template-columns: 1fr; }
}

.panel{
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
}

.panel h3{ margin: 0 0 8px; }
.panel p{ margin: 0; color: var(--muted); }

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

/* Map */
.mapCard{ overflow: hidden; }
.mapFrameWrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
}
@media (max-width: 520px){
  .mapFrameWrap{ aspect-ratio: 4 / 3; }
}
.mapFrame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.mapNote{
  padding: 12px 14px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .heroSlide{ transition: none; }
}


/* ===============================
   PROPERTY PHOTO CAROUSEL
   =============================== */

.carousel{ margin-top: 6px; }

.carouselViewport{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  touch-action: pan-y;
  user-select: none;
}

.carouselTrack{
  display: flex;
  width: 100%;
  transform: translateX(0%);
  transition: transform 380ms ease;
  will-change: transform;
}

.carouselSlide{
  flex: 0 0 100%;
  min-width: 100%;
}

.carouselSlide img{
  width: 100%;
  height: min(68vh, 620px);
  object-fit: cover;
  display: block;
}

@media (max-width: 560px){
  .carouselSlide img{ height: min(52svh, 420px); }
}

.carouselBtn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.carouselBtn:hover{ background: rgba(0,0,0,0.36); }
.carouselBtn:focus-visible{ outline: none; box-shadow: var(--focus); }

.carouselBtn.prev{ left: 12px; }
.carouselBtn.next{ right: 12px; }

.carouselFooter{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
}

.carouselDots{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.carouselDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}

.carouselDot.is-active{ background: rgba(255,255,255,0.92); }
.carouselDot:focus-visible{ outline: none; box-shadow: var(--focus); }

.carouselCount{
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 560px){
  .carouselFooter{ flex-direction: column; align-items: flex-start; }
  .carouselBtn{ width: 42px; height: 42px; border-radius: 14px; }
}
/* Fixes for property carousels and property page layout */
.detailRow{
  align-items: start;
}

.carouselBtn{
  z-index: 10;
  pointer-events: auto;
}
 /* =========================================
   PROPERTY PAGES LAYOUT FIXES
   Paste at bottom of styles.css
   ========================================= */

/* Make property page sections feel tighter and aligned */
.pageHeader{
  padding: 22px 0 8px;
}

.details{
  margin-top: 14px;
  gap: 14px;
}

/* Ensure 2-column rows align and do not collapse oddly */
.detailRow{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

/* Panels should fill the row height so columns feel even */
.detailRow > .panel{
  height: 100%;
}

/* Better typography spacing */
.panel h3{
  margin: 0 0 10px;
}
.panel p{
  margin: 0;
}
.panel .list{
  margin: 0;
  padding-left: 18px;
}

/* Carousel should match the rest of the cards and not look "detached" */
.carousel{
  margin-top: 0;
}

.carouselViewport{
  border-radius: var(--radius);
  overflow: hidden;
  border-bottom: 0;
}

/* Add a subtle divider between image area and dots footer */
.carouselFooter{
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  padding: 10px 14px;
}

/* Keep arrows consistent and not floating oddly */
.carouselBtn{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
}

.carouselBtn.prev{ left: 10px; }
.carouselBtn.next{ right: 10px; }

/* Make the image height consistent and less "stretched" on large screens */
.carouselSlide img{
  height: clamp(320px, 52vh, 560px);
}

/* Mobile: stack everything cleanly */
@media (max-width: 900px){
  .detailRow{
    grid-template-columns: 1fr;
  }
}
