/* =========================================================
   Website accounts (js/account.js): navbar account menu, OTP login box,
   shortlist hearts and the "My ..." pages (templates/account/account.html)
========================================================= */

/* ---------- Navbar account button + menu ---------- */
.ht-acct {
	position: relative;
}

.ht-acct-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px 4px 4px;
	border: 1px solid rgba(27, 54, 93, 0.14);
	border-radius: 999px;
	background: transparent;
	color: var(--primary-dark);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.35s ease, color 0.35s ease;
}

.ht-acct-btn:hover {
	background: rgba(27, 54, 93, 0.06);
}

.ht-acct-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary-dark);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
}

.ht-acct-caret {
	font-size: 0.7rem;
	transition: transform 0.25s ease;
}

.ht-acct-btn[aria-expanded="true"] .ht-acct-caret {
	transform: rotate(180deg);
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-acct-btn {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-acct-avatar {
	background: #ffffff;
	color: var(--primary-dark);
}

.ht-acct-menu {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 1060;
	width: 300px;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	padding: 8px 0;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 18px 50px rgba(18, 37, 67, 0.2);
	animation: htAcctIn 0.2s ease;
}

@keyframes htAcctIn {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

.ht-acct-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px 14px;
	border-bottom: 1px solid #edf0f5;
}

.ht-acct-head .ht-acct-avatar {
	width: 44px;
	height: 44px;
	font-size: 1.05rem;
}

.ht-acct-head b {
	display: block;
	color: var(--primary-dark);
	font-size: 1rem;
	line-height: 1.2;
}

.ht-acct-head small {
	color: #6b7a90;
}

.ht-acct-section {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px 4px;
	color: #7a8699;
	font-size: 0.8rem;
}

.ht-acct-section::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #edf0f5;
}

.ht-acct-item {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 11px 20px;
	border: 0;
	background: none;
	color: var(--primary-dark);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.ht-acct-item i {
	width: 20px;
	color: #51627c;
	text-align: center;
}

.ht-acct-item:hover {
	color: var(--primary-dark);
	background: #f4f6fa;
}

.ht-acct-item + .ht-acct-item {
	border-top: 1px solid #f1f3f7;
}

.ht-acct-item--out,
.ht-acct-item--out i {
	color: #d23b3b;
}

.ht-acct-item--out:hover {
	color: #d23b3b;
}

.ht-acct-badge {
	margin-left: auto;
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: #d23b3b;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	text-align: center;
}

.ht-acct-badge--soft {
	background: #eef2f8;
	color: var(--primary-dark);
}

.ht-acct-foot {
	padding: 14px 20px 8px;
	border-top: 1px solid #edf0f5;
	margin-top: 6px;
}

.ht-acct-intro {
	margin: 0 0 12px;
	color: #6b7a90;
	font-size: 0.88rem;
	text-align: center;
}

.ht-acct-cta {
	display: block;
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 999px;
	background: var(--nav-accent, #fca311);
	color: var(--primary-dark);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(252, 163, 17, 0.28);
}

.ht-acct-cta:hover {
	background: #ffb733;
}

.ht-acct-partner {
	display: block;
	margin-top: 10px;
	color: #6b7a90;
	font-size: 0.82rem;
	text-align: center;
	text-decoration: none;
}

.ht-acct-partner {
	margin-bottom: 0;
}

.ht-acct-partner a {
	color: inherit;
	text-decoration: none;
}

.ht-acct-partner a:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

/* Small laptops: not enough room for the name, keep the round icon */
@media (min-width: 992px) and (max-width: 1199px) {
	.ht-acct-btn {
		padding: 3px;
	}

	.ht-acct-label,
	.ht-acct-caret {
		display: none;
	}
}

/* Phones: only the round icon; the menu opens across the screen under the bar */
@media (max-width: 991px) {
	.ht-acct-btn {
		padding: 0;
		border: 0;
		background: none;
	}

	.ht-acct-btn:hover {
		background: none;
	}

	.ht-acct-label,
	.ht-acct-caret {
		display: none;
	}

	.ht-acct-avatar {
		width: 40px;
		height: 40px;
		font-size: 0.95rem;
	}

	.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-acct-btn {
		background: none;
	}

	.ht-acct-menu {
		position: fixed;
		top: calc(var(--nav-h, 64px) + 14px);
		right: 12px;
		left: 12px;
		width: auto;
	}
}

/* Mobile slide-in menu: Login / My Profile / Sign out */
.ht-mobile-nav-account {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 10px;
}

.ht-mobile-nav-account a,
.ht-mobile-nav-account button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.ht-mobile-nav-account a:hover,
.ht-mobile-nav-account button:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.14);
}

/* ---------- OTP login box ---------- */
.ht-login {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(10, 22, 40, 0.55);
	backdrop-filter: blur(3px);
	animation: htFade 0.2s ease;
}

@keyframes htFade {
	from { opacity: 0; }
}

.ht-login-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 28px 26px 22px;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
	animation: htAcctIn 0.25s ease;
}

.ht-login-x {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f1f4f9;
	color: var(--primary-dark);
	cursor: pointer;
}

.ht-login-logo {
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	padding: 6px;
	border-radius: 14px;
	background: #f4f6fa;
}

.ht-login h2 {
	margin: 0 0 4px;
	color: var(--primary-dark);
	font-size: 1.35rem;
	font-weight: 700;
}

.ht-login p {
	margin: 0 0 18px;
	color: #6b7a90;
	font-size: 0.9rem;
}

.ht-login label,
.ht-my-form label {
	display: block;
	margin: 0 0 6px;
	color: var(--primary-dark);
	font-size: 0.85rem;
	font-weight: 600;
}

.ht-login-field {
	display: flex;
	align-items: center;
	margin-bottom: 14px;
	border: 1.5px solid #dbe2ec;
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.ht-login-field:focus-within {
	border-color: var(--primary-dark);
}

.ht-login-field span {
	padding: 0 4px 0 14px;
	color: var(--primary-dark);
	font-weight: 600;
}

.ht-login-field input {
	flex: 1;
	min-width: 0;
	padding: 13px 14px;
	border: 0;
	outline: 0;
	font: inherit;
	font-size: 1rem;
}

.ht-login-otp input {
	letter-spacing: 0.5em;
	font-weight: 700;
	text-align: center;
}

.ht-login-submit {
	width: 100%;
	padding: 14px;
	border: 0;
	border-radius: 999px;
	background: var(--primary-dark);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ht-login-submit:hover {
	background: var(--primary-light);
}

.ht-login-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.ht-login-err {
	min-height: 1.2em;
	margin-bottom: 10px;
	color: #d23b3b;
	font-size: 0.85rem;
}

.ht-login-row {
	display: flex;
	justify-content: space-between;
	margin: -4px 0 14px;
	font-size: 0.85rem;
}

.ht-login-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--primary-light);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.ht-login-link:disabled {
	color: #9aa6b8;
	cursor: default;
}

.ht-login-test {
	margin-bottom: 14px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fff6e5;
	color: #8a5a00;
	font-size: 0.85rem;
}

.ht-login-note {
	margin: 14px 0 0;
	color: #8b97a9;
	font-size: 0.75rem;
	text-align: center;
}

.ht-login-note a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Shortlist heart (result cards, details page) ---------- */
.ht-heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #51627c;
	font-size: 1rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
}

.ht-heart:hover {
	transform: scale(1.08);
}

.ht-heart.is-on {
	color: #e0245e;
}

.ht-pcard-media > .ht-heart {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
}

.pd-title-row .ht-heart {
	flex: none;
	border: 1px solid #e3e8f0;
	box-shadow: none;
}

/* ---------- "My ..." pages ---------- */
.ht-my {
	min-height: 70vh;
	padding: calc(var(--nav-h, 72px) + 40px) 0 80px;
	background: #f5f7fb;
}

.ht-my-grid {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	align-items: start;
}

.ht-my-side {
	position: sticky;
	top: calc(var(--nav-h, 72px) + 24px);
	padding: 10px 0;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 6px 24px rgba(18, 37, 67, 0.06);
}

/* Logged out: no page list, the page uses the full width */
.ht-my-side[hidden] {
	display: none !important;
}

.ht-my-grid:has(> .ht-my-side[hidden]) {
	grid-template-columns: 1fr;
}

.ht-my-side .ht-acct-item.is-active {
	background: #eef2f8;
	box-shadow: inset 3px 0 0 var(--nav-accent, #fca311);
	font-weight: 600;
}

.ht-my-main {
	min-width: 0;
	padding: 26px;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 6px 24px rgba(18, 37, 67, 0.06);
}

.ht-my-main h1 {
	margin: 0 0 4px;
	color: var(--primary-dark);
	font-size: 1.5rem;
	font-weight: 700;
}

.ht-my-sub {
	margin: 0 0 22px;
	color: #6b7a90;
}

.ht-my-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ht-my-empty {
	padding: 44px 16px;
	color: #6b7a90;
	text-align: center;
}

.ht-my-empty i {
	display: block;
	margin-bottom: 12px;
	color: #c4cdda;
	font-size: 2.4rem;
}

.ht-my-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--primary-dark);
	color: #ffffff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.ht-my-btn:hover {
	color: #ffffff;
	background: var(--primary-light);
}

.ht-my-btn--light {
	background: #eef2f8;
	color: var(--primary-dark);
}

.ht-my-btn--light:hover {
	background: #e2e8f2;
	color: var(--primary-dark);
}

.ht-my-form {
	max-width: 480px;
}

.ht-my-form .ht-login-field input[readonly] {
	background: #f5f7fb;
	color: #6b7a90;
}

.ht-my-list {
	display: grid;
	gap: 14px;
}

.ht-my-row {
	display: flex;
	gap: 16px;
	padding: 14px;
	border: 1px solid #e8edf4;
	border-radius: 16px;
}

.ht-my-row img,
.ht-my-row .ht-my-noimg {
	flex: none;
	width: 130px;
	height: 98px;
	border-radius: 12px;
	object-fit: cover;
	background: #eef2f8;
}

.ht-my-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b3bfcf;
	font-size: 1.6rem;
}

.ht-my-row-body {
	flex: 1;
	min-width: 0;
}

.ht-my-row h3 {
	margin: 0 0 4px;
	color: var(--primary-dark);
	font-size: 1.02rem;
	font-weight: 600;
}

.ht-my-meta {
	color: #6b7a90;
	font-size: 0.85rem;
}

.ht-my-price {
	margin: 6px 0;
	color: var(--primary-dark);
	font-weight: 700;
}

.ht-my-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.ht-my-state {
	padding: 3px 10px;
	border-radius: 999px;
	background: #eef2f8;
	color: var(--primary-dark);
	font-size: 0.76rem;
	font-weight: 700;
}

.ht-my-state--live { background: #e3f6ea; color: #17803d; }
.ht-my-state--review { background: #fff3dc; color: #9a6200; }
.ht-my-state--off { background: #fde8e8; color: #b42318; }

.ht-my-enq {
	padding: 14px 16px;
	border: 1px solid #e8edf4;
	border-radius: 14px;
}

.ht-my-enq.is-new {
	border-color: #fcd9a5;
	background: #fffaf1;
}

.ht-my-enq-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.ht-my-enq a {
	color: var(--primary-light);
	font-weight: 600;
}

.ht-my-cards {
	display: grid;
	gap: 18px;
}

.ht-my-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #e8edf4;
	border-radius: 14px;
}

.ht-my-search b {
	color: var(--primary-dark);
}

.ht-my-actions {
	display: flex;
	gap: 8px;
}

.ht-my-faq details {
	padding: 14px 0;
	border-bottom: 1px solid #edf0f5;
}

.ht-my-faq summary {
	color: var(--primary-dark);
	font-weight: 600;
	cursor: pointer;
}

.ht-my-faq p {
	margin: 10px 0 0;
	color: #51627c;
}

.ht-my-help {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin-bottom: 26px;
}

.ht-my-help a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border: 1px solid #e8edf4;
	border-radius: 14px;
	color: var(--primary-dark);
	text-decoration: none;
}

.ht-my-help a:hover {
	border-color: var(--primary-dark);
}

.ht-my-help i {
	color: var(--nav-accent, #fca311);
	font-size: 1.3rem;
}

.ht-my-help small {
	color: #6b7a90;
}

@media (max-width: 991px) {
	.ht-my {
		padding-top: calc(var(--nav-h, 64px) + 24px);
	}

	.ht-my-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	/* The page menu becomes a row of tabs you can swipe */
	.ht-my-side {
		position: static;
		display: flex;
		overflow-x: auto;
		padding: 6px;
		scrollbar-width: none;
	}

	.ht-my-side::-webkit-scrollbar {
		display: none;
	}

	.ht-my-side .ht-acct-item {
		flex: none;
		width: auto;
		padding: 9px 14px;
		border-radius: 999px;
		font-size: 0.88rem;
	}

	.ht-my-side .ht-acct-item + .ht-acct-item {
		border-top: 0;
	}

	.ht-my-side .ht-acct-item.is-active {
		box-shadow: none;
	}

	.ht-my-main {
		padding: 18px;
	}
}

@media (max-width: 575px) {
	.ht-my-row {
		flex-direction: column;
	}

	.ht-my-row img,
	.ht-my-row .ht-my-noimg {
		width: 100%;
		height: 170px;
	}
}


/* Mobile menu: the visitor at the top, WhatsApp instead of the phone number, Sign out last */
.ht-mobile-user {
	padding: 14px 16px 4px;
}

.ht-mobile-user-card {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.ht-mobile-user-card:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.ht-mobile-user-card b {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

.ht-mobile-user-card small {
	display: block;
	color: #9fb2cf;
	font-size: 12px;
}

.ht-mobile-user-av {
	display: flex;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fca311;
	font-size: 20px;
}

.ht-mobile-user-av.is-in {
	background: #fca311;
	color: #412402;
	font-size: 16px;
	font-weight: 700;
}

.ht-mobile-nav-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px;
	border-radius: 999px;
	background: #25d366;
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
}

.ht-mobile-nav-wa:hover {
	background: #1fbe5b;
	color: #ffffff;
}

.ht-mobile-nav-account:empty {
	display: none;
}

.ht-mobile-nav-account .ht-mobile-signout {
	justify-content: flex-start;
	margin-top: 4px;
	padding: 10px 6px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0;
	background: transparent;
	color: #9fb2cf;
	font-weight: 500;
}

.ht-mobile-nav-account .ht-mobile-signout:hover {
	background: transparent;
	color: #ffffff;
}
