/* Look and tokens follow the escapeinstyle.gr welcome pages (4pages/welcome/style.css). */
:root {
  --primary: #0f766e;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: rgba(0,0,0,0.05);
  --hover-shadow: rgba(0,0,0,0.1);
  --link-hover: #065f55;
  --on-primary: #ffffff;
  --soft: #e6f4f2;
  --warn-bg: #fff4e0;
  --warn-ink: #7a4b00;
  --max-width: 1024px;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
body.dark {
  --primary: #5eead4;
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #e2e8f0;
  --muted: #9ca3af;
  --border: #374151;
  --shadow: rgba(0,0,0,0.25);
  --hover-shadow: rgba(0,0,0,0.4);
  --link-hover: #99f6e4;
  --on-primary: #0f172a;
  --soft: #16343a;
  --warn-bg: #3a2c12;
  --warn-ink: #f3cf8b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); line-height: 1.6; font-family: var(--font-family); font-size: 16px; transition: background 0.3s ease, color 0.3s ease; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 1rem; }
section, .welcome { scroll-margin-top: 1rem; }

/* Header: logo, language, theme */
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem; background: var(--card-bg); border-radius: 12px; box-shadow: 0 4px 12px var(--shadow); margin-bottom: 1.5rem; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo:hover { color: var(--link-hover); }
.switches { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.lang-switch, .theme-switch { display: flex; gap: 0.5rem; }
.lang-btn, .theme-btn { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg); color: var(--text); cursor: pointer; font: inherit; font-weight: 500; font-size: 0.9rem; transition: all 0.3s ease; }
.lang-btn:hover, .theme-btn:hover, .lang-btn.active, .theme-btn.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* Welcome: our photos instead of the logo circle */
.welcome { background: var(--card-bg); border-radius: 12px; box-shadow: 0 4px 12px var(--shadow); margin-bottom: 2rem; overflow: hidden; }
.welcome-text { text-align: center; padding: 1.5rem 1rem 2rem; }
.welcome h1 { font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; margin-bottom: 0.5rem; }
.welcome .small + .small { margin-top: 0.25rem; }
.contact-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: var(--on-primary); text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 600; margin-top: 1rem; transition: all 0.3s; }
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--hover-shadow); }

.gallery { position: relative; }
.gallery .strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery .strip::-webkit-scrollbar { display: none; }
.gallery .shot { flex: 0 0 86%; scroll-snap-align: start; aspect-ratio: 3 / 2; overflow: hidden; background: var(--border); border: 0; padding: 0; cursor: zoom-in; }
@media (min-width: 640px) { .gallery .shot { flex-basis: 55%; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #0f172a; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); display: none; }
@media (hover: hover) { .gallery .nav { display: block; } }
.gallery .prev { left: 10px; } .gallery .next { right: 10px; }

/* Dashboard tiles */
.dashboard { margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; }
.tile { background: var(--card-bg); color: var(--text); text-decoration: none; padding: 1rem 0.5rem; border-radius: 12px; text-align: center; border: 1px solid var(--border); transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.tile i { font-size: 1.5rem; color: var(--primary); }
.tile span { font-weight: 500; font-size: 0.875rem; }
.tile:hover { box-shadow: 0 6px 16px var(--hover-shadow); transform: translateY(-4px); }

/* Sections */
section { margin-bottom: 2rem; background: var(--card-bg); padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 12px var(--shadow); transition: box-shadow 0.3s ease; }
section:hover { box-shadow: 0 6px 16px var(--hover-shadow); }
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 14px var(--hover-shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--link-hover); }
.to-top:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary); font-weight: 600; }
h2 + .lead { margin: -0.5rem 0 1rem; }
.sub-h { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.small { font-size: 0.875rem; color: var(--muted); }
.link { color: var(--primary); text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
.link:hover { text-decoration: underline; color: var(--link-hover); }
.kv { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 0.75rem 1rem; font-size: 0.9rem; }
.kv .key { color: var(--muted); font-weight: 500; }
.kv .value { display: flex; align-items: center; gap: 0.5rem; overflow-wrap: anywhere; }
.phone-link { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-weight: 500; }
.phone-link:hover { color: var(--primary); }
.phone-link i { color: var(--primary); font-size: 0.9rem; }
.code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 12px; font-size: 0.875rem; margin: 1rem 0 0; }

ol.steps { counter-reset: s; list-style: none; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 0.9rem 2.6rem; font-size: 0.95rem; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
ul.plain { padding-left: 1.25rem; font-size: 0.95rem; }
ul.plain li { margin: 0 0 0.5rem; }

/* Photo cards (sights, food, city, parking) */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.info-card { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s ease; display: flex; flex-direction: column; }
.info-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(15,118,110,0.1); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; font-weight: 600; display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.info-card .small { flex-grow: 1; }
.mins { flex: none; font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.card-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.card-links .link { padding: 0.4rem 0.9rem; background: var(--primary); color: var(--on-primary); border-radius: 6px; font-size: 0.875rem; }
.card-links .link:hover { background: var(--link-hover); text-decoration: none; transform: translateY(-2px); }
.image-link-container { display: block; position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 0.75rem; height: 180px; background: var(--soft); }
.image-link-container img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.image-link-container:hover img { transform: scale(1.05); }
.image-link-container::after { content: ''; position: absolute; inset: 0; background: rgba(15,118,110,0.1); opacity: 0; transition: opacity 0.3s ease; }
.image-link-container:hover::after { opacity: 1; }
.image-link-container.logo { background: #fff; border: 1px solid var(--border); }
.image-link-container.logo img { object-fit: contain; padding: 12px; }
.image-link-container.noimg::before { content: "\f03e"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 2rem; color: var(--primary); opacity: .5; position: absolute; inset: 0; display: grid; place-items: center; }
#explore .image-link-container { height: 200px; }
@media (min-width: 900px) { .info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 641px) { .info-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

/* Apartment: Airbnb description and nearest stops */
p.desc { font-size: 0.95rem; margin-bottom: 0.9rem; }
p.desc + .kv { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
ul.stops { list-style: none; display: grid; gap: 0.5rem; margin-bottom: 0.5rem; }
ul.stops li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; }
ul.stops i { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 0.85rem; }
ul.stops .dist { margin-left: auto; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.card-icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; color: var(--primary); }

/* Airport options */
.route-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.route-head i { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 1.1rem; }
.route-head h3 { margin: 0; }
.route-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.route-meta i { color: var(--primary); font-size: 0.8rem; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--primary); color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.chip:hover { background: var(--soft); }

/* Weather */
.map-iframe { width: 100%; height: 500px; border: none; border-radius: 12px; background: #fff; }

/* Availability calendar */
.contact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: var(--on-primary); text-decoration: none; padding: 0.65rem 1.25rem; border-radius: 999px; font-weight: 600; }
.btn:hover { background: var(--link-hover); }
.muted { color: var(--muted); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.calnav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 20px; cursor: pointer; }
.calnav:disabled { opacity: .35; cursor: default; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend i.free { background: var(--soft); border: 1px solid var(--primary); }
.legend i.booked { background: var(--border); }
.months { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .months { grid-template-columns: 1fr 1fr; } }
.month b { display: block; margin: 0 0 8px; }
.dow, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dow span { font-size: 12px; color: var(--muted); }
.grid .day { padding: 7px 0; border-radius: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.grid .free { background: var(--soft); color: var(--text); font-weight: 700; }
.grid .booked { background: var(--border); color: var(--muted); text-decoration: line-through; }
.grid .past { color: var(--muted); opacity: .45; }
.grid .today { outline: 2px solid var(--primary); outline-offset: -2px; }
#cal .small { margin-top: 10px; }

/* Chat */
.chat-link-container { text-align: center; display: flex; justify-content: center; gap: 2rem 3rem; flex-wrap: wrap; }
.chat-option { display: flex; flex-direction: column; align-items: center; min-width: 180px; }
.whatsapp-icon-large, .viber-icon-large, .phone-icon-large { font-size: 4rem; margin: 1rem 0 0.5rem; display: block; transition: transform 0.3s ease; }
.whatsapp-icon-large { color: #25D366; }
.viber-icon-large { color: #7360F2; }
.phone-icon-large { color: #007AFF; }
.whatsapp-icon-large:hover, .viber-icon-large:hover, .phone-icon-large:hover { transform: scale(1.1); }
.chat-option .link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.25rem; background: var(--primary); color: var(--on-primary); border-radius: 999px; }
.chat-option .link:hover { background: var(--link-hover); text-decoration: none; transform: translateY(-2px); }

/* Home: list of stays */
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.unit-link { display: block; text-decoration: none; color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem; transition: all 0.3s ease; }
.unit-link:hover { border-color: var(--primary); transform: translateY(-2px); }
.unit-link img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 0.5rem; }
.unit-link b { display: block; font-size: 0.95rem; line-height: 1.3; }
.unit-link small { display: block; color: var(--muted); margin-top: 0.25rem; }

footer { text-align: center; padding: 1.5rem 0; color: var(--muted); font-size: 0.875rem; }
footer .credits { font-size: 0.75rem; }

/* Photo popup */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 15, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; line-height: 1; }
.lb-close { top: 10px; right: 12px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; top: 20px; left: 16px; color: #fff; font-size: 14px; opacity: .85; }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid #fff; }

@media (max-width: 640px) {
  .container { padding: 0.75rem; }
  header.top { flex-direction: column; align-items: flex-start; }
  .dashboard { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .info-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0.15rem; }
  .kv .value { margin-bottom: 0.6rem; }
  .image-link-container, #explore .image-link-container { height: 170px; }
  section { padding: 1.15rem; }
  .to-top { right: 1rem; bottom: 1rem; }
  .map-iframe { height: 420px; }
}
@media (min-width: 1024px) { .container { padding: 2rem; } }
@media print {
  .switches, .dashboard, #weather, #chat { display: none; }
  section { break-inside: avoid; box-shadow: none; }
}

/* Links to the other Escape in Style sites */
nav.sites { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; font-size: 0.9rem; }
nav.sites a { color: inherit; text-decoration: none; font-weight: 500; }
nav.sites a:hover { text-decoration: underline; }
nav.sites a.book { color: var(--primary); font-weight: 600; }
footer .footer-sites { margin: 0 0 0.5rem; }
.contact .btn + .btn { margin-left: 0.5rem; }
