:root {
  --purple-deep: #3b0764;
  --purple-mid: #7c3aed;
  --purple-light: #6D5DF6;
  --purple-gradient: linear-gradient(135deg, #4C00B0 0%, #A99CFD 100%);
  --gold: #f59e0b;
  --white: #f5f0ff;
  --panel-bg: #0d0d0d;
  --panel-width: 380px;
  --font-color: #260058;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  min-height: 100vh;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--purple-gradient);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 400;
  text-decoration: none;
  transition: color .2s;
}

.topbar-item:hover {
  color: #fff;
}

.topbar-item svg {
  flex-shrink: 0;
}

.topbar-divider {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, #f4f0fb00 0%, #f5f0ff 50%, #f4f0fb00 100%);
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
}

.lang-flag {
  display: flex;
  align-items: center;
  width: 22px;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-flag img,
.lang-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #f5f0ff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(60, 7, 100, 0.18);
  min-width: 140px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s, transform .22s;
  z-index: 999;
}

.lang-select.open .lang-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-family: 'Outfit', sans-serif;
  color: var(--font-color);
  cursor: pointer;
  transition: background .15s;
}

.lang-option:hover {
  background: #dcd0f3;
}

.lang-option.active {
  background: #c8bef5;
  font-weight: 600;
}

/* ── MAIN NAV ── */
.navbar {
  background: var(--white);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  box-shadow: 0 2px 16px rgba(60, 7, 100, 0.07);
  position: sticky;
  top: 0;
  z-index: 900;
}

.logo {
  width: 52px;
  height: 52px;
  background: var(--purple-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

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

.nav-links li {
  position: relative;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--font-color);
  text-decoration: none;
  border-radius: 8px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: #f5f0ff;
  color: var(--purple-mid);
}

.nav-links a.active {
  color: var(--purple-mid);
  border-radius: 0;
  padding-bottom: 6px;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, #f5f0ff 0%, #4C00B0 50%, #f5f0ff 100%);
  /* background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg ' viewBox='0 0 80 8' preserveAspectRatio='none'%3E%3Cpath d='M0,5 C10,2 20,8 30,4 C40,0 50,7 60,4 C70,1 75,5 80,4' fill='none' stroke='%237c3aed' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; */
}

/* Dropdown arrow */
.arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 5.5px solid currentColor;
  margin-top: 1px;
  transition: transform .2s;
}

.nav-links li.open>a .arrow {
  transform: rotate(180deg);
}

/* Subnav - Desktop hover behavior */
.subnav {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(60, 7, 100, 0.13);
  min-width: 190px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .22s, transform .22s;
  z-index: 800;
  list-style: none;
}

/* Desktop: Show on hover when parent is hovered */
@media (min-width: 769px) {
  .has-sub:hover .subnav {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
  
  .has-sub:hover > a .arrow {
    transform: rotate(180deg);
  }
}

/* Mobile/JS controlled: Show when .open class is present */
.nav-links li.open .subnav {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Subnav links - no bottom line */
.subnav a {
  border-radius: 0;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--font-color);
  position: relative;
}

.subnav a:hover {
  background: #f5f0ff;
  color: var(--purple-light);
}

/* Remove active bottom line from subnav items */
.subnav a.active {
  color: var(--purple-mid);
  border-radius: 0;
  padding-bottom: 10px;
}

.subnav a.active::after {
  display: none;
}

/* Right side nav controls */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background .18s;
}

.toggle-btn:hover {
  background: #f5f0ff;
}

.toggle-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #4C00B0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
}

.toggle-btn.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.toggle-btn.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.toggle-btn.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.book-btn {
  background: var(--purple-gradient);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}

.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
}

/* ── SIDE PANEL ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 25, 0.55);
  backdrop-filter: blur(3px);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--panel-width);
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 960;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  color: var(--font-color);
}

.side-panel.open {
  transform: translateX(0);
}

.panel-bg-img {
  display: none;
}

.panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--purple-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f0ff;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
}

.panel-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--font-color);
  line-height: 1.25;
}

.panel-logo-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  color: var(--font-color);
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.panel-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--font-color);
  transition: background .2s;
  font-size: 18px;
}

.panel-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.panel-nav {
  padding: 28px 28px 0;
  flex: 1;
}

.panel-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #260058b7;
  margin-bottom: 14px;
}

.panel-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-nav-item>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  color: #260058c4;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  border-radius: 10px;
  transition: background .2s, color .2s;
  box-shadow: rgba(204, 219, 232, 0.788) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.295) -3px -3px 6px 1px inset;
}

.panel-nav-item>a:hover,
.panel-nav-item>a.active {
  background: rgba(124, 58, 237, 0.25);
  color: var(--font-color);
}

.panel-nav-item>a.active {
  background: rgba(124, 58, 237, 0.35);
  border-left: 3px solid var(--purple-light);
  box-shadow: none;
}

.panel-subnav {
  list-style: none;
  padding: 4px 0 4px 20px;
  display: none;
}

.panel-nav-item.open .panel-subnav {
  display: block;
}

/* Panel subnav links - no bottom line */
.panel-subnav a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--font-color);
  text-decoration: none;
  border-radius: 8px;
  transition: background .18s, color .18s;
  position: relative;
}

.panel-subnav a:hover {
  background: #ede9feb4;
  color: var(--font-color);
}

/* Remove active bottom line from panel subnav items */
.panel-subnav a.active {
  color: var(--font-color);
  background: #ede9feb4;
  border-radius: 8px;
  padding-bottom: 9px;
}

.panel-subnav a.active::after {
  display: none;
}

.panel-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #260058a8;
  transition: transform .25s;
  margin-left: auto;
  flex-shrink: 0;
}

.panel-nav-item.open .panel-chevron {
  transform: rotate(180deg);
  border-top-color: var(--purple-mid);
}

.panel-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 24px 28px;
}

.panel-contact {
  padding: 0 28px 12px;
}

.panel-contact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #260058af;
  margin-bottom: 14px;
}

.panel-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #260058de;
  font-size: 13.5px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color .18s;
}

.panel-contact-item:hover {
  color: #260058;
}

.panel-contact-icon {
  width: 32px;
  height: 32px;
  background: #4C00B0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.panel-about {
  padding: 0 28px 28px;
}

.panel-about-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #260058d5;
  margin-bottom: 12px;
}

.panel-about p {
  font-size: 13px;
  color: var(--font-color);
  line-height: 1.7;
  margin-bottom: 18px;
}

.panel-socials {
  display: flex;
  gap: 10px;
}

.panel-social-btn {
  width: 38px;
  height: 38px;
  background: #6016c2;
  border: 1px solid #260058;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: background .2s, color .2s, border-color .2s;
}

.panel-social-btn:hover {
  background: #6c2fd4;
  color: var(--white);
  border-color: rgba(124, 58, 237, 0.6);
}

.panel-book-wrap {
  padding: 0 28px 32px;
}

.panel-book-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--purple-gradient);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: transform .2s, box-shadow .2s;
  letter-spacing: .4px;
}

.panel-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.55);
}

/* ── DESKTOP 1100px+ ── */
@media (min-width: 1101px) {
  /* .topbar {
    padding: 10px max(24px, calc((100% - 150vh) / 2 + 24px));
  } */
  .navbar {
    padding: 0 max(24px, calc((100% - 1160px) / 2 + 24px));
  }
}

/* ── MOBILE ── */
@media (max-width: 790px) {
  .topbar-divider {
    display: none;
  }

  .topbar-item:first-child {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .book-btn {
    padding: 10px 18px;
    font-size: 13.5px;
  }

  :root {
    --panel-width: 100vw;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 8px 16px;
  }

  .navbar {
    padding: 0 16px;
    height: 64px;
  }
}