:root {
  --color-background: #f1eee8;
  --color-page: #ffffff;
  --color-text-main: #151515;
  --color-text-muted: #666666;
  --color-accent: #c9835b;
  --color-border-soft: #e3ded4;

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;

  --max-width: 960px;
  --spacing-page: 20px;
  --spacing-section: 40px;
  --radius-soft: 16px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

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

/* PAGE CONTAINER */
.page {
  min-height: 100vh;
  padding: var(--spacing-page);
  padding-top: calc(var(--spacing-page) + 50px); /* Account for thinner fixed header */
  display: flex;
  flex-direction: column;
}

.page-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* HEADER */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--color-text-main);
  z-index: 100;
  border-bottom: 1px solid var(--color-border-soft);
  transition: all 0.3s ease;
}

.site-title {
  font-family: var(--font-heading);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.site-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-text-main);
  white-space: nowrap;
}

@media (max-width: 799px) {
  .site-nav {
    gap: 12px;
    font-size: 0.8rem;
  }
}

.site-nav a:hover {
  opacity: 0.75;
  color: var(--color-accent);
}

/* HERO */
.hero-shell {
  position: relative;
  border-radius: var(--radius-soft);
  overflow: hidden;
  min-height: 82vh;
  background-color: #333;
  margin-bottom: var(--spacing-section);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-image:
    linear-gradient(to top, rgba(15,15,15,0.65), rgba(15,15,15,0.3)),
    url("./Images/livingroom.JPEG");
  filter: saturate(1.05);
}

.hero-inner {
  position: relative;
  z-index: 1;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  padding: 120px 22px 32px;
  min-height: 82vh;
}

.hero-text-block {
  max-width: 520px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}

@media (min-width: 600px) {
  .hero-name is {
    font-size: 3.5rem;
  }
}

.hero-tagline {
  margin-top: 14px;
  font-size: 1.25rem;
  line-height: 1.4;
  opacity: 0.95;
}

@media (min-width: 600px) {
  .hero-tagline {
    font-size: 1.4rem;
  }
}

.hero-sub {
  margin-top: 12px;
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.9;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 280px;
}

.btn-primary,
.btn-secondary {
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background-color: #b57450;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* SECTIONS */
section {
  margin-bottom: var(--spacing-section);
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.section-card {
  background-color: var(--color-page);
  border-radius: var(--radius-soft);
  border: 1px solid var(--color-border-soft);
  padding: 32px 24px;
}

@media (min-width: 600px) {
  .section-card {
    padding: 36px 32px;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

@media (min-width: 600px) {
  .section-title {
    font-size: 1.5rem;
  }
}

.section-body {
  font-size: 1rem;
  line-height: 1.55;
}

.section-body p + p {
  margin-top: 16px;
}

/* AMENITIES GRID */
.details-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  font-size: 0.9rem;
}

@media (min-width: 600px) {
  .details-grid {
    gap: 18px 32px;
  }
}

.detail-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 0.95rem;
}

/* INSTAGRAM PLACEHOLDER */
.instagram-placeholder {
  margin-top: 20px;
  background-color: #f8f8f8;
  border-radius: 12px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CALENDAR */
.availability-sheet {
  width: 100%;
  max-width: 100%;
  height: 480px;
  border: 0;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .availability-sheet {
    height: 60vh;
  }
}

/* MAP */
.map-frame {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  border: none;
  margin-top: 16px;
}

/* FOOTER */
.site-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-row a:hover {
  color: var(--color-accent);
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: start;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f8f6f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 20px;
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.5;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 10px 20px;
  transition: background 0.2s ease;
  border-radius: 4px;
}

lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 40px;
  padding: 5px 15px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox-img {
    max-width: 95%;
    max-height: 70vh;
  }
  
  .lightbox-prev,
  .lightbox-next {
    padding: 8px 12px;
    font-size: 24px;
  }
  
  .lightbox-close {
    font-size: 32px;
  }
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #b57450;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.share-button {
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-page);
  color: var(--color-text-main);
  border: 1px solid var(--color-border-soft);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.share-button:hover {
  background-color: #f6f1e9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
