:root {
  --bg-color: #FDFBF7; /* Cleaner white sand */
  --text-dark: #1C355E; /* Nantucket Navy */
  --text-light: #5A6D7C;
  --teal: #2A7B9B; /* Ocean Teal */
  --teal-hover: #1E607A;
  --sand-light: #F4E8D6; /* Soft sand for circle */
  --sand-text: #C49A52; /* Darker sand for script text */
  --border-color: #EAE3D5;
  --white: #FFFFFF;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  color: var(--text-dark);
  font-weight: 600;
  letter-spacing: 0px;
}

a {
  text-decoration: none;
  color: var(--teal);
}

.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 5%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  z-index: 1000;
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(249, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  padding: 15px 5%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo a {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.right-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.left-links {
  justify-content: flex-end;
}

.right-links {
  justify-content: flex-start;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-dark);
}

.nav-links a.btn-teal {
  color: var(--white);
}

.nav-links a.btn-teal:hover {
  color: var(--white);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-teal {
  background-color: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background-color: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(24, 160, 154, 0.2);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--white);
}

/* Hero Section */
.hero-split {
  display: flex;
  align-items: center;
  gap: 5%;
  padding-top: 160px;
  min-height: 100vh;
  padding-bottom: 100px;
}

.hero-left {
  flex: 1;
}

.hero-right {
  flex: 1.1;
  position: relative;
}

.eyebrow-teal {
  color: var(--teal);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 25px;
}

.hero-left h1 {
  font-size: 5.5rem;
  line-height: 1.05;
  margin-bottom: 30px;
}

.script-accent {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--sand-text);
  letter-spacing: 0;
}

.script-dark {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0;
}

.text-yellow {
  color: #E3B069;
}

.text-teal {
  color: var(--teal);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
  max-width: 500px;
}

.hero-stats .stat {
  flex: 1;
  border-right: 1px solid var(--border-color);
  padding: 0 20px;
}

.hero-stats .stat:first-child { padding-left: 0; }
.hero-stats .stat:last-child { border-right: none; }

.stat strong {
  display: block;
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Images */
.sand-circle {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background-color: var(--sand-light);
  border-radius: 50%;
  z-index: 0;
}

.main-img-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.main-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.floating-badge {
  position: absolute;
  top: -20px;
  right: 40px;
  background: var(--white);
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  z-index: 2;
}

.overlap-img {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 12px solid var(--bg-color);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
  .hero-split {
    flex-direction: column;
    padding-top: 120px;
  }
  .hero-left {
    margin-bottom: 80px;
  }
  .hero-left h1 {
    font-size: 4rem;
  }
  .overlap-img {
    left: 20px;
    bottom: -40px;
    width: 200px;
    height: 240px;
  }
  .sand-circle {
    width: 300px;
    height: 300px;
  }
  .nav-links {
    display: none;
  }
}

/* Sections */
.section {
  padding: 100px 0;
}

.sec-head {
  margin-bottom: 70px;
}

.sec-head h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.sec-head p {
  color: var(--text-light);
  max-width: 600px;
  font-size: 1.1rem;
}

/* Collage Grid */
.collage-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 20px;
  margin-top: 50px;
}

.collage-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
}

.collage-img:hover {
  transform: translateY(-5px) scale(1.02);
}

.pool-img {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.kitchen-img {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.firepit-img {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* Amenities */
.amen-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.afeat {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.afeat:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.afeat .ic {
  width: 45px;
  height: 45px;
  margin-bottom: 20px;
  color: var(--teal);
}

.afeat h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.afeat p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.amen-toggle {
  margin-top: 30px;
}

#amen-all {
  display: none;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease;
}

#amen-all.show {
  display: block;
}

.amen-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
}

.amen-cat h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.amen-cat ul {
  list-style: none;
}

.amen-cat li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.amen-cat li .sub {
  font-size: 0.85rem;
  color: var(--text-light);
  display: block;
  margin-top: 3px;
}

.amen-cat li .new {
  font-size: 0.7rem;
  background: var(--teal);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Gallery */
.gallery {
  background-color: var(--white);
  border-radius: 40px;
  padding: 100px 5%;
  margin: 50px 5%;
  border: 1px solid var(--border-color);
}

.gallery .wrap {
  max-width: 1200px;
  padding: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 350px;
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.9);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* Reviews Carousel */
.reviews-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.reviews-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.review-card {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 items visible */
  scroll-snap-align: start;
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .review-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .review-card {
    flex: 0 0 100%;
  }
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--teal);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
}

.read-more-btn:hover {
  color: var(--teal-hover);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.review-stars {
  color: var(--teal);
  margin-bottom: 25px;
  font-size: 1.4rem;
  letter-spacing: 3px;
}

.review-text {
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  color: var(--text-dark);
  flex-grow: 1;
}

.review-author strong {
  display: block;
  font-family: 'Lora', serif;
  font-size: 1.2rem;
}

.review-author span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 100px 0 60px;
  text-align: center;
}

footer h3 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 30px;
}

footer p {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-top: 60px;
}

.contact-email {
  margin-top: 20px;
  margin-bottom: 5px;
  font-size: 1.1rem;
  opacity: 1;
}

.contact-email a {
  color: var(--sand-text);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

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

.platform-link {
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.platform-link.airbnb {
  color: #FF5A5F;
}

.platform-link.vrbo {
  color: #003366;
}

.platform-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 40, 34, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.show .lightbox-content {
  transform: scale(1);
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-lightbox:hover {
  color: var(--teal);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.lb-nav:hover {
  background: var(--teal);
}

.lb-prev { left: 5%; }
.lb-next { right: 5%; }

#lightbox-caption {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.2rem;
  font-family: 'Lora', serif;
  letter-spacing: 1px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
