/* Modern cabin design with warm earth tones and sophisticated typography */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  /* Modern warm palette inspired by Apuseni mountains */
  --bg: #fdfcfa;
  --bg-soft: #f5f1ed;
  --text: #2a2118;
  --muted: #6b5d52;
  --line: #e8e2db;
  --card: #ffffff;
  --accent: #4a6b54;
  --accent-hover: #3d5a46;
  --accent-ink: #ffffff;
  --accent-2: #a67c52;
  --accent-2-light: #d4b296;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(42, 33, 24, 0.08);
  --shadow-lg: 0 16px 48px rgba(42, 33, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Enhanced typography with serif headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

/* More sophisticated header with subtle backdrop */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(42, 33, 24, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: "Playfair Display", serif;
}

.brand .logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 2px solid var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(166, 124, 82, 0.15);
  transition: all 0.3s ease;
}

.brand .logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(166, 124, 82, 0.25);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Enhanced button styles with better hover states */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(74, 107, 84, 0.2);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74, 107, 84, 0.3);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn.sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* More dramatic hero section */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  padding: 1.5rem 0 1.5rem;
}

/* Large tablets / small desktops */
@media (max-width: 1200px) {
  .hero .wrap {
    gap: 3rem;
    padding: 1.5rem 0 1.5rem;
  }
}

/* Tablets */
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.5rem 0 1.5rem;
    text-align: center;
  }
}

/* Mobile landscape / small tablets */
@media (max-width: 768px) {
  .hero .wrap {
    padding: 1.5rem 0 1rem;
    gap: 2rem;
  }
}

/* Mobile portrait */
@media (max-width: 640px) {
  .hero .wrap {
    padding: 1.25rem 0 1rem;
    gap: 1.5rem;
  }
}

.hero .copy h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin: 0 0 1.25rem;
  color: var(--text);
  line-height: 1.15;
}

.hero .copy p {
  color: var(--muted);
  max-width: 58ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

@media (max-width: 960px) {
  .hero .copy p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .hero .copy p {
    margin-bottom: 1.5rem;
  }
}

.hero .copy .btn {
  margin-top: 0.5rem;
}

@media (max-width: 960px) {
  .hero .copy .btn {
    display: inline-flex;
  }
}

.hero .img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-width: 100%;
}

@media (max-width: 960px) {
  .hero .img {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero .img {
    border-radius: 16px;
  }
}

.hero .img img {
  width: 100%;
  height: auto;
  display: block;
}

.hero .img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

/* Section styling improvements */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0 0 0.75rem;
  text-align: center;
}

section > .container > p {
  text-align: center;
  color: var(--muted);
  max-width: 65ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.subtle {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* Elegant accent bands */
section.band {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  position: relative;
}

section.band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(166, 124, 82, 0.08), transparent 70%);
  pointer-events: none;
}

section.galerie-band {
  padding: 3rem 15vw;
}

@media (max-width: 1200px) {
  section.galerie-band {
    padding: 3rem 2rem;
  }
}

/* Enhanced feature cards */
.features {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  /* Removed cursor pointer from all cards */
}

/* Removed hover effect from all cards, added specific hover for clickable cards only */
.card.activity-card:hover,
.room a:hover .card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-2-light);
}

/* Adding cursor pointer only to activity cards that are clickable */
.activity-card {
  cursor: pointer;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  /* Ensuring feature cards don't appear clickable */
  cursor: default;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Modern room cards */
.rooms,
.room-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  /* Removing align-items: stretch */
}

@media (max-width: 1000px) {
  .rooms,
  .room-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .rooms,
  .room-cards {
    grid-template-columns: 1fr;
  }
}

.room {
  width: 100%;
  max-width: 500px;
  /* Removing height: 100% */
}

.room a {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  background: var(--card);
  display: block;
}

.room a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.room img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.room a:hover img {
  transform: scale(1.05);
}

.room .pad {
  padding: 1.5rem;
}

.room h3 {
  margin: 0.75rem 0 0.65rem;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--text);
}

.room p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(74, 107, 84, 0.2);
}

/* Refined gallery grid */
.gallery {
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

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

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

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

.gallery a {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.3s ease;
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery a:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery a:hover::after {
  opacity: 1;
}

.gallery img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery a:hover img {
  transform: scale(1.1);
}

/* Enhanced footer */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2.5rem 0 6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  color: var(--text);
  transition: color 0.2s ease;
}

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

.cta-fab {
  display: none;
}

@media (max-width: 880px) {
  .cta-fab {
    display: inline-flex;
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(74, 107, 84, 0.3);
    z-index: 40;
    transition: all 0.3s ease;
  }

  .cta-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(74, 107, 84, 0.4);
  }
}

/* Modern lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(42, 33, 24, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.lightbox.open {
  display: flex;
}

/* Enforcing smaller size for all lightbox images with proper height constraint */
.lightbox img {
  max-width: 600px !important;
  max-height: 450px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  /* Previne flickering */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lightbox .close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox .nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox .nav button {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  margin: 0 1.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lightbox .nav button:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Refined activity popup */
.activity-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 33, 24, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
}

.activity-popup.is-open {
  display: flex;
}

.activity-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.activity-popup__content {
  position: relative;
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}

/* Make facilities popup narrower and fit content */
.activity-popup__content.facilities-popup {
  max-width: 480px;
  width: fit-content;
}

@media (max-width: 640px) {
  .activity-popup {
    padding: 1rem;
  }

  .activity-popup__content {
    padding: 1.5rem;
    max-height: 92vh;
    border-radius: 16px;
  }
}

.activity-popup__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.activity-popup__close:hover {
  background: var(--line);
  transform: rotate(90deg);
}

.activity-popup__body {
  width: 100%;
}

.activity-popup__title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--text);
  font-family: "Playfair Display", serif;
}

.activity-popup__description {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.activity-popup__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.activity-popup__gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .activity-popup__gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .activity-popup__gallery img {
    height: 180px;
    border-radius: 12px;
  }

  .activity-popup__title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .activity-popup__description {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .activity-popup__close {
    width: 36px;
    height: 36px;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
  }
}

.activity-popup__gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* Modern contact FAB with dropdown */
.contact-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}

.contact-fab__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(74, 107, 84, 0.3);
  transition: all 0.3s ease;
}

.contact-fab__toggle:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(74, 107, 84, 0.4);
}

.contact-fab__icon {
  font-size: 1.3rem;
  line-height: 1;
}

.contact-fab__menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.contact-fab__toggle[aria-expanded="true"] + .contact-fab__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-fab__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  color: var(--text);
  font-weight: 500;
}

.contact-fab__item:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.contact-fab__itemIcon {
  font-size: 1.2rem;
  /* aligning icons with text properly */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.contact-fab__itemText {
  font-size: 0.95rem;
  /* aligning text with icons */
  line-height: 1.4;
}

/* Adding mobile menu toggle button */
/* Fixed hamburger menu positioning - moved to corner */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem;
  /* positioning hamburger in top right corner */
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

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

  /* ensuring nav container has relative positioning for absolute hamburger */
  .nav {
    position: relative;
  }

  nav ul {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  nav ul.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav ul li {
    width: 100%;
  }

  nav ul a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: background 0.2s ease;
  }

  nav ul a:hover {
    background: var(--bg-soft);
  }

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

/* Mobile typography improvements */
@media (max-width: 640px) {
  section h2 {
    font-size: 1.75rem;
  }

  section > .container > p {
    font-size: 1rem;
  }
}

/* Mobile container adjustments */
@media (max-width: 640px) {
  .container {
    width: min(1200px, 100% - 2rem);
  }

  section {
    padding: 3rem 0;
  }
}

/* Mobile card padding adjustments */
@media (max-width: 640px) {
  .card {
    padding: 1.25rem;
  }

  .card.feature {
    padding: 1rem;
  }

  .feature .icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  .feature h3 {
    font-size: 1.05rem;
  }

  .room .pad {
    padding: 1rem;
  }

  .room h3 {
    font-size: 1.2rem;
  }
}

/* Making contact FAB icons much smaller and fit better on mobile */
@media (max-width: 640px) {
  .contact-fab {
    bottom: 16px;
    right: 16px;
  }

  .contact-fab__toggle {
    /* making toggle button smaller */
    width: 52px;
    height: 52px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 0;
    border-radius: 50%;
  }

  .contact-fab__icon {
    font-size: 1.4rem;
  }

  .contact-fab__label {
    display: none;
  }

  .contact-fab__menu {
    /* making menu horizontal and compact */
    position: absolute;
    bottom: 0;
    right: calc(100% + 8px);
    min-width: auto;
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    flex-direction: row;
    width: auto;
  }

  .contact-fab__toggle[aria-expanded="true"] + .contact-fab__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .contact-fab__item {
    /* making individual contact buttons circular and smaller */
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    min-width: 44px;
  }

  .contact-fab__itemIcon {
    font-size: 1.15rem;
  }

  .contact-fab__itemText {
    display: none;
  }
}

/* Ensure buttons are touch-friendly on mobile */
@media (max-width: 640px) {
  .btn {
    padding: 0.875rem 1.5rem;
    min-height: 44px;
  }

  .btn.sm {
    padding: 0.625rem 1.25rem;
    min-height: 40px;
  }
}

/* Mobile lightbox improvements */
@media (max-width: 640px) {
  .lightbox {
    /* Hardware acceleration pentru smooth scrolling */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .lightbox .close {
    top: 12px;
    right: 12px;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    z-index: 10001;
  }

  .lightbox .nav button {
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .lightbox img {
    max-width: 96vw;
    max-height: 85vh;
    border-radius: 12px;
    /* Previne flickering prin hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }
}

/* Adding max dimensions for popup gallery images to make them smaller */
.activity-popup__gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .activity-popup__gallery img {
    height: 200px;
    border-radius: 12px;
  }
}

.activity-popup__gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

@media (hover: none) {
  .activity-popup__gallery img:hover {
    transform: none;
  }

  .activity-popup__gallery img:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* Making facilities (sauna) images MUCH smaller with strict size enforcement - 350x280px */
.lightbox img[src*="facilities"] {
  max-width: 350px !important;
  max-height: 280px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}
