/*
 * Yazan Estate Pro 4.3.0 — UI/UX Polish
 * Presentation-only overrides. No property workflow, map logic, or database behavior is changed here.
 */

:root{
  --yep430-radius:18px;
  --yep430-shadow:0 16px 42px rgba(7,20,46,.08);
  --yep430-shadow-hover:0 22px 58px rgba(7,20,46,.13);
  --yep430-soft:#f5f7fb;
  --yep430-line:#e4e8ef;
}

/* Header: calmer density while keeping every existing menu item available. */
.yep-header--v3 .yep-header__inner{min-height:78px;gap:18px}
.yep-header--v3 .yep-brand--approved{flex:0 0 auto}
.yep-header--v3 .yep-brand--approved img{max-height:54px!important;width:auto}
.yep-header--v3 .yep-menu{gap:14px}
.yep-header--v3 .yep-menu a{font-size:12.5px;line-height:1.35;padding-block:7px}
.yep-header--v3 .yep-header__actions{gap:7px;align-items:center;flex:0 0 auto}
.yep-header--v3 .yep-header__actions .yep-btn--gold{min-height:40px;padding:7px 15px;border-radius:10px}
.yep-header--v3.is-scrolled .yep-header__inner{min-height:68px}
.yep-header--v3.is-scrolled .yep-brand--approved img{max-height:46px!important}

/* Language switcher: remove the large white popover and keep it on brand. */
.yep-language-switcher{position:relative;z-index:1005}
.yep-lang-menu{
  border:1px solid rgba(209,170,89,.34)!important;
  border-radius:14px!important;
  background:#081730!important;
  color:#fff!important;
  box-shadow:0 22px 55px rgba(0,0,0,.28)!important;
  padding:7px!important;
  min-width:190px!important;
  max-height:min(420px,70vh)!important;
  overflow:auto!important;
}
.yep-lang-menu a{
  color:#f5f7fb!important;
  background:transparent!important;
  border-radius:9px!important;
  padding:9px 11px!important;
  line-height:1.45!important;
}
.yep-lang-menu a:hover,.yep-lang-menu a:focus,.yep-lang-menu a[aria-current="true"]{
  color:#07142e!important;
  background:#d1aa59!important;
}
html[data-yep-color="dark"] .yep-lang-menu{background:#0b111d!important;border-color:#5b4a28!important}

/* Homepage rhythm: remove oversized dead space while preserving hierarchy. */
.home .yep-section{padding-top:68px;padding-bottom:68px}
.home .yep-section--properties{padding-top:96px}
.home .yep-section-heading{margin-bottom:24px}
.home .yep-section-heading h2{font-size:clamp(28px,3.5vw,43px)}
.home .yep-v3-final-cta{margin-block:16px 0}

/* Property cards: one consistent component across archives and related listings. */
.yep-property-grid{gap:18px}
.yep-property-card{
  border-radius:var(--yep430-radius)!important;
  border-color:var(--yep430-line)!important;
  box-shadow:var(--yep430-shadow)!important;
}
.yep-property-card:hover{box-shadow:var(--yep430-shadow-hover)!important;transform:translateY(-4px)}
.yep-property-card__media{height:230px}
.yep-property-card__body{padding:17px}
.yep-property-card h3{margin-top:7px;line-height:1.45}
.yep-property-card__specs{gap:6px}

/* Property page: clearer visual hierarchy and a calmer sticky contact rail. */
.single-yep_property .yep-property-page{padding-top:30px}
.single-yep_property .yep-property-titlebar{
  gap:24px;
  margin-bottom:22px;
  padding:22px 24px;
  background:#fff;
  border:1px solid var(--yep430-line);
  border-radius:20px;
  box-shadow:0 10px 30px rgba(7,20,46,.05);
}
.single-yep_property .yep-property-titlebar h1{font-size:clamp(27px,3.1vw,42px);margin-block:8px 5px}
.single-yep_property .yep-property-shell{grid-template-columns:minmax(0,1fr) 300px;gap:20px}
.single-yep_property .yep-gallery-main{border-radius:20px;overflow:hidden;box-shadow:var(--yep430-shadow)}
.single-yep_property .yep-gallery-main-image{max-height:600px;object-fit:cover}
.single-yep_property .yep-spec-grid{gap:10px;margin-block:16px}
.single-yep_property .yep-spec-grid>div{
  border:1px solid var(--yep430-line)!important;
  border-radius:14px!important;
  background:#fff!important;
  padding:14px 12px!important;
}
.single-yep_property .yep-property-box{
  border:1px solid var(--yep430-line)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 26px rgba(7,20,46,.045)!important;
  padding:24px!important;
  margin-top:16px!important;
}
.single-yep_property .yep-property-box h2{font-size:22px;margin-top:0;margin-bottom:16px}
.single-yep_property .yep-contact-card--rail{
  top:84px!important;
  border-radius:18px!important;
  border:1px solid rgba(209,170,89,.34)!important;
  box-shadow:0 16px 42px rgba(7,20,46,.12)!important;
}
.single-yep_property .yep-gallery-side{max-height:330px;overflow:auto;padding-inline-end:2px}
.single-yep_property .yep-details-table>div{min-height:58px}
.single-yep_property .yep-single-location-map{border-radius:16px;overflow:hidden}

/* Blog: lighter magazine feel and less category-column clutter. */
.blog .yep-section,.archive .yep-section,.category .yep-section{padding-block:68px}
.yep-blog-layout{grid-template-columns:minmax(0,1fr) 270px;gap:24px}
.yep-blog-grid{gap:18px}
.yep-blog-card{border-radius:18px;box-shadow:0 12px 36px rgba(5,18,45,.065)}
.yep-blog-card__media{height:205px}
.yep-blog-card__body{padding:17px}
.yep-blog-card h2{font-size:18px;margin-block:8px 6px}
.yep-blog-sidebar{top:96px;gap:12px}
.yep-blog-sidebar__card{border-radius:15px;padding:17px;box-shadow:0 8px 24px rgba(7,20,46,.04)}
.yep-blog-sidebar__card li{padding:7px 0}
.yep-blog-sidebar__card li a{font-weight:700}
.yep-blog-sidebar__all{display:inline-flex;margin-top:10px;font-size:12px;font-weight:900;color:#8a651f}

/* Forms: consistent controls and focus state. */
.yep-form input:not([type="checkbox"]):not([type="radio"]),
.yep-form select,.yep-form textarea,
.yep-test-form-card input:not([type="checkbox"]):not([type="radio"]),
.yep-test-form-card select,.yep-test-form-card textarea{
  border-radius:11px!important;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.yep-form input:focus,.yep-form select:focus,.yep-form textarea:focus,
.yep-test-form-card input:focus,.yep-test-form-card select:focus,.yep-test-form-card textarea:focus{
  outline:0!important;
  border-color:#d1aa59!important;
  box-shadow:0 0 0 3px rgba(209,170,89,.16)!important;
}
.yep-test-form-card{border-radius:18px!important}
.yep-wizard-actions{gap:10px!important}

/* Chat launcher: icon first, content only after the visitor opens it. */
.yep-chatbot-root .yep-chat-launch{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  padding:8px!important;
  justify-content:center!important;
  border:1px solid rgba(209,170,89,.42)!important;
}
.yep-chatbot-root .yep-chat-launch-text{display:none!important}
.yep-chatbot-root .yep-chat-bubble-icon{width:36px!important;height:36px!important}

/* Footer: preserve content while reducing vertical mass. */
#yep-site-footer .yep-v37-footer-cta{padding-top:24px!important;padding-bottom:24px!important}
#yep-site-footer .yep-v37-footer-grid{padding-top:34px!important;padding-bottom:30px!important;gap:24px!important}
#yep-site-footer .yep-v37-footer-brand p{line-height:1.75!important;margin-block:10px!important}
#yep-site-footer .yep-v37-footer-col h3{margin-bottom:12px!important}
#yep-site-footer .yep-v37-footer-col li{margin-bottom:7px!important;line-height:1.55!important}
#yep-site-footer .yep-footer__bottom{padding-top:16px!important;padding-bottom:16px!important}

/* Dark mode parity for the new polished surfaces. */
html[data-yep-color="dark"] .single-yep_property .yep-property-titlebar,
html[data-yep-color="dark"] .single-yep_property .yep-spec-grid>div,
html[data-yep-color="dark"] .single-yep_property .yep-property-box,
html[data-yep-color="dark"] .yep-blog-sidebar__card{
  background:#101318!important;
  border-color:#343b47!important;
  color:#edf2f8!important;
}
html[data-yep-color="dark"] .single-yep_property .yep-property-box h2,
html[data-yep-color="dark"] .single-yep_property .yep-property-titlebar h1,
html[data-yep-color="dark"] .single-yep_property .yep-spec-grid strong,
html[data-yep-color="dark"] .yep-blog-sidebar__card h3{color:#f7f9fc!important}
html[data-yep-color="dark"] .single-yep_property .yep-spec-grid span{color:#aeb9c9!important}

/* LTR/RTL parity. */
html[dir="ltr"] .yep-lang-menu{text-align:left}
html[dir="rtl"] .yep-lang-menu{text-align:right}
html[dir="ltr"] .yep-blog-sidebar__all{direction:ltr}

@media(max-width:1180px){
  .yep-header--v3 .yep-menu{gap:10px}
  .yep-header--v3 .yep-menu a{font-size:11.8px}
  .yep-header--v3 .yep-header__actions .yep-btn--gold{padding-inline:11px}
}

@media(max-width:1000px){
  .single-yep_property .yep-property-shell{grid-template-columns:1fr}
  .single-yep_property .yep-property-rail{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .single-yep_property .yep-gallery-side{grid-column:1/-1;max-height:none}
  .single-yep_property .yep-contact-card--rail{position:static!important}
  .yep-blog-layout{grid-template-columns:1fr}
  .yep-blog-sidebar{position:static;grid-template-columns:1fr 1fr}
}

@media(max-width:900px){
  .yep-header--v3 .yep-header__inner{min-height:68px!important;padding-inline:0}
  .yep-header--v3 .yep-brand--approved{margin-inline:auto}
  .yep-header--v3 .yep-brand--approved img{max-height:48px!important}
  .yep-mobile-header-tools{left:52px!important;gap:4px!important}
  .yep-nav-toggle{left:8px!important}
  .yep-mobile-header-language .yep-lang-menu{left:0!important;right:auto!important;top:46px!important;background:#081730!important}
  .yep-chatbot-root{bottom:78px!important}
}

@media(max-width:700px){
  .home .yep-section,.blog .yep-section,.archive .yep-section,.category .yep-section{padding-block:48px}
  .home .yep-section--properties{padding-top:70px}
  .yep-property-grid{grid-template-columns:1fr!important}
  .yep-property-card__media{height:220px}
  .single-yep_property .yep-property-page{padding-top:18px}
  .single-yep_property .yep-property-titlebar{display:block;padding:17px;margin-bottom:14px}
  .single-yep_property .yep-property-price{margin-top:14px}
  .single-yep_property .yep-spec-grid{grid-template-columns:repeat(2,1fr)!important}
  .single-yep_property .yep-property-box{padding:18px!important}
  .single-yep_property .yep-property-rail{grid-template-columns:1fr}
  .yep-blog-grid{grid-template-columns:1fr!important}
  .yep-blog-sidebar{grid-template-columns:1fr}
  #yep-site-footer .yep-v37-footer-grid{padding-top:24px!important;padding-bottom:22px!important}
  #yep-site-footer .yep-v37-footer-cta{padding-block:18px!important}
}

@media(max-width:430px){
  .yep-header--v3 .yep-brand--approved img{max-height:43px!important;max-width:150px!important}
  .yep-mobile-header-tools{left:49px!important}
  .yep-mobile-header-color,.yep-mobile-header-language .yep-lang-toggle{width:37px!important;height:37px!important;min-height:37px!important}
  .yep-nav-toggle{left:6px!important}
  .single-yep_property .yep-spec-grid{gap:7px}
  .single-yep_property .yep-spec-grid>div{padding:11px 9px!important}
  .yep-chatbot-root .yep-chat-launch{width:50px!important;height:50px!important;min-width:50px!important}
}


/* 4.3.1 property archive, rail, verification and performance polish */
.post-type-archive-yep_property .yep-property-grid--count-1{grid-template-columns:minmax(320px,440px);justify-content:center}
.post-type-archive-yep_property .yep-property-grid--count-2{grid-template-columns:repeat(2,minmax(320px,440px));justify-content:center}
.post-type-archive-yep_property .yep-property-card__specs{background:#f4f6fa!important;border:1px solid #e4e8ef!important}.post-type-archive-yep_property .yep-property-card__specs small{color:#667085!important}.post-type-archive-yep_property .yep-property-card__specs b{color:#0b2348!important}
html[data-yep-color="dark"] .post-type-archive-yep_property .yep-property-card__specs{background:#151a22!important;border-color:#343b47!important}html[data-yep-color="dark"] .post-type-archive-yep_property .yep-property-card__specs small{color:#aeb9c9!important}html[data-yep-color="dark"] .post-type-archive-yep_property .yep-property-card__specs b{color:#f7f9fc!important}
.single-yep_property .yep-property-rail{align-self:start}.single-yep_property .yep-sidebar-form{margin:0;padding:0;background:transparent;border:0;box-shadow:none;overflow:visible}.single-yep_property .yep-sidebar-form .yep-form{margin:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:16px!important;border:0!important;box-shadow:none!important;background:transparent!important}.single-yep_property .yep-sidebar-form .yep-form-grid{grid-template-columns:1fr!important;gap:10px!important}.single-yep_property .yep-sidebar-form input:not([type="checkbox"]):not([type="radio"]),.single-yep_property .yep-sidebar-form select,.single-yep_property .yep-sidebar-form textarea{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.single-yep_property .yep-property-action-panel{margin:0 0 14px;border:1px solid var(--yep430-line);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 9px 28px rgba(7,20,46,.055)}.single-yep_property .yep-property-action-panel>summary{list-style:none;cursor:pointer;padding:15px 17px;display:flex;flex-direction:column;gap:3px;color:#0b2348;font-weight:900;background:#fafbfc}.single-yep_property .yep-property-action-panel>summary::-webkit-details-marker{display:none}.single-yep_property .yep-property-action-panel>summary small{color:#667085;font-size:11px;font-weight:600}.single-yep_property .yep-property-action-panel[open]>summary{border-bottom:1px solid var(--yep430-line);background:#f8f4ea}.single-yep_property .yep-single-location-map{min-height:390px;background:#e8edf4;position:relative;overflow:hidden;isolation:isolate}
html[data-yep-color="dark"] .single-yep_property .yep-property-action-panel{background:#101318;border-color:#343b47}html[data-yep-color="dark"] .single-yep_property .yep-property-action-panel>summary{background:#151a22;color:#f7f9fc}html[data-yep-color="dark"] .single-yep_property .yep-property-action-panel>summary small{color:#aeb9c9}
.yep-advertiser-listing-card__media{min-height:180px}.yep-advertiser-placeholder{width:100%;height:100%;min-height:180px;display:grid;place-items:center;align-content:center;gap:6px;background:linear-gradient(135deg,#0b2348,#173b79);color:#fff;text-align:center}.yep-advertiser-placeholder b{color:#d6ad50;font-size:17px}.yep-advertiser-placeholder span{opacity:.8}
.yep-advertiser-type-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.yep-advertiser-type-picker label{cursor:pointer;display:block}.yep-advertiser-type-picker input{position:absolute;opacity:0;pointer-events:none}.yep-advertiser-type-picker span{display:flex;flex-direction:column;gap:5px;padding:16px;border:1px solid #3a414d;border-radius:13px;background:#15181d;color:#fff;transition:.18s}.yep-advertiser-type-picker b{font-size:16px;color:#fff}.yep-advertiser-type-picker small{color:#aeb7c6;line-height:1.55}.yep-advertiser-type-picker input:checked+span{border-color:#d6ad50;box-shadow:0 0 0 2px rgba(214,173,80,.16);background:#101b30}html[data-yep-color="light"] .yep-advertiser-type-picker span{background:#fff;color:#142943;border-color:#d7dfe9}html[data-yep-color="light"] .yep-advertiser-type-picker b{color:#142943}html[data-yep-color="light"] .yep-advertiser-type-picker small{color:#667085}
@media(max-width:760px){.post-type-archive-yep_property .yep-property-grid--count-1,.post-type-archive-yep_property .yep-property-grid--count-2{grid-template-columns:1fr}.yep-advertiser-type-picker{grid-template-columns:1fr}.single-yep_property .yep-single-location-map{min-height:310px}}

/* 4.3.1 — property card readability/performance on home + archive. */
.yep-property-card--v3{content-visibility:auto;contain-intrinsic-size:520px 420px}
.yep-property-card--v3 .yep-card-price{right:14px;bottom:13px;padding:7px 11px;border-radius:10px;background:rgba(4,12,28,.78);backdrop-filter:blur(5px);font-size:18px;line-height:1.1;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.yep-property-card--v3 .yep-property-card__specs{background:#f4f6fa!important;border:1px solid #e4e8ef!important}
.yep-property-card--v3 .yep-property-card__specs small,.yep-property-card--v3 .yep-property-card__specs span{color:#667085!important}
.yep-property-card--v3 .yep-property-card__specs b{color:#0b2348!important}
html[data-yep-color="dark"] .yep-property-card--v3 .yep-property-card__specs{background:#151a22!important;border-color:#343b47!important}
html[data-yep-color="dark"] .yep-property-card--v3 .yep-property-card__specs small,html[data-yep-color="dark"] .yep-property-card--v3 .yep-property-card__specs span{color:#aeb9c9!important}
html[data-yep-color="dark"] .yep-property-card--v3 .yep-property-card__specs b{color:#f7f9fc!important}
@media(max-width:760px){.yep-property-card--v3{contain-intrinsic-size:500px 340px}.yep-property-card--v3 .yep-card-price{font-size:17px}}
.yep-v3-property-section .yep-property-grid--count-1{grid-template-columns:minmax(320px,440px);justify-content:center}
.yep-v3-property-section .yep-property-grid--count-2{grid-template-columns:repeat(2,minmax(320px,440px));justify-content:center}
@media(max-width:760px){.yep-v3-property-section .yep-property-grid--count-1,.yep-v3-property-section .yep-property-grid--count-2{grid-template-columns:1fr}}

/* 4.3.2 stable property page */
.single-yep_property .yep-property-request-actions{display:grid;gap:10px;margin-top:12px}
.yep-property-modal[hidden]{display:none!important}
.yep-property-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:20px}
.yep-property-modal__backdrop{position:absolute;inset:0;background:rgba(3,10,24,.72);backdrop-filter:blur(5px)}
.yep-property-modal__panel{position:relative;z-index:1;width:min(760px,96vw);max-height:min(86vh,860px);overflow:auto;border-radius:20px;background:#fff;border:1px solid #dde3eb;box-shadow:0 30px 90px rgba(0,0,0,.28)}
.yep-property-modal__head{padding:22px 24px 16px;border-bottom:1px solid #e7ebf0}
.yep-property-modal__head span{font-size:12px;color:#a9781f;font-weight:900}.yep-property-modal__head h2{margin:4px 0;color:#0b2348;font-size:24px}.yep-property-modal__head p{margin:0;color:#667085}
.yep-property-modal__body{padding:20px 24px 24px}
.yep-property-modal__body .yep-form{margin:0!important;max-width:none!important;width:100%!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.yep-property-modal__body .yep-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.yep-property-modal__body input:not([type=checkbox]):not([type=radio]),.yep-property-modal__body select,.yep-property-modal__body textarea{width:100%!important;max-width:none!important;box-sizing:border-box!important}
.yep-property-modal__close{position:absolute;top:14px;left:14px;z-index:2;width:38px;height:38px;border:1px solid #d9e0e8;border-radius:50%;background:#fff;color:#0b2348;font-size:24px;line-height:1;cursor:pointer}
body.yep-property-modal-open{overflow:hidden}
html[data-yep-color="dark"] .yep-property-modal__panel{background:#101318;border-color:#343b47}
html[data-yep-color="dark"] .yep-property-modal__head{border-color:#343b47}
html[data-yep-color="dark"] .yep-property-modal__head h2{color:#fff}
html[data-yep-color="dark"] .yep-property-modal__head p{color:#aeb9c9}
html[data-yep-color="dark"] .yep-property-modal__close{background:#151a22;color:#fff;border-color:#343b47}
.yep-property-card--v3 .yep-property-card__specs{min-height:58px}
.yep-property-card--v3 .yep-property-card__specs span{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.yep-property-card--v3 .yep-property-card__specs small{font-size:11px!important;opacity:1!important}.yep-property-card--v3 .yep-property-card__specs b{font-size:14px!important}
@media(max-width:700px){.yep-property-modal{padding:0;align-items:end}.yep-property-modal__panel{width:100%;max-height:92vh;border-radius:20px 20px 0 0}.yep-property-modal__body .yep-form-grid{grid-template-columns:1fr!important}}
