/*
Theme Name: La Finestra
Template: hello-elementor
Description: Child theme for La Finestra hotel (Nydri).
Version: 1.1.0
Text Domain: lafinestra
*/

:root {
  --lf-ink:       #1a1a1a;  /* μαύρο (κείμενο, κουμπιά) */
  --lf-ink-soft:  #3a3a3a;
  --lf-cream:     #f3ece0;  /* κρεμ (ενότητες) */
  --lf-cream-deep:#ece2d2;
  --lf-white:     #ffffff;
  --lf-line:      #e4ddce;  /* λεπτές γραμμές */
  --lf-muted:     #6f6a61;
}

/* ---------- Base typography ---------- */
body {
  font-family: 'Mulish', -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--lf-ink-soft);
  font-weight: 400;
  letter-spacing: .1px;
}
h1, h2, h3, h4, .elementor-heading-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--lf-ink);
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.14;
}
/* Beat Elementor's default (blue) global heading colour */
.elementor-widget-heading .elementor-heading-title { color: var(--lf-ink) !important; }
.lf-hero .elementor-widget-heading .elementor-heading-title,
.lf-dark .elementor-widget-heading .elementor-heading-title { color: #fff !important; }
h1, .elementor-widget-heading h1.elementor-heading-title { font-size: clamp(2.4rem, 5vw, 4rem); }
h2, .elementor-widget-heading h2.elementor-heading-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3, .elementor-widget-heading h3.elementor-heading-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p { line-height: 1.75; }
a { color: var(--lf-ink); }

/* ---------- Header / logo ---------- */
.site-header.dynamic-header { box-shadow: 0 1px 0 var(--lf-line); padding: 6px 0; }
.site-header .custom-logo,
.site-header img.custom-logo { width: 132px !important; height: auto !important; }
/* hide the textual site title + tagline in the header (logo only) */
.site-header .site-title,
.site-header .site-description { display: none !important; }

/* ---------- Navigation ---------- */
.site-navigation ul, nav ul, .elementor-nav-menu { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
nav a, .site-navigation a {
  color: var(--lf-ink); text-decoration: none;
  padding: 10px 14px; border-radius: 2px;
  font-size: .84rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 400;
}
nav a:hover { color: var(--lf-muted); }
nav .current-menu-item > a { font-weight: 600; }

/* Language switcher (Polylang dropdown) */
.pll-parent-menu-item > a { display: inline-flex; align-items: center; gap: 7px; }
.pll-parent-menu-item > a::after { content: "\25BE"; font-size: .7em; color: var(--lf-muted); }
.pll-parent-menu-item img, li[class*="lang-item"] img { width: 20px; height: auto; border-radius: 2px; vertical-align: middle; }
.pll-parent-menu-item .sub-menu,
.pll-parent-menu-item ul.sub-menu {
  background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.14);
  border: 1px solid var(--lf-line); border-radius: 4px; padding: 6px 0; min-width: 150px;
}
.pll-parent-menu-item .lang-item a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px; text-transform: none; letter-spacing: .3px; font-size: .9rem;
}
.pll-parent-menu-item .lang-item a:hover { background: var(--lf-cream); }
.pll-parent-menu-item .current-lang > a { font-weight: 600; }

/* Book Now button (menu + shortcode) */
.lf-menu-book > a, li.lf-menu-book a, .lf-book-now {
  background: var(--lf-ink); color: #fff !important;
  padding: 13px 30px; border-radius: 2px;
  font-size: .8rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; display: inline-block; border: 1px solid var(--lf-ink);
  transition: background .25s ease, color .25s ease;
}
.lf-menu-book a:hover, .lf-book-now:hover { background: transparent; color: var(--lf-ink) !important; }
.lf-dark .lf-book-now { background: #fff; color: var(--lf-ink) !important; border-color: #fff; }
.lf-dark .lf-book-now:hover { background: transparent; color: #fff !important; }

/* ---------- Section variants ---------- */
.lf-sec { }
.lf-cream { background: var(--lf-cream); }
.lf-dark  { background: var(--lf-ink); }
.lf-dark, .lf-dark p, .lf-dark li,
.lf-dark .elementor-heading-title { color: #fff !important; }
.lf-dark a { color: #fff; }

/* Generous section rhythm */
.elementor-widget-heading { margin-bottom: .3em; }
.lf-sec .elementor-widget-text-editor { color: inherit; }

/* Buttons/lists */
.elementor-widget-text-editor ul { list-style: none; padding: 0; }
.elementor-widget-text-editor ul li {
  padding: 8px 0; border-bottom: 1px solid var(--lf-line);
}
.lf-dark .elementor-widget-text-editor ul li { border-color: rgba(255,255,255,.18); }

/* ---------- Hero ---------- */
.lf-hero { min-height: 92vh !important; }
.lf-hero .elementor-heading-title { color: #fff !important; }
.lf-hero p { color: #fff; }
.lf-hero h1.elementor-heading-title { font-size: clamp(3rem, 8vw, 6rem) !important; line-height: 1.05; }
.lf-hero h3.elementor-heading-title { font-size: clamp(1.3rem, 2.6vw, 2rem) !important; font-weight: 400; }
.lf-hero .lf-book-now { margin-top: 14px; }
.lf-hero .elementor-widget-shortcode { text-align: center; }
/* center the Book Now button wherever it sits in a centered section */
.elementor-widget-shortcode:has(.lf-book-now) { text-align: center; }
.lf-dark .elementor-widget-shortcode { text-align: center; }
@media (max-width: 767px){ .lf-hero { min-height: 78vh !important; } }

/* ---------- Cards (explore + rooms) ---------- */
.lf-cards .elementor-widget-image-box { margin-bottom: 0; }
.lf-xcard {
  background: #fff;
  border: 1px solid var(--lf-line);
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
  overflow: hidden;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.lf-xcard:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.13); }
.lf-xcard .elementor-image-box-wrapper { display: flex; flex-direction: column; height: 100%; }
.lf-xcard .elementor-image-box-img { margin: 0 !important; width: 100% !important; }
.lf-xcard .elementor-image-box-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 0;
  transition: transform .5s ease;
}
.lf-xcard:hover .elementor-image-box-img img { transform: scale(1.05); }
.lf-xcard .elementor-image-box-content { padding: 22px 22px 26px; text-align: center; }
.lf-xcard .elementor-image-box-title { margin: 0 0 8px; font-size: 1.5rem; }
.lf-xcard .elementor-image-box-title,
.lf-xcard .elementor-image-box-title a { color: var(--lf-ink) !important; }
.lf-xcard:hover .elementor-image-box-title,
.lf-xcard:hover .elementor-image-box-title a { color: var(--lf-muted) !important; }
.lf-xcard .elementor-image-box-description { color: var(--lf-muted); font-size: .95rem; line-height: 1.6; }
.lf-xcard .lf-amen-inline { display: inline-block; margin-top: 8px; font-size: .82rem; color: var(--lf-ink); }
/* Rooms page cards */
.lf-roomdetail .lf-xcard .elementor-image-box-title { font-size: 1.55rem; }
/* tighten card grid gutters */
.lf-cards .elementor-column { padding: 12px; }

/* Room detail cards (Rooms page) */
.lf-roomdetail .lf-rcard > .elementor-widget-wrap,
.lf-roomdetail .lf-rcard > .elementor-element-populated {
  background: #fff; border: 1px solid var(--lf-line);
  box-shadow: 0 8px 26px rgba(0,0,0,.07); overflow: hidden; height: 100%;
}
.lf-roomdetail .lf-rcard .elementor-widget { margin-bottom: 0; }
.lf-roomdetail .lf-rcard .elementor-widget-image { margin: 0; }
.lf-roomdetail .lf-rcard .elementor-widget-image img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 0;
}
.lf-roomdetail .lf-rcard .elementor-widget-heading { padding: 22px 24px 0; }
.lf-roomdetail .lf-rcard .elementor-widget-heading .elementor-heading-title { font-size: 1.7rem; }
.lf-roomdetail .lf-rcard > .elementor-widget-wrap > .elementor-widget-text-editor:first-of-type,
.lf-roomdetail .lf-rcard .elementor-widget-text-editor { padding: 6px 24px; color: var(--lf-muted); }
.lf-roomdetail .lf-rcard .lf-amen { list-style: none; padding: 0 24px; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lf-roomdetail .lf-rcard .lf-amen li { font-size: .82rem; color: var(--lf-ink); border: none; padding: 0; position: relative; padding-left: 14px; }
.lf-roomdetail .lf-rcard .lf-amen li::before { content: "•"; position: absolute; left: 0; color: var(--lf-accent); }
.lf-roomdetail .lf-rcard .elementor-widget-shortcode { padding: 16px 24px 26px; }

/* ---------- Gallery (clean grid, no captions) ---------- */
.elementor-image-gallery .gallery { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.elementor-image-gallery .gallery-item {
  width: auto !important; max-width: none !important; margin: 0 !important;
  padding: 0 !important; float: none !important; vertical-align: top;
}
.elementor-image-gallery .gallery-icon { margin: 0 !important; }
.elementor-image-gallery .gallery-icon img {
  width: 100% !important; height: 220px !important; object-fit: cover;
  margin: 0 !important; border: 0 !important; border-radius: 3px; display: block;
}
.elementor-image-gallery .gallery-caption,
.elementor-image-gallery figcaption { display: none !important; }
@media (max-width: 1024px){ .elementor-image-gallery .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px){
  .elementor-image-gallery .gallery { grid-template-columns: repeat(2, 1fr); }
  .elementor-image-gallery .gallery-icon img { height: 150px !important; }
}

/* ---------- Mobile header: dark bar + white logo ---------- */
@media (max-width: 767px){
  .site-header.dynamic-header { background: var(--lf-ink); }
  .site-header .custom-logo, .site-header img.custom-logo { filter: brightness(0) invert(1); }
  /* hamburger toggle icon white (sits on the dark bar) */
  .site-navigation-toggle,
  .site-navigation-toggle i,
  .site-navigation-toggle svg { color: #fff !important; fill: #fff !important; }
}
/* Mobile dropdown panel: dark background, readable white items */
.site-navigation-dropdown {
  background: var(--lf-ink) !important;
}
.site-navigation-dropdown ul.menu a,
.site-navigation-dropdown .menu a,
.site-navigation-dropdown .sub-menu a {
  color: #fff !important;
}
.site-navigation-dropdown .sub-menu { background: rgba(255,255,255,.05); }
.site-navigation-dropdown .lf-menu-book a { background: var(--lf-accent) !important; color:#fff !important; }

/* ---------- Images ---------- */
.elementor-widget-image img { border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer, footer.site-footer {
  background: var(--lf-ink); color: #cfc9be;
  padding: 34px 0; text-align: center; font-size: .9rem; letter-spacing: .4px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--lf-cream); }
.site-footer .copyright p { margin: 0; }
.site-footer .footer-inner { display: block !important; text-align: center; }
.site-footer .copyright { text-align: center; width: 100%; }
.lf-social { display: block; margin-bottom: 14px; }
.lf-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 6px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.lf-social a:hover { background: #fff; color: var(--lf-ink); border-color: #fff; }
.lf-social a::before {
  content: ""; width: 19px; height: 19px; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.lf-social a.lf-fb::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13 22v-8h2.7l.4-3H13V9c0-.9.3-1.5 1.6-1.5H16V4.7c-.3 0-1.2-.1-2.3-.1-2.3 0-3.7 1.4-3.7 3.9V11H7.2v3H10v8z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13 22v-8h2.7l.4-3H13V9c0-.9.3-1.5 1.6-1.5H16V4.7c-.3 0-1.2-.1-2.3-.1-2.3 0-3.7 1.4-3.7 3.9V11H7.2v3H10v8z'/%3E%3C/svg%3E");
}
.lf-social a.lf-ig::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.3' fill='black' stroke='none'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.3' fill='black' stroke='none'/%3E%3C/svg%3E");
}
.lf-copyline { display: block; }

/* Floating WhatsApp button */
.lf-wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lf-wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(0,0,0,.32); }
@media (max-width: 600px){ .lf-wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; } }
