/* =========================================================
   EXADAS CRETE - CLEAN RESET (v_RESET)
   (No Menu Experiments - Only Working Features)
========================================================= */

/* --- 1. GENERAL RESET --- */
html body { font-family: 'Inter', Arial, sans-serif !important; width: 100% !important; }
html body input, html body select, html body textarea { border-radius: 10px !important; outline: none !important; }
html body .btn, html body button { border-radius: 999px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
html body .exadas-social-img, html body .exadas-social-img a { display: inline-block; margin-right: 6px; }
html body .exadas-social-img img { width: 20px; height: 20px; }


/* =========================================================
   2. HERO SEARCH BAR (WIREFRAME / TRANSPARENT)
   Αυτό κρατάει την μπάρα διάφανη με λευκό περίγραμμα
========================================================= */
html body #t4-hero .search_properties, 
html body #t4-hero .hero-fieldset {
    background: transparent !important; border: none !important; box-shadow: none !important;
}

html body #t4-hero {
    background-size: cover !important; background-position: center center !important;
    background-repeat: no-repeat !important; width: 100% !important; position: relative !important;
    display: flex !important; align-items: flex-end !important; justify-content: center !important;
    padding-bottom: 50px !important; z-index: 1 !important;
}

html body #t4-hero .hero-fieldset .main-form {
    background-color: transparent !important; border: none !important; box-shadow: none !important; backdrop-filter: none !important; padding: 5px !important;
}

/* Inputs */
html body #t4-hero .main-form input, 
html body #t4-hero .main-form select,
html body #t4-hero .main-form input[type="text"] { 
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important; font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important; box-shadow: none !important;
}
html body #t4-hero .main-form input::placeholder { color: rgba(255, 255, 255, 0.9) !important; opacity: 1 !important; }
html body #t4-hero .main-form input:focus, html body #t4-hero .main-form select:focus {
    background-color: rgba(0,0,0,0.6) !important; border-color: #ffffff !important; color: #fff !important;
}
html body #t4-hero .main-form select option { background-color: #333 !important; color: #fff !important; }

/* Buttons */
html body #t4-hero .main-form button { 
    background-color: transparent !important; border: 1px solid #ffffff !important; color: #ffffff !important;
    box-shadow: none !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}
html body #t4-hero .main-form button:hover { background-color: #ffffff !important; color: #000000 !important; text-shadow: none !important; }

/* Desktop Styling */
@media (min-width: 1024px) {
    html body #t4-hero { height: 550px !important; min-height: 500px !important; background-image: url('https://www.exadas-crete.com/images/banner-1600.webp') !important; }
    html body #t4-hero .search_properties { width: 98% !important; max-width: 1350px !important; margin: 0 auto !important; }
    html body #t4-hero .hero-fieldset .main-form { display: flex !important; flex-wrap: nowrap !important; justify-content: center !important; align-items: center !important; gap: 15px !important; width: 100% !important; }
    html body #t4-hero .main-form input, html body #t4-hero .main-form select, html body #t4-hero .main-form button { height: 50px !important; min-width: 150px !important; font-size: 15px !important; }
    html body #t4-hero .main-form input[type="text"] { flex-grow: 10 !important; }
}

/* Mobile Styling */
@media (max-width: 1023px) {
    html body #t4-hero { height: auto !important; min-height: 350px !important; padding-bottom: 25px !important; align-items: center !important; background-image: url('https://www.exadas-crete.com/images/banner-1024.webp') !important; }
    html body #t4-hero .search_properties { width: 96% !important; margin: 0 auto !important; }
    html body #t4-hero .hero-fieldset .main-form { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    html body #t4-hero .main-form input, html body #t4-hero .main-form select, html body #t4-hero .main-form button { grid-column: 1 / -1 !important; width: 100% !important; height: 42px !important; margin: 0 !important; font-size: 14px !important; }
    html body #t4-hero .main-form button:nth-of-type(1) { grid-column: 1 / 2 !important; }
    html body #t4-hero .main-form button:nth-of-type(2) { grid-column: 2 / 3 !important; }
}


/* =========================================================
   3. PAGINATION FIX (SAFE)
========================================================= */
html body .pagination, html body .osp-pagination, html body .osp-top-pagination {
    display: flex !important; justify-content: center !important; align-items: center !important; gap: 4px !important; margin: 20px auto !important; padding: 0 !important; list-style: none !important;
}
/* Active Page */
html body .pagination > li.active > span, html body .pagination > li.active > a, html body .osp-pagination > li.active > span {
    background-color: #153b3e !important; border: 1px solid #153b3e !important; color: #ffffff !important; font-weight: 700 !important; padding: 8px 14px !important; border-radius: 4px !important; opacity: 1 !important;
}
/* Inactive Pages */
html body .pagination > li > a, html body .pagination > li > span, html body .osp-pagination > li > a {
    background-color: #ffffff !important; color: #153b3e !important; border: 1px solid #ddd !important; font-weight: 600 !important; padding: 8px 12px !important; margin: 0 2px !important; border-radius: 4px !important; text-decoration: none !important;
}
html body .pagination > li > a:hover { background-color: #c49a28 !important; color: #fff !important; border-color: #c49a28 !important; }


/* =========================================================
   4. FLOATING BUTTON
========================================================= */
html body a.exadas-search-float {
    position: fixed !important; top: 50% !important; right: 0 !important; transform: translateY(-50%) !important;
    display: flex !important; visibility: visible !important; opacity: 1 !important;
    background-color: rgba(196, 154, 40, 0.4) !important;
    backdrop-filter: blur(4px) !important; -webkit-backdrop-filter: blur(4px) !important;
    border-top-left-radius: 25px !important; border-bottom-left-radius: 25px !important;
    box-shadow: none !important; border: 1px solid rgba(255,255,255,0.2) !important;
    text-decoration: none !important; z-index: 2147483647 !important;
    align-items: center !important; transition: width 0.4s ease-in-out, background-color 0.3s ease !important; overflow: hidden !important; 
}
html body a.exadas-search-float::before {
    font-family: "Inter", sans-serif !important; font-weight: 700 !important; color: #ffffff !important;
    text-transform: uppercase !important; letter-spacing: 0.5px !important; white-space: nowrap !important;
}
html body a.exadas-search-float::before { content: "Advanced Property Search" !important; }
html[lang^="el"] body a.exadas-search-float::before { content: "Αναζήτηση Ακινήτων" !important; }
html body a.exadas-search-float::after {
    content: "\f002" !important; font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important; font-size: 20px !important; color: #ffffff !important;
    display: block !important; text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important; flex-shrink: 0 !important; 
}
@media (max-width: 991px) {
    html body a.exadas-search-float { width: 50px !important; height: 50px !important; justify-content: center !important; padding: 0 !important; border-radius: 50% !important; background-color: rgba(196, 154, 40, 0.6) !important; }
    html body a.exadas-search-float::before { display: none !important; }
}
@media (min-width: 992px) {
    html body a.exadas-search-float { width: 50px !important; height: 50px !important; justify-content: flex-end !important; padding-right: 13px !important; }
    html body a.exadas-search-float::before { display: block !important; font-size: 13px !important; opacity: 0 !important; transform: translateX(-20px) !important; margin-right: 10px !important; padding-left: 20px !important; transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s !important; }
    html body a.exadas-search-float:hover { width: 300px !important; background-color: rgba(196, 154, 40, 0.95) !important; box-shadow: -4px 4px 15px rgba(0,0,0,0.3) !important; border-color: transparent !important; padding-right: 18px !important; }
    html body a.exadas-search-float:hover::before { opacity: 1 !important; transform: translateX(0) !important; }
}
html body a.exadas-search-float img { display: none !important; }


/* =========================================================
   5. OTHER FIXES (Slideshow / Mobile Toolbar)
========================================================= */
.exadas-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 14px; }
.exadas-toolbar-select { border-radius: 14px; height: 38px; padding: 0 12px; font-size: 14px; }
@media (max-width: 768px) {
    html body .exadas-list-toolbar, html body .exadas-list-toolbar form { display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; margin: 0 0 10px 0 !important; padding: 0 !important; gap: 0 !important; }
    html body .exadas-list-toolbar__left, html body .exadas-list-toolbar__right { display: contents !important; }
    html body .osp-top-pagination, html body .pagination { order: 1 !important; width: 60% !important; margin: 0 !important; display: flex !important; align-items: center !important; justify-content: flex-start !important; font-size: 12px !important; }
    html body .pagination select { width: auto !important; max-width: 70px !important; height: 34px !important; margin-left: 5px !important; }
    html body #limit, html body select[name="limit"], html body .limit-box { order: 2 !important; width: 38% !important; margin: 0 !important; display: flex !important; justify-content: flex-end !important; }
    html body .limit-box select, html body select[name="limit"] { width: 100% !important; max-width: 80px !important; height: 34px !important; }
    html body #os_orderby, html body select[name="sort_by"], html body .exadas-sort-select { order: 3 !important; width: 100% !important; margin-top: 8px !important; height: 40px !important; display: block !important; }
    html body .counter-display { display: none !important; }
    html body .g5ere__property-title-price { display: block !important; height: auto !important; clear: both !important; position: relative !important; }
    html body .g5ere__property-title { float: none !important; width: 100% !important; margin-bottom: 5px !important; display: block !important; }
    html body .g5ere__property-price { float: none !important; display: inline-block !important; margin-top: 5px !important; position: static !important; }
}

html body .exadas-card { background: #fff !important; border-radius: 15px !important; overflow: hidden !important; border: 1px solid #eee !important; padding: 15px !important; margin-bottom: 15px !important; }
html.exadas-slideshow-lock, body.exadas-slideshow-lock { overflow: hidden !important; height: 100% !important; }
#slideshowContainer { display: none; position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 2147483647 !important; background: rgba(0,0,0,.95) !important; }
#slideshowContainer.active { display: flex !important; }
#slideshowContainer * { pointer-events: auto !important; }
#slideshowContainer .slideshow-wrapper { position: relative !important; flex: 1 1 auto !important; width: 100% !important; height: 100% !important; display: flex !important; padding: 0 !important; box-sizing: border-box !important; overflow: hidden !important; }
#slideshowTrack { width: 100% !important; height: 100% !important; display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: flex-start !important; }
#slideshowTrack > img.slideshow-image { flex: 0 0 100% !important; width: 100% !important; height: 100% !important; object-fit: contain !important; display: block !important; }
#photoDescription { display: block !important; position: absolute !important; bottom: 20px !important; left: 0 !important; width: 100% !important; text-align: center !important; color: #fff !important; font-size: 16px !important; text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%) !important; padding: 20px 10px !important; z-index: 2147483650 !important; pointer-events: none !important; }
#thumbnailContainer { display: none !important; }
#slideshowContainer.grid-active #thumbnailContainer { display: block !important; position: fixed !important; top: 70px !important; right: 18px !important; bottom: 18px !important; width: 250px !important; overflow-y: auto !important; z-index: 2147483648 !important; background: rgba(0,0,0,.5) !important; padding: 10px !important; }
#slideshowContainer.grid-active #thumbnailContainer img { width: 100% !important; margin-bottom: 10px !important; opacity: 0.7; cursor: pointer; }
#slideshowContainer.grid-active #thumbnailContainer img:hover { opacity: 1; }
#prevBtn, #nextBtn { position: fixed !important; top: 50% !important; transform: translateY(-50%) !important; background: rgba(255,255,255,0.15) !important; color: #fff !important; border: none !important; padding: 15px !important; font-size: 24px !important; cursor: pointer !important; z-index: 2147483649 !important; border-radius: 50% !important; }
#prevBtn { left: 15px !important; } #nextBtn { right: 15px !important; }
.grid-close-container { position: fixed !important; top: 20px !important; right: 20px !important; display: flex !important; gap: 15px !important; z-index: 2147483649 !important; }
.grid-close-container button { background: rgba(0,0,0,0.3) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.3) !important; padding: 8px 14px !important; font-size: 16px !important; cursor: pointer !important; border-radius: 6px !important; }
@media (max-width: 768px) {
    #slideshowContainer.grid-active .slideshow-wrapper { padding: 60px 12px 160px 12px !important; }
    #slideshowContainer.grid-active #thumbnailContainer { left: 10px !important; right: 10px !important; top: auto !important; bottom: 10px !important; width: auto !important; height: 135px !important; display: flex !important; gap: 10px !important; overflow-x: auto !important; padding: 10px !important; }
    #slideshowContainer.grid-active #thumbnailContainer img { width: auto !important; height: 100% !important; margin: 0 !important; }
}












/* =========================================================
   MENU (T4 Megamenu) – REVERTED TO ORIGINAL COLORS
   Only fix: Submenus open to the right
========================================================= */

:root{
  --ex-accent:#c49a28;
  --ex-pill: rgba(255,255,255,.08);
  --ex-pill-active: rgba(255,255,255,.10);
  --ex-sticky: rgba(21,59,62,.68);
}

/* Always clickable above hero */
.t4-megamenu, .t4-megamenu .navbar, #t4-mainnav{
  position: relative !important;
  z-index: 6500 !important;
}

/* TOP MENU LINKS (keep white on hero) */
.t4-megamenu .navbar-nav > li > a.nav-link,
.t4-megamenu .navbar-nav > li > a.nav-link.dropdown-toggle{
  position: relative !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;
  text-transform: none !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  background: transparent !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.45) !important;
  transition: background-color .16s ease !important;
}

/* Thin underline glow */
.t4-megamenu .navbar-nav > li > a.nav-link::after,
.t4-megamenu .navbar-nav > li > a.nav-link.dropdown-toggle::after{
  content:"" !important;
  position:absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 6px !important;
  height: 1px !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, transparent, var(--ex-accent), transparent) !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform .18s ease !important;
  pointer-events:none !important;
  opacity: .70 !important;
}

/* Hover / Focus */
.t4-megamenu .navbar-nav > li > a.nav-link:hover,
.t4-megamenu .navbar-nav > li > a.nav-link:focus-visible{
  background-color: var(--ex-pill) !important;
}
.t4-megamenu .navbar-nav > li > a.nav-link:hover::after,
.t4-megamenu .navbar-nav > li > a.nav-link:focus-visible::after{
  transform: scaleX(1) !important;
}

/* ACTIVE */
.t4-megamenu .navbar-nav > li.active > a.nav-link,
.t4-megamenu .navbar-nav > li.current > a.nav-link,
.t4-megamenu .navbar-nav > li > a.nav-link.active{
  background-color: var(--ex-pill-active) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14) !important;
}

/* DROPDOWN – REVERTED TO 0.62 OPACITY (YOUR ORIGINAL) */
.t4-megamenu .dropdown-menu{
  border-radius: 16px !important;
  padding: 10px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(10, 20, 22, .62) !important; /* Original transparency */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.22) !important;
  overflow: visible !important; /* Allow submenus to show */
}

/* --- THE FIX: OPEN SUBMENUS TO THE RIGHT --- */
.t4-megamenu .dropdown-menu .dropdown-submenu > .dropdown-menu {
    top: -10px !important;
    left: 100% !important; /* This forces it to the right */
    right: auto !important;
}

/* Dropdown items */
.t4-megamenu .dropdown-menu .dropdown-item{
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font-weight: 650 !important;
  color: rgba(255,255,255,.92) !important;
  transition: background-color .14s ease !important;
}
.t4-megamenu .dropdown-menu .dropdown-item:hover,
.t4-megamenu .dropdown-menu .dropdown-item:focus{
  background: rgba(196,154,40,.12) !important;
}

/* STICKY */
header.is-sticky .t4-megamenu,
header.sticky .t4-megamenu,
.t4-megamenu.is-sticky,
.t4-megamenu.sticky,
.headroom--not-top .t4-megamenu{
  background: var(--ex-sticky) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Mobile: tap-friendly */
@media (max-width: 991px){
  .t4-megamenu .navbar-nav > li > a.nav-link{
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }
}












/* =========================================================
   PAGINATION – Make current page obvious (bulletproof)
========================================================= */

/* Base */
html body a.exadas-pagepill,
html body span.exadas-pagepill{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;

  background: #ffffff !important;
  color: #153b3e !important;
  border: 1px solid rgba(0,0,0,.14) !important;

  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

/* Hover */
html body a.exadas-pagepill:hover{
  background: rgba(196,154,40,.10) !important;
  border-color: rgba(196,154,40,.55) !important;
}

/* CURRENT / ACTIVE – cover all variants:
   .active, .-active, .is-active, aria-current, and li.active wrappers */
html body a.exadas-pagepill.active,
html body a.exadas-pagepill.-active,
html body a.exadas-pagepill.is-active,
html body a.exadas-pagepill[aria-current="page"],
html body a.exadas-pagepill[aria-current="true"],
html body .active > a.exadas-pagepill,
html body .active > span.exadas-pagepill,
html body span.exadas-pagepill.active,
html body span.exadas-pagepill.-active,
html body span.exadas-pagepill.is-active,
html body span.exadas-pagepill[aria-current="page"],
html body span.exadas-pagepill[aria-current="true"]{
  background: #153b3e !important;               /* σκούρο για να ξεχωρίζει ΠΑΝΤΑ */
  color: #ffffff !important;
  border-color: #c49a28 !important;             /* χρυσό περίγραμμα */
  box-shadow: 0 8px 18px rgba(0,0,0,.18) !important;
  font-weight: 900 !important;
}

/* Extra: μικρό “δάχτυλι” για ακόμα πιο καθαρό active */
html body a.exadas-pagepill.active,
html body a.exadas-pagepill.-active,
html body a.exadas-pagepill.is-active,
html body a.exadas-pagepill[aria-current="page"],
html body a.exadas-pagepill[aria-current="true"],
html body .active > a.exadas-pagepill,
html body .active > span.exadas-pagepill{
  outline: 2px solid rgba(255,255,255,.55) !important;
  outline-offset: 2px !important;
}

/* Disabled */
html body a.exadas-pagepill.disabled,
html body a.exadas-pagepill[aria-disabled="true"],
html body span.exadas-pagepill.disabled{
  opacity: .45 !important;
  pointer-events: none !important;
}










/* =========================================================
   MOBILE LISTINGS TOOLBAR – FORCE 2 ROWS (FIX)
   Row1: Page + Limit + Showing
   Row2: Sort (full width)
========================================================= */
@media (max-width: 768px){

  /* HARD RESET: toolbar must be grid (not flex) */
  #listings .exadas-list-toolbar{
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
  }

  /* Row 1 wrapper */
  #listings .exadas-list-toolbar__left{
    grid-row: 1 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Row 2 wrapper (sort) */
  #listings .exadas-list-toolbar__right{
    grid-row: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Row 2 select full width */
  #listings .exadas-list-toolbar__right select.exadas-sort-select{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
  }

  /* Page group */
  #listings .exadas-ctl--page{
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }
  #listings select.exadas-page-select{
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
  }

  /* Limit group */
  #listings .exadas-ctl--limit{
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }
  #listings select.exadas-limit-select{
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
  }

  /* Showing sits right on row1 */
  #listings .exadas-showing{
    margin-left: auto !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    opacity: .85 !important;
  }
}











/* =========================================================
   EXADAS – HOME Random Properties Module
   #randomPropertiesModule
   - Fix white tiles (never absolute the <a>)
   - Visible hover effect (overlay darkens) + optional subtle zoom
   - Premium badges: FEATURED + FOR SALE (no cut / no overlap)
========================================================= */

/* 0) Reset / safety: μην ξανακάνει το link absolute (βγάζει άσπρα) */
#randomPropertiesModule .image_property > a{
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;

  display: block !important;
  background: transparent !important;
}

/* 1) Container της εικόνας */
#randomPropertiesModule .image_property{
  position: relative;
  overflow: hidden; /* κρατάει μέσα το zoom */
}

/* 2) Overlay (αυτό δίνει το “χρώμα” στο hover) */
#randomPropertiesModule .bg_overlayer{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,.18);          /* default */
  transition: background .25s ease;
  pointer-events: none;                 /* να μην μπλοκάρει hover/click */
}

/* Hover: κάνε το overlay πιο έντονο για να φαίνεται */
#randomPropertiesModule .box:hover .bg_overlayer{
  background: rgba(0,0,0,.38);
}

/* 3) Optional subtle zoom (safe) – πάνω στο link της εικόνας (χωρίς absolute) */
#randomPropertiesModule .image_property > a{
  transition: transform .35s ease, filter .35s ease;
  will-change: transform;
}

#randomPropertiesModule .box:hover .image_property > a{
  transform: scale(1.05);
  filter: brightness(1.03);
}

/* =========================================================
   4) BADGES – premium pills (no red bar, no overlap)
========================================================= */

/* FEATURED */
#randomPropertiesModule .image_property .randompropertyfeatured{
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;

  z-index: 20 !important;
  margin: 0 !important;

  display: inline-flex !important;
  align-items: center !important;

  width: auto !important;
  max-width: calc(100% - 24px) !important;
  box-sizing: border-box !important;

  padding: 6px 10px !important;
  border-radius: 999px !important;

  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .35px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;

  background: rgba(0,0,0,.55) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  pointer-events: none !important;
}

/* FOR SALE (κάτω από FEATURED, ίδια στοίχιση, χωρίς overlap) */
#randomPropertiesModule .image_property .randompropertytype{
  position: absolute !important;
  top: 44px !important;                 /* κάτω από FEATURED */
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;

  z-index: 20 !important;
  margin: 0 !important;
  transform: none !important;

  display: inline-flex !important;
  align-items: center !important;

  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 24px) !important;
  box-sizing: border-box !important;

  padding: 6px 12px !important;
  border-radius: 999px !important;

  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .35px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  color: #fff !important;

  /* subtle gradient + glass */
  background: linear-gradient(135deg,
              rgba(10,16,28,.78),
              rgba(25,40,70,.58)) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.22) !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  pointer-events: none !important;
}

/* 5) Mobile tweaks */
@media (max-width: 767px){
  #randomPropertiesModule .image_property .randompropertyfeatured{
    top: 10px !important;
    left: 10px !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
  }
  #randomPropertiesModule .image_property .randompropertytype{
    top: 40px !important;
    left: 10px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
}




/* =========================================================
   HOME module – FOR SALE badge: bottom-right (safe)
========================================================= */
#randomPropertiesModule .image_property .randompropertytype{
  top: auto !important;
  left: auto !important;

  right: 12px !important;
  bottom: 12px !important;

  z-index: 20 !important;
  margin: 0 !important;

  /* κρατάμε το ίδιο premium look */
  padding: 6px 12px !important;
  border-radius: 999px !important;

  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .35px !important;
  line-height: 1 !important;

  max-width: calc(100% - 24px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  pointer-events: none !important;
}

/* Mobile */
@media (max-width: 767px){
  #randomPropertiesModule .image_property .randompropertytype{
    right: 10px !important;
    bottom: 10px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
}














/* --- THE ULTIMATE COOKIE FIX --- */

/* 1. Επιβολή του Banner και των κουμπιών στο απόλυτο προσκήνιο */
#jb-cookies, 
.jb-cookies-banner, 
.jb-buttons, 
.jb-accept, 
.jb-settings-btn {
    z-index: 2147483647 !important; /* Το μέγιστο δυνατό επίπεδο */
    position: fixed !important;
    pointer-events: auto !important; /* Εξασφαλίζει ότι το κλικ θα περάσει */
    opacity: 1 !important;
    visibility: visible !important;
}

/* 2. Εξουδετέρωση της "σκιάς" που κλειδώνει την οθόνη */
#mobilemenu-ck-container {
    height: 0 !important; /* Μηδενίζουμε το ύψος του αόρατου πλαισίου */
    pointer-events: none !important;
    z-index: 99999 !important;
}

/* 3. Διατήρηση του κουμπιού του μενού στη θέση του */
.mobilemenu-ck-button {
    height: auto !important;
    pointer-events: auto !important;
    position: fixed !important;
    z-index: 100000 !important;
}

/* 4. Αν υπάρχει γκρίζο φόντο που εμποδίζει, το στέλνουμε πίσω */
.jb-cookies-overlay, 
.modal-backdrop {
    z-index: 2147483646 !important; /* Ένα επίπεδο κάτω από τα κουμπιά */
}






















/* 1. Κλείδωμα της οθόνης - Τέρμα το κενό δεξιά */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. "Μάζεμα" του Mobile Menu CK */
#mobilemenu-ck-container {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 3. Διόρθωση για την μπάρα του μενού */
#mobilemenu-ck-bar {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

/* 4. Εξαφάνιση τυχόν στοιχείων που "εξέχουν" */
* {
    box-sizing: border-box !important;
}











/* OS Property frontend form: fix clipped text in inputs/selects */
.com_osproperty #propertyModification .form-control,
.com_osproperty #propertyModification select.form-control,
.com_osproperty #propertyModification input.form-control,
.com_osproperty #propertyModification textarea.form-control {
  height: auto !important;
  min-height: 2.75rem !important;
  line-height: 1.35 !important;
  padding-top: .55rem !important;
  padding-bottom: .55rem !important;
}

/* κράτα χώρο για το custom arrow */
.com_osproperty #propertyModification select.form-control {
  padding-right: 40px !important;
}
