/* Aurelia: Residence & Kavana — static styles */

:root {
  --color-bg: #f7f3ed;
  --color-bg-dark: #ebe4d9;
  --color-surface: #ffffff;
  --color-text: #2c2419;
  --color-text-muted: #5c5348;
  --color-accent: #b8956a;
  --color-accent-dark: #96784f;
  --color-header: #1f1a14;
  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 4px 24px rgba(44, 36, 25, 0.08);
  --radius: 4px;
  --max-width: 1120px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.container.narrow {
  max-width: 720px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header);
  color: #f5f0e8;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.logo {
  color: inherit;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.logo-tagline {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.logo-image,
.hero-logo,
.hero-logo-large {
  display: block;
  max-width: 140px;
  height: auto;
}

.hero-logo {
  margin: 0 auto 2rem;
  max-width: 220px;
}

.hero-logo-large {
  margin: 0 auto 2rem;
  max-width: 360px;
  width: min(100%, 360px);
}

.main-nav {
  flex: 1;
}

.main-nav ul,
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.main-nav a,
.mobile-nav a {
  color: #f5f0e8;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--color-accent);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #f5f0e8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.lang-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: #f5f0e8;
  margin-inline: auto;
}

.mobile-nav {
  background: var(--color-header);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.mobile-nav ul {
  flex-direction: column;
  gap: 0.75rem;
  padding-inline: 1rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: #2c2419 url("../images/hero-placeholder.svg") center / cover no-repeat;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(31, 26, 20, 0.55),
    rgba(31, 26, 20, 0.75)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 36rem;
  margin: 0 auto 2rem;
  opacity: 0.92;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Sections */

.section {
  padding-block: 4.5rem;
}

.section:nth-child(even) {
  background: var(--color-bg-dark);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
}

/* Room cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.room-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.room-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-bg-dark);
  transition: transform 0.2s ease;
}

.room-card img:hover,
.gallery-item img:hover {
  transform: scale(1.02);
}

.room-card-images img,
.gallery-item img {
  cursor: zoom-in;
}

.room-card-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

/* Static image grid above the description */
.album {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
}

.album img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album img:hover,
.album img:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(44, 36, 25, 0.14);
}

.apartments-gallery {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 0 1rem;
}

.apartments-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apartments-gallery img:hover,
.apartments-gallery img:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(44, 36, 25, 0.14);
}

.apartments-description {
  max-width: 860px;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--color-text-muted);
}

.apartments-description-body {
  padding: 0 0.5rem;
}

.apartments-description-body h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.apartments-description-body p {
  margin: 0;
  line-height: 1.8;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 1.5rem;
  z-index: 300;
}

.image-modal.open {
  display: flex;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.room-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.room-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.room-card p {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  flex: 1;
}

.room-price {
  display: none;
}

.room-price .amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent-dark);
}

.room-price .note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

#pool-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  overflow: visible;
}

#pool-gallery .gallery-item {
  scroll-snap-align: unset;
}

@media (max-width: 900px) {
  #pool-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #pool-gallery {
    grid-template-columns: 1fr;
  }
}

#sauna-gallery {
  grid-template-columns: minmax(280px, 720px);
  justify-content: center;
}

.reviews-gallery {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.reviews-gallery .gallery-item {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.reviews-gallery .gallery-item img {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
  background: transparent;
}

.gallery-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-bg-dark);
}

.gallery-item figcaption {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Trips */

.trips-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Contact */

.contact-details p {
  margin: 0 0 0.75rem;
}

.contact-details strong {
  color: var(--color-text);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-map img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--color-bg-dark);
}

.contact-map .map-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-details {
  text-align: right;
}

.contact-social {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-social img,
.contact-review-badge {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-social img {
  object-fit: contain;
  border-radius: 12px;
}

.contact-review-badge {
  border-radius: 999px;
}

.contact-review-badge {
  background: #111;
  color: #f5e38b;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.contact-review-badge span {
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.google-reviews .gallery {
  gap: 1rem;
}

.google-reviews .gallery-item figcaption {
  min-height: 4rem;
}

/* Footer */

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .lang-switcher {
    order: 3;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.75rem;
  }

  .logo {
    flex: 1;
  }

  .section {
    padding-block: 3rem;
  }

  .card-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Additional mobile-friendly adjustments for phones up to 720px */
@media (max-width: 720px) {
  .hero {
    min-height: 50vh;
  }

  .hero-content {
    padding-block: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
    padding-inline: 1rem;
  }

  .btn {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .lang-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
  }

  .menu-toggle {
    display: flex;
    width: 48px;
    height: 48px;
  }

  .menu-toggle span {
    width: 26px;
  }

  .room-card-images {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .room-card img,
  .gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .card-grid,
  .gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .image-modal img {
    max-width: 95%;
    max-height: 95%;
  }

  .room-card-body {
    padding: 1rem;
  }

  .section {
    padding-block: 2rem;
  }

  .mobile-nav a,
  .main-nav a {
    padding: 0.5rem 0.75rem;
    display: inline-block;
  }

  .trips-list li {
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }
}
