/*!
 * antonios-sliding-panels.css  —  v1.1  (2026-11-20)
 * Full-screen sliding panels (Privacy & Cookie Policy):
 * slide in from the RIGHT, slide out to the LEFT. Same feel as xevouloman.com.cy,
 * in Antonios colours (dark background, gold headings).
 * Works together with js/antonios-sliding-panels.js (load both).
 */

:root {
  --ag-panel-bg: #212529;         /* same dark as the footer */
  --ag-panel-gold: #c29e75;       /* Antonios gold */
  --ag-panel-text: rgba(255, 255, 255, 0.85);
}

/* ---------- the panel ---------------------------------------------------- */
.ag-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;                         /* real visible height on phones */
  z-index: 1029;                          /* just under the header (1030), above the cookie banner (999) */
  display: none;                          /* closed = fully removed */
  overflow-x: hidden;
  overflow-y: auto;                       /* scrolls on its own */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;           /* reaching the end never scrolls the page behind */
  background-color: var(--ag-panel-bg);
  color: var(--ag-panel-text);
  transform: translate3d(100%, 0, 0);     /* waiting off-screen on the RIGHT */
  transition: transform var(--ag-panel-speed, 700ms) cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.ag-panel.is-mounted { display: block; }                        /* in the page, still off-screen */
.ag-panel.is-open    { transform: translate3d(0, 0, 0); }       /* on screen */
.ag-panel.is-closing { transform: translate3d(-100%, 0, 0); }   /* leaves to the LEFT */

/* content starts right under the navigation (height set live by the JS) */
.ag-panel-inner {
  min-height: 100%;
  padding: calc(var(--ag-header-h, 111px) + 30px) 0 40px;
}
.ag-panel .container { max-width: 900px; }

/* ---------- typography --------------------------------------------------- */
.ag-panel h2 {
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-align: center;
  margin: 0 0 6px;
}
.ag-panel .ag-panel-date {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  margin: 0 0 28px;
}
.ag-panel h3 {
  color: var(--ag-panel-gold);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 30px 0 10px;
}
.ag-panel p,
.ag-panel li {
  color: var(--ag-panel-text);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}
.ag-panel h4 {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 18px 0 6px;
}
.ag-panel ul,
.ag-panel ol { padding-left: 1.2rem; margin: 0 0 12px; }
.ag-panel ol li::marker { color: var(--ag-panel-gold); }
.ag-panel sup { font-size: 0.7em; }
.ag-panel li { margin-bottom: 4px; }
.ag-panel strong { color: #fff; font-weight: 600; }
.ag-panel a:not(.btn) {
  color: var(--ag-panel-gold);
  text-decoration: underline;
  text-decoration-color: currentColor;
  transition: color 0.4s ease, text-decoration-color 0.4s ease;
}
.ag-panel a:not(.btn):hover { color: #fff; }
.ag-panel hr { border-color: rgba(255, 255, 255, 0.15); opacity: 1; margin: 0 0 30px; }
.ag-panel code {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  white-space: nowrap;
}

/* ---------- cookie table: scrolls sideways on narrow screens -------------- */
.ag-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}
.ag-cookie-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 300;
  margin: 0;
}
.ag-cookie-table th,
.ag-cookie-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.ag-cookie-table th { font-weight: 600; white-space: nowrap; background: rgba(255, 255, 255, 0.08); }
.ag-cookie-table tr:last-child td { border-bottom: 0; }
.ag-cookie-table td:nth-child(3) { min-width: 220px; }
.ag-cookie-table td:nth-child(4),
.ag-cookie-table td:nth-child(5) { white-space: nowrap; }
.ag-swipe-hint { display: none; color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; margin: -6px 0 14px; }
@media (max-width: 767px) { .ag-swipe-hint { display: block; } }

/* ---------- ✕ close button ------------------------------------------------ */
.ag-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 34px auto 10px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.ag-panel-close:hover { background: #fff; color: var(--ag-panel-bg); border-color: #fff; }
.ag-panel-close:focus { outline: none; }
.ag-panel-close:focus-visible { outline: 2px solid var(--ag-panel-gold); outline-offset: 3px; }

/* ✕ in the top-right corner (all panels), just under the navigation */
.ag-panel-inner { position: relative; }
.ag-panel .ag-panel-close {
  position: absolute;
  top: calc(var(--ag-header-h, 111px) + 16px);
  right: 18px;
  width: 46px;
  height: 46px;
  margin: 0;
  font-size: 26px;
  z-index: 2;
}
@media (max-width: 575px) {
  .ag-panel .ag-panel-close { top: calc(var(--ag-header-h, 80px) + 10px); right: 10px; width: 40px; height: 40px; font-size: 22px; }
}

/* ---------- text fades in each time the panel opens ------------------------ */
.ag-panel [data-ag-fx] { opacity: 0; }
.ag-panel [data-ag-fx].ag-fx-in { animation: agPanelFadeUp .6s cubic-bezier(.2,.7,.3,1) both; }
@keyframes agPanelFadeUp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---------- page behind the panel: frozen --------------------------------- */
html.ag-scroll-lock,
html.ag-scroll-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ---------- link state while open ----------------------------------------- */
.ag-panel-active { opacity: 0.75; }

/* ---------- phones --------------------------------------------------------- */
@media (max-width: 575px) {
  .ag-panel-inner { padding-top: calc(var(--ag-header-h, 80px) + 20px); }
  .ag-panel h2 { letter-spacing: 0.15em; font-size: 1.4rem; }
  .ag-panel p, .ag-panel li { font-size: 0.95rem; line-height: 1.7; }
}

/* ---------- DROP panel (bookings): full width, auto height, under the menu -- */
.ag-panel.ag-panel-drop {
  top: var(--ag-drop-top, 70px);          /* bottom of the navigation, kept up to date by the JS */
  height: auto;
  max-height: calc(100vh - var(--ag-drop-top, 70px));
  max-height: calc(100dvh - var(--ag-drop-top, 70px));   /* taller than the screen → scrolls inside */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overscroll-behavior: auto;              /* scrolling over it still scrolls the page (which closes it) */
}
.ag-panel-drop .ag-panel-inner {
  position: relative;
  min-height: 0;
  padding: 44px 0 40px;
}
.ag-panel-drop .ag-panel-close {         /* ✕ in the top-right corner */
  position: absolute;
  top: 16px;
  right: 18px;
  width: 46px;
  height: 46px;
  margin: 0;
  font-size: 26px;
  z-index: 2;
}
.ag-panel-drop h2 { margin-bottom: 8px; }
.ag-panel-drop .ag-panel-lead { text-align: center; margin: 0 0 30px; }
/* bookings panel leaving: starts moving at once and glides to a stop off to the left */
.ag-panel.ag-panel-drop.is-closing {
  transition: transform 900ms cubic-bezier(0.25, 0.8, 0.25, 1);
}
.ag-book-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 60px; }
.ag-book-place { display: flex; align-items: center; gap: 18px; }
.ag-book-place .pe-7s-map-2 { color: var(--ag-panel-gold); font-size: 54px; line-height: 1; }
.ag-book-place h4 { color: #fff; font-size: 1.25rem; letter-spacing: 0.08em; margin: 0 0 10px; }
/* BOOK NOW: gold in every state — no Bootstrap blue when pressed, no focus glow */
html body .ag-panel .btn-primary,
html body .ag-panel .btn-primary:focus,
html body .ag-panel .btn-primary:active,
html body .ag-panel .btn-primary.active,
html body .ag-panel .btn-primary:first-child:active,
html body .ag-panel .btn-primary:not(:disabled):not(.disabled):active {
  color: #fff !important;
  background-color: #c29e75 !important;
  border-color: #c29e75 !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background-color .35s ease, border-color .35s ease !important;
  -webkit-tap-highlight-color: transparent;
}
html body .ag-panel .btn-primary:hover {
  color: #fff !important;
  background-color: #ceb190 !important;   /* the theme's own lighter gold on hover */
  border-color: #ceb190 !important;
}
html body .ag-panel .btn-primary:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }
@media (max-width: 575px) {
  .ag-panel-drop .ag-panel-inner { padding: 56px 0 32px; }
  .ag-panel-drop .ag-panel-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 22px; }
}

/* ---------- accessibility -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ag-panel { transition: none; }
  .ag-panel [data-ag-fx] { opacity: 1; animation: none !important; }
}
