/* ══════════════════════════════════════════════════
   AZURE HOLIDAYS — Mobile Drawer
   Slide-in from right, 85vw max 380px, iOS-spring motion.
   Active only at <768px (hamburger only appears there).
   ══════════════════════════════════════════════════ */

/* ─── Backdrop ─── */
.md-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease-out;
}
.md-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Drawer panel ─── */
.md {
  position: fixed;
  top: 0; right: 0;
  width: 85vw;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  z-index: 260;
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 60px rgba(15, 25, 35, 0.14);
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.md.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* ─── Drawer header ─── */
.md-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: #fff;
  z-index: 2;
}
.md-logo { display: inline-flex; align-items: center; text-decoration: none; }
.md-logo svg { height: 30px; width: auto; display: block; }
.md-close {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 10px;
  color: #0F1923;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.md-close:hover { background: #F1F5F9; transform: rotate(90deg); }
.md-close:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
}

/* ─── Nav body (scrollable middle) ─── */
/* Override the global `nav { position:fixed; align-items:center }` rule from
   header.css — .md-nav is a <nav> inside the drawer, must stay in flex flow. */
nav.md-nav {
  position: static;
  top: auto; left: auto; right: auto;
  height: auto;
  border-bottom: none;
  background: transparent;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 22px 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: auto;
  transition: none;
}

.md-section { /* hosts the Грција accordion */ }

.md-acc,
.md-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 18px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid #E2E8F0;
  color: #0F1923;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: color 220ms ease, padding-left 260ms ease;
}
.md-link svg, .md-acc-chev { color: #94A3B8; flex-shrink: 0; transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1), color 220ms ease; }
.md-acc[aria-expanded="true"] .md-acc-chev { transform: rotate(180deg); color: var(--azure); }
.md-acc:hover, .md-link:hover,
.md-acc[aria-expanded="true"] { color: var(--azure); }
.md-acc:hover svg, .md-acc:hover .md-acc-chev,
.md-link:hover svg { color: var(--azure); }

.md-acc:focus-visible,
.md-link:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ─── Accordion panel (10 regions) ─── */
.md-acc-panel {
  display: flex;
  flex-direction: column;
  padding: 4px 4px 14px 14px;
  border-bottom: 1px solid #E2E8F0;
}
.md-acc-panel[hidden] { display: none; }
.md-sub {
  display: block;
  text-decoration: none;
  color: #475569;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 10px 0 10px 12px;
  position: relative;
  transition: color 200ms ease, padding-left 220ms ease;
}
.md-sub::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 1px;
  background: #CBD5E1;
  transform: translateY(-50%);
  transition: width 220ms ease, background 220ms ease;
}
.md-sub:first-child { color: var(--azure); font-weight: 600; }
.md-sub:first-child::before { background: var(--azure); }
.md-sub:hover { color: var(--azure); padding-left: 16px; }
.md-sub:hover::before { width: 10px; background: var(--azure); }
.md-sub:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Footer (CTA + contact) ─── */
.md-foot {
  flex-shrink: 0;
  padding: 18px 22px 26px;
  background: #fff;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.md-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 22px;
  background: linear-gradient(135deg, #1AAFB0 0%, #0E8A8A 100%);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 10px 24px -8px rgba(26, 175, 176, 0.55);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}
.md-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(26, 175, 176, 0.65); filter: brightness(1.04); }
.md-cta:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }

.md-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  color: #334155;
  transition: color 200ms ease;
}
.md-phone { font-size: 14px; font-weight: 500; }
.md-email { font-size: 13px; opacity: 0.78; }
.md-contact svg { color: #94A3B8; flex-shrink: 0; }
.md-contact:hover { color: var(--azure); }
.md-contact:hover svg { color: var(--azure); }
.md-contact:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; border-radius: 4px; }

/* ─── Staggered entry reveal ─── */
.md .md-acc,
.md .md-link,
.md .md-cta,
.md .md-contact {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.32, 0.72, 0, 1),
              color 220ms ease, padding-left 260ms ease, background 200ms ease,
              box-shadow 200ms ease, filter 200ms ease;
}
.md.is-open .md-acc,
.md.is-open .md-link,
.md.is-open .md-cta,
.md.is-open .md-contact {
  opacity: 1;
  transform: translateY(0);
}
.md.is-open .md-section { transition-delay: 0ms; }
.md.is-open .md-acc { transition-delay: 80ms; }
.md.is-open .md-link:nth-of-type(2) { transition-delay: 140ms; }
.md.is-open .md-link:nth-of-type(3) { transition-delay: 180ms; }
.md.is-open .md-cta      { transition-delay: 240ms; }
.md.is-open .md-phone    { transition-delay: 290ms; }
.md.is-open .md-email    { transition-delay: 330ms; }

/* ─── Reduced motion: drawer opens instantly ─── */
@media (prefers-reduced-motion: reduce) {
  .md, .md-backdrop, .md-acc, .md-link, .md-cta, .md-contact, .md-acc-chev, .md-close, .md-sub {
    transition: none !important;
    transform: none !important;
  }
  .md { transform: translateX(100%) !important; }
  .md.is-open { transform: translateX(0) !important; }
  .md .md-acc, .md .md-link, .md .md-cta, .md .md-contact { opacity: 1; }
}

/* ─── Body lock helper (applied by JS) ─── */
body.md-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ─── Above 768px the drawer never shows ─── */
@media (min-width: 768px) {
  .md, .md-backdrop { display: none !important; }
}
