/* Villa Sunshine – modern, fast, dark-mode */
:root {
  --bg: #fafafa;
  --bg-alt: #f0f0f0;
  --text: #1a1a1a;
  --text-muted: #555;
  --accent: #c9950a;
  --accent-hover: #a67a08;
  --link: #a67a08;
  --link-hover: #8a6606;
  --border: #e0e0e0;
  --card-bg: #fff;
  --header-bg: rgba(255,255,255,0.95);
  --footer-bg: #2d2d2d;
  --footer-text: #e0e0e0;
  --footer-link: #c9950a;
}

[data-theme="dark"] {
  --bg: #121212;
  --bg-alt: #1e1e1e;
  --text: #e8e8e8;
  --text-muted: #b0b0b0;
  --border: #333;
  --card-bg: #1a1a1a;
  --header-bg: rgba(18,18,18,0.97);
  --link: #e0a820;
  --link-hover: #f0b830;
  --footer-bg: #0d0d0d;
  --footer-text: #c0c0c0;
  --footer-link: #e0a820;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --bg-alt: #1e1e1e;
    --text: #e8e8e8;
    --text-muted: #b0b0b0;
    --border: #333;
    --card-bg: #1a1a1a;
    --header-bg: rgba(18,18,18,0.97);
    --link: #e0a820;
    --link-hover: #f0b830;
    --footer-bg: #0d0d0d;
    --footer-text: #c0c0c0;
    --footer-link: #e0a820;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Language */
body.lang-en .lang-gr { display: none !important; }
body.lang-gr .lang-en { display: none !important; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.site-nav a:hover { color: var(--accent); }
.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch a {
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
.lang-switch a.active { background: var(--accent); color: #fff; }
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
}
.theme-toggle:hover { background: var(--bg-alt); }
.btn-book {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  border: none;
}
.btn-book:hover { background: var(--accent-hover); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.5rem;
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--header-bg); padding: 1rem; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: block; }
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%), url('images/zakynthos-greece-01.jpg') center/cover no-repeat;
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.5rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero p { font-size: 1.15rem; margin: 0; opacity: 0.95; }

/* Sections */
section { padding: 4rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: 1.75rem; margin: 0 0 0.5rem; color: var(--text); }
.section-title p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Welcome */
.welcome-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}
.welcome-stats span { display: block; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.welcome-stats small { color: var(--text-muted); font-size: 0.9rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.card h3 { margin: 0 0 0.75rem; font-size: 1.1rem; }

/* Facilities list */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.facilities-group {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.facilities-group-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.facilities-group--extra .facilities-group-title { border-bottom-color: var(--text-muted, var(--border)); }
.facilities-extra-note {
  font-size: 0.85rem;
  color: var(--text-muted, var(--text));
  margin: 0 0 0.5rem;
  font-style: italic;
}
.facilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 0;
}
.facilities-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.facilities-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 0.9rem;
}
.facilities-group--extra .facilities-list li::before {
  content: "⊕";
  color: var(--text-muted, var(--text));
}

/* Gallery grid */
.gallery-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}
.gallery-subtitle:first-of-type { margin-top: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid a { cursor: zoom-in; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]) { display: flex; }
.lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 95vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-caption {
  color: #fff;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: 1rem; right: 1rem; font-size: 2.5rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.5rem; left: 0.5rem; right: 0.5rem; }
}

/* Contact form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.contact-form .form-row {
  display: grid;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.contact-form .form-row--dates {
  grid-template-columns: 1fr 1fr  minmax(70px, 1fr) minmax(70px, 1fr);
}
.contact-form .form-row--contact {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 560px) {
  .contact-form .form-row--dates { grid-template-columns: 1fr 1fr; }
  .contact-form .form-row--contact { grid-template-columns: 1fr; }
}
.contact-form .form-field { min-width: 0; }
.contact-form label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted, var(--text));
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.contact-form .form-field:last-child input,
.contact-form .form-field:last-child select { margin-bottom: 0; }
.contact-form textarea { margin-bottom: 0; resize: vertical; min-height: 72px; }
.contact-form input[type="date"] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  filter: var(--date-picker-icon-filter, none);
}
[data-theme="dark"] .contact-form input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 149, 10, 0.2);
}
.contact-form button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.contact-form button[type="submit"]:hover { background: var(--accent-hover); }

/* Map */
.distances-title { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: var(--text); }
.distances-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted, var(--text));
}
.distances-list li { margin: 0; }

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 1rem;
}
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-inner a { color: var(--footer-link); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { max-width: 160px; height: auto; filter: brightness(1.1); }
.copyright { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; opacity: 0.9; }

/* Utilities */
.cta-wrap { text-align: center; margin: 2rem 0; }
.skip-link { position: absolute; top: -100px; left: 0; padding: 0.5rem 1rem; background: var(--accent); color: #fff; z-index: 9999; border-radius: 0 0 8px 0; }
.skip-link:focus { top: 0; }
