/* Alanya Property Hub — unified frontend header/menu v9.1.3
   Loaded last on every frontend page so page-specific styles cannot shift the navigation. */

.site-header{
  position:sticky !important;
  top:0 !important;
  z-index:1000 !important;
  width:100% !important;
  background:rgba(255,255,255,.97) !important;
  border-bottom:1px solid rgba(24,28,30,.09) !important;
  box-shadow:0 4px 18px rgba(24,28,30,.035) !important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

/* Header geometry is deliberately isolated from page-specific .aph-container rules. */
.site-header > .aph-container.header-inner{
  box-sizing:border-box !important;
  width:min(1440px,calc(100% - 64px)) !important;
  max-width:1440px !important;
  height:76px !important;
  min-height:76px !important;
  margin:0 auto !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:22px !important;
}

/* Every header text element uses exactly the same UI typeface regardless of page CSS. */
.site-header,
.site-header a,
.site-header button,
.site-header .brand,
.site-header .brand-text,
.site-header .main-nav,
.site-header .main-nav a,
.site-header .header-actions,
.site-header .lang-switch,
.site-header .lang-switch a{
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
  font-style:normal !important;
  font-variant:normal !important;
  text-rendering:geometricPrecision;
  -webkit-font-smoothing:antialiased;
}

.site-header .brand{
  flex:0 0 auto !important;
  min-width:max-content !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
}
.site-header .brand img{
  width:auto !important;
  height:44px !important;
  max-width:205px !important;
  object-fit:contain !important;
}
.site-header .brand-text{
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:-.015em !important;
  color:#1e2427 !important;
  white-space:nowrap !important;
}

/* Flexible middle rail: right edge stays anchored next to language switch on every page. */
.site-header .main-nav{
  flex:1 1 auto !important;
  min-width:0 !important;
  margin:0 0 0 auto !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:20px !important;
  list-style:none !important;
}

/* Same weight for active/inactive prevents the text itself from becoming wider and shifting neighbours. */
.site-header .main-nav > a{
  position:relative !important;
  flex:0 0 auto !important;
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:42px !important;
  margin:0 !important;
  padding:0 1px !important;
  border:0 !important;
  background:transparent !important;
  color:#262c2f !important;
  font-size:14px !important;
  line-height:42px !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
  text-transform:none !important;
  text-decoration:none !important;
  transform:none !important;
  transition:color .18s ease !important;
}
.site-header .main-nav > a:hover,
.site-header .main-nav > a:focus-visible{
  color:#8a6741 !important;
}
.site-header .main-nav > a.active{
  color:#171b1d !important;
  font-weight:700 !important;
}
.site-header .main-nav > a::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:4px !important;
  height:2px !important;
  border-radius:2px !important;
  background:var(--aph-gold-legacy) !important;
  opacity:0 !important;
  transform:scaleX(.45) !important;
  transform-origin:center !important;
  transition:opacity .18s ease,transform .18s ease !important;
}
.site-header .main-nav > a.active::after,
.site-header .main-nav > a:hover::after{
  opacity:1 !important;
  transform:scaleX(1) !important;
}

/* Actions are fixed-size and never pushed around by page styles. */
.site-header .header-actions{
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  margin:0 !important;
  padding:0 !important;
}
.site-header .lang-switch{
  box-sizing:border-box !important;
  height:36px !important;
  display:flex !important;
  align-items:center !important;
  gap:1px !important;
  margin:0 !important;
  padding:3px !important;
  border:1px solid #dedbd6 !important;
  border-radius:999px !important;
  background:#fff !important;
}
.site-header .lang-switch a{
  box-sizing:border-box !important;
  width:30px !important;
  height:28px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:999px !important;
  color:#595f62 !important;
  font-size:10px !important;
  line-height:28px !important;
  font-weight:800 !important;
  letter-spacing:.02em !important;
  text-decoration:none !important;
}
.site-header .lang-switch a.active{
  background:#202629 !important;
  color:#fff !important;
}

/* Toggle remains dimensionally stable even when Bootstrap/page styles differ. */
.site-header .menu-toggle{
  flex:0 0 40px !important;
  width:40px !important;
  height:40px !important;
  margin-left:auto !important;
  padding:0 !important;
  border:0 !important;
  border-radius:10px !important;
  background:transparent !important;
  color:#202629 !important;
  font-size:24px !important;
  line-height:40px !important;
  align-items:center !important;
  justify-content:center !important;
}

@media (min-width:1021px){
  .site-header .menu-toggle{display:none !important;}
}

@media (max-width:1260px) and (min-width:1021px){
  .site-header > .aph-container.header-inner{
    width:calc(100% - 44px) !important;
    gap:16px !important;
  }
  .site-header .main-nav{gap:14px !important;}
  .site-header .main-nav > a,
  .site-header .nav-drop-toggle{font-size:13px !important;}
  .site-header .brand img{max-width:175px !important;}
}

/* Mobile/tablet menu uses the exact same typography as desktop; only layout changes. */
@media (max-width:1020px){
  .site-header > .aph-container.header-inner{
    position:relative !important;
    width:calc(100% - 32px) !important;
    max-width:none !important;
    height:70px !important;
    min-height:70px !important;
    gap:12px !important;
  }
  .site-header .brand img{
    height:40px !important;
    max-width:170px !important;
  }
  .site-header .menu-toggle{
    display:flex !important;
  }
  .site-header .main-nav{
    display:none !important;
  }
  .site-header .main-nav.open{
    position:absolute !important;
    top:70px !important;
    left:-16px !important;
    right:-16px !important;
    width:auto !important;
    max-height:calc(100vh - 70px) !important;
    overflow:auto !important;
    margin:0 !important;
    padding:12px 16px 18px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:2px !important;
    background:#fff !important;
    border-top:1px solid #eeeae4 !important;
    border-bottom:1px solid #e6e1da !important;
    box-shadow:0 16px 30px rgba(20,24,27,.08) !important;
  }
  .site-header .main-nav.open > a{
    width:100% !important;
    height:44px !important;
    padding:0 8px !important;
    justify-content:flex-start !important;
    font-size:14px !important;
    line-height:44px !important;
    font-weight:700 !important;
  }
  .site-header .main-nav.open > a::after{
    left:8px !important;
    right:auto !important;
    bottom:3px !important;
    width:28px !important;
  }
}

@media (max-width:620px){
  .site-header > .aph-container.header-inner{
    width:calc(100% - 22px) !important;
    height:66px !important;
    min-height:66px !important;
  }
  .site-header .brand img{
    height:38px !important;
    max-width:145px !important;
  }
  .site-header .brand-text{display:none !important;}
  .site-header .main-nav.open{
    top:66px !important;
    left:-11px !important;
    right:-11px !important;
    max-height:calc(100vh - 66px) !important;
  }
  .site-header .lang-switch{
    height:34px !important;
  }
  .site-header .lang-switch a{
    width:27px !important;
    height:26px !important;
    line-height:26px !important;
    font-size:9px !important;
  }
}

/* STEP 2.5.8 - Blog trigger inherits the exact main-menu typography */
.site-header .nav-dropdown{
  position:relative !important;
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  height:42px !important;
}
.site-header .nav-drop-toggle{
  appearance:none !important;
  -webkit-appearance:none !important;
  position:relative !important;
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:42px !important;
  margin:0 !important;
  padding:0 1px !important;
  border:0 !important;
  background:transparent !important;
  color:#262c2f !important;
  font-family:inherit !important;
  font-size:14px !important;
  line-height:42px !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
  text-transform:none !important;
  text-decoration:none !important;
  cursor:pointer !important;
  transform:none !important;
  transition:color .18s ease !important;
}
.site-header .nav-drop-toggle::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:4px !important;
  height:2px !important;
  border-radius:2px !important;
  background:var(--aph-gold-legacy) !important;
  opacity:0 !important;
  transform:scaleX(.45) !important;
  transform-origin:center !important;
  transition:opacity .18s ease,transform .18s ease !important;
}
.site-header .nav-dropdown:hover>.nav-drop-toggle,
.site-header .nav-dropdown:focus-within>.nav-drop-toggle{color:#8a6741 !important}
.site-header .nav-dropdown.active>.nav-drop-toggle{color:#171b1d !important;font-weight:700 !important}
.site-header .nav-dropdown:hover>.nav-drop-toggle::after,
.site-header .nav-dropdown:focus-within>.nav-drop-toggle::after,
.site-header .nav-dropdown.active>.nav-drop-toggle::after{opacity:1 !important;transform:scaleX(1) !important}
.site-header .nav-drop-menu{
  visibility:hidden;opacity:0;pointer-events:none;position:absolute;top:calc(100% - 7px);left:50%;
  transform:translate(-50%,10px);min-width:245px;padding:9px;background:rgba(255,255,255,.98);
  border:1px solid rgba(31,38,42,.09);border-radius:16px;
  box-shadow:0 18px 50px rgba(20,26,30,.16),0 4px 14px rgba(20,26,30,.06);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);z-index:1000;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.site-header .nav-drop-menu::before{
  content:"";position:absolute;left:0;right:0;top:-14px;height:16px;background:transparent;
}
.site-header .nav-dropdown:hover>.nav-drop-menu,
.site-header .nav-dropdown:focus-within>.nav-drop-menu,
.site-header .nav-dropdown.open>.nav-drop-menu{
  visibility:visible;opacity:1;pointer-events:auto;transform:translate(-50%,0)
}
.site-header .nav-drop-menu a{
  display:flex!important;align-items:center!important;min-height:43px;padding:10px 13px!important;
  border-radius:10px;color:#34383c!important;font-family:inherit!important;font-size:13.5px!important;
  font-weight:600!important;line-height:1.25!important;white-space:nowrap;transition:background .16s ease,color .16s ease,transform .16s ease;
}
.site-header .nav-drop-menu a:hover,
.site-header .nav-drop-menu a:focus-visible{background:#f7f3ed!important;color:#8a6840!important;transform:translateX(2px)}
.site-header .nav-drop-menu a.active{background:#f3ede4!important;color:#7b5a35!important;font-weight:700!important}

@media(max-width:1020px){
  .site-header .nav-dropdown{display:block!important;height:auto!important;width:100%!important}
  .site-header .nav-drop-toggle{width:100%!important;height:44px!important;padding:0 8px!important;justify-content:flex-start!important;text-align:left!important;margin:0!important;font-size:14px!important;line-height:44px!important;font-weight:700!important;color:#262c2f!important}
  .site-header .nav-drop-toggle::after{left:8px!important;right:auto!important;bottom:3px!important;width:28px!important}
  .site-header .nav-drop-menu{display:none;visibility:visible;opacity:1;pointer-events:auto;position:static;transform:none!important;min-width:0;margin:4px 0 4px 8px;padding:5px 0 5px 12px;background:transparent;border:0;border-left:1px solid rgba(185,150,99,.38);border-radius:0;box-shadow:none;backdrop-filter:none}
  .site-header .nav-dropdown:hover>.nav-drop-menu,.site-header .nav-dropdown:focus-within>.nav-drop-menu{display:none}
  .site-header .nav-dropdown.open>.nav-drop-menu{display:block}
  .site-header .nav-drop-menu::before{display:none}
  .site-header .nav-drop-menu a{min-height:0;padding:9px 10px!important;border-radius:8px;color:#4a4e52!important;font-size:13px!important}
  .site-header .nav-drop-menu a:hover{transform:none}
}

/* SEO sale-area property menu — compact two-column desktop panel */
@media(min-width:992px){
 .site-header .nav-properties>.nav-drop-menu{
   width:560px;max-width:min(560px,calc(100vw - 40px));
   display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px;
   max-height:min(68vh,620px);overflow-y:auto;overscroll-behavior:contain;
 }
 .site-header .nav-properties>.nav-drop-menu a{white-space:normal!important}
 .site-header .nav-properties>.nav-drop-menu a:first-child{grid-column:1/-1;border-bottom:1px solid rgba(31,38,42,.08);margin-bottom:4px}
}
@media(max-width:991px){
 .site-header .nav-properties>.nav-drop-menu{max-height:55vh;overflow-y:auto}
}

/* APH multilingual property mega menu: transaction -> area */
.site-header .nav-properties>.nav-drop-menu{min-width:230px;overflow:visible}
.site-header .nav-subgroup{position:relative}
.site-header .nav-sub-toggle{width:100%;min-height:43px;padding:10px 13px;border:0;border-radius:10px;background:transparent;color:#34383c;font:600 13.5px/1.25 inherit;display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;text-align:left}
.site-header .nav-sub-toggle:hover,.site-header .nav-subgroup:focus-within>.nav-sub-toggle{background:#f7f3ed;color:#8a6840}
.site-header .nav-sub-toggle span{font-size:20px;line-height:1;color:var(--aph-gold-muted)}
.site-header .nav-sub-menu{visibility:hidden;opacity:0;pointer-events:none;position:absolute;left:calc(100% + 8px);top:-9px;width:460px;max-height:480px;overflow:auto;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:rgba(255,255,255,.99);border:1px solid rgba(31,38,42,.09);border-radius:16px;box-shadow:0 18px 50px rgba(20,26,30,.16);transform:translateX(8px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease;z-index:1002}
.site-header .nav-subgroup:hover>.nav-sub-menu,.site-header .nav-subgroup:focus-within>.nav-sub-menu,.site-header .nav-subgroup.open>.nav-sub-menu{visibility:visible;opacity:1;pointer-events:auto;transform:translateX(0)}
.site-header .nav-sub-menu a{white-space:normal!important;min-height:40px!important;font-size:12.5px!important}
@media(max-width:1020px){
 .site-header .nav-subgroup{width:100%}
 .site-header .nav-sub-toggle{min-height:40px;padding:9px 10px;font-size:13px}
 .site-header .nav-sub-toggle span{transform:rotate(90deg)}
 .site-header .nav-sub-menu{display:none;visibility:visible;opacity:1;pointer-events:auto;position:static;transform:none!important;width:auto;max-height:300px;margin:2px 0 7px 12px;padding:4px 0 4px 10px;grid-template-columns:1fr;background:transparent;border:0;border-left:1px solid rgba(185,150,99,.28);border-radius:0;box-shadow:none}
 .site-header .nav-subgroup:hover>.nav-sub-menu,.site-header .nav-subgroup:focus-within>.nav-sub-menu{display:none}
 .site-header .nav-subgroup.open>.nav-sub-menu{display:grid}
 .site-header .nav-sub-menu a{padding:8px 10px!important;font-size:12.5px!important}
}

/* APH v2.3 - Navigation readability: larger, consistent menu typography */
@media (min-width: 901px){
  .site-header .main-nav > a,
  .site-header .nav-drop-toggle{
    font-size:15.5px !important;
  }
  .site-header .nav-drop-menu a,
  .site-header .nav-sub-toggle,
  .site-header .nav-sub-menu a{
    font-size:15.5px !important;
    line-height:1.35 !important;
  }
}
@media (max-width: 900px){
  .site-header .main-nav.open > a,
  .site-header .nav-drop-toggle,
  .site-header .nav-drop-menu a,
  .site-header .nav-sub-toggle,
  .site-header .nav-sub-menu a{
    font-size:15px !important;
    line-height:1.4 !important;
  }
}

/* APH logo readability: preserve artwork/aspect ratio, use more of the existing header height. */
.site-header .brand img{
  height:52px !important;
  max-width:220px !important;
}
@media (max-width:1260px) and (min-width:1021px){
  .site-header .brand img{height:48px !important;max-width:190px !important;}
}
@media (max-width:1020px){
  .site-header .brand img{height:48px !important;max-width:180px !important;}
}
@media (max-width:420px){
  .site-header .brand img{height:46px !important;max-width:165px !important;}
}

/* APH v8.2 — clear dropdown affordance, especially on mobile */
.site-header .nav-drop-chevron{
  display:inline-flex;align-items:center;justify-content:center;margin-left:7px;
  font-size:16px;line-height:1;color:var(--aph-gold-muted);transition:transform .18s ease;
}
.site-header .nav-dropdown.open>.nav-drop-toggle .nav-drop-chevron{transform:rotate(180deg)}
@media(max-width:1020px){
  .site-header .nav-drop-toggle{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding-right:12px!important}
  .site-header .nav-drop-chevron{margin-left:auto;font-size:19px;font-weight:700}
  .site-header .nav-properties>.nav-drop-menu{margin-top:2px!important;padding-top:4px!important;padding-bottom:7px!important}
  .site-header .nav-properties>.nav-drop-menu a{padding:10px 10px!important;font-size:14px!important;font-weight:600!important}
}
@media(min-width:1021px){
  .site-header .nav-properties>.nav-drop-menu{width:310px!important;max-width:min(310px,calc(100vw - 32px))!important;display:block!important;max-height:none!important;overflow:visible!important}
  .site-header .nav-properties>.nav-drop-menu a:first-child{border-bottom:0!important;margin-bottom:0!important}
}
/* APH currency selector */
.aph-currency-switch{margin:0;display:flex;align-items:center}.aph-currency-switch select{height:34px;border:1px solid rgba(184,137,61,.35);border-radius:999px;background:rgba(255,255,255,.08);color:inherit;padding:0 28px 0 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.aph-currency-switch select option{color:#111;background:#fff}@media(max-width:760px){.aph-currency-switch select{height:32px;max-width:86px;padding-left:8px;font-size:11px}}

/* APH v8.8.1 — mobile currency lives inside hamburger menu */
.aph-currency-mobile{display:none!important}
@media(max-width:1020px){
 .site-header .header-actions .aph-currency-desktop{display:none!important}
 .site-header .main-nav.open .aph-currency-mobile{display:flex!important;box-sizing:border-box!important;width:100%!important;margin:10px 0 2px!important;padding:12px 8px 2px!important;border-top:1px solid #eeeae4!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}
 .site-header .main-nav.open .aph-currency-mobile .aph-currency-label{display:block!important;font-size:14px!important;font-weight:700!important;color:#262c2f!important}
 .site-header .main-nav.open .aph-currency-mobile select{width:112px!important;max-width:112px!important;height:38px!important;background:#fff!important;color:#202629!important;border:1px solid #dedbd6!important;font-size:12px!important}
}
@media(min-width:1021px){.aph-currency-desktop{display:flex!important}.aph-currency-mobile{display:none!important}}

/* APH logo visibility patch 2026-10-14 — shared across TR/EN/DE/RU.
   Keep the current 76px header and all navigation elements intact. */
@media (min-width:1501px){
  .site-header > .aph-container.header-inner{gap:14px !important;}
  .site-header .brand img{height:66px !important;max-width:245px !important;width:auto !important;}
  .site-header .main-nav{gap:13px !important;}
}
@media (min-width:1261px) and (max-width:1500px){
  .site-header > .aph-container.header-inner{gap:10px !important;}
  .site-header .brand img{height:59px !important;max-width:225px !important;width:auto !important;}
  .site-header .main-nav{gap:10px !important;}
  .site-header .header-actions{gap:7px !important;}
  .site-header .main-nav > a,
  .site-header .nav-drop-toggle{font-size:14px !important;}
}
@media (min-width:1021px) and (max-width:1260px){
  .site-header > .aph-container.header-inner{gap:10px !important;}
  .site-header .brand img{height:54px !important;max-width:195px !important;width:auto !important;}
  .site-header .main-nav{gap:9px !important;}
  .site-header .header-actions{gap:6px !important;}
  .site-header .main-nav > a,
  .site-header .nav-drop-toggle{font-size:13px !important;}
}
@media (min-width:621px) and (max-width:1020px){
  .site-header .brand img{height:56px !important;max-width:205px !important;width:auto !important;}
}
@media (min-width:421px) and (max-width:620px){
  .site-header .brand img{height:50px !important;max-width:180px !important;width:auto !important;}
}
@media (max-width:420px){
  .site-header .brand img{height:47px !important;max-width:168px !important;width:auto !important;}
}

/* APH logo readability v2 - 2026-10-14. Scoped to shared frontend header.
   Cropped logo removes excess white margins; all 4 languages use same header. */
.site-header .brand img{
  content:url('/assets/aph-logo-readable.png') !important;
  display:block !important;
  width:auto !important;
  height:68px !important;
  max-width:214px !important;
  object-fit:contain !important;
}
@media (min-width:1501px){
  .site-header .brand img{height:73px !important;max-width:230px !important;}
}
@media (min-width:1261px) and (max-width:1500px){
  .site-header .brand img{height:68px !important;max-width:215px !important;}
}
@media (min-width:1021px) and (max-width:1260px){
  .site-header .brand img{height:56px !important;max-width:177px !important;}
}
@media (min-width:621px) and (max-width:1020px){
  .site-header .brand img{height:60px !important;max-width:190px !important;}
}
@media (min-width:421px) and (max-width:620px){
  .site-header .brand img{height:54px !important;max-width:171px !important;}
}
@media (max-width:420px){
  .site-header .brand img{height:48px !important;max-width:152px !important;}
}

/* Hide only the header WhatsApp shortcut; floating WhatsApp and CRM are untouched. */
.site-header .header-actions > a.icon-btn.wa{display:none !important;}
