
/*
Theme Name: EuroHomes
Theme URI: https://eurohomes.pl
Author: EuroHomes
Description: Custom lightweight WordPress theme for the EuroHomes European real estate portal.
Version: 0.3.1
Text Domain: eurohomes
*/

:root{
  --eh-navy:#0f172a;
  --eh-blue:#2563eb;
  --eh-blue-dark:#1d4ed8;
  --eh-ink:#111827;
  --eh-muted:#64748b;
  --eh-line:#e5e7eb;
  --eh-bg:#f8fafc;
  --eh-card:#ffffff;
  --eh-green:#16a34a;
  --eh-gold:#c99600;
  --eh-radius:18px;
  --eh-shadow:0 16px 44px rgba(15,23,42,.10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--eh-ink);
  background:#fff;
  line-height:1.5
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,select{font:inherit}
.eh-container{width:min(1280px,calc(100% - 40px));margin:0 auto}

.eh-topbar{background:var(--eh-navy);color:#fff;font-size:13px}
.eh-topbar .eh-container{display:flex;justify-content:space-between;align-items:center;min-height:34px}
.eh-topbar-right{display:flex;gap:16px;align-items:center}

.eh-header{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--eh-line)
}
.eh-header-row{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:74px}
.eh-logo{font-size:28px;font-weight:900;letter-spacing:-1px;color:var(--eh-navy)}
.eh-logo span{color:var(--eh-blue)}
.eh-nav{display:flex;align-items:center;gap:28px;font-weight:650;font-size:15px}
.eh-nav a:hover{color:var(--eh-blue)}
.eh-actions{display:flex;align-items:center;gap:10px}
.eh-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:0 18px;border-radius:12px;border:1px solid transparent;
  font-weight:800;cursor:pointer;transition:.2s ease
}
.eh-btn:hover{transform:translateY(-1px)}
.eh-btn-primary{background:var(--eh-blue);color:#fff}
.eh-btn-primary:hover{background:var(--eh-blue-dark)}
.eh-btn-outline{border-color:var(--eh-line);background:#fff}
.eh-mobile-menu{display:none}

.eh-hero{
  background:
    radial-gradient(circle at 12% 4%,rgba(37,99,235,.11),transparent 30%),
    radial-gradient(circle at 95% 0%,rgba(16,185,129,.09),transparent 28%),
    linear-gradient(180deg,#fbfdff,#fff);
  padding:54px 0 44px
}
.eh-hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:44px;align-items:center}
.eh-kicker{
  display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;
  background:#eef4ff;color:var(--eh-blue);font-size:13px;font-weight:850;margin-bottom:16px
}
.eh-hero h1{font-size:clamp(40px,4.2vw,62px);line-height:1.02;letter-spacing:-2.2px;margin:0 0 16px}
.eh-hero p{font-size:18px;color:var(--eh-muted);max-width:680px;margin:0 0 26px}

.eh-photo{
  min-height:390px;border-radius:26px;overflow:hidden;position:relative;
  background:
    linear-gradient(to top,rgba(15,23,42,.48),rgba(15,23,42,.04)),
    linear-gradient(135deg,#c7d2fe 0 30%,#dbeafe 30% 52%,#d1fae5 52% 70%,#e5e7eb 70% 100%);
  box-shadow:var(--eh-shadow)
}
.eh-photo:before{
  content:"";position:absolute;left:7%;right:7%;bottom:0;height:65%;
  background:#f8fafc;border-radius:14px 14px 0 0;
  box-shadow:0 -2px 0 rgba(255,255,255,.8);
  clip-path:polygon(0 27%,40% 27%,40% 0,100% 0,100% 100%,0 100%)
}
.eh-photo:after{
  content:"";position:absolute;left:13%;right:13%;bottom:11%;height:36%;
  background:
    repeating-linear-gradient(90deg,#93c5fd 0 26px,#fff 26px 39px);
  border-radius:8px
}
.eh-photo-copy{
  position:absolute;z-index:2;left:22px;bottom:22px;background:rgba(255,255,255,.94);
  padding:12px 15px;border-radius:13px;box-shadow:var(--eh-shadow)
}
.eh-photo-copy strong{display:block;font-size:16px}
.eh-photo-copy span{font-size:13px;color:var(--eh-muted)}

.eh-search-wrap{
  margin-top:28px;background:#fff;border:1px solid var(--eh-line);border-radius:18px;padding:12px;
  box-shadow:0 16px 44px rgba(15,23,42,.09)
}
.eh-search-tabs{display:flex;gap:6px;margin-bottom:10px}
.eh-search-tab{border:0;background:transparent;padding:9px 15px;border-radius:10px;font-weight:850;cursor:pointer}
.eh-search-tab.is-active{background:#eff6ff;color:var(--eh-blue)}
.eh-search-grid{display:grid;grid-template-columns:1fr 1.5fr 1.05fr .9fr 138px;gap:8px}
.eh-field{border:1px solid var(--eh-line);border-radius:12px;padding:9px 12px;min-height:58px;background:#fff;overflow:hidden}
.eh-field label{display:block;font-size:10px;font-weight:850;color:var(--eh-muted);text-transform:uppercase;letter-spacing:.055em;white-space:nowrap}
.eh-field select,.eh-field input{border:0;outline:0;width:100%;font-size:14px;background:transparent;color:var(--eh-ink);padding-top:5px}
.eh-search-button{border:0;border-radius:12px;background:var(--eh-blue);color:#fff;font-weight:850;font-size:15px}

.eh-strip{border-top:1px solid var(--eh-line);border-bottom:1px solid var(--eh-line);background:#fff}
.eh-stats{display:grid;grid-template-columns:repeat(4,1fr)}
.eh-stat{padding:20px 10px;text-align:center;border-right:1px solid var(--eh-line)}
.eh-stat:last-child{border-right:0}
.eh-stat strong{display:block;font-size:22px}
.eh-stat span{color:var(--eh-muted);font-size:13px}

.eh-section{padding:64px 0}
.eh-section.alt{background:var(--eh-bg)}
.eh-section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:24px}
.eh-section h2{font-size:32px;letter-spacing:-1px;margin:0}
.eh-section-sub{color:var(--eh-muted);margin-top:6px}
.eh-link{font-weight:850;color:var(--eh-blue)}

.eh-countries{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.eh-country{
  min-height:138px;border-radius:17px;padding:18px;display:flex;flex-direction:column;justify-content:flex-end;
  border:1px solid var(--eh-line);background:
  linear-gradient(145deg,rgba(37,99,235,.03),rgba(255,255,255,.95));
  transition:.2s ease
}
.eh-country:hover{transform:translateY(-2px);box-shadow:var(--eh-shadow)}
.eh-country strong{font-size:18px}
.eh-country span{font-size:13px;color:var(--eh-muted);margin-top:3px}

.eh-properties{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.eh-card{border:1px solid var(--eh-line);border-radius:18px;overflow:hidden;background:#fff;transition:.2s ease}
.eh-card:hover{transform:translateY(-3px);box-shadow:var(--eh-shadow)}
.eh-card-media{
  height:225px;position:relative;overflow:hidden;
  background:linear-gradient(135deg,#bfdbfe,#e2e8f0)
}
.eh-card-media:before{
  content:"";position:absolute;left:6%;right:6%;bottom:0;height:70%;
  background:#f8fafc;border-radius:12px 12px 0 0
}
.eh-card-media:after{
  content:"";position:absolute;left:11%;right:11%;bottom:12%;height:36%;
  background:repeating-linear-gradient(90deg,#93c5fd 0 23px,#fff 23px 35px)
}
.eh-card-media.variant2{background:linear-gradient(135deg,#bbf7d0,#e2e8f0)}
.eh-card-media.variant3{background:linear-gradient(135deg,#fde68a,#e5e7eb)}
.eh-badge{
  position:absolute;z-index:3;left:14px;top:14px;padding:7px 10px;border-radius:999px;
  font-size:11px;font-weight:900;background:#fff
}
.eh-badge.top{background:#fff3bf;color:#8a6500}
.eh-card-body{padding:18px}
.eh-card-price{font-weight:900;font-size:22px}
.eh-card-title{font-weight:850;margin:5px 0 4px}
.eh-card-loc{font-size:13px;color:var(--eh-muted)}
.eh-card-meta{display:flex;gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid var(--eh-line);font-size:13px;color:#334155}

.eh-cta{
  border-radius:24px;background:var(--eh-navy);color:#fff;padding:40px;
  display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center
}
.eh-cta h3{font-size:29px;margin:0 0 7px;letter-spacing:-.7px}
.eh-cta p{margin:0;color:#cbd5e1}
.eh-cta .eh-btn{background:#fff;color:var(--eh-navy)}

.eh-two{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.eh-panel{border:1px solid var(--eh-line);border-radius:20px;padding:28px;background:#fff}
.eh-panel h3{font-size:24px;margin:0 0 10px}
.eh-panel p{color:var(--eh-muted);margin:0 0 18px}
.eh-price{font-size:28px;font-weight:900;margin:8px 0}

.eh-footer{background:#0b1120;color:#cbd5e1;padding:48px 0 22px}
.eh-footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:36px}
.eh-footer .eh-logo{color:#fff}
.eh-footer h4{color:#fff;margin:0 0 12px}
.eh-footer a{display:block;margin:8px 0;color:#cbd5e1}
.eh-footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:34px;padding-top:18px;font-size:13px;display:flex;justify-content:space-between;gap:20px}

@media(max-width:1080px){
  .eh-nav{display:none}
  .eh-mobile-menu{display:inline-flex}
  .eh-hero-grid{grid-template-columns:1fr}
  .eh-photo{min-height:300px}
  .eh-search-grid{grid-template-columns:1fr 1fr}
  .eh-search-button{min-height:56px}
  .eh-countries{grid-template-columns:repeat(3,1fr)}
  .eh-properties{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
  .eh-container{width:min(100% - 24px,1280px)}
  .eh-topbar{display:none}
  .eh-header-row{min-height:66px}
  .eh-logo{font-size:24px}
  .eh-actions .eh-btn-outline{display:none}
  .eh-hero{padding:38px 0 32px}
  .eh-hero h1{font-size:41px;letter-spacing:-1.6px}
  .eh-hero p{font-size:16.5px}
  .eh-photo{min-height:235px}
  .eh-search-grid{grid-template-columns:1fr}
  .eh-search-button{width:100%}
  .eh-stats{grid-template-columns:1fr 1fr}
  .eh-stat:nth-child(2){border-right:0}
  .eh-stat:nth-child(-n+2){border-bottom:1px solid var(--eh-line)}
  .eh-countries{grid-template-columns:1fr 1fr}
  .eh-properties{grid-template-columns:1fr}
  .eh-section{padding:48px 0}
  .eh-section h2{font-size:28px}
  .eh-section-head{align-items:start;flex-direction:column}
  .eh-cta{grid-template-columns:1fr;padding:28px}
  .eh-two{grid-template-columns:1fr}
  .eh-footer-grid{grid-template-columns:1fr 1fr}
  .eh-footer-bottom{flex-direction:column}
}

/* EuroHomes 0.2.1 */
body.page-list-property-free .eh-section{
  padding-top:26px;
  padding-bottom:52px;
}
body.page-list-property-free .eh-section > .eh-container{
  width:min(1280px,calc(100% - 40px));
}

.eh-topbar-right a{color:#fff;opacity:.82}
.eh-topbar-right a:hover,.eh-topbar-right a.is-active{opacity:1;font-weight:900}


/* EuroHomes single property 0.2.6 */
.eh-property-page{background:#f8fafc;padding:34px 0 70px}
.eh-property-breadcrumbs{font-size:13px;color:#64748b;margin-bottom:18px}
.eh-property-top{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:28px;align-items:start}
.eh-property-main{min-width:0}
.eh-property-gallery{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:220px 220px;gap:10px;border-radius:20px;overflow:hidden;background:#e2e8f0}
.eh-property-photo{position:relative;overflow:hidden;background:#e2e8f0}
.eh-property-photo:first-child{grid-row:1/3}
.eh-property-photo img{width:100%;height:100%;object-fit:cover}
.eh-gallery-empty{display:flex;align-items:center;justify-content:center;height:100%;min-height:450px;font-weight:800;color:#64748b;background:linear-gradient(135deg,#dbeafe,#e2e8f0)}
.eh-more-photos{position:absolute;right:14px;bottom:14px;background:rgba(15,23,42,.82);color:#fff;border-radius:10px;padding:8px 11px;font-size:12px;font-weight:800}
.eh-property-headline{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:24px;margin-top:18px}
.eh-property-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.eh-property-badge{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:11px;font-weight:900}
.eh-property-headline h1{font-size:34px;line-height:1.1;letter-spacing:-1px;margin:0 0 8px}
.eh-property-location{color:#64748b;font-size:15px}
.eh-property-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}
.eh-property-fact{border:1px solid #e5e7eb;border-radius:13px;padding:13px}
.eh-property-fact strong{display:block;font-size:18px}
.eh-property-fact span{font-size:12px;color:#64748b}
.eh-property-section{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:24px;margin-top:18px}
.eh-property-section h2{margin:0 0 14px;font-size:23px}
.eh-property-description{font-size:16px;line-height:1.75;color:#334155}
.eh-property-sidebar{position:sticky;top:126px}
.eh-contact-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:24px;box-shadow:0 12px 35px rgba(15,23,42,.07)}
.eh-property-price{font-size:34px;font-weight:950;letter-spacing:-1px;margin-bottom:6px}
.eh-property-price-note{font-size:13px;color:#64748b;margin-bottom:20px}
.eh-contact-card h3{font-size:20px;margin:0 0 8px}
.eh-contact-card p{color:#64748b;font-size:14px}
.eh-contact-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;border-radius:12px;font-weight:850;margin-top:9px}
.eh-contact-action.primary{background:#2563eb;color:#fff}
.eh-contact-action.secondary{border:1px solid #dbe0e6;background:#fff}
.eh-property-meta-small{border-top:1px solid #eef2f7;margin-top:18px;padding-top:15px;font-size:12px;color:#64748b}
.eh-property-meta-small div{display:flex;justify-content:space-between;gap:12px;margin-top:6px}
.eh-property-langbar{display:flex;gap:6px;margin-bottom:16px}
.eh-property-langbar a{display:inline-flex;padding:7px 10px;border:1px solid #dbe0e6;border-radius:9px;background:#fff;font-size:12px;font-weight:850}
.eh-property-langbar a.is-active{background:#eff6ff;border-color:#bfdbfe;color:#2563eb}
@media(max-width:980px){
  .eh-property-top{grid-template-columns:1fr}
  .eh-property-sidebar{position:static}
}
@media(max-width:720px){
  .eh-property-page{padding-top:18px}
  .eh-property-gallery{grid-template-columns:1fr;grid-template-rows:270px}
  .eh-property-photo:first-child{grid-row:auto}
  .eh-property-photo:not(:first-child){display:none}
  .eh-gallery-empty{min-height:270px}
  .eh-property-headline h1{font-size:28px}
  .eh-property-facts{grid-template-columns:1fr 1fr}
  .eh-property-price{font-size:30px}
}


/* EuroHomes 0.3.0 — clickable property gallery / lightbox */
.eh-property-photo{
  cursor:zoom-in;
}
.eh-property-photo:after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(15,23,42,0);
  transition:background .18s ease;
  pointer-events:none;
}
.eh-property-photo:hover:after{
  background:rgba(15,23,42,.08);
}
.eh-property-photo img{
  transition:transform .25s ease;
}
.eh-property-photo:hover img{
  transform:scale(1.015);
}
.eh-more-photos{
  z-index:3;
  pointer-events:none;
}

.eh-lightbox{
  position:fixed;
  inset:0;
  z-index:9999999;
  display:none;
  background:rgba(3,7,18,.95);
  color:#fff;
}
.eh-lightbox.is-open{
  display:flex;
  flex-direction:column;
}
.eh-lightbox-top{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:10px 18px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.eh-lightbox-title{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-weight:800;
}
.eh-lightbox-counter{
  flex:0 0 auto;
  color:#cbd5e1;
  font-size:14px;
  font-weight:750;
}
.eh-lightbox-close{
  flex:0 0 auto;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.eh-lightbox-stage{
  position:relative;
  flex:1;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 86px;
  overflow:hidden;
}
.eh-lightbox-image{
  display:block;
  max-width:100%;
  max-height:calc(100vh - 150px);
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 20px 70px rgba(0,0,0,.38);
  user-select:none;
  -webkit-user-drag:none;
}
.eh-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:54px;
  height:54px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:50%;
  background:rgba(15,23,42,.62);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.eh-lightbox-nav:hover{
  background:rgba(37,99,235,.9);
}
.eh-lightbox-prev{left:18px}
.eh-lightbox-next{right:18px}

.eh-lightbox-thumbs{
  flex:0 0 auto;
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:10px 18px 16px;
  border-top:1px solid rgba(255,255,255,.10);
  scrollbar-width:thin;
}
.eh-lightbox-thumb{
  flex:0 0 86px;
  width:86px;
  height:62px;
  padding:0;
  border:2px solid transparent;
  border-radius:9px;
  overflow:hidden;
  background:#111827;
  opacity:.62;
  cursor:pointer;
}
.eh-lightbox-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.eh-lightbox-thumb.is-active{
  border-color:#60a5fa;
  opacity:1;
}
body.eh-lightbox-open{
  overflow:hidden;
}

@media(max-width:720px){
  .eh-lightbox-top{min-height:56px;padding:7px 10px}
  .eh-lightbox-title{font-size:13px}
  .eh-lightbox-stage{padding:16px 10px 88px}
  .eh-lightbox-image{max-height:calc(100vh - 165px)}
  .eh-lightbox-nav{
    width:46px;
    height:46px;
    top:auto;
    bottom:24px;
    transform:none;
    background:rgba(15,23,42,.82);
  }
  .eh-lightbox-prev{left:calc(50% - 58px)}
  .eh-lightbox-next{right:calc(50% - 58px)}
  .eh-lightbox-thumbs{display:none}
}


/* EuroHomes 0.3.1 — formatted descriptions */
.eh-property-description h2,
.eh-property-description h3,
.eh-property-description h4{color:#0f172a;line-height:1.25;margin:28px 0 12px}
.eh-property-description h2{font-size:25px}
.eh-property-description h3{font-size:21px}
.eh-property-description h4{font-size:18px}
.eh-property-description p{margin:0 0 16px}
.eh-property-description ul,
.eh-property-description ol{margin:10px 0 20px;padding-left:26px}
.eh-property-description li{margin:6px 0}
.eh-property-description strong{font-weight:850;color:#0f172a}
.eh-property-description code{background:#f1f5f9;border-radius:5px;padding:2px 5px;font-size:.92em}
