/* =========================================================
   Villa Daskaleio — styles
   ========================================================= */
:root {
  --ink: #1d2a33;
  --ink-soft: #4a5a64;
  --sea: #12405e;
  --sea-deep: #0c2b40;
  --aegean: #1e6f9f;
  --sand: #f6f1e8;
  --stone: #e9e2d5;
  --white: #ffffff;
  --gold: #c8a24b;
  --ok: #2e7d51;
  --bad: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 64, 94, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; font-weight: 300; }
img { max-width: 100%; display: block; }
/* Base size for every line icon; per-context rules below refine it. */
.ico { width: 24px; height: 24px; flex: 0 0 auto; display: block; color: var(--sea); }
a { color: var(--aegean); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; color: var(--sea-deep); }
h3 { font-size: 1.5rem; margin-bottom: .6rem; color: var(--sea-deep); }
h4 { font-weight: 500; margin-bottom: .5rem; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.section { padding: 90px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: linear-gradient(160deg, var(--sea-deep), var(--sea) 70%); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark a { color: #9fd0ee; }
.section-kicker { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; font-weight: 500; color: var(--gold); margin-bottom: .8rem; }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 2rem; }
.section-dark .section-sub { color: #c8dcea; }
.muted { color: var(--ink-soft); font-size: .95rem; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 14px 34px; border-radius: 999px; font-family: var(--font-body); font-weight: 500; font-size: .95rem; cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow); }
.btn-light { background: var(--white); color: var(--sea-deep); }
.btn-outline { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); }
.btn-wide { width: 100%; font-size: 1.05rem; padding: 16px; }

/* ===== Nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(18,64,94,.08); }
.nav-inner { max-width: 1150px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.45rem; color: var(--sea-deep); font-weight: 600; }
.nav-logo em { color: var(--aegean); }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink); font-size: .92rem; font-weight: 400; position: relative; padding-bottom: 3px; }
.nav-links a:hover { color: var(--aegean); text-decoration: none; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .25s ease; }
.nav-links a.active { color: var(--aegean); font-weight: 600; }
.nav-links a.active::after { right: 0; }
.nav-cta { background: var(--sea); color: var(--white) !important; padding: 9px 22px; border-radius: 999px; }
.nav-cta:hover { background: var(--aegean); }
.nav-cta::after { display: none; }
.nav-cta.active { background: var(--gold); color: var(--sea-deep) !important; font-weight: 600; }
.nav-burger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--sea-deep); cursor: pointer; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,43,64,.45), rgba(12,43,64,.25) 45%, rgba(12,43,64,.65)); }
.hero-content { position: relative; z-index: 2; color: var(--white); padding: 100px 24px 40px; max-width: 820px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .35em; font-size: .8rem; margin-bottom: 1rem; color: #ffe9b8; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 500; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 1rem auto 1.6rem; max-width: 560px; color: #eef6fb; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.badge { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); padding: 7px 16px; border-radius: 999px; font-size: .85rem; }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 10px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; background: var(--stone); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item.hidden-photo { display: none; }
.gallery-grid.expanded .gallery-item.hidden-photo { display: block; }
.gallery-more { display: block; margin: 28px auto 0; }

/* ===== Villa ===== */
.villa-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
.villa-text p { margin-bottom: 1.1rem; }
.villa-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 1.6rem; }
.villa-facts li { background: var(--white); border-radius: var(--radius); padding: 14px 16px; text-align: center; box-shadow: var(--shadow); font-size: .85rem; color: var(--ink-soft); }
.villa-facts strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--sea-deep); }
.bedrooms-card, .host-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
.bedroom-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--stone); font-size: .92rem; }
.bedroom-row:last-child { border-bottom: none; }
.bedroom-row .b-name { font-weight: 500; }
.bedroom-row .b-beds { color: var(--ink-soft); text-align: right; }

/* ===== Amenities ===== */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.amenity { display: flex; align-items: center; gap: 14px; background: var(--sand); border-radius: var(--radius); padding: 16px 18px; font-size: .93rem; }
.amenity .a-icon { width: 26px; height: 26px; }

/* ===== Reviews ===== */
.star-big { color: var(--gold); }
.ratings-panel { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; margin-bottom: 40px; }
.rb-row { display: flex; align-items: center; gap: 10px; font-size: .85rem; margin-bottom: 7px; color: var(--ink-soft); }
.rb-bar { flex: 1; height: 6px; background: var(--stone); border-radius: 3px; overflow: hidden; }
.rb-fill { height: 100%; background: var(--sea); border-radius: 3px; }
.ratings-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rc-item { text-align: center; border-left: 1px solid var(--stone); }
.rc-item:first-child { border-left: none; }
.rc-score { font-family: var(--font-display); font-size: 1.7rem; color: var(--sea-deep); }
.rc-name { font-size: .8rem; color: var(--ink-soft); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: none; flex-direction: column; }
.review-card.visible { display: flex; }
.review-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--aegean), var(--sea-deep)); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; flex-shrink: 0; }
.review-name { font-weight: 500; font-size: .95rem; }
.review-meta { font-size: .78rem; color: var(--ink-soft); }
.review-stars { color: var(--gold); font-size: .85rem; letter-spacing: 2px; margin-bottom: 8px; }
.review-text { font-size: .92rem; color: var(--ink-soft); }
.review-text.clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-expand { background: none; border: none; color: var(--aegean); cursor: pointer; padding: 6px 0 0; text-align: left; font-size: .85rem; font-family: var(--font-body); }
.reviews-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }

/* ===== Calendar ===== */
.calendar-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; position: relative; }
.calendar-nav { position: absolute; top: 26px; right: 26px; display: flex; gap: 8px; z-index: 2; }
.cal-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--stone); background: var(--white); font-size: 1.2rem; cursor: pointer; color: var(--sea-deep); transition: background .15s; }
.cal-arrow:hover:not(:disabled) { background: var(--sand); }
.cal-arrow:disabled { opacity: .35; cursor: default; }
.calendar-months { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cal-month h3 { text-align: center; font-size: 1.25rem; margin-bottom: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding-bottom: 6px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .85rem; border-radius: 8px; position: relative; }
.cal-day.has-price { flex-direction: column; gap: 1px; }
.cal-day .cal-price { font-size: .62rem; font-weight: 500; opacity: .85; letter-spacing: -.02em; }
.cal-day.avail { background: #e8f3ec; color: var(--ok); cursor: pointer; font-weight: 500; }
.cal-day.avail:hover { outline: 2px solid var(--ok); }
.cal-day.booked { background: #f7edeb; color: #cf8b80; text-decoration: line-through; }
/* Free night, but too late in the gap to begin a minimum stay. */
.cal-day.open { background: #f4f6f7; color: #7b8a94; }
.cal-day.past { background: none; color: #c3ccd2; text-decoration: line-through; }
.cal-day.empty { background: none; }
.cal-day.selected { background: var(--sea); color: var(--white); font-weight: 600; }
.cal-day.in-range { background: #cfe3f0; color: var(--sea-deep); }
.calendar-legend { display: flex; gap: 26px; justify-content: center; margin-top: 24px; font-size: .85rem; color: var(--ink-soft); flex-wrap: wrap; }
.leg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.leg-avail { background: #e8f3ec; border: 1px solid var(--ok); }
.leg-co { background: #fff; border: 2px dashed var(--ok); }
.leg-open { background: #f4f6f7; border: 1px solid #b6c2c9; }
.leg-booked { background: #f7edeb; border: 1px solid #cf8b80; }
.leg-sel { background: var(--sea); }
.cal-day.co-ok { background: var(--white); outline: 2px dashed var(--ok); outline-offset: -2px; color: var(--ok); }
.cal-day.co-ok:hover { background: #e8f3ec; }
.calendar-note { text-align: center; margin-top: 12px; font-size: .85rem; color: var(--ink-soft); }
.calendar-stamp { text-align: center; margin-top: 6px; font-size: .78rem; color: #8b9aa4; }
.calendar-selection { text-align: center; margin-top: 16px; font-size: .95rem; color: var(--sea-deep); min-height: 1.4em; font-weight: 500; }

/* ===== Booking form ===== */
.booking-form { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 36px; backdrop-filter: blur(6px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-field label { font-size: .82rem; font-weight: 500; margin-bottom: 7px; letter-spacing: .03em; color: #d5e6f2; }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.95); font-family: var(--font-body); font-size: .95rem; color: var(--ink); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.captcha-field { margin-top: 6px; }
.captcha-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#captchaCanvas { border-radius: 10px; background: var(--sand); }
.captcha-row input { flex: 1; min-width: 140px; }
.captcha-row .cal-arrow { background: rgba(255,255,255,.9); }
.form-error { color: #ffb3a7; font-size: .9rem; min-height: 1.3em; margin-bottom: 12px; }
.form-note { font-size: .8rem; color: #b9cfdd; text-align: center; margin-top: 14px; }
.booking-success { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 36px; text-align: center; margin-top: 24px; }
.booking-success h3 { color: #a8e6c3; }

/* ===== Location ===== */
.location-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.location-list { list-style: none; margin: 1.2rem 0; }
.location-list li { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--stone); font-size: .95rem; }
.location-list li:last-child { border-bottom: none; }
.location-list .l-icon { width: 22px; height: 22px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===== Footer ===== */
.footer { background: var(--sea-deep); color: #c8dcea; padding: 60px 0 30px; }
.footer h3 { color: var(--white); font-size: 1.6rem; }
.footer h3 em { color: #9fd0ee; }
.footer h4 { color: var(--white); }
.footer a { color: #9fd0ee; }
.footer .muted { color: #8fa9bb; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-note { text-align: center; font-size: .8rem; color: #7292a8; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,20,30,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 22px; right: 26px; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: var(--white); font-size: 2.2rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; transition: background .15s; }
.lb-arrow:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #b9cfdd; font-size: .85rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .villa-cols, .location-cols { grid-template-columns: 1fr; }
  .ratings-panel { grid-template-columns: 1fr; gap: 28px; }
  .calendar-months { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(6) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; gap: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .villa-facts { grid-template-columns: repeat(2, 1fr); }
  .ratings-categories { grid-template-columns: repeat(2, 1fr); }
  .rc-item { border-left: none; }
}
