@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

:root {
  color-scheme: dark;
  --page-bg: #0c1a24;
  --panel: rgba(16, 36, 49, 0.88);
  --panel-soft: rgba(25, 52, 65, 0.78);
  --panel-border: rgba(220, 235, 239, 0.13);
  --text: #f5f7f6;
  --muted: #b8c8cf;
  --accent: #e2bd70;
  --accent-deep: #b98e3e;
  --teal: #75c5bd;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(18px, 4vw, 54px) 16px 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: var(--text);
  font-family: "Play", sans-serif;
  background-color: var(--page-bg);
  background-image:
    linear-gradient(135deg, rgba(8, 21, 30, 0.86), rgba(9, 27, 37, 0.73)),
    url("https://limneosoikismos.gr/images/gallery/4.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 12% 10%, rgba(92, 157, 157, 0.18), transparent 34%),
              radial-gradient(circle at 90% 80%, rgba(226, 189, 112, 0.11), transparent 30%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

#tsparticles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* FIX 3: διασφάλιση ορατότητας του canvas των particles */
#tsparticles canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  margin: 0 auto;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 6px 12px 28px;
}

.brand-logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(300px, 76vw);
}

.brand-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.24));
}

.brand-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.brand-caption-icon {
  color: var(--accent);
  font-size: 1rem;
}

.gps-mark {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.35);
}

/* 1. UI Language Switcher - κάτω από AUTO TOUR GUIDE MAKEDNOS S.A. */
.ui-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 20, 29, 0.42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.lang-btn {
  min-width: 56px;
  height: 34px;
  padding: 0 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #d7e4e8;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lang-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.lang-btn.is-active {
  background: var(--accent);
  color: #142630;
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 4px 14px rgba(226,189,112,0.28);
}

.intro-card,
.language-panel {
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.intro-card {
  padding: clamp(20px, 4vw, 38px);
}

.gallery-frame {  
  position: relative;
  display: grid;
  place-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 0 22px;
  width: 100%;
}

.swiper {  
  width: min(100%, 270px);
  height: clamp(220px, 54vw, 270px);
  overflow: visible;
  margin-inline: auto;
}

.cube {
  padding: 20px;
  
}

.swiper-slide {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: #193442;
  user-select: none;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.gallery-label {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 16px);
  padding: 7px 13px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f7f4ec;
  background: rgba(8, 24, 33, 0.82);
  font-size: 0.72rem;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.gallery-label i {
  color: var(--accent);
}

.intro-copy {
  max-width: 680px;
  margin: 18px auto 28px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.intro-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.intro-description {
  max-width: 590px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 2vw, 1.02rem);
}

.tour-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.tour-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(225, 239, 241, 0.11);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(40, 72, 84, 0.68), rgba(18, 43, 56, 0.74));
}

.tour-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(226, 189, 112, 0.25);
  border-radius: 14px;
  color: var(--accent);
  background: rgba(226, 189, 112, 0.10);
  font-size: 1.1rem;
}

.tour-copy {
  min-width: 0;
}

.tour-copy h2 {
  margin: 1px 0 4px;
  font-size: 1.08rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.tour-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.tour-copy ol {
  margin: 0;
  padding-left: 18px;
  color: #e7eeee;
  font-size: 0.84rem;
}

.tour-copy li + li {
  margin-top: 5px;
}

.tour-copy strong {
  color: #fff;
}

.column-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  color: #cfe0e3;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.column-hint i {
  color: var(--accent);
}

.language-panel {
  margin-top: 22px;
  padding: clamp(20px, 4vw, 36px);
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.section-heading > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.language-legend,
.language-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px 104px;
  align-items: center;
  gap: 12px;
}

.language-legend {
  padding: 0 14px 10px;
  color: #d2dde0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.language-legend span:first-child {
  text-align: start;
}

.language-legend i {
  margin-right: 5px;
  color: var(--accent);
}

.language-list {
  overflow: hidden;
  border: 1px solid rgba(226, 239, 241, 0.10);
  border-radius: 17px;
  background: rgba(5, 20, 29, 0.23);
}

.language-row {  
  min-height: 74px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(226, 239, 241, 0.09);
  transition: background-color 180ms ease;
}

.language-row:last-child {
  border-bottom: 0;
}

.language-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.language-name {  
  color: #f3f6f5;
  font-size: 0.95rem;
  font-weight: 700;  
}

/* 2. FIX: σημαίες μεγαλύτερες και τέρμα δεξιά στο grid */
.language-actions {  
  grid-column: 2 / span 2; /* πιάνει και τις 2 στήλες GPS+Audio */
  display: flex;
  justify-content: flex-end; /* τέρμα δεξιά */
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.flag-link {  
  display: grid;
  width: 64px; /* ήταν 52px -> μεγαλύτερο */
  height: 42px; /* ήταν 32px -> μεγαλύτερο */
  place-items: center;  
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.flag-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 17px 18px;
  border: 1px solid rgba(226, 189, 112, 0.20);
  border-radius: 16px;
  background: rgba(226, 189, 112, 0.065);
}

.coming-soon > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2d99e;
  font-size: 0.84rem;
  font-weight: 700;
}

.coming-soon-icon {
  color: var(--accent);
  font-size: 1.05rem;
}

.upcoming-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.upcoming-flags a {
  display: block;
  width: 34px;
  height: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  opacity: 0.78;
  transition: opacity 180ms ease, transform 180ms ease;
}

.upcoming-flags a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

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

.site-footer {
  padding: 25px 12px 8px;
  color: rgba(238, 245, 246, 0.72);
  font-size: 0.78rem;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: #f0d18c;
  font-weight: 700;
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  color: #142630;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #f0d18c;
}

@media (max-width: 680px) {
  body {
    padding: 18px 12px 20px;
    background-attachment: scroll;
  }

  .brand-header {
    padding-bottom: 20px;
  }

  .intro-card,
  .language-panel {
    border-radius: 21px;
  }

  .tour-options {
    grid-template-columns: 1fr;
  }

  .tour-option {
    padding: 17px;
  }

  .language-legend,
  .language-row {
    grid-template-columns: minmax(0, 1fr) 84px 84px;
    gap: 8px;
  }

  .language-legend {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  .language-row {
    padding: 10px 9px;
    min-height: 66px;
  }

  .language-name {
    font-size: 0.88rem;
  }

  .language-actions {
    gap: 10px;
  }

  .flag-link {
    width: 48px; /* μεγαλύτερο από πριν (34px) */
    height: 34px;
    border-radius: 6px;
  }

  .coming-soon {
    align-items: flex-start;
    flex-direction: column;
  }

  .upcoming-flags {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  body {
    padding-right: 8px;
    padding-left: 8px;
  }

  .brand-caption {
    gap: 7px;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
  }

  .intro-card,
  .language-panel {
    padding: 18px 13px;
  }

  .gallery-label {
    font-size: 0.65rem;
  }

  .language-legend,
  .language-row {
    grid-template-columns: minmax(0, 1fr) 70px 70px;
    gap: 5px;
  }

  .language-legend {
    font-size: 0.56rem;
  }

  .language-name {
    font-size: 0.82rem;
  }

  .language-actions {
    gap: 8px;
  }

  .flag-link {
    width: 42px;
    height: 30px;
  }

  .tour-option {
    gap: 10px;
    padding: 14px 12px;
  }

  .tour-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
