/*
Theme Name:   WLP Theme
Theme URI:    https://welovepeloponnese.com
Description:  Ελαφρύ θέμα για welovepeloponnese.com — χωρίς Elementor. Αρχική με επεξεργάσιμα πεδία, Ρυθμίσεις WLP για header/footer, δικές του φόρμες. [v3.0.17]
Author:       We Love Peloponnese / Smarthost.gr
Version:      3.0.17
Requires at least: 6.4
Requires PHP: 7.4
Text Domain:  wlp-theme
*/

/* Βασικό στυλ (reset, header, footer, αρχική, σελίδες, φόρμες): assets/css/theme.css
   Παρακάτω: στυλ των templates επιχειρήσεων/νομών/εκδηλώσεων από το προηγούμενο child theme. */


/* ── Single Listing — Mobile Overflow & Layout Fixes ── */
@media (max-width: 860px) {

    /* Prevent horizontal overflow */
    .wbl-main { overflow-x: hidden !important; padding: 1.5rem 4% 3rem !important; }
    .wbl-layout { grid-template-columns: 1fr !important; gap: 1rem !important; }

    /* Right sidebar goes below content on mobile */
    .wbl-right { order: 2; }
    .wbl-left  { order: 1; }

    /* Map — full width, smaller height */
    .wlp-map-wrap { width: 100% !important; max-width: 100% !important; }
    .wlp-map-wrap > div[id^="wlp_map_"] {
        height: 220px !important;
        width: 100% !important;
        border-radius: 12px 12px 0 0 !important;
    }
    /* Leaflet container fix */
    .leaflet-container { width: 100% !important; }

    /* Weather — full width */
    .wlp-weather-wrap { width: 100% !important; max-width: 100% !important; }
    .wlp-weather-grid { grid-template-columns: repeat(3,1fr) !important; }
    .wlp-weather-stat { padding: 8px 6px !important; }
    .wlp-weather-stat-val { font-size: .82rem !important; }
    .wlp-weather-temp { font-size: 1.6rem !important; }

    /* Info card */
    .wbl-info-card { width: 100% !important; }

    /* Nav prev/next */
    .wbl-nav { grid-template-columns: 1fr !important; }

    /* Related listings */
    .wlp-rel-grid { grid-template-columns: 1fr !important; }
}

/* Extra small phones */
@media (max-width: 400px) {
    .wbl-hero h1 { font-size: 1.4rem !important; }
    .wbl-hero-meta-item { font-size: .75rem !important; padding: 4px 10px !important; }
    .wlp-weather-grid { grid-template-columns: repeat(3,1fr) !important; }
}

/* ── Hero: ολόκληρη η φωτογραφία — width:100% / height:auto (v115) ── */
.wlp-fit{display:grid !important;padding:0 !important;min-height:0 !important;height:auto !important;max-height:none !important}
.wlp-fit > .wlp-hero-img{grid-area:1/1;display:block;width:100%;height:auto;max-width:none}
.wlp-fit > [class$="-hero-content"]{grid-area:1/1;align-self:end;box-sizing:border-box;padding:2rem 5% 4rem}
/* Elementor (class «wlp-hero-fit»): φόντο σε πλάτος 100%, ύψος auto */
.wlp-fit-self{aspect-ratio:var(--r);min-height:0 !important;height:auto !important;background-size:100% auto !important;background-position:center top !important;background-repeat:no-repeat !important}

/* ── v116: φωτεινότερο hero & ευανάγνωστα γράμματα ── */
/* Φίλτρο μόνο στο κάτω μέρος (εκεί που είναι το κείμενο) — η φωτογραφία μένει φωτεινή */
.wlp-fit > [class$="-hero-overlay"]{display:none !important}   /* καμία σκίαση — η φωτογραφία όπως ανέβηκε */
.wlp-fit h1{text-shadow:0 0 2px rgba(0,0,0,.55),0 1px 4px rgba(0,0,0,.6),0 2px 18px rgba(0,0,0,.6) !important}
.wlp-fit [class$="-eyebrow"],.wlp-fit [class$="-breadcrumb"]{
  font-family:Inter,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;font-size:.76rem !important;font-weight:700 !important;
  letter-spacing:.12em !important;text-shadow:0 0 2px rgba(0,0,0,.7),0 1px 3px rgba(0,0,0,.7),0 1px 10px rgba(0,0,0,.6)}
.wlp-fit [class$="-eyebrow"] a,.wlp-fit [class$="-breadcrumb"] a{color:rgba(255,255,255,.9) !important}
.wlp-fit [class$="-hero-meta-item"],.wlp-fit [class$="-meta-item"]{
  background:rgba(17,28,66,.5) !important;border-color:rgba(255,255,255,.28) !important;
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}

/* Γραμματοσειρά κειμένου σε όλα τα templates μας (όπου δεν ορίζεται ρητά) — όχι Times */
:where([class^="wn-"],[class*=" wn-"],[class^="wbl-"],[class*=" wbl-"],[class^="wse-"],[class*=" wse-"],
       [class^="wsp-"],[class*=" wsp-"],[class^="wcat-"],[class*=" wcat-"],[class^="wblog-"],[class*=" wblog-"],
       [class^="wsearch-"],[class*=" wsearch-"],[class^="wev-"],[class*=" wev-"],[class^="w404-"],[class*=" w404-"],
       [class^="wlp-"],[class*=" wlp-"]){font-family:Inter,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}

/* Περιγραφή νομού/περιοχής: πιο σκούρο, λίγο μεγαλύτερο */
body .wn-nomo-desc{font-family:Inter,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:1rem;line-height:1.75;color:#2b2f3a}
@media(max-width:600px){body .wn-nomo-desc{font-size:.97rem;padding:1.1rem 1.2rem}}

/* ── v117: γράμματα κάτω αριστερά μέσα στη φωτογραφία ── */
.wlp-fit > [class$="-hero-content"]{align-self:end !important;justify-self:start;text-align:left;
  padding:1.5rem 4% 1.6rem !important;max-width:none}
.wlp-fit > [class$="-hero-content"] [class$="-hero-meta"]{justify-content:flex-start}
.wlp-fit > [class$="-hero-wave"]{display:none !important}   /* καθαρή κάτω άκρη — η φωτογραφία φαίνεται ως κάτω */
.wlp-fit h1{margin-bottom:.35rem !important}
@media(max-width:600px){
  .wlp-fit > [class$="-hero-content"]{padding:1rem 5% 1rem !important}
  .wlp-fit h1{font-size:clamp(1.6rem,7vw,2.1rem) !important;line-height:1.12 !important}
}

/* ── v121: διαδρομή (breadcrumb) εμφανώς clickable + μικρότερα γράμματα στο κινητό ── */
.wlp-fit [class$="-eyebrow"] a,.wlp-fit [class$="-breadcrumb"] a,.wn-h1-sub a{
  color:#fff !important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;
  text-decoration-color:rgba(255,255,255,.55);padding:4px 0;display:inline-block;transition:color .15s,text-decoration-color .15s}
.wlp-fit [class$="-eyebrow"] a:hover,.wlp-fit [class$="-breadcrumb"] a:hover,.wn-h1-sub a:hover{color:var(--gold,#C9952A) !important;text-decoration-color:currentColor}
.wn-h1-sub{font-size:.55em;font-weight:600;opacity:.95;margin-left:6px;white-space:nowrap}
@media(max-width:600px){
  .wlp-fit h1{font-size:clamp(1.3rem,5.8vw,1.7rem) !important}
  .wlp-fit [class$="-eyebrow"],.wlp-fit [class$="-breadcrumb"]{font-size:.66rem !important;letter-spacing:.08em !important;gap:.15rem .3rem !important;margin-bottom:.25rem !important}
  .wn-h1-sub{display:block;margin:.2rem 0 0;font-size:.62em}
}

/* ── v129: Αρχική — νομοί, προτεινόμενες, άρθρα, ημερολόγιο στο ΙΔΙΟ πλάτος (υπολογιστής) ── */
@media (min-width:1025px){
  .wlp-nomoi-grid,.wlp-feat-grid,.wlp-latest-grid,.wlp-evh{
    width:100% !important;max-width:1100px !important;margin-left:auto !important;margin-right:auto !important;box-sizing:border-box}
  .wlp-nomoi-grid{padding:0 !important;gap:24px !important}
  .wlp-nomo-card{flex:0 1 calc((100% - 72px) / 4) !important;max-width:calc((100% - 72px) / 4) !important}
}

/* ── v130: «ένα τσικ» χαμηλότερη φωτεινότητα στο hero ──
   Για ρύθμιση αλλάξτε μόνο τις δύο τιμές: --wlp-hero-bright (1 = όπως ανέβηκε, 0.85 = πιο σκούρο)
   και --wlp-hero-shade (0 = καμία σκίαση κάτω από τα γράμματα, 0.4 = πιο έντονη) */
:root{--wlp-hero-bright:.9;--wlp-hero-shade:.28}
.wlp-fit > .wlp-hero-img{filter:brightness(var(--wlp-hero-bright))}
.wlp-fit > [class$="-hero-overlay"]{display:block !important;
  background:linear-gradient(to top,rgba(17,28,66,var(--wlp-hero-shade)) 0%,rgba(17,28,66,0) 40%) !important}


/* ── v137: Hero προσαρμόζεται στη φωτογραφία σε όλες τις οθόνες (χωρίς ζουμ/κόψιμο) ──
   Το ύψος ακολουθεί τις αναλογίες της εικόνας. Μόνο αν η εικόνα είναι πολύ ψηλή
   (π.χ. κάθετη), κόβεται στο 80% της οθόνης για να μη γεμίσει όλη τη σελίδα. */
.wlp-fit{display:grid !important;position:relative;height:auto !important;min-height:0 !important;max-height:none !important}
.wlp-fit > .wlp-hero-img{grid-area:1/1;position:static !important;width:100% !important;height:auto !important;
  max-height:80vh;object-fit:cover;object-position:center;transform:none !important;animation:none !important}
.wlp-fit > [class$="-hero-overlay"]{grid-area:1/1;position:relative !important;inset:auto;z-index:1}
.wlp-fit > [class$="-hero-content"]{grid-area:1/1;align-self:end;position:relative !important;z-index:2}
.wlp-fit > [class$="-hero-wave"]{grid-area:1/1;align-self:end;z-index:2}

/* ── v136: Επιχείρηση χωρίς banner → μικρό navy hero, μόνο τίτλος (όχι λογότυπο) ── */
.wbl-hero--plain{min-height:0 !important;max-height:none !important;height:auto !important;
  background:linear-gradient(135deg,#111c42,#1B2A5E) !important;display:block !important;padding:0 !important}
.wbl-hero--plain .wlp-hero-img{display:none !important}
.wbl-hero--plain .wbl-hero-overlay{display:none !important}
.wbl-hero--plain .wbl-hero-content{position:static !important;padding:2.4rem 5% 2.2rem !important;max-width:1100px;margin:0 auto}
@media(min-width:1025px){.wbl-hero--plain{height:auto !important}.wbl-hero--plain .wbl-hero-content{padding:3rem 5% 2.6rem !important}}

/* ── v138: Banner σε όλο το πλάτος, ολόκληρη η φωτογραφία ──
   Το ύψος ακολουθεί ακριβώς τις αναλογίες της εικόνας (π.χ. 16:9 αν την κόψετε 16:9 στην επεξεργασία).
   Χωρίς κόψιμο, χωρίς ζουμ, χωρίς κενό δεξιά/αριστερά. */
.wlp-fit{grid-template-columns:100% !important;grid-template-rows:auto !important;justify-content:stretch !important;
  align-content:start !important;justify-items:stretch !important;width:100% !important}
.wlp-fit > .wlp-hero-img{width:100% !important;max-width:100% !important;height:auto !important;max-height:none !important;
  min-width:0;object-fit:fill !important;justify-self:stretch !important}
.wlp-fit > [class$="-hero-overlay"],.wlp-fit > [class$="-hero-content"],.wlp-fit > [class$="-hero-wave"]{min-width:0}

/* ── v141: Ενιαίο ύψος εικόνας και δύο κάρτες ανά σειρά στο κινητό ── */
.wn-card,.wcat-card,.wlp-rel-card,.wsp-rel-card{min-width:0}
.wn-card-logo,.wcat-card-logo,.wlp-rel-logo,.wsp-rel-img{
  box-sizing:border-box;height:160px !important;min-height:160px !important;
  max-height:160px !important;aspect-ratio:auto !important;flex-shrink:0}
.wn-card-logo.is-photo,.wcat-card-logo.is-photo{padding:0 !important}
.wn-card-logo.is-photo img,.wcat-card-logo.is-photo img,
.wlp-rel-logo img,.wsp-rel-img img{
  display:block;width:100% !important;height:100% !important;max-width:100% !important;
  max-height:none !important;object-fit:cover;object-position:center;transform:none !important}
/* Ίδιος χώρος εικόνας και όταν το σχετικό άρθρο δεν έχει φωτογραφία. */
.wsp-rel-card:not(:has(.wsp-rel-img))::before{content:"";display:block;height:160px;flex-shrink:0}
@media(max-width:900px){
  .wn-grid,.wcat-grid,.wsp-related-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}
  /* Μέσα στη σελίδα επιχείρησης: 3 κάρτες ανά σειρά στο κινητό/tablet. */
  .wlp-rel-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:8px !important}
}
@media(max-width:600px){
  .wn-card-logo,.wcat-card-logo,.wlp-rel-logo,.wsp-rel-img{
    height:120px !important;min-height:120px !important;max-height:120px !important}
  .wsp-rel-card:not(:has(.wsp-rel-img))::before{height:120px}
  .wn-card-body,.wcat-card-body,.wlp-rel-body,.wsp-rel-body{padding:10px !important;min-width:0}
  .wn-card-title,.wcat-card-title,.wlp-rel-name,.wsp-rel-title{
    white-space:normal !important;overflow-wrap:anywhere;display:-webkit-box;
    -webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.3}
  .wlp-rel-cat,.wsp-rel-cat,.wn-card-info,.wcat-card-info,.wlp-rel-area{overflow-wrap:anywhere}
  .wn-card-footer,.wcat-card-footer{padding:8px 10px !important;gap:6px;flex-wrap:wrap}
}

/* ── v142: Κοινό εικονίδιο όταν λείπει φωτογραφία ── */
.no-logo:has(.wlp-nophoto-ic),.wlp-rel-fallback-icon:has(.wlp-nophoto-ic),
.wsearch-card-thumb-icon:has(.wlp-nophoto-ic),.wlp-feat-ph:has(.wlp-nophoto-ic){opacity:1 !important;display:flex;align-items:center;justify-content:center}
:root{--wlp-no-photo-ink:#1B2A5E;--wlp-no-photo-on-dark:#fff}
.wlp-nophoto-ic{width:56px;height:56px;color:var(--wlp-no-photo-ink);opacity:.28;display:block}
.wlp-feat-ph .wlp-nophoto-ic{color:var(--wlp-no-photo-on-dark);opacity:.5}
.wsearch-card-thumb-icon .wlp-nophoto-ic{width:32px;height:32px}
@media(max-width:600px){.wlp-nophoto-ic{width:44px;height:44px}}

.wlp-sr-thumb .wlp-nophoto-ic,.wse-biz-logo .wlp-nophoto-ic{width:28px;height:28px}

/* ── v148: Έγχρωμο εικονίδιο ανά κατηγορία όταν λείπει φωτογραφία ── */
.no-logo:has(.wlp-cat-ic),.wlp-rel-fallback-icon:has(.wlp-cat-ic),
.wsearch-card-thumb-icon:has(.wlp-cat-ic),.wlp-feat-ph:has(.wlp-cat-ic),
.wlp-rel-logo:has(.wlp-cat-ic),.wse-biz-logo:has(.wlp-cat-ic),
.wlp-sr-thumb:has(.wlp-cat-ic){opacity:1 !important;display:flex;align-items:center;justify-content:center}
.wlp-cat-ic{display:flex;align-items:center;justify-content:center;width:72px;height:72px;line-height:0}
.wlp-cat-ic svg{width:100%;height:100%;display:block;filter:drop-shadow(0 4px 10px rgba(4,24,96,.14))}
.wlp-feat-ph .wlp-cat-ic{width:78px;height:78px}
.wlp-rel-fallback-icon .wlp-cat-ic{width:58px;height:58px}
.wsearch-card-thumb-icon .wlp-cat-ic{width:42px;height:42px}
.wlp-sr-thumb .wlp-cat-ic,.wse-biz-logo .wlp-cat-ic{width:30px;height:30px}
@media(max-width:600px){
  .wlp-cat-ic{width:52px;height:52px}
  .wlp-feat-ph .wlp-cat-ic{width:56px;height:56px}
  .wlp-rel-fallback-icon .wlp-cat-ic{width:42px;height:42px}
  .wsearch-card-thumb-icon .wlp-cat-ic{width:34px;height:34px}
}

/* ── v3.0.12: Hero νομών / banner επιχειρήσεων — ολόκληρη η φωτογραφία, χωρίς ζουμ/κόψιμο ──
   Το ύψος ακολουθεί την αναλογία της φωτογραφίας όπως κόπηκε στα Πολυμέσα (π.χ. 16:9). */
body .wlp-fit > .wlp-hero-img{max-height:none !important;object-fit:fill !important}
/* «Περιορισμένο ύψος» (Ρυθμίσεις WLP → Εμφάνιση): μόνο σε tablet/υπολογιστή — στο κινητό πάντα ολόκληρη */
@media (min-width:768px){
  body.wlp-hero-cap .wlp-fit > .wlp-hero-img{max-height:var(--wlp-hero-max,80vh) !important;object-fit:cover !important;object-position:var(--wlp-hero-pos,center center) !important}
}
