/*
=========================================================
40-header.css — Header, logo, menus, mobile search, sign-in
=========================================================
*/

/* Only center the logo */
.c27-main-header .header-top {
    position: relative;
    /* needed for absolute positioning of logo */
}

.c27-main-header .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    /* vertically center if needed */
    transform: translate(-50%, -50%);
    /* horizontal + vertical centering */
    z-index: 2;
    /* ensure it sits above left/right elements */
}

/* Optional: make logo responsive */
.c27-main-header .logo img {
    width: 150px !important;
    height: auto !important;
}

/* Optional: adjust for smaller screens */
@media screen and (max-width: 768px) {
    .c27-main-header .logo img {
        max-height: 50px !important;
        /* adjust for mobile */
    }

    .mobile-user-menu {
    display: block !important;
}

.c27-main-header .logo {
    left: 60%;
}

.c27-main-header .logo img {
    width: 100px !important;
}

}

/* ---------------------------------- */

.user-area.signin-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    font-weight: 600;
}

.user-area.signin-area .user-area-icon {
    font-size: 18px;
    color: #333;
}

.user-area.signin-area a {
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

/* Login */
.user-area.signin-area a:first-of-type {
    background: #e65c00;
    color: #222;
}

.user-area.signin-area a:first-of-type:hover {
    background: #ff7100;
}

/* Register (primary CTA) */
.user-area.signin-area a:last-of-type {
    background: #ff7100;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 113, 0, 0.35);
}

.user-area.signin-area a:last-of-type:hover {
    background: #e65c00;
}

.user-area.signin-area span {
    font-size: 13px;
    opacity: 0.6;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .user-area.signin-area {
        padding: 6px 10px;
        gap: 6px;
    }

    .user-area.signin-area a {
        padding: 5px 10px;
        font-size: 13px;
    }
}

.mob-sign-in {
    position: relative;
    display: inline-block;
}

.mob-sign-in a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ff7100;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 10px rgba(255, 113, 0, 0.35);
}

.mob-sign-in a:hover {
    background: #e65c00;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(255, 113, 0, 0.45);
}

/* Optional: show small tooltip on hover */
.mob-sign-in a::after {
    content: "התחבר/י";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mob-sign-in a:hover::after {
    opacity: 1;
}

/* ===============================
   Modern Sleek MyListing Header
   Visual redesign only
   =============================== */

/* Base header */
.c27-main-header {
	background: #fff;
	border-bottom: 1px solid #eee;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
	font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

/* Logo */
.c27-main-header .logo img {
	max-height: 60px;
	width: auto;
	transition: all 0.3s ease;
	filter: brightness(1);
}

/* Menu items */
.c27-main-header .main-menu > li > a {
	font-weight: 600;
	font-size: 15px;
	color: #222;
	text-decoration: none;
	padding: 8px 0;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 0.25s ease, transform 0.2s ease;
}

.c27-main-header .main-menu > li > a:hover {
	color: #ff7100;
	transform: translateY(-2px);
}

.c27-main-header .main-menu > li > a i {
	font-size: 18px;
	color: #ff7100;
}

/* Header buttons */
.c27-main-header .header-button a.buttons {
	background: #ff7100;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	padding: 10px 20px;
	border-radius: 40px;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 4px 15px rgba(255,113,0,0.35);
	transition: all 0.25s ease;
}

.c27-main-header .header-button a.buttons:hover {
	background: #ff5f00;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255,113,0,0.45);
}

/* User profile dropdown */
.c27-main-header .user-profile-dropdown .avatar img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.c27-main-header .user-profile-dropdown .user-profile-name {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	color: #222;
	transition: color 0.25s ease;
}

.c27-main-header .submenu-toggle i {
	color: #ff7100;
	font-size: 18px;
	transition: transform 0.25s ease;
}

.c27-main-header .user-profile-dropdown:hover .submenu-toggle i {
	transform: rotate(180deg);
}

/* Mobile menu toggle */
.c27-main-header .mobile-menu a {
	width: 42px;
	height: 42px;
	background: #f5f5f5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.c27-main-header .mobile-menu a:hover {
	background: #eee;
}

.c27-main-header .mobile-menu-lines i {
	font-size: 22px;
	color: #222;
}

/* Mobile overlay */
.c27-main-header .i-nav-overlay {
	background: rgba(0,0,0,0.7);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 998;
	display: none;
	transition: opacity 0.25s ease;
}

/* Mobile close button */
.c27-main-header .mnh-close-icon a {
	width: 40px;
	height: 40px;
	background: #f5f5f5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.c27-main-header .mnh-close-icon a i {
	font-size: 20px;
	color: #222;
}

/* Hover effect for dropdown menu items */
.c27-main-header .mobile-user-menu ul li a,
.c27-main-header .main-menu li a {
	transition: all 0.2s ease;
}

.c27-main-header .mobile-user-menu ul li a:hover {
	color: #ff7100;
	background: rgba(255,113,0,0.05);
	border-radius: 6px;
}

/* Responsive - mobile */
@media (max-width: 992px) {
	.c27-main-header .main-menu {
		display: none;
	}
	.c27-main-header .header-button {
		display: none;
	}
	.c27-main-header .mobile-menu {
		display: flex;
	}
}

/* Modern button style for specific menu item */
#menu-item-201 > a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff7100;   /* modern accent color */
    color: #fff !important;      /* force white text */
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
#menu-item-201 > a:hover {
    background-color: #e96900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hide on tablet and mobile */
@media (max-width: 1024px) {  /* tablets and below */
    #menu-item-201 {
        display: none !important;
    }
}

/* ----------------------------- */
/* Modern mobile header search (plugin-free) */
/* =========================================================
   Modern Mobile Free Search (with subtle brand accent)
   Brand color: #ff7100
   ========================================================= */

.mobile-explore-head-top .explore-head-search .ml-free-search{
  width: 100%;
}

/* Main pill */
.mobile-explore-head-top .explore-head-search .ml-free-search__inner{
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px;
  border-radius: 999px;

  /* clean glass base */
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,113,0,.22);

  box-shadow:
    0 10px 24px rgba(0,0,0,.10),
    0 1px 0 rgba(255,255,255,.7) inset,
    0 0 0 1px rgba(255,113,0,.08) inset;

  backdrop-filter: blur(10px);
  transition: box-shadow .2s ease, border-color .2s ease;
}

/* Search icon bubble */
.mobile-explore-head-top .explore-head-search .ml-free-search__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;

  color: #ff7100;
  background: rgba(255,113,0,.12);

  box-shadow:
    0 1px 2px rgba(0,0,0,.08),
    0 0 0 1px rgba(255,113,0,.15) inset;
}

/* Input */
.mobile-explore-head-top .explore-head-search input.ml-free-search-input{
  flex: 1;
  height: 100%;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;

  font-size: 15px;
  font-weight: 500;
  color: #111;
  padding: 0;

  caret-color: #ff7100;

  /* RTL-safe */
  text-align: right;
  direction: rtl;
}

/* Placeholder */
.mobile-explore-head-top .explore-head-search
input.ml-free-search-input::placeholder{
  color: rgba(0,0,0,.45);
  font-weight: 500;
}

/* Clear (X) button */
.mobile-explore-head-top .explore-head-search .ml-free-search__clear{
  appearance: none;
  border: 0;

  width: 32px;
  height: 32px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,113,0,.10);
  color: #ff7100;

  box-shadow:
    0 0 0 1px rgba(255,113,0,.18) inset;

  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}

.mobile-explore-head-top .explore-head-search
.ml-free-search__clear:hover{
  background: rgba(255,113,0,.16);
}

.mobile-explore-head-top .explore-head-search
.ml-free-search__clear:active{
  transform: scale(.96);
}

/* Hint text */
.mobile-explore-head-top .explore-head-search .ml-free-search__hint{
  margin-top: 6px;
  padding-inline: 10px;

  font-size: 12px;
  font-weight: 500;
  color: rgba(255,113,0,.85);
}

/* Focus state */
.mobile-explore-head-top .explore-head-search
.ml-free-search__inner:focus-within{
  border-color: rgba(255,113,0,.55);
  box-shadow:
    0 12px 28px rgba(0,0,0,.14),
    0 0 0 4px rgba(255,113,0,.18),
    0 0 0 1px rgba(255,113,0,.35) inset;
}

/* Mobile cleanup */
@media (max-width: 480px){
  .mobile-explore-head-top
  .explore-head-search
  .ml-free-search__hint{
    display: none;
  }
}

/* -------------------- */
/* Hide "Filters" text, keep icon */
.explore-head-top-filters a {
    font-size: 0;
}

.explore-head-top-filters a i {
    font-size: 18px; /* or whatever fits your design */
}

/* -------- */
/* Mobile "Add Listing" button in header (logged-in) */
/* Mobile Add Listing button (REAL MyListing button) */
.ml-mobile-add-listing{
	display: none;
	align-items: center;
	justify-content: center;

	padding: 0 14px;
	height: 38px;

	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;

	white-space: nowrap;
}

/* icon spacing */
.ml-mobile-add-listing i{
	margin-left: 6px;
	font-size: 16px;
}

/* mobile only */
@media (max-width: 768px){
	.ml-mobile-add-listing{
		display: inline-flex;
	}
}
