/* metr4u UI polish (2026-11-30): same look, tidier layout. Phones get compact sections and swipe rows;
   desktop only gets equal-height cards. Colours/fonts are the theme's own (purple #851281). */

/* ---------- all widths ---------- */
/* "Παροχές" filter is a fold-out: show that it can be opened */
.lt-filter-by-amenities > .title { cursor: pointer; display: inline-flex; align-items: center; gap: 10px; user-select: none; }
.lt-filter-by-amenities > .title::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #851281; border-bottom: 2px solid #851281; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.lt-filter-by-amenities:has(.filter-by-amenities[style*="block"]) > .title::after { transform: rotate(-135deg); margin-top: 4px; }

/* desktop top bar: final height from the first paint (it grew 33 -> 40px when the icon font arrived and nudged the page) */
.elementor-element-4d727286 > .elementor-container { min-height: 36px; align-items: center; }   /* + 2px padding top/bottom = the bar's 40px */

/* listing pages: results arrive by AJAX after the page is drawn; keep their space until the first cards are in,
   so the footer doesn't show first and then get pushed down */
div.job_listings:not(:has(.listing-block)) { min-height: 80vh; }
.lt--results-content div.job_listings:not(:has(.listing-block)) { min-height: 75vh !important; }   /* the theme gives the inner results box 100px */
.job_filters .showing_jobs:not([style*="block"]) { display: none; }   /* empty count line: shown by the script only when there is something to say */
/* area / category / tag / amenity pages are pre-filtered, so the count line always appears: keep its final height from the start */
:is(.tax-job_listing_region, .tax-job_listing_category, .tax-job_listing_tag, .tax-job_listing_amenity) .job_filters .showing_jobs { display: block !important; min-height: 41px; }
@media (max-width: 767px) { :is(.tax-job_listing_region, .tax-job_listing_category, .tax-job_listing_tag, .tax-job_listing_amenity) .job_filters .showing_jobs { min-height: 70px; } }

/* phones/tablets, listing pages: in list mode the map sits behind the page (z-index -11) while the theme slides it into place;
   hide it properly until "MAP VIEW" is tapped (same size, so the map still draws right when opened) */
@media (max-width: 1024.98px) {
  .lt-page_layout-half_map .lt--content-inner.show-content .lt--map-content #lt-listing--map { visibility: hidden; }
}

/* venue phone call bar: phones only */
.m4u-callbar { display: none; }

/* ---------- desktop / tablet: cards in a row get the same height ---------- */
@media (min-width: 768px) {
  .elementor-1400 [class*="lg-block-grid-"] { display: flex; flex-wrap: wrap; }
  .elementor-1400 [class*="lg-block-grid-"] > .item-columns { display: flex; float: none; }
  .elementor-1400 [class*="lg-block-grid-"] > .item-columns > .listing-block { width: 100%; }
  .elementor-1400 .owl-stage { display: flex; }
  .elementor-1400 .owl-stage > .owl-item { display: flex; }
  .elementor-1400 .owl-stage > .owl-item > div,
  .elementor-1400 .owl-stage > .owl-item > div > .listing-block,
  .elementor-1400 .owl-stage > .owl-item > div > .post { width: 100%; height: 100%; }
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  /* counters: 2 × 2 instead of four tall rows */
  .elementor-element-5f3ef84 > .elementor-container { display: flex; flex-wrap: wrap; }
  .elementor-element-5f3ef84 > .elementor-container > .elementor-column { width: 50% !important; }
  .elementor-element-5f3ef84 .elementor-widget-wrap { padding: 26px 8px !important; }
  .elementor-element-5f3ef84 > .elementor-container > .elementor-column { border: 0 solid #eceef2 !important; }
  .elementor-element-5f3ef84 > .elementor-container > .elementor-column:nth-child(odd) { border-right-width: 1px !important; }
  .elementor-element-5f3ef84 > .elementor-container > .elementor-column:nth-child(-n+2) { border-bottom-width: 1px !important; }

  /* "Πώς Δουλεύει?": 2 × 2 compact boxes */
  .elementor-element-8a3c573 > .elementor-container { display: flex; flex-wrap: wrap; padding: 0 9px; }
  .elementor-element-8a3c573 > .elementor-container > .elementor-column { width: 50% !important; }
  .elementor-element-8a3c573 .elementor-widget-wrap { padding: 6px !important; }
  .elementor-element-8a3c573 .elementor-widget,
  .elementor-element-8a3c573 .elementor-widget-container,
  .elementor-element-8a3c573 .gva-element,
  .elementor-element-8a3c573 .gsc-icon-box-styles { height: 100%; margin-bottom: 0 !important; }
  .elementor-element-8a3c573 .icon-box-content { padding: 22px 12px !important; height: 100%; }
  .elementor-element-8a3c573 .icon-inner { transform: scale(.75); margin: -8px 0; }
  .elementor-element-8a3c573 .title { font-size: 16px !important; line-height: 1.3 !important; margin-bottom: 6px !important; }
  .elementor-element-8a3c573 .title br { display: none; }
  .elementor-element-8a3c573 .desc, .elementor-element-8a3c573 .icon-box-content p { font-size: 13px !important; line-height: 1.5 !important; }

  /* "Τελευταίες Καταχωρήσεις": one swipe row instead of six full-size cards */
  .elementor-element-b3dd591 [class*="lg-block-grid-"] {
    display: flex; overflow-x: auto; gap: 14px; margin: 0 -15px; padding: 2px 15px 16px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .elementor-element-b3dd591 [class*="lg-block-grid-"]::-webkit-scrollbar { display: none; }
  .elementor-element-b3dd591 [class*="lg-block-grid-"] > .item-columns { flex: 0 0 84%; width: auto !important; max-width: none !important; padding: 0 !important; float: none; scroll-snap-align: center; display: flex; }
  .elementor-element-b3dd591 [class*="lg-block-grid-"] > .item-columns > .listing-block { margin-bottom: 0; width: 100%; }

  /* less empty space under the "Κορυφαίες Επιλογές" carousel */
  .elementor-element-4bd7 { padding-bottom: 24px !important; }
  .elementor-element-4bd7 .elementor-widget-gva-listings > .elementor-widget-container { padding-bottom: 20px !important; }

  /* footer: phone / email icon next to the text, like on desktop */
  #wp-footer .elementor-widget-icon-box.elementor-mobile-position-top .elementor-icon-box-wrapper { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 14px; }
  #wp-footer .elementor-widget-icon-box.elementor-mobile-position-top .elementor-icon-box-icon { margin: 0 !important; }
  #wp-footer .elementor-widget-icon-box.elementor-mobile-position-top .elementor-icon-box-content { flex: 1; }
  #wp-footer .elementor-widget-icon-box.elementor-mobile-position-top .elementor-icon-box-title,
  #wp-footer .elementor-widget-icon-box.elementor-mobile-position-top .elementor-icon-box-description { margin: 0; }

  /* venue page: call / booking bar always at hand (prices and the form come after the long text on phones) */
  .single-job_listing .m4u-callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 18px rgba(16, 24, 40, .12);
  }
  .single-job_listing .m4u-callbar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 6px;
    font-weight: 600; font-size: 15px; letter-spacing: .3px; text-decoration: none;
  }
  .single-job_listing .m4u-callbar .m4u-call { background: #851281; color: #fff; }
  .single-job_listing .m4u-callbar .m4u-book { background: #f1f3f7; color: #1b1d21; }
  .single-job_listing #wp-footer { padding-bottom: 66px; }
  .single-job_listing .return-top { bottom: 80px !important; }
  #m4u-booking { scroll-margin-top: 80px; }
  .single-job_listing .grecaptcha-badge { bottom: 84px !important; }
}

/* home blog carousel: every picture in the same 4:3 frame (a 702x400 picture made one card shorter) */
.gva-posts-carousel .post-thumbnail img{width:100%;aspect-ratio:4/3;object-fit:cover}
/* home «Τελευταίες Καταχωρήσεις»: every card picture in the same 3:2 frame as the 600x400 ones (some new venues only have smaller logos) */
.elementor-element-881719e .listing-image img{width:100%;aspect-ratio:3/2;object-fit:cover}

/* ===== u-pass events on metr4u (2026-11-30): /events/ grid + "Επερχόμενα events" on venue pages ===== */
.m4u-events-page{padding:60px 0 80px}
.m4u-events-intro{max-width:760px;margin:0 auto 40px;text-align:center;font-size:16px}
.m4u-events-intro a,.m4u-events-empty a{color:#851281;font-weight:600}
.m4u-events-empty{text-align:center;padding:40px 0}
.m4u-events-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.m4u-event{background:#fff;border-radius:4px;box-shadow:0 5px 30px rgba(0,0,0,.08);overflow:hidden;display:flex;flex-direction:column}
.m4u-event-img{position:relative;background:#14161c;overflow:hidden}
.m4u-event-img img{width:100%;height:auto;display:block;transition:transform .4s}   /* poster at its own proportions (owner: keep original aspect ratios) */
.m4u-event:hover .m4u-event-img img{transform:scale(1.03)}
.m4u-event-date{position:absolute;top:15px;left:15px;background:#851281;color:#fff;border-radius:4px;min-width:56px;padding:6px 8px;text-align:center;line-height:1.1}
.m4u-event-date .d{display:block;font-size:22px;font-weight:700}
.m4u-event-date .m{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.5px}
.m4u-event-body{padding:22px 25px 25px;display:flex;flex-direction:column;gap:8px;flex:1}
.m4u-event-when{font-size:14px;color:#851281}
.m4u-event-when i{margin-right:3px}
.m4u-event-title{font-size:20px;line-height:1.3;margin:2px 0 0}
.m4u-event-title a{color:inherit}
.m4u-event-title a:hover,.m4u-event-venue a:hover{color:#851281}
.m4u-event-venue{font-size:14px}
.m4u-event-venue i{color:#851281;margin-right:4px}
.m4u-event-venue a{color:inherit}
.m4u-event-tag{align-self:flex-start;font-size:12px;border:1px solid #851281;color:#851281;border-radius:3px;padding:1px 8px}
.m4u-event-actions{margin-top:auto;padding-top:10px}
.m4u-event-actions .btn-theme{display:inline-block;width:100%;text-align:center;padding:10px 15px;font-size:13px}
.m4u-event-actions .btn-theme i{margin-right:5px}
/* venue page: compact rows */
.m4u-venue-events .m4u-events-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.m4u-venue-events .m4u-event-title{font-size:17px}
.m4u-venue-events .m4u-event-body{padding:16px 18px 18px}
.m4u-venue-events .m4u-events-more{margin-top:18px;font-size:14px}
.m4u-venue-events .m4u-events-more a{color:#851281;font-weight:600}
@media (max-width:1024px){.m4u-events-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media (max-width:767px){.m4u-events-page{padding:35px 0 50px}.m4u-events-grid,.m4u-venue-events .m4u-events-grid{grid-template-columns:minmax(0,1fr);gap:20px}
}
/* links to u-pass (2026-11-30): note under venue descriptions + "details" link on event cards */
.m4u-upass-note{margin-top:20px}
.m4u-upass-note a,.listing-description a[href^="https://u-pass.gr"],.post-content a[href^="https://u-pass.gr"]{color:#851281}
.m4u-event-more{display:block;text-align:center;margin-top:10px;font-size:13px;color:#851281}
.m4u-event-more:hover{text-decoration:underline}
