/* ═══════════════════════════════════════════════════════════════════════════
   Imobe Full — Header & Modal Search Styles
   ═══════════════════════════════════════════════════════════════════════════ */

.imobe-header {
	background-color: var(--imobe-secondary, #000000);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.imobe-header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 74px;
}

/* Esquerda */
.imobe-header-left {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.imobe-nav-desktop .imobe-nav-list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 28px;
}

.imobe-nav-desktop .imobe-nav-link {
	color: #ffffff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: opacity 0.2s;
}

.imobe-nav-desktop .imobe-nav-link:hover {
	opacity: 0.8;
}

/* Centro: Logo Centralizada */
.imobe-header-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.imobe-logo {
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.imobe-logo-img {
	max-height: 44px;
	width: auto;
	object-fit: contain;
}

.imobe-logo-text {
	color: #ffffff;
	font-size: 22px;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 8px;
}

.imobe-logo-icon {
	color: var(--imobe-primary, #c0392b);
}

/* Direita: Favoritos */
.imobe-header-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.imobe-header-favs {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #ffffff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: opacity 0.2s;
}

.imobe-header-favs:hover {
	opacity: 0.8;
}

.imobe-fav-icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.imobe-favs-count {
	position: absolute;
	top: -6px;
	right: -8px;
	background: var(--imobe-primary, #c0392b);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	height: 16px;
	min-width: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
	box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* Hamburguer (Mobile) */
.imobe-menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px 8px 8px 0;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
}

.imobe-menu-toggle span {
	width: 22px;
	height: 2px;
	background-color: #ffffff;
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* ─── Mobile Drawer (Off-Canvas) ────────────────────────────────────────────── */
.imobe-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: #000000;
	z-index: 1050;
	transform: translateY(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.imobe-mobile-drawer.open {
	transform: translateY(0);
}

.imobe-mobile-drawer-header {
	display: grid;
	grid-template-columns: 48px 1fr 48px;
	align-items: center;
	height: 70px;
	padding: 0 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.imobe-drawer-close {
	background: none;
	border: none;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 8px;
}

.imobe-logo-mobile {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.imobe-mobile-drawer-fav-btn {
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	text-decoration: none;
	padding: 8px;
}

.imobe-mobile-drawer-body {
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
}

.imobe-mobile-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.imobe-mobile-nav-list a {
	color: #ffffff;
	text-decoration: none;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.2px;
	transition: opacity 0.2s;
}

.imobe-mobile-nav-list a:hover {
	opacity: 0.8;
}

.imobe-mobile-drawer-divider {
	height: 1px;
	background-color: rgba(255, 255, 255, 0.15);
	margin: 32px 0 24px;
}

.imobe-mobile-drawer-fav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #ffffff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
}

@media (max-width: 991px) {
	.imobe-nav-desktop {
		display: none;
	}
	.imobe-menu-toggle {
		display: flex;
	}
	.imobe-header-favs-label {
		display: none;
	}
}

@media (max-width: 576px) {
	.imobe-header-inner {
		padding: 0 16px;
		height: 64px;
	}
	.imobe-logo-img {
		max-height: 38px;
	}
}

/* ─── Search Modal ─────────────────────────────────────────────────────────── */
.imobe-search-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 650px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
	z-index: 1001;
	overflow: hidden;
}

.imobe-search-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--imobe-border);
}

.imobe-search-modal-header h2 {
	margin: 0;
	font-size: 18px;
}

.imobe-search-modal-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
}

.imobe-search-modal-body {
	padding: 20px 24px;
}

.imobe-search-input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 2px solid var(--imobe-border);
	padding: 10px 16px;
	border-radius: 8px;
}

.imobe-search-input-wrap input {
	border: none;
	outline: none;
	width: 100%;
	font-size: 16px;
}

.imobe-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.6);
	z-index: 1000;
}
