/*
Theme Name: Estavo
Theme URI: https://adnanthemes.com/estavo/
Author: AdnanThemes
Author URI: https://adnanthemes.com/
Description: Estavo is a polished real estate WordPress theme for residential agencies, single property showcases and rental management websites. It includes a clean responsive design, custom logo support, flexible menus, demo-friendly page layouts, translation-ready code and a lightweight presentation-first structure for WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estavo
Tags: blog, custom-background, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, one-column, right-sidebar, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
*/

/*
Estavo is based on underscores https://underscores.me/, (C) 2012-2026 Automattic, Inc., GPLv2 or later.
*/

/* ==========================================================================
   Base
   ========================================================================== */

:root{
  --estavo-navy:#0f2438;
  --estavo-navy-deep:#0a1a29;
  --estavo-gold:#c8952f;
  --estavo-gold-light:#e0b45c;
  --estavo-ink:#1c2733;
  --estavo-muted:#5b6b7a;
  --estavo-bg:#f7f8fa;
  --estavo-line:#e4e8ed;
  --estavo-white:#ffffff;
  --estavo-radius:14px;
  --estavo-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--estavo-font);
  color: var(--estavo-ink);
  background: var(--estavo-bg);
  line-height: 1.6;
  margin: 0;
}

a { color: var(--estavo-navy); text-decoration: none; }
a:hover { color: var(--estavo-gold); }

h1,h2,h3,h4,h5,h6 { line-height: 1.2; margin: 0 0 .5em; color: var(--estavo-navy); }

img { max-width: 100%; height: auto; display: block; }

.estavo-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.estavo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: var(--estavo-gold);
  color: #1c1400;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.estavo-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(200,149,47,.35); color: #1c1400; }
.estavo-btn.is-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
}
.estavo-btn.is-outline:hover { border-color: var(--estavo-gold); color: var(--estavo-gold); }

/* ==========================================================================
   Header
   ========================================================================== */

.estavo-header {
  background: var(--estavo-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.estavo-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.estavo-logo { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .2px; }
.estavo-logo img { max-height: 40px; }
.estavo-nav ul { list-style: none; display: flex; flex-wrap: nowrap; gap: 22px; margin: 0; padding: 0; align-items: center; }
.estavo-nav li { white-space: nowrap; flex-shrink: 0; }
.estavo-nav a { color: rgba(255,255,255,.85); font-weight: 600; font-size: 14px; white-space: nowrap; }
.estavo-nav a:hover { color: var(--estavo-gold-light); }
.estavo-menu-toggle { display:none; background:none; border:none; color:#fff; font-size:22px; cursor:pointer; }

@media (max-width: 860px) {
  .estavo-nav { display:none; width:100%; }
  .estavo-nav.is-open { display:block; }
  .estavo-nav ul { flex-direction: column; gap: 4px; padding: 16px 0; }
  .estavo-menu-toggle { display:block; }
  .estavo-header-inner { flex-wrap: wrap; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.estavo-hero {
  background: linear-gradient(135deg, var(--estavo-navy-deep), var(--estavo-navy) 60%);
  color: #fff;
  padding: 80px 0 96px;
  text-align: center;
}
.estavo-hero-eyebrow {
  display:inline-flex; padding:6px 14px; border-radius:999px;
  background: rgba(255,255,255,.1); font-size:12px; font-weight:800;
  letter-spacing:.6px; text-transform:uppercase; color: var(--estavo-gold-light);
  margin-bottom:18px;
}
.estavo-hero h1 { color:#fff; font-size: clamp(30px,5vw,52px); max-width: 820px; margin: 0 auto 16px; }
.estavo-hero p { color: rgba(255,255,255,.78); max-width: 620px; margin: 0 auto 30px; font-size: 17px; }
.estavo-hero-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.estavo-search {
  max-width: 760px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.estavo-search input, .estavo-search select {
  border: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  flex: 1;
  min-width: 140px;
  background: #f4f6f8;
  color: var(--estavo-ink);
}
.estavo-search button {
  border: none;
  background: var(--estavo-navy);
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
}
.estavo-search button:hover { background: var(--estavo-gold); color: #1c1400; }

/* ==========================================================================
   Sections
   ========================================================================== */

.estavo-section { padding: 64px 0; }
.estavo-section-head { text-align:center; max-width: 640px; margin: 0 auto 40px; }
.estavo-section-head span {
  display:inline-block; color: var(--estavo-gold); font-weight:800; font-size:12px;
  text-transform:uppercase; letter-spacing:.6px; margin-bottom:8px;
}
.estavo-section-head h2 { font-size: clamp(24px,3.4vw,34px); }
.estavo-section-head p { color: var(--estavo-muted); }

.estavo-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.estavo-grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width: 960px){ .estavo-grid-3{grid-template-columns:1fr 1fr;} .estavo-grid-4{grid-template-columns:1fr 1fr;} }
@media (max-width: 640px){ .estavo-grid-3{grid-template-columns:1fr;} .estavo-grid-4{grid-template-columns:1fr;} }

.estavo-card {
  background:#fff; border:1px solid var(--estavo-line); border-radius: var(--estavo-radius);
  overflow:hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.estavo-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(15,36,56,.08); }
.estavo-card-media { aspect-ratio: 4/3; background:#dde3ea; display:flex; align-items:center; justify-content:center; color:#8a97a3; font-size:13px; }
.estavo-card-media img { width:100%; height:100%; object-fit:cover; }
.estavo-card-body { padding: 18px 20px; }
.estavo-card-price { color: var(--estavo-gold); font-weight:800; font-size:18px; margin-bottom:4px; }
.estavo-card-title { font-size:16px; margin-bottom:6px; }
.estavo-card-meta { display:flex; gap:14px; color: var(--estavo-muted); font-size:13px; }

.estavo-feature { text-align:center; padding: 8px; }
.estavo-feature-icon {
  width:56px; height:56px; border-radius:16px; background: rgba(200,149,47,.12);
  color: var(--estavo-gold); display:flex; align-items:center; justify-content:center;
  font-size:24px; margin: 0 auto 16px;
}
.estavo-feature h3 { font-size:16px; }
.estavo-feature p { color: var(--estavo-muted); font-size:14px; margin:0; }

.estavo-cta {
  background: linear-gradient(135deg, var(--estavo-navy-deep), var(--estavo-navy));
  color:#fff; border-radius: 24px; padding: 56px 40px; text-align:center;
}
.estavo-cta h2 { color:#fff; }
.estavo-cta p { color: rgba(255,255,255,.78); max-width:560px; margin: 0 auto 26px; }

/* ==========================================================================
   Blog / single / page
   ========================================================================== */

.estavo-content-wrap { padding: 56px 0; }
.estavo-post-list { display:grid; gap:28px; }
.estavo-post-card { display:grid; grid-template-columns: 260px 1fr; gap:24px; background:#fff; border:1px solid var(--estavo-line); border-radius: var(--estavo-radius); overflow:hidden; }
.estavo-post-card .estavo-card-media { aspect-ratio: auto; }
.estavo-post-card-body { padding: 20px 22px 20px 0; }
@media (max-width:720px){ .estavo-post-card{grid-template-columns:1fr;} .estavo-post-card-body{padding:0 20px 20px;} }

.estavo-meta { color: var(--estavo-muted); font-size:13px; margin-bottom:8px; }
.estavo-single-hero { background: var(--estavo-navy); color:#fff; padding: 48px 0; text-align:center; }
.estavo-single-hero h1 { color:#fff; }

article.estavo-entry { background:#fff; border:1px solid var(--estavo-line); border-radius: var(--estavo-radius); padding: 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.estavo-footer { background: var(--estavo-navy-deep); color: rgba(255,255,255,.7); padding: 56px 0 28px; margin-top: 64px; }
.estavo-footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.estavo-footer h4 { color:#fff; font-size:15px; margin-bottom:16px; }
.estavo-footer ul { list-style:none; padding:0; margin:0; }
.estavo-footer li { margin-bottom:10px; }
.estavo-footer a { color: rgba(255,255,255,.65); }
.estavo-footer a:hover { color: var(--estavo-gold-light); }
.estavo-footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; }
@media (max-width:780px){ .estavo-footer-grid{grid-template-columns:1fr;} }

.estavo-widget-area { padding: 20px; }

.skip-link { position:absolute; left:-9999px; top:0; background:#fff; padding:10px 16px; z-index:9999; }
.skip-link:focus { left: 16px; top: 16px; }

body.rtl .estavo-nav ul { direction: rtl; }

/* ==========================================================================
   Topbar
   ========================================================================== */
.estavo-topbar {
  background: var(--estavo-navy-deep);
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.estavo-topbar-inner { display:flex; align-items:center; justify-content:space-between; padding: 8px 0; flex-wrap:wrap; gap:8px; }
.estavo-topbar-contact { display:flex; gap:20px; flex-wrap:wrap; }
.estavo-topbar-contact a { color: rgba(255,255,255,.75); }
.estavo-topbar-contact a:hover { color: var(--estavo-gold-light); }
.estavo-topbar-social ul { list-style:none; display:flex; gap:14px; margin:0; padding:0; }
.estavo-topbar-social a { color: rgba(255,255,255,.75); }
.estavo-topbar-social a:hover { color: var(--estavo-gold-light); }

/* Header CTA + scroll-shrink */
.estavo-header-actions { display:flex; align-items:center; gap:14px; }
.estavo-header-cta { white-space:nowrap; }
.estavo-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.estavo-header.is-scrolled .estavo-header-inner { padding: 10px 0; }

@media (max-width: 860px) {
  .estavo-header-cta { display:none; }
}

/* Footer social row */
.estavo-footer-social { margin-top: 16px; }
.estavo-footer-social ul { list-style:none; display:flex; gap:14px; margin:0; padding:0; }
.estavo-footer-social a { color: rgba(255,255,255,.65); }
.estavo-footer-social a:hover { color: var(--estavo-gold-light); }

/* Back to top */
.estavo-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--estavo-gold);
  color: #1c1400;
  border: none;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 200;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.estavo-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.estavo-back-to-top:hover { background: var(--estavo-gold-light); }
/* ==========================================================================
   HEADER STYLES (10)
   ========================================================================== */

/* Base: ensure flex ordering is controllable per style */
.estavo-header .estavo-header-inner { display:flex; align-items:center; gap:20px; }
.estavo-header .estavo-logo { order:1; }
.estavo-header .estavo-nav { order:2; flex:1; display:flex; justify-content:center; }
.estavo-header .estavo-header-actions { order:3; }
.estavo-header-phone { display:none; color:#fff; font-weight:700; font-size:14px; }

/* Style 1: Classic (default) — logo left, nav center, actions right */
.estavo-header-style-1 .estavo-nav { justify-content:center; }

/* Style 2: Centered Stack — logo on its own row, nav below */
.estavo-header-style-2 .estavo-header-inner { flex-direction:column; gap:8px; padding:14px 0; }
.estavo-header-style-2 .estavo-logo { order:1; }
.estavo-header-style-2 .estavo-nav { order:2; width:100%; justify-content:center; }
.estavo-header-style-2 .estavo-header-actions { order:3; }

/* Style 3: Topbar Focus — hide header CTA, rely on topbar */
.estavo-header-style-3 .estavo-header-cta { display:none; }
.estavo-header-style-3 .estavo-topbar { background:var(--estavo-navy); }
.estavo-header-style-3 .estavo-topbar-contact a { font-weight:700; }

/* Style 4: Transparent Overlay — floats over hero, solid once scrolled */
.estavo-header-style-4 .estavo-header {
	position:absolute; top:0; left:0; right:0; background:transparent; box-shadow:none;
}
.estavo-header-style-4 .estavo-header.is-scrolled { position:fixed; background:var(--estavo-navy); }
.estavo-header-style-4 .estavo-site-content { padding-top:0; }

/* Style 5: Logo Right — swap order */
.estavo-header-style-5 .estavo-logo { order:3; }
.estavo-header-style-5 .estavo-nav { order:2; justify-content:flex-start; }
.estavo-header-style-5 .estavo-header-actions { order:1; }

/* Style 6: Minimal — nav always hidden behind toggle, even on desktop */
.estavo-header-style-6 .estavo-nav { display:none !important; }
.estavo-header-style-6 .estavo-nav.is-open { display:block !important; position:absolute; top:100%; left:0; right:0; background:var(--estavo-navy); }
.estavo-header-style-6 .estavo-menu-toggle { display:block !important; }
.estavo-header-style-6 .estavo-header-cta { display:none; }

/* Style 7: Split Nav — first half of items left of logo, rest right (approximated via centered flex-wrap around logo using order on li via nth-child) */
.estavo-header-style-7 .estavo-header-inner { justify-content:space-between; }
.estavo-header-style-7 .estavo-nav ul { justify-content:space-between; width:100%; }

/* Style 8: Boxed — contained, rounded, margin around header */
.estavo-header-style-8 .estavo-header { background:transparent; padding:14px 0; }
.estavo-header-style-8 .estavo-header-inner { background:var(--estavo-navy); border-radius:16px; padding:12px 24px; box-shadow:0 12px 30px rgba(15,36,56,.18); }

/* Style 9: Full Contact — show phone + all contact points in header */
.estavo-header-style-9 .estavo-header-phone { display:inline-block; }
.estavo-header-style-9 .estavo-header-actions { gap:20px; }

/* Style 10: Compact Agent Bar — no full nav, slim bar */
.estavo-header-style-10 .estavo-header { padding:6px 0; }
.estavo-header-style-10 .estavo-nav { display:none; }
.estavo-header-style-10 .estavo-header-phone { display:inline-block; }
.estavo-header-style-10 .estavo-menu-toggle { display:none; }

/* ==========================================================================
   MENU STYLES (10) — applied to .estavo-nav ul li a
   ========================================================================== */

.estavo-nav ul { display:flex; }
.estavo-nav a { padding:8px 4px; position:relative; }

/* Style 1: Simple Text — underline on hover only */
.estavo-nav-style-1 a { border-bottom:2px solid transparent; }
.estavo-nav-style-1 a:hover { border-bottom-color:var(--estavo-gold); }

/* Style 2: Underline Active — persistent underline via ::after on hover/focus, static demo uses hover */
.estavo-nav-style-2 a::after { content:''; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--estavo-gold); transform:scaleX(0); transition:transform .15s ease; }
.estavo-nav-style-2 a:hover::after { transform:scaleX(1); }

/* Style 3: Pill Buttons */
.estavo-nav-style-3 a { border-radius:999px; padding:8px 16px; }
.estavo-nav-style-3 a:hover { background:var(--estavo-gold); color:#1c1400; }

/* Style 4: Bordered Boxes */
.estavo-nav-style-4 a { border:1px solid rgba(255,255,255,.2); border-radius:8px; padding:6px 14px; }
.estavo-nav-style-4 a:hover { border-color:var(--estavo-gold); }

/* Style 5: Uppercase Spaced */
.estavo-nav-style-5 a { text-transform:uppercase; letter-spacing:1.2px; font-weight:800; font-size:12px; }

/* Style 6: Divided — vertical dividers between items */
.estavo-nav-style-6 ul li:not(:last-child) { border-right:1px solid rgba(255,255,255,.2); padding-right:20px; margin-right:-4px; }

/* Style 7: Icon Prefixed — small dot before each item */
.estavo-nav-style-7 a::before { content:'\2022'; color:var(--estavo-gold); margin-right:6px; }

/* Style 8: Centered */
.estavo-header-style-1 .estavo-nav-style-8,
.estavo-nav-style-8 { justify-content:center; }

/* Style 9: Compact */
.estavo-nav-style-9 ul { gap:16px; }
.estavo-nav-style-9 a { font-size:13px; padding:6px 2px; }

/* Style 10: Bold Caps */
.estavo-nav-style-10 a { font-weight:800; font-size:15px; text-transform:uppercase; }

/* ==========================================================================
   FOOTER STYLES (10)
   ========================================================================== */

/* Style 2: Four Column */
.estavo-footer-style-2 .estavo-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

/* Style 3: Centered Minimal */
.estavo-footer-style-3 .estavo-footer-grid { grid-template-columns: 1fr; text-align:center; max-width:520px; margin-left:auto; margin-right:auto; }

/* Style 4: Newsletter Focus */
.estavo-footer-newsletter { background:var(--estavo-navy); padding:36px 0; }
.estavo-footer-newsletter-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; color:#fff; }
.estavo-footer-newsletter-inner h3 { color:#fff; margin-bottom:4px; }
.estavo-footer-newsletter-inner p { color:rgba(255,255,255,.7); margin:0; }
.estavo-newsletter-form { display:flex; gap:8px; }
.estavo-newsletter-form input { padding:10px 14px; border-radius:8px; border:none; min-width:220px; }
.estavo-newsletter-form button { padding:10px 18px; border-radius:8px; border:none; background:var(--estavo-gold); color:#1c1400; font-weight:700; cursor:pointer; }

/* Style 5: Dark Brand */
.estavo-footer-brandrow { border-bottom:1px solid rgba(255,255,255,.1); padding:24px 0; }
.estavo-footer-brandrow .estavo-container { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.estavo-footer-brandrow-logo { font-size:22px; font-weight:800; color:#fff; }

/* Style 6: CTA Block */
.estavo-footer-ctablock { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; background:rgba(255,255,255,.05); border-radius:16px; padding:24px 28px; margin-bottom:32px; }
.estavo-footer-ctablock h3 { color:#fff; margin-bottom:4px; }
.estavo-footer-ctablock p { color:rgba(255,255,255,.7); margin:0; }

/* Style 7: Single Line */
.estavo-footer-style-7 .estavo-footer-grid { grid-template-columns:1fr; margin-bottom:16px; }
.estavo-footer-style-7 .estavo-footer-bottom { border-top:none; padding-top:0; justify-content:center; gap:24px; }

/* Style 8: Contact Emphasis */
.estavo-footer-style-8 .estavo-widget-area:last-child { font-size:15px; }
.estavo-footer-style-8 .estavo-widget-area:last-child h4 { font-size:18px; color:var(--estavo-gold-light); }

/* Style 9: Widget Heavy — make back-to-top always visible when this style is active */
.estavo-footer-style-9 ~ #estavo-back-to-top,
.estavo-footer-style-9 #estavo-back-to-top { opacity:1; visibility:visible; }

/* Style 10: Brand Strip */
.estavo-footer-brandstrip { background:linear-gradient(135deg, var(--estavo-gold), var(--estavo-gold-light)); padding:32px 0; }
.estavo-footer-brandstrip-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.estavo-footer-brandstrip h3 { color:#1c1400; margin:0; }
.estavo-footer-brandstrip .estavo-btn { background:#1c1400; color:#fff; }

@media (max-width: 780px) {
	.estavo-newsletter-form { width:100%; }
	.estavo-newsletter-form input { flex:1; min-width:0; }
}
/* ==========================================================================
   Hero Background Options
   ========================================================================== */
.estavo-hero { position: relative; overflow: hidden; }
.estavo-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.estavo-hero-bg-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.estavo-hero-bg-image {
	background-size: cover;
	background-position: center;
}
.estavo-hero-bg-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(10,26,41,.85), rgba(15,36,56,.75));
}
.estavo-hero > .estavo-container {
	position: relative;
	z-index: 1;
}

/* ==========================================================================
   Dropdown Submenus + Mega Menu
   ========================================================================== */
.estavo-nav li { position: relative; }
.estavo-nav .sub-menu {
	display: none;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 220px;
	padding: 10px;
	margin: 0;
	border-radius: 12px;
	box-shadow: 0 20px 44px rgba(15,36,56,.18);
	z-index: 150;
	list-style: none;
}
.estavo-nav li:hover > .sub-menu,
.estavo-nav li.is-touch-open > .sub-menu,
.estavo-nav li:focus-within > .sub-menu {
	display: flex;
}
.estavo-nav .sub-menu li { width: 100%; }
.estavo-nav .sub-menu a {
	color: var(--estavo-ink);
	padding: 9px 12px;
	border-radius: 8px;
	display: block;
	font-weight: 600;
}
.estavo-nav .sub-menu a:hover { background: #f4f0ff; color: var(--estavo-navy); }
.estavo-nav .sub-menu .sub-menu { top: 0; left: 100%; }

/* Mega menu: add the "has-mega-menu" CSS class to a top-level menu item
   in Appearance > Menus (enable "CSS Classes" under Screen Options) to
   turn its dropdown into a full-width, multi-column panel. */
.estavo-nav li.has-mega-menu { position: static; }
.estavo-nav li.has-mega-menu > .sub-menu {
	left: 0;
	right: 0;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	display: none;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px 24px;
	padding: 28px;
	border-radius: 0 0 18px 18px;
}
.estavo-nav li.has-mega-menu:hover > .sub-menu,
.estavo-nav li.has-mega-menu.is-touch-open > .sub-menu,
.estavo-nav li.has-mega-menu:focus-within > .sub-menu {
	display: grid;
}
.estavo-nav li.has-mega-menu .sub-menu li { width: auto; }
.estavo-nav li.has-mega-menu .sub-menu .sub-menu {
	position: static;
	box-shadow: none;
	padding: 4px 0 0;
	display: block !important;
}
/* ==========================================================================
   MOBILE MENU FIX (must stay last in the file — highest source-order
   priority to win any specificity conflicts with earlier style blocks)
   ========================================================================== */
@media (max-width: 860px) {
	.estavo-header .estavo-nav {
		display: none !important;
		width: 100%;
		position: static;
		flex-direction: column;
	}
	.estavo-header .estavo-nav.is-open {
		display: block !important;
	}
	.estavo-header .estavo-nav ul {
		flex-direction: column;
		gap: 4px;
		padding: 16px 0;
		width: 100%;
	}
	.estavo-header .estavo-nav li {
		width: 100%;
	}
	.estavo-header .estavo-menu-toggle {
		display: block !important;
	}
	.estavo-header-inner {
		flex-wrap: wrap;
	}
	/* Reset mega menu to a plain stacked list on mobile */
	.estavo-nav li.has-mega-menu > .sub-menu {
		position: static !important;
		display: block !important;
		grid-template-columns: 1fr !important;
		padding: 0 0 0 16px !important;
		box-shadow: none !important;
		background: transparent !important;
	}
	.estavo-nav li.has-mega-menu > .sub-menu a {
		color: rgba(255,255,255,.85);
	}
}
/* ==========================================================================
   Social icons + share buttons
   ========================================================================== */
.estavo-social-icon { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.1); transition:.15s; }
.estavo-social-icon:hover { background:var(--estavo-gold); color:#1c1400; }
.estavo-footer .estavo-social-icon:hover { color:#1c1400; }
.estavo-topbar-social ul, .estavo-footer-social ul { align-items:center; }

.estavo-share-buttons { display:flex; align-items:center; gap:10px; margin-top:24px; padding-top:20px; border-top:1px solid var(--estavo-line); }
.estavo-share-label { font-size:13px; font-weight:700; color:var(--estavo-muted); margin-right:4px; }
.estavo-share-buttons a { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:#f4f0ff; color:var(--estavo-navy); }
.estavo-share-buttons a:hover { background:var(--estavo-gold); color:#1c1400; }
/* WordPress.org generated classes and accessibility helpers */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; clip: auto !important; clip-path: none; color: #21759b; display: block; font-size: 14px; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
.alignleft { float: left; margin: .5em 1.5em 1em 0; }
.alignright { float: right; margin: .5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: .9em; color: var(--estavo-muted); }
.sticky { display: block; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }
a:focus, button:focus, input:focus, select:focus, textarea:focus, .estavo-btn:focus { outline: 2px solid var(--estavo-gold, #c8952f); outline-offset: 3px; }

/* Extra responsive hardening for WordPress.org review. */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
.estavo-container,
.estavo-header-inner,
.estavo-footer-grid,
.estavo-grid-3,
.estavo-grid-4,
.estavo-post-card {
	max-width: 100%;
}
.estavo-search-wrap .search-form,
.estavo-search {
	max-width: 760px;
	margin: 40px auto 0;
	background: #fff;
	border-radius: 16px;
	padding: 10px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.estavo-search-wrap .search-field {
	flex: 1;
	min-width: 180px;
}
.estavo-search-wrap .search-submit {
	border: none;
	background: var(--estavo-navy);
	color: #fff;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 10px;
	cursor: pointer;
}
@media (max-width: 860px) {
	.estavo-header-inner,
	.estavo-topbar-inner,
	.estavo-footer-bottom,
	.estavo-footer-brandrow .estavo-container,
	.estavo-footer-brandstrip-inner,
	.estavo-footer-newsletter-inner,
	.estavo-footer-ctablock {
		align-items: flex-start;
	}
	.estavo-nav ul { width: 100%; }
	.estavo-search-wrap .search-form,
	.estavo-search { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.estavo-container { padding-right: 18px; padding-left: 18px; }
	.estavo-hero { padding-top: 56px; padding-bottom: 64px; }
	.estavo-section { padding-top: 48px; padding-bottom: 48px; }
	.estavo-cta { padding: 36px 22px; }
	article.estavo-entry { padding: 22px; }
}

/* GTranslate menu language selector */
.menu-item-gtranslate { position: relative; }
.menu-item-gtranslate > a,
.menu-item-gtranslate .gt-current-wrapper,
.menu-item-gtranslate .gt-current-lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.menu-item-gtranslate img {
	display: inline-block;
	width: 20px;
	height: auto;
	vertical-align: middle;
}
.menu-item-gtranslate .sub-menu {
	min-width: 190px;
	z-index: 9999;
}
.menu-item-gtranslate .sub-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
body.rtl .menu-item-gtranslate .sub-menu {
	text-align: right;
}
body.rtl .menu-item-gtranslate .sub-menu a {
	flex-direction: row-reverse;
	justify-content: flex-end;
}
@media (max-width: 860px) {
	.menu-item-gtranslate .sub-menu {
		position: static !important;
		display: block;
		box-shadow: none;
	}
}

/* Visually separate the GTranslate language switcher from the main nav links */
.estavo-nav .menu-item-gtranslate { margin-left: 8px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.25); }
.estavo-nav .menu-item-gtranslate a { display: flex; align-items: center; gap: 6px; }
.estavo-nav .menu-item-gtranslate img { border-radius: 2px; }

/* Estavo professional logo sizing */
.estavo-logo .custom-logo{display:block;width:210px;max-width:210px;height:auto;max-height:72px;object-fit:contain;}
.estavo-logo .custom-logo-link{display:flex;align-items:center;line-height:1;}
@media (max-width:768px){.estavo-logo .custom-logo{width:170px;max-width:170px;}}

/* Estavo dynamic demo footer polish */
.estavo-footer-kicker{display:inline-block;color:var(--estavo-gold-light);font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:8px;}
.estavo-footer-ctablock{border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(0,0,0,.14);}
.estavo-footer-demo-single-property .estavo-footer-ctablock{background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.02));}
.estavo-footer-demo-rental-management .estavo-footer-kicker,.estavo-footer-demo-rental-management .estavo-footer h4{color:#F0916B;}
.estavo-footer-bottom a{color:rgba(255,255,255,.65);}
.estavo-footer-bottom a:hover{color:var(--estavo-gold-light);}

/* Estavo premium navigation dropdown polish */
.estavo-header{background:linear-gradient(135deg,#1B3A57 0%,#2E5077 100%);}
.estavo-header-inner{min-height:78px;}
.estavo-nav>ul{gap:10px;align-items:center;}
.estavo-nav>ul>li>a{padding:12px 16px;border-radius:999px;color:rgba(255,255,255,.9);font-weight:800;font-size:15px;letter-spacing:-.2px;border:1px solid transparent;transition:background .18s ease,color .18s ease,box-shadow .18s ease,border-color .18s ease;}
.estavo-nav>ul>li>a:hover,.estavo-nav>ul>li:focus-within>a{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.16);color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.08);}
.estavo-nav .sub-menu{background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.65);border-radius:18px!important;min-width:270px!important;padding:12px!important;box-shadow:0 24px 60px rgba(10,26,41,.24),0 2px 0 rgba(232,115,74,.22);overflow:hidden;}
.estavo-nav .sub-menu:before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#E8734A,#F0916B,#2E5077);}
.estavo-nav .sub-menu li{width:100%;}
.estavo-nav .sub-menu a{display:flex!important;align-items:center;justify-content:space-between;gap:12px;color:#1B3A57!important;background:transparent!important;border:0!important;border-radius:12px!important;padding:13px 16px!important;font-size:15px!important;font-weight:800!important;line-height:1.2;transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease;}
.estavo-nav .sub-menu a:after{content:'›';font-size:20px;line-height:1;color:#E8734A;opacity:.75;transition:transform .16s ease,opacity .16s ease;}
.estavo-nav .sub-menu a:hover,.estavo-nav .sub-menu li:focus-within>a{background:linear-gradient(135deg,#FFF3EE 0%,#F7FBFF 100%)!important;color:#E8734A!important;transform:translateX(3px);box-shadow:inset 0 0 0 1px rgba(232,115,74,.12);}
.estavo-nav .sub-menu a:hover:after,.estavo-nav .sub-menu li:focus-within>a:after{transform:translateX(3px);opacity:1;}
.estavo-nav li:hover>.sub-menu,.estavo-nav li:focus-within>.sub-menu{animation:estavoDropdownIn .16s ease both;}
@keyframes estavoDropdownIn{from{opacity:0;transform:translateY(10px) scale(.98);}to{opacity:1;transform:translateY(0) scale(1);}}
.estavo-nav .current-menu-item>a,.estavo-nav .current_page_item>a{background:rgba(232,115,74,.18);color:#fff;border-color:rgba(232,115,74,.32);}
@media(max-width:860px){.estavo-nav .sub-menu{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:none!important;border-radius:12px!important;margin-top:8px!important;}.estavo-nav .sub-menu:before{display:none;}.estavo-nav .sub-menu a{color:rgba(255,255,255,.9)!important;}.estavo-nav .sub-menu a:hover{background:rgba(255,255,255,.1)!important;color:#F0916B!important;transform:none;}}

/* Estavo final consistent header menu states */
.estavo-header .estavo-nav>ul{display:flex;align-items:center;gap:14px;}
.estavo-header .estavo-nav>ul>li{display:flex;align-items:center;}
.estavo-header .estavo-nav>ul>li>a{position:relative;display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:0 20px!important;border-radius:999px!important;border:1px solid transparent!important;background:transparent!important;color:rgba(255,255,255,.88)!important;font-weight:800!important;font-size:16px!important;line-height:1!important;text-decoration:none!important;box-shadow:none!important;letter-spacing:-.2px;transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;}
.estavo-header .estavo-nav>ul>li>a:before,.estavo-header .estavo-nav>ul>li>a:after{display:none!important;content:none!important;}
.estavo-header .estavo-nav>ul>li>a:hover,.estavo-header .estavo-nav>ul>li:focus-within>a{background:rgba(255,255,255,.11)!important;color:#fff!important;border-color:rgba(255,255,255,.18)!important;box-shadow:0 10px 24px rgba(0,0,0,.08)!important;transform:translateY(-1px);}
.estavo-header .estavo-nav>ul>li.current-menu-item>a,.estavo-header .estavo-nav>ul>li.current_page_item>a,.estavo-header .estavo-nav>ul>li.current-menu-ancestor>a,.estavo-header .estavo-nav>ul>li.current-menu-parent>a{background:linear-gradient(135deg,#E8734A 0%,#F0916B 100%)!important;color:#102A43!important;border-color:rgba(255,255,255,.2)!important;box-shadow:0 12px 28px rgba(232,115,74,.28)!important;text-shadow:none!important;}
.estavo-header .estavo-nav>ul>li.current-menu-item>a:hover,.estavo-header .estavo-nav>ul>li.current_page_item>a:hover,.estavo-header .estavo-nav>ul>li.current-menu-ancestor>a:hover,.estavo-header .estavo-nav>ul>li.current-menu-parent>a:hover{background:linear-gradient(135deg,#F0916B 0%,#E8734A 100%)!important;color:#102A43!important;transform:translateY(-1px);}
.estavo-header .estavo-nav a:focus{outline:2px solid rgba(240,145,107,.95)!important;outline-offset:4px!important;}
.estavo-header .estavo-nav .sub-menu a:focus{outline:2px solid rgba(232,115,74,.7)!important;outline-offset:2px!important;}
.estavo-header .estavo-nav .sub-menu .current-menu-item>a,.estavo-header .estavo-nav .sub-menu .current_page_item>a{background:linear-gradient(135deg,#FFF3EE 0%,#F7FBFF 100%)!important;color:#E8734A!important;box-shadow:inset 0 0 0 1px rgba(232,115,74,.16)!important;}
@media(max-width:860px){.estavo-header .estavo-nav>ul{gap:6px;align-items:stretch;}.estavo-header .estavo-nav>ul>li{display:block;width:100%;}.estavo-header .estavo-nav>ul>li>a{justify-content:flex-start;width:100%;min-height:44px;border-radius:12px!important;padding:0 14px!important;}.estavo-header .estavo-nav>ul>li.current-menu-item>a,.estavo-header .estavo-nav>ul>li.current_page_item>a,.estavo-header .estavo-nav>ul>li.current-menu-ancestor>a,.estavo-header .estavo-nav>ul>li.current-menu-parent>a{background:rgba(232,115,74,.18)!important;color:#F0916B!important;border-color:rgba(232,115,74,.28)!important;box-shadow:none!important;}}
