:root{
  /* ===== NEW LIGHT COMFORT THEME (Header/Mobile Menu) ===== */
  --bg: rgba(245, 243, 238, 0.86);     /* warm off-white w/ transparency */
  --border: rgba(46, 46, 46, 0.10);    /* soft neutral border */
  --text: #2E2E2E;                     /* body text */
  --muted: rgba(46, 46, 46, 0.70);     /* muted text */

  /* Keep variable names for compatibility: gold -> elegant blue */
  --gold: #5B7FA6;                     /* primary accent (blue) */
  --gold-soft: rgba(91, 127, 166, 0.45);
  --gold-ring: rgba(91, 127, 166, 0.14);

  --maxw: 1200px;
}

html{ scroll-behavior:smooth; }
section[id]{ scroll-margin-top:110px; }

/* =========================
   HEADER (DESKTOP)
   ========================= */

.dimar-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2147483000;
  isolation: isolate;

  /* TOP: completely transparent */
  background: transparent;
  border-bottom: none;
  box-shadow: none;

  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .25s ease, opacity .25s ease;
}

.dimar-header::before{ pointer-events:none; }

.dimar-header__inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 5;
}

/* When scrolled: light blurred header */
.dimar-header.is-scrolled{
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* LOGO */
.dimar-logo{
  display:inline-flex;
  gap:6px;
  text-decoration:none;
}

.dimar-logo__main,
.dimar-logo__gold{
  font-family: Georgia, serif;
  font-size: 30px;
}

.dimar-logo__main{ color: var(--text); font-weight:600; }
.dimar-logo__gold{ color: var(--gold); font-weight:300; }

/* NAV */
.dimar-nav{
  display:flex;
  gap:8px;
  justify-content:center;
}

.dimar-nav__link{
  color: var(--muted);
  font-size:18px;
  padding:10px 14px;
  text-decoration:none;
  position:relative;
}

.dimar-nav__link:hover{ color: var(--text); }

.dimar-nav__link::after{
  content:'';
  position:absolute;
  left:14px; right:14px;
  bottom:4px;
  height:1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: .25s;
}

.dimar-nav__link:hover::after{ transform: scaleX(1); }

/* NAV + PHONE WRAP */
.dimar-navwrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

/* PHONE LINK */
.dimar-phone{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  color: var(--text);
 
}

.dimar-phone__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.dimar-phone__text{
  font-size:16px;
  color: var(--muted);
  white-space: nowrap;
}

/* RESPONSIVE: σε mobile κρύβουμε το κείμενο και μικραίνουμε λίγο το brand */
@media (max-width:1024px){
  /* το menu είναι hidden ήδη, αλλά κρατάμε κανόνες για σιγουριά */
  .dimar-phone__text{ display:none; }

  .dimar-phone{
    padding:5px 5px;
    border-radius:14px;
  }

  /* μικραίνει λίγο το όνομα */
  .dimar-logo__main,
  .dimar-logo__gold{
    font-size: 26px;
  }
}


/* CTA */
.dimar-cta{ text-align:right; }

.dimar-cta__btn{
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--gold), #6F95BB);
  border: 1px solid rgba(91,127,166,.35);
  padding:10px 18px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  box-shadow: 0 10px 22px rgba(91,127,166,.18);
}

.dimar-cta__btn:hover{
  box-shadow: 0 0 0 3px var(--gold-ring), 0 14px 34px rgba(91,127,166,.20);
  transform: translateY(-1px);
}

/* BURGER */
.dimar-burger{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  position:relative;
  z-index:6;
}

.dimar-burger span{
  display:block;
  width:22px;
  height:2px;
  margin:5px;
  background: var(--text);
}

/* =========================
   MOBILE/TABLET HEADER
   ========================= */
@media (max-width:1024px){
  .dimar-nav, .dimar-cta{ display:none; }
  .dimar-burger{ display:block; }

  /* Logo | Phone | Burger (χωρίς κενό 1fr) */
  .dimar-header__inner{
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    column-gap: 10px;
  }


  .dimar-logo__main{ color: #2E2E2E; }
  .dimar-logo__gold{ color: #5B7FA6; }
  .dimar-burger span{ background: #2E2E2E; }
}

/* =========================
   MOBILE MENU (CENTERED)
   ========================= */

.dimar-mobile{ display:none !important; }

.dimar-header.is-open .dimar-mobile{
  display: grid !important;
  place-items: center !important;

  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;

  padding: 18px !important;
  background: rgba(0,0,0,0.28) !important; /* softer overlay */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;

  min-height: 100svh !important;
}

.dimar-mobile__panel{
  width: min(92vw, 420px);
  max-height: calc(100svh - 36px);
  overflow: auto;

  padding: 22px 16px;
  border-radius: 18px;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(46,46,46,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);

  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;

  min-height: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  position: relative !important;
  top:auto !important;
  left:auto !important;
}

.dimar-mobile__link{
  width:100%;
  text-align:center;
  padding:14px 12px;
  border-radius:14px;

  font-size:20px;
  font-weight:650;
  color: #2E2E2E;
  text-decoration:none;

  background: rgba(237,243,250,0.75);
  border: 1px solid rgba(220,232,244,0.95);
}

.dimar-mobile__link:hover{
  border-color: rgba(91,127,166,0.45);
  box-shadow: 0 0 0 3px rgba(91,127,166,0.10);
}

.dimar-mobile__cta{
  width:100%;
  text-align:center;
  padding:14px 16px;
  border-radius:16px;

  background: linear-gradient(135deg, #5B7FA6, #6F95BB);
  color:#FFFFFF !important;
  font-weight:850;
  text-decoration:none;
  box-shadow: 0 12px 28px rgba(91,127,166,.20);
}

.dimar-mobile__cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(91,127,166,.22);
}

/* =========================
   HIDE HEADER WHEN SALE MODAL OPEN
   ========================= */
body.dimar-sale-open .dimar-header{
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

/* Ensure sale modal close (X) always visible */
#dimarSaleModal .dimar-sale-close{
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
  right: 12px !important;
  z-index: 2147483647 !important;
}

/* Keep modal above most things */
#dimarSaleModal{
  z-index: 2147483646 !important;
}

.dimar-lang {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: 10px;
}

.dimar-lang a {
  display: inline-flex;
  opacity: 0.85;
  transition: opacity .2s ease;
}

.dimar-lang a:hover { opacity: 1; }

.dimar-lang img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  display: block;
}

/* Remove Polylang bullet separator */
.dimar-lang .pll-list-item::before,
.dimar-lang .pll-list-item::after,
.dimar-lang li::marker {
  display: none !important;
  content: none !important;
}

/* ================================
   POLYLANG – CLEANUP
================================ */

/* Remove bullet separator */
.dimar-header .pll-list-item::before,
.dimar-header .pll-list-item::after,
.dimar-header li::marker {
  display: none !important;
  content: none !important;
}

/* Flags basic alignment */
.dimar-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dimar-lang img {
  width: 20px;
  height: 14px;
  display: block;
}


/* Mobile: απλά μικρότερα flags, ΟΧΙ hide */
@media (max-width: 1024px) {
  .dimar-lang img {
    width: 18px;
    height: 12px;
  }
}


/* ================================
   DIMAR HEADER – MOBILE LAYOUT FIX
================================ */

@media (max-width: 768px) {

  /* Κρύψε το desktop menu links στο mobile */
  .dimar-header .dimar-nav {
    display: none !important;
  }

  /* Κρύψε το μεγάλο CTA button στο δεξί μέρος (υπάρχει ήδη μέσα στο mobile menu) */
  .dimar-header .dimar-cta {
    display: none !important;
  }

  /* Κρύψε το τηλεφωνικό κείμενο, κράτα μόνο το icon */
  .dimar-header .dimar-phone__text {
    display: none !important;
  }

  /* Φτιάξε σωστή στοίχιση: logo αριστερά, icons δεξιά */
  .dimar-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  /* Κάνε το navwrap να “μαζέψει” δεξιά */
  .dimar-header .dimar-navwrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  /* Μάζεψε λίγο το logo για να μη σπάει */
  .dimar-logo {
    max-width: 60vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Αν έχεις language flags, κάν’ τα μικρότερα */
  .dimar-header .dimar-lang img {
    width: 18px;
    height: 12px;
  }
}

/* ================================
   SAFE MOBILE HEADER (NO HIDES)
   Works for iPhone 15 Pro etc.
================================ */

/* remove the bullet */
.dimar-header .pll-list-item::before,
.dimar-header .pll-list-item::after,
.dimar-header li::marker{
  display:none !important;
  content:none !important;
}

/* small screens layout tuning (NO display:none) */
@media (max-width: 430px){

  /* πιο “σφιχτό” inner */
  .dimar-header__inner{
    padding-left: 10px;
    padding-right: 10px;
    gap: 8px;
  }

  /* logo να μην σπάει */
  .dimar-logo{
    max-width: 52vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* κάνε το navwrap να κάθεται δεξιά και να μη σπάει */
  .dimar-navwrap{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* μίκρυνε flags */
  .dimar-lang{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }
  .dimar-lang img{
    width: 16px;
    height: 11px;
    display:block;
  }

  /* phone: κράτα μόνο icon + λίγο πιο μικρό */
  .dimar-phone{
    padding: 6px 8px;
    flex: 0 0 auto;
  }
  .dimar-phone__text{
    display:none !important; /* μόνο αυτό κρύβουμε */
  }

  /* burger μεγαλύτερο tap target */
  .dimar-burger{
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
  }

  /* CTA να μην πιέζει — αν υπάρχει, απλά μικραίνει */
  .dimar-cta__btn{
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
}


/* Responsive logo scaling (no cut) */
@media (max-width: 430px) {

  /* κράτα το logo σε 1 γραμμή */
  .dimar-logo{
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
  }

  /* μικραίνει το "Dimar" */
  .dimar-logo__main{
    font-size: 22px;   /* άλλαξε αν θες πιο μικρό/μεγάλο */
    line-height: 1;
  }

  /* μικραίνει το "Apartments" */
  .dimar-logo__gold{
    font-size: 20px;
    line-height: 1;
  }
}

/* ακόμα πιο μικρές οθόνες (παλιά iPhone / πολύ στενά) */
@media (max-width: 360px) {
  .dimar-logo__main{ font-size: 20px; }
  .dimar-logo__gold{ font-size: 18px; }
}
@media (max-width: 430px) {
  .dimar-logo__main{ font-size: clamp(18px, 5vw, 22px); }
  .dimar-logo__gold{ font-size: clamp(16px, 4.6vw, 20px); }
}

