/*
Theme Name: Aljeeraan (My Listing Child)
Description: Child theme of My Listing. Holds the Aljeeraan header skin (ported from the approved alj-topbar design) so theme updates never overwrite it.
Template: my-listing
Version: 1.0
Text Domain: my-listing-child
*/

/* ==========================================================================
   Hide the theme's header site-wide; the alj-topbar (injected by
   modules/top-header.php) is the only bar. The skin below stays so
   re-enabling the theme header later restores the branded look.
   ========================================================================== */
.c27-main-header { display: none !important; }
/* Spacer the theme injects to offset the fixed header — dead without it. */
.c27-top-content-margin { display: none !important; }

/* ==========================================================================
   Theme header (c27-main-header) restyled to match the alj-topbar design:
   purple gradient + skyline strip, white text, white pill CTA, big logo.
   ========================================================================== */

/* --- Background: same gradient as .alj-topbar__bar --- */
.c27-main-header .header-skin,
.c27-main-header.header-dark-skin:not(.header-scroll) .header-skin,
.c27-main-header.header-scroll .header-skin {
  background:
    radial-gradient(120% 160% at 88% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(255deg, #7a4ff0 0%, #5636d6 38%, #3a2aa8 72%, #322597 100%) !important;
  border-bottom: 0 !important;
}

/* --- Buildings strip, centered at the bottom like the topbar --- */
.c27-main-header .header-skin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 78%;
  aspect-ratio: 1595 / 262;
  background: var(--alj-skyline, url("/wp-content/uploads/2026/09/aljeeraan-skyline.png")) center bottom / 100% 100% no-repeat;
  opacity: .45;
  pointer-events: none;
}
.c27-main-header .header-container,
.c27-main-header .header-top { position: relative; z-index: 1; }

/* --- Logo: topbar card size --- */
.c27-main-header .logo a { display: block; line-height: 0; border-radius: 18px; overflow: hidden; }
.c27-main-header .logo img { height: 76px !important; width: auto !important; }

/* --- Nav links: white, 600 weight --- */
.c27-main-header .main-menu > li > a { color: #fff; font-weight: 600; }
.c27-main-header .main-menu > li > a:hover,
.c27-main-header .main-menu > li.current-menu-item > a,
.c27-main-header .main-menu > li.current-menu-ancestor > a { color: #fff; opacity: .85; }
.c27-main-header .main-menu .submenu-toggle i { color: #fff; }

/* --- Sign-in area, cart, mobile toggles: white --- */
.c27-main-header .user-area,
.c27-main-header .user-area a,
.c27-main-header .user-area span { color: #fff; }
.c27-main-header .user-area a:hover { opacity: .85; }
.c27-main-header .view-cart-contents,
.c27-main-header .search-trigger a,
.c27-main-header .mobile-menu a,
.c27-main-header .mob-sign-in a { color: #fff; }

/* --- Quick search: translucent white pill --- */
.c27-main-header .quick-search-instance .dark-forms { background: transparent; }
.c27-main-header .quick-search-instance input[type="search"] {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
}
.c27-main-header .quick-search-instance input[type="search"]::placeholder { color: rgba(255,255,255,.75); }
.c27-main-header .quick-search-instance .mi.search { color: #fff; }

/* --- "Add listing" CTA: white pill with purple text (like .alj-add) --- */
.c27-main-header .header-button .buttons.button-1 {
  background: #fff !important;
  color: #5b21b6 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(20, 8, 60, .25);
}
.c27-main-header .header-button .buttons.button-1:hover { background: #f3ecff !important; }

@media (max-width: 480px) {
  .c27-main-header .logo img { height: 52px !important; }
}
