*, html {
  scroll-behavior: smooth !important;
}

/* Logo styling with forest-like font */
.logo {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f9f4e8; /* light beige overall page background */
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  overflow-x: hidden;
}
nav {
  position: fixed;
  width: 100%;
  background: #29412e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 100;
  border-bottom: 1px solid #2d5016;
}
nav .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2vw;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.nav-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
#menu-fi a, #menu-en a {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Inter', Arial, sans-serif;
}
nav a:hover {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}
/* Language toggle */
.lang-toggle { display: flex; gap: 0.5rem; align-items: center; margin-left: 1rem; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.3rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #2d5016;
  line-height: 1.1;
  transition: background 0.25s, transform 0.25s;
  width: auto;
  height: auto;
}
.lang-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.lang-btn.active { background: transparent; color: #ffffff; border-color: transparent; box-shadow: none; }
.lang-btn img { width: 24px; height: 16px; object-fit: cover; border: 1px solid rgba(0,0,0,0.1); border-radius: 2px; }
.visually-hidden { position: absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
section {
  padding: 0;
  scroll-margin-top: 90px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero {
  background: linear-gradient(rgba(45,80,22,0.5), rgba(45,80,22,0.6)), url('images/carousel/image1.jpg') center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  position: relative;
  width: 100%;
  padding: 0;
  margin-top: 0;
}
.hero-content {
  max-width: 1100px;
  padding: 2rem;
  z-index: 1;
}
.hero h1 {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  color: #fff;
  letter-spacing: 1px;
}
.hero p {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.hero .cta {
  background: #2d5016;
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border: none;
  display: inline-block;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.hero .cta:hover {
  background: #234011;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.card {
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2vw;
  box-sizing: border-box;
  border-left: none;
  position: relative;
  overflow: visible;
}
/* Variant card background colors */
section#summary {
  background: #f9f4e8;
}
section#summary .card:first-child {
  background: transparent;
}
section#summary .carousel-container {
  background: transparent;
}
.summary-content {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 2rem;
  align-items: start;
}
.summary-text {
  width: 100%;
}
.summary-text p {
  text-align: justify;
}
.summary-carousel {
  width: 100%;
  margin-top: 4.25rem;
}
.summary-carousel .carousel {
  max-width: 500px;
}
section#pricing {
  background: #e8f5e9;
}
section#pricing .card {
  background: transparent;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6rem;
  margin-top: 1.5rem;
  align-items: start;
}
.pricing-column {
  display: flex;
  flex-direction: column;
}
.pricing-column h3 {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #2d5016;
  margin-bottom: 0.5rem;
  margin-top: 0;
  text-align: left;
}
.pricing-description {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
  margin-top: 0;
  line-height: 1.4;
  text-align: left;
}
section#location {
  background: #f9f4e8;
}
section#location .card {
  background: transparent;
}
section#contact {
  background: #e8f5e9;
}
section#contact .card {
  background: transparent;
}
.card h2 {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: #2d5016;
  margin-top: 0;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #2d5016;
  border-radius: 2px;
}
.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  font-size: 1.15rem;
}
.info-list li {
  margin-bottom: 0.5rem;
}
.info-tables-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.75rem;
}
.info-table-group h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d5016;
  margin-bottom: 0.5rem;
  margin-top: 0;
  text-align: left;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.info-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  text-align: left;
}
.info-table td:first-child {
  width: 55%;
  color: #374151;
  font-weight: 600;
  text-align: left;
  padding-left: 0;
}
.info-table td:last-child {
  width: 45%;
  color: #1f2937;
  font-weight: 500;
  text-align: right;
  padding-right: 0;
}
.info-table tr:last-child td {
  border-bottom: none;
}
.info-table tr:hover {
  background: #f8fafc;
}
.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
  align-items: start;
}
.location-map-section {
  width: 100%;
}
.location-map-section p {
  font-size: 1.1rem;
  color: #374151;
  margin: 0 0 1rem 0;
}
.location-tables {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.location-table-group {
  position: relative;
}
.location-table-group:not(:first-child)::before {
  content: '';
  position: absolute;
  top: -1.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #2d5016 20%, #2d5016 80%, transparent);
  opacity: 0.2;
}
.location-table-group h3 {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #2d5016;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.location-table-group .info-table {
  font-size: 0.9rem;
  margin-top: 0;
}
.location-table-group .info-table td {
  padding: 0.4rem 0.6rem;
}
.location {
  background: none; /* inherit light green from body */
}
.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  border: 1px solid #e0e7ef;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}
.contact-form .date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.contact-form .date-field {
  display: flex;
  flex-direction: column;
}
.contact-form .date-field label {
  margin-bottom: 0.25rem;
}
.contact-form .date-field input {
  margin-bottom: 0;
}
.contact-form input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}
.contact-form label {
  font-size: 0.95rem;
  color: #374151;
}
.contact-form .services-group {
  margin: 1rem 0;
}
.contact-form .services-group > label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}
.contact-form .service-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form .service-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.contact-form .service-option input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
}
.contact-form button {
  background: #2d5016;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #234011;
}
@media (max-width: 700px) {
  nav .container {
    padding: 0.75rem 2vw;
    box-sizing: border-box;
    width: 100%;
    position: relative;
  }
  nav .container::before {
    content: 'Villa Tuuli';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    pointer-events: none;
  }
  .logo {
    display: none; /* Hide original Villa Tuuli text on mobile */
  }
  .hamburger {
    display: flex; /* Show hamburger button */
  }
  .nav-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #70ad7e;
    flex-direction: column;
    gap: 0;
    padding: 70px 2vw 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-content.active {
    transform: translateY(0);
  }
  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: stretch;
  }
  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  nav a {
    font-size: 1.1rem;
    padding: 1rem;
    display: block;
    width: 100%;
    text-align: left;
  }
  #menu-fi a, #menu-en a {
    font-size: 1.1rem;
  }
  .lang-toggle {
    margin-left: 0;
    margin-top: 1.5rem;
    justify-content: center;
  }
  section {
    padding: 0;
    box-sizing: border-box;
    width: 100%;
  }
  .card {
    padding: 2.5rem 5vw;
    box-sizing: border-box;
    width: 100%;
  }
  .info-list {
    grid-template-columns: 1fr;
  }
  .info-tables-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .info-table-group h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .info-table {
    font-size: 1rem;
  }
  .info-table td {
    padding: 0.6rem 0.75rem;
  }
  .info-table td:first-child {
    width: 50%;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .location-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .location-tables {
    gap: 2.5rem;
  }
  .summary-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .summary-carousel .carousel {
    max-width: 100%;
  }
  .hero {
    min-height: 50vh;
    margin-top: 60px; /* smaller margin for compact mobile nav */
  }
  .hero h1 { 
    font-size: 2.5rem;
  }
  .hero p { 
    font-size: 1.1rem;
  }
  .hero .cta {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
  }
}

/* Villa Tuuli intro replacement for hero */
.villa-intro {
  min-height: auto;
  padding-top: 2rem; /* reduced gap between hero and summary */
  display: flex;
  flex-direction: column;
  gap: 0;
}
.villa-intro .card h2 {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: #2d5016;
}
.carousel-container {
  padding: 0;
  border-left: none;
  background: transparent;
}
.highlights {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
}
.highlights li {
  position: relative;
  padding-left: 1.1rem;
  font-weight: 700;
}
.highlights li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #2d5016;
  font-weight: 700;
}
.intro-carousel {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: stretch;
}
.carousel {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: #f7fbff;
  border: none;
  /* Fixed aspect ratio container: rely on inner .slides for ratio */
  /* min-height removed in favor of aspect-ratio below */
  display: flex;
  flex-direction: column;
}
.carousel .slides {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9; /* modern browsers maintain 16:9 */
}
/* Fallback for browsers without aspect-ratio support: use padding-bottom technique via html.no-aspect-ratio */
html.no-aspect-ratio .carousel .slides { height: 0; padding-bottom: 56.25%; }
html.no-aspect-ratio .carousel .slide { inset: 0; }
.carousel .slides {
  position: relative;
  flex: 1;
}
.carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel .slide.active { opacity: 1; }
.carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Position buttons relative to .carousel but centered on slides area */
.carousel {
  position: relative;
}
.carousel-btn {
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: 1px solid #dbe2ea;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 50%;
  cursor: pointer;
  color: #2d5016;
  backdrop-filter: blur(4px);
  transition: background 0.25s, box-shadow 0.25s;
  z-index: 10;
}
.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 18px rgba(30,41,59,0.15);
}
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem 0 1rem;
  background: linear-gradient(to top, rgba(247,251,255,0.9) 0%, rgba(247,251,255,0) 70%);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active {
  background: #2563eb;
  transform: scale(1.25);
}

/* Thumbnail previews */
.thumbs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.75rem 0 1rem;
  background: linear-gradient(to top, rgba(247,251,255,0.92) 0%, rgba(247,251,255,0) 70%);
  flex-wrap: wrap;
}
.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 1px 6px rgba(30,41,59,0.08);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  width: 90px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(30,41,59,0.16);
}
.thumb.active {
  border-color: #2d5016;
  box-shadow: 0 4px 18px rgba(45,80,22,0.25);
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  box-sizing: border-box;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  line-height: 1;
  transition: all 0.2s;
  z-index: 10001;
  border-radius: 4px;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem 1.5rem;
  line-height: 1;
  transition: all 0.2s;
  z-index: 10001;
  border-radius: 4px;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .lightbox-content {
    padding: 80px 20px 60px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 2.5rem;
    padding: 0.25rem 0.6rem;
  }
  
  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.75rem 1rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-counter {
    bottom: 15px;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 600px) {
  .thumb { width: 70px; height: 48px; }
}

@media (max-width: 900px) {
  .intro-wrapper {
    gap: 2rem;
  }
  .intro-text h1 { font-size: 2.4rem; }
}
@media (max-width: 600px) {
  .intro-text { padding: 1.5rem 1.25rem 2rem; }
  .highlights { grid-template-columns: 1fr; }
  .carousel { min-height: 340px; }
}
