/* ============================================
   AGRITURISMO LA MERIDIANA - Main Stylesheet
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --primary: #5B7B4A;
  --primary-light: #7A9E66;
  --primary-dark: #3D5A30;
  --secondary: #C4956A;
  --secondary-light: #D4AD88;
  --secondary-dark: #A67A4F;
  --dark: #2C2C2C;
  --dark-soft: #444;
  --light: #FAF7F2;
  --light-alt: #F3EDE4;
  --cream: #F5F0E8;
  --white: #FFFFFF;
  --accent: #8B4513;
  --gold: #B8960C;
  --border: #E0D8CC;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-heading: 'Libre Caslon Text', 'Georgia', serif;
  --font-logo: 'Libre Caslon Text', 'Georgia', serif;
  --font-body: 'Libre Caslon Text', 'Georgia', serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--light);
  line-height: 1.7;
  font-weight: 400;
  font-size: 17px;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* Logo in italic */
.nav-logo,
.hero-title,
.footer-logo {
  font-family: var(--font-logo);
  font-style: italic;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.2rem 0;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
  padding: 0.7rem 0;
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--font-logo);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition);
  white-space: nowrap;
}

.navbar.scrolled .nav-logo {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--dark-soft);
}

.nav-links a:hover {
  color: var(--secondary);
}

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-flags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  overflow: hidden;
}

.lang-btn svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.navbar.scrolled .lang-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
}

.lang-btn.active {
  border-color: var(--secondary);
  background: rgba(196,149,106,0.25);
  box-shadow: 0 0 0 2px rgba(196,149,106,0.3);
}

.lang-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.45) 100%
  );
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-shadow: 2px 3px 12px rgba(0,0,0,0.35);
  animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.3);
  animation: fadeInUp 1.2s ease-out 0.3s both;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  border: 2px solid var(--secondary);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-cta:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,149,106,0.4);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.7);
  fill: none;
  stroke-width: 2;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 6rem 4rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-alt-2 {
  background: var(--cream);
}

.section-title {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  text-align: center;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 3.5rem;
  font-weight: 400;
  font-size: 1.15rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  height: 450px;
}

.about-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.about-slide.active {
  opacity: 1;
}

.about-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.about-slide-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
}

.about-slide-btn:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-50%) scale(1.1);
}

.about-slide-prev { left: 0.8rem; }
.about-slide-next { right: 0.8rem; }

.about-text h2 {
  font-size: 2.7rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.about-text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  margin-top: 0.8rem;
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--dark-soft);
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text .highlight {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--primary);
  border-left: 3px solid var(--secondary);
  padding-left: 1.2rem;
  margin: 1.8rem 0;
}

.about-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--dark-soft);
  font-size: 1.05rem;
}

.about-location svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.about-rating {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.about-stars {
  display: flex;
  gap: 0.1rem;
}

.about-stars .star.filled {
  color: var(--gold);
  font-size: 1.2rem;
}

.about-stars .star-half {
  color: var(--gold);
  font-size: 1.2rem;
  position: relative;
  opacity: 0.45;
}

.about-rating-score {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
}

.about-rating-btn {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.about-rating-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.about-wifi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.about-wifi svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.about-feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(91,123,74,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.about-feature span {
  font-size: 1rem;
  color: var(--dark-soft);
}

/* ============================================
   ROOMS SECTION
   ============================================ */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}

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

.room-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.room-card-slideshow {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.room-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.room-slide.active {
  opacity: 1;
}

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

.room-card:hover .room-card-image img {
  transform: scale(1.08);
}

.room-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.room-zoom-btn {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0;
}

.room-card:hover .room-zoom-btn {
  opacity: 1;
}

.room-zoom-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.1);
}

.room-zoom-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

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

.lightbox.active {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

.lightbox-prev svg,
.lightbox-next svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

.room-card-content {
  padding: 1.5rem;
}

.room-card h3 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.room-card-desc {
  color: #777;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.room-card-desc p {
  margin-bottom: 0.8rem;
}

.room-details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.room-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--dark-soft);
}

.room-detail svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.amenity-tag {
  background: rgba(91,123,74,0.08);
  color: var(--primary);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 400;
  border: 1px solid rgba(91,123,74,0.15);
}

.room-card-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--secondary-dark);
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.room-card-price strong {
  font-size: 1.4rem;
  color: var(--primary-dark);
}

/* ============================================
   RESTAURANT SECTION
   ============================================ */
.restaurant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.restaurant-text h2 {
  font-size: 2.7rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.restaurant-text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  margin-top: 0.8rem;
  border-radius: 2px;
}

.restaurant-text p {
  margin-bottom: 1.2rem;
  color: var(--dark-soft);
  line-height: 1.8;
  font-size: 1.1rem;
}

.restaurant-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.restaurant-slideshow {
  position: relative;
  height: 420px;
}

.rslide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.rslide.active {
  opacity: 1;
}

.rslide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.rslide-btn:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-50%) scale(1.1);
}

.rslide-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
}

.rslide-prev { left: 0.8rem; }
.rslide-next { right: 0.8rem; }

.bio-products {
  margin-top: 3rem;
}

.bio-products h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.product-item:hover {
  border-color: var(--primary);
  background: rgba(91,123,74,0.05);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-item h4 {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
}

/* Product Popup */
.product-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.product-popup.active {
  display: flex;
}

.product-popup-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,0.3);
  animation: popupIn 0.3s ease;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.product-popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  z-index: 5;
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}

.product-popup-close:hover {
  background: rgba(0,0,0,0.7);
}

.product-popup-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: none;
}

.product-popup-img.visible {
  display: block;
}

.product-popup-title {
  font-size: 1.3rem;
  color: var(--primary-dark);
  padding: 1.2rem 1.5rem 0.4rem;
  text-align: center;
}

.product-popup-desc {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.7;
  padding: 0.5rem 1.5rem 1.5rem;
  text-align: center;
}

.product-popup-footer {
  font-size: 0.9rem;
  color: var(--dark-soft);
  line-height: 1.6;
  padding: 1.2rem 1.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.product-buy-link {
  display: block;
  margin-top: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.product-buy-link:hover {
  color: var(--primary-dark);
}

/* ============================================
   SURROUNDINGS / MAP SECTION
   ============================================ */
.surroundings-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

#map {
  height: 450px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
}

/* Route search + results */
.route-search {
  margin-bottom: 1.2rem;
}

.route-search-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.route-search-header svg {
  width: 20px;
  height: 20px;
  stroke: var(--secondary-dark);
  fill: none;
  stroke-width: 2;
}

.route-search-header h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin: 0;
}

.route-search-input-wrap {
  position: relative;
}

.route-search-input-wrap input {
  width: 100%;
  padding: 0.85rem 2.6rem 0.85rem 2.6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.route-search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,123,74,0.12);
}

.route-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.route-suggestions {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 240px;
  overflow: auto;
  box-shadow: var(--shadow-md);
}

.route-suggestions.open {
  display: block;
}

.route-suggestions li {
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--dark-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-suggestions li:last-child {
  border-bottom: none;
}

.route-suggestions li:hover {
  background: rgba(91,123,74,0.08);
  color: var(--primary-dark);
}

.route-summary {
  display: none;
  margin-top: 0.8rem;
  padding: 1rem 1.2rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.route-summary.show {
  display: block;
}

.route-summary-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 0.5rem;
}

.route-summary-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.route-summary-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.route-summary-item span {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.route-clear-btn {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #999;
  transition: color var(--transition), background var(--transition);
}

.route-clear-btn.is-visible {
  display: flex;
}

.route-clear-btn:hover {
  color: #fff;
  background: var(--secondary);
}

.route-clear-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.map-hint {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  color: #999;
  text-align: center;
}

/* Attraction pins */
.attraction-pin svg {
  width: 24px;
  height: 30px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
  transition: transform 0.25s ease;
  transform-origin: 50% 100%;
}

.attraction-pin.active svg {
  width: 34px;
  height: 42px;
}

.attraction-pin.active {
  z-index: 20 !important;
}

.attractions-list {
  display: block;
}

.dintorni-column {
  display: block;
}

.dintorni-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.dintorni-filter {
  padding: 0.6rem 1.15rem;
  border: 1.5px solid var(--primary);
  border-radius: 30px;
  background: var(--white);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.dintorni-filter:hover {
  background: rgba(91,123,74,0.08);
  border-color: var(--primary-dark);
}

.dintorni-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.dintorni-select-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #999;
}

.dintorni-close {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--dark-soft);
  cursor: pointer;
  transition: all var(--transition);
}

.dintorni-close.is-visible {
  display: flex;
}

.dintorni-close:hover {
  color: #fff;
  background: var(--secondary);
  border-color: var(--secondary);
}

.dintorni-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.attraction-more-list {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.75rem;
  background: rgba(91,123,74,0.08);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.attraction-more-list:hover {
  background: var(--primary);
  color: #fff;
}

.attraction-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--white);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  margin-bottom: 0.7rem;
}

.attraction-card:last-child {
  margin-bottom: 0;
}

.attraction-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.attraction-card.active {
  border-color: var(--primary);
  background: rgba(91,123,74,0.05);
  box-shadow: var(--shadow-md);
}

.attraction-card.active h4 {
  color: var(--primary-dark);
}

.attraction-cat-badge {
  align-self: flex-start;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(91,123,74,0.1);
  border: 1px solid rgba(91,123,74,0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  margin-top: 0.2rem;
}

.attraction-info h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.attraction-info .attraction-desc {
  display: none;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #777;
}

.attraction-card.info-open .attraction-desc {
  display: block;
}

.attraction-more-btn {
  margin-top: 0.55rem;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  letter-spacing: 0.02em;
  text-align: left;
}

.attraction-more-btn:hover {
  color: var(--secondary-dark);
  text-decoration: underline;
}

.attraction-distance {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  align-self: center;
}

/* Events section */
.events-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius-md);
}

.events-section h3 {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.eventi-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.eventi-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2rem 1rem;
}

.eventi-viewport::-webkit-scrollbar {
  display: none;
}

.eventi-track {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.eventi-card {
  flex: 0 0 auto;
  width: min(78vw, 300px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  scroll-snap-align: start;
  box-sizing: border-box;
}

.eventi-card-photo {
  height: 170px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.eventi-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1.4rem;
}

a.eventi-card {
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

a.eventi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.eventi-card-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.eventi-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.eventi-card-place {
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary);
}

.eventi-card-dates {
  font-size: 0.85rem;
  color: var(--dark-soft);
}

.eventi-card--skeleton {
  border: none;
  background: linear-gradient(110deg, #ece9e1 8%, #faf8f2 18%, #ece9e1 33%);
  background-size: 200% 100%;
  animation: eventiShine 1.2s linear infinite;
}

@keyframes eventiShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.eventi-card--viewall {
  justify-content: flex-start;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 1.5rem;
}

.eventi-card--viewall .eventi-card-name {
  color: #fff;
  font-size: 1.15rem;
}

.eventi-card--viewall .eventi-card-arrow {
  margin-top: auto;
  font-size: 3rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}

.eventi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all var(--transition);
}

.eventi-arrow--prev { left: -8px; }
.eventi-arrow--next { right: -8px; }

.eventi-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.eventi-arrow:not(:disabled):hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.eventi-fallback {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.eventi-fallback p {
  margin-bottom: 1rem;
  color: var(--dark-soft);
}

.btn.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition);
}

.btn.btn-primary:hover {
  background: var(--secondary);
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-slider {
  overflow: hidden;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: 100%;
  padding: 2rem;
  text-align: center;
}

.review-stars {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.review-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--dark-soft);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.review-author {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.review-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.review-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.review-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.review-dot.active {
  background: var(--primary);
}

.reviews-add {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   GIFT BANNER
   ============================================ */
.gift-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.gift-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gift-banner p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.contact-info h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  margin-top: 0.8rem;
  border-radius: 2px;
}

.contact-info p {
  color: var(--dark-soft);
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

.contact-info--standalone {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-info--standalone h2::after {
  margin: 0.8rem auto 0;
}

/* How to reach us */
.directions-box {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

.directions-box h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.directions-box p {
  font-size: 1rem;
  color: var(--dark-soft);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-logo);
  font-style: italic;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 350px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary);
}

.footer-contact ul li span {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-contact ul li {
  word-break: break-word;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--secondary);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid,
  .restaurant-grid,
  .surroundings-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    height: 350px;
  }

  .restaurant-image img {
    height: 350px;
  }

  .restaurant-slideshow {
    height: 350px;
  }

  #map {
    height: 350px;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 4rem 2rem;
  }

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

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-md);
    gap: 0.8rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--dark) !important;
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    letter-spacing: 0.04em;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

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

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

  .gift-banner h2 {
    font-size: 1.6rem;
  }
}

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

  .eventi-arrow {
    width: 38px;
    height: 38px;
  }

  .eventi-arrow--prev { left: 2px; }
  .eventi-arrow--next { right: 2px; }
}
