:root {
  --primary: #006633;
  /* Vert Tourisme Haute Savoie */
  --primary-dark: #004d1a;
  --secondary: #e60000;
  /* Rouge Savoie */
  --text-dark: #1E293B;
  --text-body: #475569;
  --text-light: #64748B;
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --yellow: #F59E0B;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-title: 'Georgia', serif;

  --space-xs: 0.75rem;
  --space-sm: 1.5rem;
  --space-md: 3rem;
  --space-lg: 3rem;
  --space-xl: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

.active-link {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.h1 {
  font-size: 2.5rem;
}

.h2 {
  font-size: 2rem;
}

.h3 {
  font-size: 1.5rem;
}

.h4 {
  font-size: 1.25rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.2s color;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

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

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

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

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

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

  .h1 {
    font-size: 3.5rem;
  }
}

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

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

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }

  .md\:text-left {
    text-align: left;
  }

  .md\:justify-start {
    justify-content: flex-start;
  }
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-4 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-white {
  color: #FFF !important;
}

.text-light {
  color: var(--text-light);
}

.text-primary {
  color: var(--primary);
}

.text-dark {
  color: var(--text-dark);
}

.text-yellow {
  color: var(--yellow);
}

.star-filled {
  fill: var(--yellow);
  color: var(--yellow);
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mb-2 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 3rem;
}

.mb-8 {
  margin-bottom: 4rem;
}

.mb-12 {
  margin-bottom: 6rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-auto {
  margin-top: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mr-2 {
  margin-right: 0.5rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-xl {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.pb-xl {
  padding-bottom: var(--space-xl);
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.bg-light {
  background-color: #F1F5F9;
}

.bg-white {
  background-color: #FFF;
}

.bg-transparent {
  background-color: transparent;
}

.hover\:bg-light:hover {
  background-color: #F1F5F9;
}

.border-b {
  border-bottom: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

.border-none {
  border: none;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.object-cover {
  object-fit: cover;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-xl {
  border-radius: 1rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hidden {
  display: none !important;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.cursor-pointer {
  cursor: pointer;
}

.transition {
  transition: all 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover,
.btn-outline.active {
  background-color: var(--primary);
  color: #fff;
}

.btn-link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

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

/* Booking Button */
.btn-booking {
  background-color: #003580;
  /* Booking blue */
  color: #fff;
  border-color: #003580;
}

.btn-booking:hover {
  background-color: #00224f;
  color: #feba02;
  /* Booking yellow */
}

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Main Navigation Styles */
.main-navigation {
  width: 100%;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.main-navigation .menu-item {
  position: relative;
  font-family: var(--font-main);
}

.main-navigation .menu-item a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-navigation .menu-item a:hover,
.main-navigation .current-menu-item>a {
  color: var(--primary);
}

/* Sub-menus */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 1rem 0 !important;
  display: none !important;
  flex-direction: column !important;
  gap: 0 !important;
  z-index: 1000;
  text-align: left;
}

.sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.menu-item-has-children:hover>.sub-menu,
.sfHover>.sub-menu {
  display: flex !important;
}

.sub-menu .menu-item {
  width: 100%;
}

.sub-menu .menu-item a {
  padding: 0.6rem 1.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

.sub-menu .menu-item a:hover {
  background: var(--bg-body);
}

.dropdown-menu-toggle {
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
}

.gp-icon svg {
  fill: currentColor;
  width: 0.8em;
  height: 0.8em;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.5rem;
}

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

  .main-navigation #primary-menu {
    display: none;
    width: 100%;
  }

  .main-navigation #primary-menu.toggled {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
  }

  .main-navigation .menu-item {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .main-navigation .menu-item a {
    padding: 1rem;
    justify-content: space-between;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    background: var(--bg-body);
    width: 100%;
    padding: 0 !important;
  }

  .menu-item-has-children .sub-menu {
    display: none !important;
  }

  .menu-item-has-children.sfHover>.sub-menu {
    display: block !important;
  }

  .sub-menu .menu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #fff;
  padding: var(--space-lg) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul a {
  color: #cbd5e1;
}

.footer-col ul a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 1.5rem 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img {
  position: relative;
  width: 100%;
  height: 200px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  color: var(--text-dark);
}

.card h3 a {
  color: inherit;
}

/* Premium Card Styles */
.card-premium {
  border: 2px solid #ffc107;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
  box-shadow: 0 10px 25px -5px rgba(255, 193, 7, 0.2), 0 8px 10px -6px rgba(255, 193, 7, 0.1);
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 30px -5px rgba(255, 193, 7, 0.25), 0 15px 15px -5px rgba(255, 193, 7, 0.15);
}

/* Badges */
.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  z-index: 2;
}

.badge-premium {
  left: auto;
  right: 1rem;
  background: #ffc107;
  color: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Page Headers */
.page-header {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.page-header h1 {
  color: #fff;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-section {
  min-height: 60vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.city-overlay {
  transition: opacity 0.3s;
  opacity: 0.8;
}

.city-card:hover .city-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

.city-card img {
  transition: transform 0.5s;
}

.city-card:hover img {
  transform: scale(1.05);
}

/* Features List */
.features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 24px;
  height: 24px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

/* Detail Page */
.heb-image-main {
  height: 400px;
}

/* Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

input:focus {
  outline: none;
}

/* Autocomplete */
.autocomplete-results {
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  max-height: 250px;
  z-index: 50;
  text-align: left;
}

.autocomplete-item {
  color: var(--text-dark);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.phone {
  margin-left: 15px;
}