/* Hacienda Panorama — boutique tropical luxury */

:root {
  --sand: #f7f1e8;
  --sand-deep: #efe6d8;
  --cream: #fbf8f3;
  --ink: #1c2a22;
  --ink-soft: #3d4f44;
  --muted: #6b7a70;
  --green: #1e4d3a;
  --green-deep: #143528;
  --green-soft: #2d6b52;
  --gold: #c4a574;
  --gold-soft: #e8d5b5;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(28, 42, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(28, 42, 34, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --narrow: 720px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-soft);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 42, 34, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--green);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--green);
}

.header-nav .btn {
  color: var(--white);
}

.header-nav .btn:hover {
  color: var(--white);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
  .header-cta-mobile {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(30, 77, 58, 0.28);
}

.btn-primary:hover {
  background: var(--green-soft);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(30, 77, 58, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(30, 77, 58, 0.25);
}

.btn-ghost:hover {
  background: var(--sand);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 53, 40, 0.15) 0%, rgba(20, 53, 40, 0.35) 40%, rgba(14, 36, 28, 0.88) 100%),
    linear-gradient(90deg, rgba(14, 36, 28, 0.45) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 0.85rem;
  max-width: 16ch;
  text-wrap: balance;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero .eyebrow {
  color: var(--gold-soft);
}

.tagline {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-weight: 300;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1rem;
}

.chips li {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.social-proof {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.social-proof .star {
  color: var(--gold);
}

.social-proof .sep {
  opacity: 0.5;
}

.social-proof .muted {
  opacity: 0.8;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: var(--narrow);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head .eyebrow {
  color: var(--green-soft);
  margin-bottom: 0.4rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

/* Gallery */
.gallery-section {
  background: var(--sand);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item.tall {
    grid-row: span 2;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }
}

.gallery-item {
  position: relative;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sand-deep);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

@media (min-width: 900px) {
  .gallery-item {
    aspect-ratio: auto;
    height: 100%;
  }
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* About */
.about-section {
  background: var(--cream);
}

.vibe {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--green);
  margin: 0 0 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

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

/* Amenities */
.amenities-section {
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-deep) 100%);
}

.amenities-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 560px) {
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amenities-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.amenity-mark {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-soft), var(--gold));
  box-shadow: 0 0 0 4px rgba(45, 107, 82, 0.12);
}

/* Nearby */
.nearby-section {
  background: var(--green-deep);
  color: var(--cream);
}

.nearby-section .section-head .eyebrow {
  color: var(--gold);
}

.nearby-section .section-head h2 {
  color: var(--cream);
}

.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.nearby-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(247, 241, 232, 0.12);
}

.nearby-list li:first-child {
  border-top: 1px solid rgba(247, 241, 232, 0.12);
}

.nearby-label {
  font-size: 1.05rem;
  font-weight: 400;
}

.nearby-meta {
  font-size: 0.85rem;
  color: var(--gold-soft);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Video */
.video-section {
  background: var(--cream);
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196, 165, 116, 0.2), transparent 50%),
    linear-gradient(145deg, var(--sand) 0%, var(--sand-deep) 100%);
  border: 1px dashed rgba(30, 77, 58, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.video-placeholder-inner {
  text-align: center;
  padding: 2rem;
}

.video-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(30, 77, 58, 0.3);
}

.video-placeholder p {
  margin: 0.25rem 0;
}

.video-placeholder p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
}

/* Inquire form */
.inquire-section {
  background: var(--sand);
}

.inquire-form {
  background: var(--white);
  padding: 1.75rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 560px) {
  .inquire-form {
    padding: 2rem;
  }
}

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

@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(28, 42, 34, 0.14);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 77, 58, 0.15);
  background: var(--white);
}

.form-hint {
  margin: 0.85rem 0 0;
  text-align: center;
}

.form-success {
  background: var(--white);
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.success-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green);
  margin: 0 0 0.5rem;
}

.form-success p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(247, 241, 232, 0.75);
  padding: 2.5rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0.4rem 0;
}

.site-footer a {
  color: var(--gold-soft);
}

.footer-note {
  font-size: 0.75rem;
  opacity: 0.7;
  max-width: 28rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 36, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .gallery-item,
  .gallery-item img {
    transition: none;
  }
}

/* Host line in hero */
.host-line {
  margin: -0.5rem 0 1.35rem;
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.host-about {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(28, 42, 34, 0.1);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.amenities-note {
  margin: 1.25rem 0 0;
  text-align: center;
}

/* Reviews */
.reviews-section {
  background: var(--cream);
}

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

@media (min-width: 720px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
}

.review-attr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: auto;
}

.review-stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.review-attr cite {
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
