/* South Lake Tahoe Casita — merged styles (formerly Vite + React client) */

:root {
  --text: #2c2c2c;
  --text-muted: #666;
  --bg: #faf9f7;
  --white: #ffffff;
  --accent: #4a7c59;
  --accent-hover: #3d6949;
  --border: #e8e6e3;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: "Open Sans", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

section {
  scroll-margin-top: 100px;
}

.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.content-section {
  max-width: 720px;
  margin: 0 auto 4rem;
}

.content-section h2 {
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .content-wrap {
    padding: 3rem 1.5rem 4rem;
  }
}

.site-header {
  background: var(--white);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.header-toolbar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

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

.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-btn.is-active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.lang-btn.is-active:hover {
  color: var(--white);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.logo:hover {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--text);
}

.main-nav a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .header-main {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .logo {
    text-align: center;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }

  section {
    scroll-margin-top: 150px;
  }
}

.hero {
  position: relative;
  height: 65vh;
  min-height: 400px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%),
    url("../pics/20210312-Tahoe-Cabin-JENS2237.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

.booking-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 2rem;
  margin: -60px auto 0;
  max-width: 500px;
  position: relative;
  z-index: 10;
}

.booking-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.booking-info span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-book {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  background: #f97316;
  color: white !important;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-book:hover {
  background: #ea580c;
}

.booking-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-calendar {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: 8px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-calendar:hover {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 768px) {
  .booking-card {
    margin: -40px 1.5rem 0;
  }
}

.highlights {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem auto;
  box-shadow: var(--shadow);
}

@media (min-width: 769px) {
  .highlights {
    width: 50vw;
    max-width: 50vw;
  }
}

.highlights h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.highlights-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  justify-items: center;
}

.highlights-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.35rem 0;
  font-size: 1rem;
}

.pine-bullet {
  color: #2f7d44;
  flex-shrink: 0;
  display: inline-flex;
}

.pine-bullet svg {
  display: block;
}

@media (max-width: 600px) {
  .highlights h2 {
    text-align: left;
  }

  .highlights-list {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .highlights-list li {
    justify-content: flex-start;
  }
}

.location-map {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.location-map-caption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.location-map-caption a {
  font-weight: 500;
}

.btn-book-inline {
  max-width: 300px;
  margin-top: 1rem;
}

.booking-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.content-section h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.notice {
  background: #fff9e6;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-left: 4px solid #e6b800;
}

.notice strong {
  display: block;
  margin-bottom: 0.5rem;
}

.notice .notice-body {
  margin: 0.5rem 0 0;
  font-size: inherit;
  line-height: inherit;
}

.photo-group {
  margin-top: 2.25rem;
}

.photo-group:first-of-type {
  margin-top: 0;
}

.photo-group-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

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

.photo-grid img {
  width: 100%;
  height: clamp(260px, 38vh, 460px);
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.photo-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .photo-grid {
    gap: 1rem;
  }
}

.photo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 999;
}

.photo-modal-overlay[hidden] {
  display: none !important;
}

.photo-modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 980px;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 0.75rem;
}

.photo-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.06);
  color: #222;
  font-size: 1.5rem;
  line-height: 2rem;
}

.photo-modal-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.calendar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
}

.calendar-modal-overlay[hidden] {
  display: none !important;
}

.calendar-modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 1.25rem 1.5rem 1.5rem;
}

.calendar-dialog-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  margin: 0 2.5rem 0.75rem 0;
  padding-right: 0.5rem;
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calendar-nav-btn {
  min-width: 2.5rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.calendar-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.calendar-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .calendar-months {
    grid-template-columns: 1fr;
  }
}

.calendar-month-block {
  min-width: 0;
}

.calendar-month-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
}

.calendar-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.calendar-grid th {
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.15rem;
  text-align: center;
}

.calendar-grid td {
  padding: 0.25rem;
  text-align: center;
  border-radius: 8px;
}

.calendar-cell--open {
  background: rgba(226, 241, 194, 0.497);
  color: var(--text);
}

.calendar-cell--reserved {
  background: rgba(237, 238, 228, 0.17);
  /* color: var(--text-muted); */
  color: #ccccb2;
  text-decoration: line-through;
}

.calendar-cell--today {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.calendar-cell--pad {
  border: none;
}

.calendar-status {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.calendar-legend-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  display: inline-block;
}

.calendar-legend-swatch--open {
  background: rgba(226, 241, 194, 0.497);
  border: 1px solid var(--border);
}

.calendar-legend-swatch--reserved {
  background: rgba(101, 103, 94, 0.17);
  border: 1px solid var(--border);
}
