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

/* Tablet */
@media (max-width: 1024px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .cabin-hero {
    grid-template-columns: 1fr;
  }

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

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

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

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

  :root {
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s var(--ease-out);
    overflow-y: auto;
    gap: 0;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    padding: 1rem 0;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    border: none;
    min-width: auto;
    padding: 0 0 1rem 1rem;
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 0.5rem 0;
  }

  .lang-switch {
    margin-top: 1rem;
  }

  /* Mobile overlay */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    width: 25px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Grid fixes */
  .card-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .cabin-features,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .cabin-gallery-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  /* Spacing */
  section {
    padding: 3rem 0;
  }

  :root {
    --space-xl: 3rem;
    --space-lg: 2.5rem;
  }

  .container {
    padding: 0 1.2rem;
  }

  /* Typography */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.35rem; }

  .page-banner {
    height: 40vh;
    min-height: 300px;
  }

  /* Floating contacts */
  .floating-contacts {
    right: 12px;
    bottom: 12px;
  }

  .floating-contacts a {
    width: 44px;
    height: 44px;
  }

  .floating-contacts svg {
    width: 20px;
    height: 20px;
  }

  /* Timeline on mobile */
  .day-block {
    padding: 1.5rem;
  }

  .timeline {
    padding-left: 1.2rem;
  }

  .timeline-item::before {
    left: -1.6rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .logo-text {
    font-size: 1.2rem;
  }

  .logo-tagline {
    display: none;
  }

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

  .hero h1 {
    font-size: 2.3rem;
  }
}

/* Print */
@media print {
  .site-header,
  .floating-contacts,
  .site-footer,
  .hero-scroll {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg img {
    animation: none;
  }
}
