/* CoroMODo — desert boutique direct-booking demo */

:root {
  --sand-50: #fbf7f0;
  --sand-100: #f3ebe0;
  --sand-200: #e8d9c4;
  --sand-300: #d4bfa3;
  --terracotta: #c45c3e;
  --terracotta-deep: #a3472e;
  --terracotta-soft: #e8a08a;
  --charcoal: #2a2420;
  --charcoal-soft: #4a4038;
  --ink-muted: #6b5e52;
  --teal: #1a6b6b;
  --teal-bright: #2a8f8f;
  --teal-soft: #d4ecec;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 28px rgba(42, 36, 32, 0.08);
  --header-h: 60px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--terracotta);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--teal) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s;
}

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

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(196, 92, 62, 0.28);
}

.btn-primary:hover {
  background: var(--terracotta-deep);
  color: var(--white);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--sand-300);
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  gap: 0;
}

.hero-visual {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    #c9a882 0%,
    #d4836a 35%,
    #8b6b4a 55%,
    #1a6b6b 100%
  );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0 1.5px, transparent 2.5px),
    repeating-linear-gradient(
      -28deg,
      transparent,
      transparent 12px,
      rgba(42, 36, 32, 0.06) 12px,
      rgba(42, 36, 32, 0.06) 13px
    );
  background-size: 48px 48px, 36px 36px, auto;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(42, 36, 32, 0.45) 0%,
    transparent 55%
  );
}

.hero-photo-note {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sand-50);
  background: rgba(42, 36, 32, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}

.hero-content {
  padding: 1.75rem 1rem 2rem;
  width: min(100%, 720px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero-content h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--charcoal);
}

.tagline {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--charcoal-soft);
  max-width: 36ch;
}

.hero-address {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Config toggle */
.config-section {
  padding: 0.5rem 0 2rem;
}

.config-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--sand-100);
  border-radius: 999px;
  border: 1px solid var(--sand-200);
  margin-bottom: 1.25rem;
}

.config-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.75rem 0.65rem;
  border-radius: 999px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s;
}

.config-btn.is-active {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow);
}

.config-btn:hover:not(.is-active) {
  color: var(--charcoal);
}

.config-panel {
  transition: opacity 0.25s var(--ease);
}

.config-panel.is-updating {
  opacity: 0.45;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
}

.config-blurb {
  margin: 0;
  font-size: 1rem;
  color: var(--charcoal-soft);
}

/* Sections shared */
.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.section-lede {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

.gallery-section,
.about-section,
.bedrooms-section,
.nearby-section,
.notes-section {
  padding: 2.5rem 0;
}

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

.about-section {
  background: var(--white);
}

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

.nearby-section {
  background: linear-gradient(180deg, var(--teal-soft) 0%, var(--sand-50) 100%);
}

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

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--sand-300) 0%,
    var(--terracotta-soft) 45%,
    var(--teal) 100%
  );
}

.gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(42, 36, 32, 0.08) 10px,
      rgba(42, 36, 32, 0.08) 11px
    ),
    linear-gradient(
      145deg,
      #c9a882 0%,
      #c45c3e 40%,
      #1a6b6b 100%
    );
}

.gallery-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.gallery-placeholder strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

/* Highlights */
.highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.highlights li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.highlights li::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 92, 62, 0.2);
}

/* Bedrooms */
.bedroom-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.bedroom-list li {
  padding: 1rem 1.15rem;
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  transition: opacity 0.25s var(--ease);
}

/* Nearby */
.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.nearby-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(26, 107, 107, 0.15);
  font-size: 0.95rem;
}

.nearby-list li:last-child {
  border-bottom: none;
}

.nearby-place {
  font-weight: 600;
  color: var(--charcoal);
}

.nearby-time {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
}

/* Notes */
.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.notes-list li {
  padding: 0.85rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand-200);
  font-size: 0.925rem;
  color: var(--charcoal-soft);
}

.notes-list li::before {
  content: "· ";
  color: var(--terracotta);
  font-weight: 700;
}

/* Inquire */
.inquire-section {
  padding: 3rem 0;
  background: var(--charcoal);
  color: var(--sand-100);
}

.inquire-section .section-title {
  color: var(--sand-50);
}

.inquire-section .section-lede {
  color: var(--sand-300);
}

.host-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--sand-300);
}

.inquire-grid {
  display: grid;
  gap: 2rem;
}

.inquire-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.field {
  display: grid;
  gap: 0.35rem;
}

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

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sand-300);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  color: var(--sand-50);
  transition: border-color 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(243, 235, 224, 0.4);
}

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

.form-config-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sand-300);
}

.inquire-success {
  grid-column: 1 / -1;
}

.success-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(26, 107, 107, 0.25);
  border: 1px solid rgba(42, 143, 143, 0.4);
  border-radius: var(--radius);
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
}

.success-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sand-50);
}

.success-card p {
  margin: 0 0 1.5rem;
  color: var(--sand-300);
}

.inquire-form[hidden],
.inquire-intro[hidden],
.inquire-success[hidden] {
  display: none !important;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  background: #1a1614;
  color: var(--sand-300);
  font-size: 0.85rem;
}

.footer-inner {
  display: grid;
  gap: 0.65rem;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
  color: var(--sand-100);
}

.footer-links {
  margin: 0;
}

.footer-links a {
  color: var(--teal-bright);
}

.footer-licenses {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.85;
}

.footer-disclaimer {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Tablet+ */
@media (min-width: 640px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    min-height: 380px;
  }

  .hero-visual {
    min-height: 100%;
    order: 2;
  }

  .hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 1.5rem 2.5rem 0;
    width: auto;
    margin-left: max(1rem, calc((100% - 720px) / 2));
    max-width: 380px;
  }

  .config-btn {
    font-size: 0.875rem;
    padding: 0.85rem 1rem;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    min-height: 100%;
  }

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

  .inquire-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .inquire-success {
    grid-column: 2;
  }
}

@media (min-width: 900px) {
  .container,
  .header-inner {
    width: min(100% - 3rem, 860px);
  }

  .hero-content {
    margin-left: max(1.5rem, calc((100% - 860px) / 2));
    max-width: 420px;
  }
}

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

  .config-panel,
  .config-btn,
  .btn {
    transition: none;
  }
}

/* Hero photo */
.hero-visual.has-photo {
  background: var(--charcoal);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-visual.has-photo .hero-pattern {
  opacity: 0.12;
  z-index: 1;
}

.hero-visual.has-photo .hero-gradient {
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(42, 36, 32, 0.55) 0%,
    rgba(42, 36, 32, 0.1) 50%,
    transparent 70%
  );
}

.hero-photo-note {
  z-index: 3;
}

.hero-photo-note[hidden],
.hero-visual.has-photo .hero-photo-note {
  display: none !important;
}

/* Gallery open buttons */
.gallery-open {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  background: transparent;
}

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

.gallery-open:hover img,
.gallery-open:focus-visible img {
  transform: scale(1.03);
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(90vh - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.lightbox-figure figcaption {
  color: var(--sand-200);
  font-size: 0.85rem;
  font-weight: 500;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  appearance: none;
  border: none;
  background: rgba(251, 247, 240, 0.12);
  color: var(--sand-50);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(251, 247, 240, 0.28);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

@media (max-width: 639px) {
  .lightbox-nav {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 3.5rem);
  }

  .lightbox-next {
    right: calc(50% - 3.5rem);
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-open img {
    transition: none;
  }
}
