/* ============================================
   Latschen-Lodge — Luxury Alpine Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-dark: #1a1a1a;
  --color-accent: #c9a96e;
  --color-accent-hover: #b8944f;
  --color-bg: #f5f2ee;
  --color-text: #2c2c2c;
  --color-white: #ffffff;
  --color-forest: #2d3b2d;
  --color-overlay: rgba(26, 26, 26, 0.55);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

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

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.transparent {
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.6), transparent);
}

.site-header.scrolled {
  background: var(--color-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-white);
  letter-spacing: 1px;
  white-space: nowrap;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  gap: 6px;
}

.lang-toggle button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}

.lang-toggle button:hover,
.lang-toggle button.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
}

.btn-book {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-book:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Mobile Nav (hidden by default) */
.mobile-nav {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.3) 0%,
    rgba(26, 26, 26, 0.5) 50%,
    rgba(26, 26, 26, 0.7) 100%
  );
}

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

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero .btn-book {
  font-size: 0.85rem;
  padding: 16px 40px;
}

/* --- Page Hero (smaller, for subpages) --- */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.page-hero .hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.4) 0%,
    rgba(26, 26, 26, 0.6) 100%
  );
}

.page-hero h1 {
  position: relative;
  z-index: 2;
}

.page-hero .hero-subtitle {
  position: relative;
  z-index: 2;
}

/* --- Sections --- */
section {
  padding: 100px 0;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}

/* --- Intro / About --- */
.intro {
  text-align: center;
}

.intro-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.9;
}

/* --- Apartment Cards --- */
.apartment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.apartment-card {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.apartment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.apartment-card-img {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.apartment-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.apartment-card:hover .apartment-card-img img {
  transform: scale(1.05);
}

.apartment-card-body {
  padding: 32px;
}

.apartment-card-body h3 {
  margin-bottom: 8px;
}

.apartment-card-body .capacity {
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.apartment-card-body p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  opacity: 0.8;
}

.apartment-card-body .btn-outline {
  display: inline-block;
  border: 1px solid var(--color-dark);
  color: var(--color-dark);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: all var(--transition);
}

.apartment-card-body .btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

/* --- Features / Highlights --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.highlight-item {
  padding: 24px;
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.highlight-item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.highlight-item p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
}

/* --- Location Teaser --- */
.location-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.location-teaser-img {
  height: 500px;
  overflow: hidden;
}

.location-teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-teaser-content h2 {
  margin-bottom: 20px;
}

.location-teaser-content p {
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.8;
}

/* --- Apartment Detail Page --- */
.apartment-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.spec-item {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.section-dark .spec-item {
  border-color: rgba(255, 255, 255, 0.15);
}

.spec-item .spec-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.spec-item .spec-label {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* --- Photo Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity var(--transition);
}

.gallery-grid img:hover {
  opacity: 0.85;
}

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

/* --- Features List --- */
.features-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  font-size: 0.95rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Location Page --- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.activity-card {
  position: relative;
  height: 350px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.activity-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.activity-card:hover img {
  transform: scale(1.05);
}

.activity-card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  width: 100%;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.85), transparent);
  color: var(--color-white);
}

.activity-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.activity-card-content p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --- Map Section --- */
.map-wrapper {
  width: 100%;
  height: 450px;
  background: var(--color-dark);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(40%) contrast(1.1);
}

/* --- Rates Page --- */
.rates-table-wrapper {
  overflow-x: auto;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rates-table thead {
  background: var(--color-dark);
  color: var(--color-white);
}

.rates-table th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 24px;
  text-align: left;
}

.rates-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rates-table tbody tr:hover {
  background: rgba(201, 169, 110, 0.08);
}

.rates-note {
  margin-top: 24px;
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-info address {
  font-style: normal;
  margin-bottom: 24px;
  line-height: 1.9;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
  background: var(--color-dark);
  color: var(--color-white);
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 32px;
  opacity: 0.8;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand .logo {
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.6;
  padding: 4px 0;
  transition: opacity var(--transition);
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* --- Animations (fade-in on scroll) --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile nav overlay */
  .mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--color-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .mobile-nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav a {
    color: var(--color-white);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
  }

  .mobile-nav .btn-book {
    margin-top: 16px;
  }

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

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

  .location-teaser {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .location-teaser-img {
    height: 300px;
  }

  .features-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

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

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

@media (max-width: 600px) {
  section {
    padding: 64px 0;
  }

  .hero {
    min-height: 500px;
  }

  .page-hero {
    height: 50vh;
    min-height: 300px;
  }

  .apartment-card-img {
    height: 240px;
  }

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

  .gallery-grid .gallery-wide {
    grid-column: span 1;
  }

  .gallery-grid img {
    height: 220px;
  }

  .apartment-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-book {
    width: 100%;
    text-align: center;
  }

  .cta-banner {
    padding: 60px 24px;
  }

  .rates-table th,
  .rates-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}
