:root {
  --sand: #f5f1ea;
  --bone: #faf7f2;
  --ink: #1a1f1e;
  --muted: #6b6e6b;
  /* Refined navy-blue, a deeper shade of the Terrasol Elite brand cobalt */
  --teal: #2a3d8f;
  --teal-dark: #1d2c6a;
  --gold: #c89860;
  --line: #e6e1d8;
  --shadow: 0 20px 60px rgba(20, 30, 28, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }

p { color: var(--muted); font-size: 1.02rem; }

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 0;
  background: var(--bone);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 100px;
  padding: 14px 14px 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 30px rgba(20, 30, 28, 0.06);
}

.nav.solid {
  position: sticky;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}

.nav.solid .nav-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo span { color: var(--teal); font-style: italic; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--ink);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--teal-dark); color: white !important; }

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

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,28,0.2) 0%, rgba(20,30,28,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 32px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero h1 {
  color: white;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin-bottom: 24px;
  font-weight: 300;
}

.hero h1 em { font-style: italic; color: #f0e4cf; }

.hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Smaller hero on inner pages */
.hero.inner { min-height: 60vh; }
.hero.inner h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: white; }

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

.btn-gold:hover { background: #b07f47; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.2s;
}

.link-arrow:hover { gap: 12px; }

/* ============ SECTIONS ============ */
section {
  padding: 100px 0;
}

.section-tight { padding: 60px 0; }

.section-dark {
  background: var(--ink);
  color: white;
}

.section-dark h1, .section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,0.7); }

.section-sand { background: var(--sand); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.section-header p {
  margin-top: 20px;
  font-size: 1.1rem;
}

/* ============ TWO PATHS (HOMEPAGE) ============ */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.path-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.path-card:hover { transform: translateY(-6px); }

.path-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
}

.path-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  z-index: 2;
  color: white;
}

.path-card h2 {
  color: white;
  font-size: 2.4rem;
  margin-bottom: 10px;
  font-style: italic;
}

.path-card p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }

.path-card .link-arrow { color: white; }

/* ============ PROPERTY GRID ============ */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.property-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(20, 30, 28, 0.12);
}

.property-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.property-body {
  padding: 28px;
}

.property-body h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.property-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.property-body p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.property-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

.property-price span {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
}

/* ============ REVIEWS CAROUSEL (3-up scrolling) ============ */
.reviews-section {
  background: var(--sand);
  padding: 110px 0;
  overflow: hidden;
}

.reviews-carousel {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 64px;
}

.review-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.review-track::-webkit-scrollbar { display: none; }

.review-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  background: white;
  border-radius: 14px;
  padding: 38px 32px 32px;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.review-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.28em;
  margin-bottom: 22px;
}

.review-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
  position: relative;
}

.review-quote::before {
  content: '\201C';
  position: absolute;
  font-size: 3.2rem;
  color: var(--gold);
  opacity: 0.2;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}

.review-author { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }

.review-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

.review-source {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--line);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(20,30,28,0.08);
}

.review-nav:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.review-nav.prev { left: 8px; }
.review-nav.next { right: 8px; }

.review-dots { display: none; }

@media (max-width: 1000px) {
  .review-slide { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 700px) {
  .reviews-carousel { padding: 0 16px; }
  .review-slide { flex: 0 0 86%; padding: 32px 26px 26px; }
  .review-nav { display: none; }
}

/* ============ BLOG / ARTICLE ============ */
.blog-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.blog-item h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-item p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ============ FILTER TABS ============ */
.filter-tabs {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 auto 60px;
  width: 100%;
  text-align: center;
}

.filter-tab {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 18px 38px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-tab.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.property-card.is-hidden {
  display: none !important;
}

/* ============ CATEGORY TILES ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-tile {
  background: white;
  padding: 36px 28px;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: all 0.3s;
  cursor: pointer;
}

.category-tile:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.category-tile h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-style: italic;
}

.category-tile p { font-size: 0.95rem; }

/* ============ FEATURES / AMENITIES ============ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.feature h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-style: italic;
}

.feature p { font-size: 0.92rem; }

/* ============ SPLIT SECTIONS ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-img {
  aspect-ratio: 4/5;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.split-content h2 { margin-bottom: 24px; }
.split-content p { margin-bottom: 20px; font-size: 1.05rem; }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--teal);
  color: white;
  padding: 90px 0;
  text-align: center;
}

.cta-band h2 { color: white; font-size: 3rem; margin-bottom: 16px; font-style: italic; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.faq-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--teal);
  transition: transform 0.2s;
}

details[open] .faq-q::after {
  content: '−';
}

.faq-a {
  padding-top: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============ FORMS ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 60px;
}

.form-card {
  background: white;
  padding: 50px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.form-card h3 { font-size: 1.7rem; margin-bottom: 8px; font-style: italic; }
.form-card p { margin-bottom: 28px; font-size: 0.95rem; }

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bone);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

footer h5 {
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-style: italic;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; font-size: 0.92rem; }
footer a:hover { color: white; }

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: white;
  background: var(--gold);
  border-color: var(--gold);
}

.social-links svg { width: 16px; height: 16px; }

/* ============ MISC ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  margin: 60px 0;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.discount-banner {
  background: var(--gold);
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 60;
}

.discount-banner strong { letter-spacing: 0.15em; }

/* ============ GUIDE / LEAD MAGNET ============ */
.guide-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.guide-mockup {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--sand), white);
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(20,30,28,0.2);
  background-size: cover;
  background-position: center;
}

.checklist {
  list-style: none;
  margin: 30px 0;
}

.checklist li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: bold;
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .paths, .property-grid, .category-grid, .features, .split, .form-grid, .guide-hero, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 70px 0; }
  .form-card { padding: 32px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ============ GUESTY SEARCH WIDGET SECTION ============ */
.widget-section {
  background: var(--sand);
  padding: 64px 0 56px;
  border-top: 1px solid #e8e4dc;
}
.widget-section .container { max-width: 960px; }
.widget-header { text-align: center; margin-bottom: 32px; }
.widget-header .eyebrow { color: var(--gold); }
.widget-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.widget-header p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
#search-widget_IO312PWQ { width: 100%; box-sizing: border-box; }

/* Surgical revert: undo only the site-wide resets (margin/padding zero, p overrides)
   inside the Guesty widget so its own component spacing renders correctly. */
#search-widget_IO312PWQ *,
#search-widget_IO312PWQ *::before,
#search-widget_IO312PWQ *::after {
  margin: revert;
  padding: revert;
}
#search-widget_IO312PWQ p {
  color: revert;
  font-size: revert;
}
#search-widget_IO312PWQ input,
#search-widget_IO312PWQ select,
#search-widget_IO312PWQ button {
  font-family: revert;
}
