/* ============================================================
   Deepmaarg / Nirvaan — Search bar (.item-search-tabs)
   Self-contained, fully responsive (desktop → tablet → mobile).
   Loaded by Views/Nirvaan/Index.cshtml + OldAgeHomeList.cshtml.
   Inherits CSS variables from layout.css if present; falls back
   to literal values so this file works on its own.
   ============================================================ */

:root {
	/* Refined-warm palette (2026-07). "blue"/"amber" names kept; values now warm. */
	--ds-blue:        var(--dm-terracotta-deep);
	--ds-blue-deep:   #232130;
	--ds-blue-soft:   rgba(45, 12, 90, 0.06);
	--ds-blue-line:   rgba(35, 33, 48, 0.20);
	--ds-amber:       var(--dm-terracotta);
	--ds-amber-deep:  var(--dm-terracotta-deep);
	--ds-ink:         #232130;
	--ds-mute:        #8892a3;
	--ds-card:        #ffffff;
	--ds-shadow-lift: 0 28px 60px -28px rgba(35, 33, 48,0.5);
	--ds-shadow-rest: 0 18px 40px -22px rgba(35, 33, 48,0.42);
	--ds-radius-out:  20px;
	--ds-radius-in:   14px;
	--ds-radius-cell: 12px;
	--ds-h-desk:      58px;   /* field height — desktop */
	--ds-h-tab:       52px;   /* field height — tablet */
	--ds-h-mob:       50px;   /* field height — mobile */
}

/* ============================================================
   0. .contact-section (hero band) — fully responsive
   Used by Index.cshtml (with .banner-section + .banner-2.sptb-2-b)
   and OldAgeHomeList.cshtml (with .cover-image.bg-background.p-b-t-2).
   Inherited style.css gives both wrappers excessive padding and pins
   .banner-section .header-text with bottom:70px (and top:50px !important
   @ ≤480px), starving the hero of height. We normalise here.
   ============================================================ */

/* Base (desktop ≥1200px) — neutralise inherited offsets, give consistent rhythm */
.contact-section {
	position: relative;
	display: block;
}
.contact-section > .banner-2,
.contact-section > .cover-image {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	min-height: 0;
}
.contact-section .header-text {
	position: relative;
	top: 0 !important;
	bottom: 0 !important;
	padding: 32px 0 !important;
	margin: 0 !important;
}
.contact-section .header-text > .container { max-width: 1240px; }
.contact-section .header-text h1 {
	font-family: var(--ds-font-display, "Roboto Slab", Georgia, serif);
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin-bottom: 18px;
}
.contact-section .header-text .row > .container.p-5 { padding: 0 !important; }
.contact-section .custom-add { display: flex; justify-content: center; }
.contact-section .item-search-tabs { width: 100%; }

/* Tablet landscape (≤1199px) */
@media (max-width: 1199px) {
	.contact-section .header-text { padding: 28px 0 !important; }
	.contact-section .header-text > .container { padding-left: 24px; padding-right: 24px; }
}

/* Tablet portrait (≤991px) */
@media (max-width: 991px) {
	.banner-section .header-text { position: relative; top: 0 !important; bottom: 0 !important; }
	.contact-section .header-text { padding: 24px 0 !important; }
	.contact-section .header-text h1 { font-size: clamp(24px, 4.4vw, 34px); margin-bottom: 14px; }
	.item-search-tabs.custom-search { margin-bottom: 24px; }
}

/* Large phone / small tablet (≤767px) */
@media (max-width: 767px) {
	.contact-section .header-text { padding: 20px 0 !important; }
	.contact-section .header-text > .container { padding-left: 16px; padding-right: 16px; }
	.contact-section .header-text h1 { font-size: clamp(22px, 5vw, 28px); margin-bottom: 12px; }
	.contact-section .mar-b-5 img { max-width: 200px; height: auto; margin: 0 auto; display: block; }
}

/* Phone (≤575px) */
@media (max-width: 575px) {
	.contact-section .header-text { padding: 16px 0 !important; }
	.contact-section .header-text > .container { padding-left: 14px; padding-right: 14px; }
	.contact-section .header-text h1 { font-size: 22px; margin-bottom: 10px; }
	.contact-section .mar-b-5 { margin-bottom: 10px !important; }
	.contact-section .mar-b-5 img { max-width: 160px; }
	.item-search-tabs.custom-search { margin-bottom: 16px; }
}

/* Small phone (≤380px) */
@media (max-width: 380px) {
	.contact-section .header-text { padding: 12px 0 !important; }
	.contact-section .header-text h1 { font-size: 20px; }
	.contact-section .mar-b-5 img { max-width: 140px; }
}

/* Landscape phones — keep the hero short so the search bar fits without scroll */
@media (max-height: 480px) and (orientation: landscape) and (max-width: 991px) {
	.contact-section .header-text { padding: 10px 0 !important; }
	.contact-section .header-text h1 { font-size: 20px; margin-bottom: 8px; }
	.contact-section .mar-b-5 { display: none; }
}

/* iOS / Android safe-area: respect notch on landscape orientation */
@supports (padding: max(0px)) {
	.contact-section .header-text > .container {
		padding-left: max(14px, env(safe-area-inset-left));
		padding-right: max(14px, env(safe-area-inset-right));
	}
}

/* ---------- 1. Outer frame: animated gradient bezel ---------- */
.item-search-tabs.custom-search {
	position: relative;
	border-radius: var(--ds-radius-out);
	padding: 4px;
	background: rgba(35, 33, 48, 0.92);
	background-size: 220% 220%;
	animation: ds-search-sheen 9s ease-in-out infinite;
	box-shadow:
		var(--ds-shadow-rest),
		0 2px 0 rgba(255,255,255,0.6) inset;
	transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.item-search-tabs.custom-search:hover,
.item-search-tabs.custom-search:focus-within {
	transform: translateY(-3px);
	box-shadow:
		var(--ds-shadow-lift),
		0 0 0 4px rgba(35, 33, 48,0.16);
}
@keyframes ds-search-sheen {
	0%,100% { background-position: 0% 50%; }
	50%     { background-position: 100% 50%; }
}

/* ---------- 2. White inner panel with subtle atmosphere ---------- */
.item-search-tabs .search-background {
	background: var(--ds-card);
	border-radius: var(--ds-radius-in);
	padding: 6px;
	position: relative;
	overflow: hidden;
}
.item-search-tabs .search-background::before {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(600px 120px at 10% 0%,  rgba(35, 33, 48,0.06), transparent 70%),
		radial-gradient(500px 120px at 100% 100%, rgba(74, 0, 163,0.07), transparent 70%);
	pointer-events: none;
}
.item-search-tabs .form.row { position: relative; }

/* ---------- 3. Field cells: dividers, hover/focus tint, leading icons ---------- */
.item-search-tabs .form-group {
	position: relative;
	border-radius: var(--ds-radius-cell);
	transition: background .25s ease, box-shadow .25s ease;
}
.item-search-tabs .form-group + .form-group::before {
	content: "";
	position: absolute;
	left: 0; top: 22%; bottom: 22%;
	width: 1px;
	background: var(--ds-blue-line);
}
.item-search-tabs .form-group:hover { background: var(--ds-blue-soft); }
.item-search-tabs .form-group:focus-within {
	background: rgba(35, 33, 48,0.08);
	box-shadow: inset 0 -2px 0 var(--ds-amber);
}

/* ============================================================
   Tom Select integration — homepage dropdowns (#statelist, #citylist)
   Tom Select wraps the <select> with a .ts-wrapper sibling.
   Make it look identical to the input field cells.
   ============================================================ */
.item-search-tabs .ts-wrapper {
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}
.item-search-tabs .ts-wrapper.single .ts-control,
.item-search-tabs .ts-wrapper .ts-control {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	min-height: var(--ds-h-desk);
	height: var(--ds-h-desk);
	padding: 0 36px 0 44px;
	display: flex;
	align-items: center;
	font-size: 15px;
	color: var(--ds-ink);
	border-radius: var(--ds-radius-cell);
	cursor: pointer;
}
.item-search-tabs .ts-wrapper .ts-control > input {
	color: var(--ds-ink) !important;
	background: transparent !important;
	font-size: 15px;
	min-width: 1px;
}
.item-search-tabs .ts-wrapper .ts-control > input::placeholder,
.item-search-tabs .ts-wrapper .ts-control .placeholder { color: var(--ds-mute); }

/* Caret */
.item-search-tabs .ts-wrapper.single .ts-control::after {
	content: "\f078";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--ds-mute);
	font-size: 11px;
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	transition: transform .2s ease, color .2s ease;
}
.item-search-tabs .ts-wrapper.single.dropdown-active .ts-control::after {
	transform: translateY(-50%) rotate(-180deg);
	color: var(--ds-amber);
}
.item-search-tabs .ts-wrapper.single .ts-control { position: relative; }

/* Clear button (×) */
.item-search-tabs .ts-wrapper .clear-button {
	right: 32px !important;
	color: var(--ds-mute) !important;
	opacity: .7;
}
.item-search-tabs .ts-wrapper .clear-button:hover { color: var(--ds-amber) !important; opacity: 1; }

/* Dropdown panel */
.item-search-tabs .ts-dropdown {
	margin-top: 8px;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 22px 50px -22px rgba(35, 33, 48,0.4);
	background: #fff;
	overflow: hidden;
	z-index: 60;
}
.item-search-tabs .ts-dropdown .ts-dropdown-content { padding: 6px; max-height: 280px; }
.item-search-tabs .ts-dropdown .option {
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: var(--ds-ink);
	cursor: pointer;
}
.item-search-tabs .ts-dropdown .option.active,
.item-search-tabs .ts-dropdown .option:hover { background: var(--ds-blue-soft); color: var(--ds-blue-deep); }
.item-search-tabs .ts-dropdown .option.selected { background: var(--ds-blue); color: #fff; }
.item-search-tabs .ts-dropdown .no-results { padding: 14px; color: var(--ds-mute); text-align: center; font-size: 13px; }

/* Responsive — match field heights at each breakpoint */
@media (max-width: 991px) {
	.item-search-tabs .ts-wrapper .ts-control { min-height: var(--ds-h-tab); height: var(--ds-h-tab); }
}
@media (max-width: 767px) {
	.item-search-tabs .ts-wrapper .ts-control { min-height: var(--ds-h-mob); height: var(--ds-h-mob); padding-left: 42px; padding-right: 32px; font-size: 14.5px; }
}
@media (max-width: 575px) {
	.item-search-tabs .ts-wrapper .ts-control,
	.item-search-tabs .ts-wrapper .ts-control > input { font-size: 16px; } /* prevent iOS auto-zoom */
}

/* Field controls (native input + native select) */
.item-search-tabs input.form-control,
.item-search-tabs select.form-control {
	border: 0 !important;
	background: transparent !important;
	height: var(--ds-h-desk) !important;
	line-height: var(--ds-h-desk) !important;
	font-size: 15px !important;
	color: var(--ds-ink) !important;
	padding-left: 44px !important;
	padding-right: 14px !important;
	border-radius: var(--ds-radius-cell) !important;
}
.item-search-tabs .form-control::placeholder { color: var(--ds-mute); }
.item-search-tabs .form-control:focus { outline: none; box-shadow: none; }

/* Leading FA icons via ::after on each cell */
.item-search-tabs .form-group::after {
	position: absolute;
	left: 16px; top: 50%;
	transform: translateY(-50%);
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--ds-blue);
	font-size: 15px;
	pointer-events: none;
	opacity: 0.78;
	transition: transform .25s ease, color .25s ease, opacity .25s ease;
}
.item-search-tabs .form-group:nth-child(1)::after { content: "\f3c5"; }  /* map-marker-alt */
.item-search-tabs .form-group:nth-child(2)::after { content: "\f64f"; }  /* city */
 /* magnifying-glass */
.item-search-tabs .form-group:hover::after,
.item-search-tabs .form-group:focus-within::after {
	color: var(--ds-amber);
	transform: translateY(-50%) scale(1.14);
	opacity: 1;
}

/* ---------- 4. Submit button ---------- */
.item-search-tabs #btn-search,
.item-search-tabs .btn-orange {
	position: relative;
	height: var(--ds-h-desk);
	width: 100%;
	border: 0;
	border-radius: var(--ds-radius-cell);
	color: #fff !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: var(--ds-amber) !important;
	box-shadow: 0 12px 26px -12px rgba(184,107,53,0.7);
	overflow: hidden;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.item-search-tabs #btn-search::before {
	content: "";
	position: absolute;
	top: 0; left: -60%;
	width: 60%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,0.38), transparent);
	transform: skewX(-20deg);
	transition: left .6s ease;
}
.item-search-tabs #btn-search:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 18px 34px -14px rgba(184,107,53,0.85);
}
.item-search-tabs #btn-search:hover::before { left: 120%; }
.item-search-tabs #btn-search:active { transform: translateY(1px); }
.item-search-tabs #btn-search i { margin-right: 6px; transition: transform .35s ease; }
.item-search-tabs #btn-search:hover i { transform: rotate(-12deg) scale(1.15); }

/* ---------- 5. Locality suggestion box ---------- */
.item-search-tabs #locality-box {
	position: absolute;
	left: 12px; right: 12px;
	top: calc(100% + 6px);
	z-index: 40;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 22px 50px -22px rgba(35, 33, 48,0.4);
	overflow: hidden;
	max-height: 320px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.item-search-tabs #locality-box:empty { box-shadow: none; }

/* ============================================================
   RESPONSIVE
   ≤1199 small laptop · ≤991 tablet · ≤767 large phone
   ≤575 phone · ≤380 small phone
   ============================================================ */

@media (max-width: 1199px) {
	.item-search-tabs input.form-control,
	.item-search-tabs select.form-control {
		font-size: 14.5px !important;
	}
}

/* Tablet — soften bezel, slightly shorter cells, kill vertical dividers */
@media (max-width: 991px) {
	.item-search-tabs.custom-search {
		border-radius: 16px;
		padding: 3px;
	}
	.item-search-tabs .search-background { padding: 4px; border-radius: 12px; }
	.item-search-tabs .form-group + .form-group::before { display: none; }
	.item-search-tabs .form-group { border-bottom: 1px solid rgba(35, 33, 48,0.10); }
	.item-search-tabs .form-group:last-of-type { border-bottom: 0; }
	.item-search-tabs input.form-control,
	.item-search-tabs select.form-control {
		height: var(--ds-h-tab) !important;
		line-height: var(--ds-h-tab) !important;
	}
	.item-search-tabs #btn-search,
	.item-search-tabs .btn-orange { height: var(--ds-h-tab); }
}

/* Tablet portrait & large phone — full stacking, generous touch targets */
@media (max-width: 767px) {
	.item-search-tabs.custom-search {
		border-radius: 14px;
		padding: 3px;
		animation-duration: 14s; /* slower sheen — easier on the eye on small screens */
	}
	.item-search-tabs .form.row { display: block; }
	.item-search-tabs .form-group {
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 2px 0;
	}
	.item-search-tabs input.form-control,
	.item-search-tabs select.form-control {
		height: var(--ds-h-mob) !important;
		line-height: var(--ds-h-mob) !important;
		font-size: 14.5px !important;
		padding-left: 42px !important;
	}
	.item-search-tabs .form-group::after { left: 14px; font-size: 14px; }
	.item-search-tabs #btn-search,
	.item-search-tabs .btn-orange {
		height: var(--ds-h-mob);
		margin-top: 6px;
		font-size: 15px;
	}
	.item-search-tabs #locality-box { left: 6px; right: 6px; }
}

/* Phone — tighter padding, full-width button */
@media (max-width: 575px) {
	.item-search-tabs.custom-search { border-radius: 12px; }
	.item-search-tabs .search-background { padding: 3px; border-radius: 10px; }
	.item-search-tabs .form-group { border-bottom-color: rgba(35, 33, 48,0.08); }
	.item-search-tabs input.form-control,
	.item-search-tabs select.form-control {
		font-size: 14px !important;
	}
	.item-search-tabs #btn-search,
	.item-search-tabs .btn-orange {
		height: 52px;
		font-size: 15px;
		letter-spacing: 0.04em;
	}
	.item-search-tabs #btn-search i { margin-right: 8px; }
}

/* Small phone — iPhone SE / older Android */
@media (max-width: 380px) {
	.item-search-tabs input.form-control,
	.item-search-tabs select.form-control {
		padding-left: 38px !important;
		font-size: 13.5px !important;
	}
	.item-search-tabs .form-group::after { left: 12px; font-size: 13px; }
	.item-search-tabs #btn-search { height: 50px; font-size: 14.5px; }
}

/* iOS / Android polish */
.item-search-tabs input,
.item-search-tabs select,
.item-search-tabs button {
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance: none;
}
/* Prevent iOS from auto-zooming when focusing an input <16px — bump to 16px */
@media (max-width: 575px) {
	.item-search-tabs input.form-control,
	.item-search-tabs select.form-control {
		font-size: 16px !important;
	}
}
@supports (padding: max(0px)) {
	.item-search-tabs.custom-search {
		margin-left: max(0px, env(safe-area-inset-left));
		margin-right: max(0px, env(safe-area-inset-right));
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.item-search-tabs.custom-search,
	.item-search-tabs.custom-search:hover,
	.item-search-tabs.custom-search:focus-within {
		animation: none;
		transform: none;
	}
	.item-search-tabs *,
	.item-search-tabs *::before,
	.item-search-tabs *::after { transition: none !important; }
}

/* Tom Select dropdown when appended to <body> (dropdownParent: 'body').
   Escapes ancestor overflow:hidden / stacking contexts on .search-background. */
body > .ts-dropdown {
	z-index: 10050;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 22px 50px -22px rgba(35, 33, 48,0.4);
	background: #fff;
	overflow: hidden;
}
body > .ts-dropdown .ts-dropdown-content { padding: 6px; max-height: 280px; }
body > .ts-dropdown .option {
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: var(--ds-ink, #1f2937);
	cursor: pointer;
}
body > .ts-dropdown .option.active,
body > .ts-dropdown .option:hover {
	background: var(--ds-blue-soft, var(--dm-sand));
	color: var(--ds-blue-deep, #232130);
}
body > .ts-dropdown .option.selected {
	background: var(--ds-blue, var(--dm-terracotta-deep));
	color: #fff;
}
body > .ts-dropdown .no-results {
	padding: 14px;
	color: var(--ds-mute, #6b7280);
	text-align: center;
	font-size: 13px;
}

/* Location access modal (#locationAccessModel) styling moved to layout.css
   so it renders consistently on every page (the modal markup + handlers
   live in _Layout.cshtml). */

/* ============================================================
   LOCATION PILL (#div_btnlocation)
   Injected dynamically by GetCurrentLocation() in common.js.
   Targets: #div_btnlocation a (no class on the <a>)
            #div_btnlocation .map, .marker, .dm-loc-addr (from JS html string)
   ============================================================ */

#div_btnlocation {
	width: 100%;
	margin-bottom: 14px;
	display: flex;
	justify-content: center;
}

#div_btnlocation a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px 9px 10px;
	border-radius: 999px;
	max-width: 540px;
	box-sizing: border-box;

	background: #ffffff;
	border: 1.5px solid rgba(35, 33, 48, 0.22);
	box-shadow: 0 4px 18px -8px rgba(35, 33, 48, 0.18),
	            0 1px 4px -2px rgba(35, 33, 48, 0.10);

	text-decoration: none;
	color: var(--ds-ink, #141a24);
	font-family: var(--dm-font-body, "Poppins", system-ui, sans-serif);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.01em;

	animation: dm-loc-pill-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
	            box-shadow 0.25s ease,
	            border-color 0.25s ease;
}

@keyframes dm-loc-pill-in {
	from {
		opacity: 0;
		transform: translateY(-10px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes dm-loc-ripple {
	0% {
		transform: scale(0.85);
		opacity: 0.70;
	}
	70% {
		transform: scale(1.55);
		opacity: 0;
	}
	100% {
		transform: scale(1.55);
		opacity: 0;
	}
}

#div_btnlocation .map {
	position: relative;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(35, 33, 48, 0.09);
}

#div_btnlocation .map::before,
#div_btnlocation .map::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: transparent;
	border: 2px solid rgba(35, 33, 48, 0.30);
	animation: dm-loc-ripple 2.6s ease-out infinite;
	pointer-events: none;
}

#div_btnlocation .map::after {
	animation-delay: 1.3s;
}

#div_btnlocation .marker {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dm-terracotta-deep);
	transition: background 0.25s ease;
}

#div_btnlocation .marker svg {
	width: 18px;
	height: 18px;
	display: block;
	flex-shrink: 0;
}

#div_btnlocation .marker svg path {
	fill: #ffffff;
	transition: fill 0.25s ease;
}

#div_btnlocation .dm-loc-addr {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#div_btnlocation a:hover,
#div_btnlocation a:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px -10px rgba(35, 33, 48, 0.26),
	            0 2px 8px -4px rgba(74, 0, 163, 0.18);
	border-color: rgba(74, 0, 163, 0.50);
	outline: none;
}

#div_btnlocation a:hover .marker,
#div_btnlocation a:focus-visible .marker {
	background: #e0884a;
}

#div_btnlocation a:hover .map::before,
#div_btnlocation a:hover .map::after,
#div_btnlocation a:focus-visible .map::before,
#div_btnlocation a:focus-visible .map::after {
	border-color: rgba(74, 0, 163, 0.40);
	animation-play-state: paused;
}

@media (max-width: 575px) {
	#div_btnlocation {
		margin-bottom: 10px;
		padding: 0 4px;
	}

	#div_btnlocation a {
		max-width: 100%;
		padding: 8px 14px 8px 8px;
		font-size: 13px;
		gap: 8px;
	}

	#div_btnlocation .map {
		width: 30px;
		height: 30px;
	}

	#div_btnlocation .marker {
		width: 24px;
		height: 24px;
	}

	#div_btnlocation .marker svg {
		width: 15px;
		height: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#div_btnlocation a {
		animation: none;
	}

	#div_btnlocation .map::before,
	#div_btnlocation .map::after {
		animation: none;
		opacity: 0;
	}

	#div_btnlocation a,
	#div_btnlocation a .marker,
	#div_btnlocation a .marker svg path {
		transition: none !important;
	}
}

/* ============================================================
   Modern search bar (.dm-hsearch) — shared (home + list pages)
   Clean white elevated pill; uses global --dm-* tokens.
   ============================================================ */
.dm-lst-searchbar { background: #fff; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--dm-sand-2); }
.dm-lst-searchbar .container { max-width: 1280px; }

.dm-hsearch { display: flex; align-items: stretch; gap: 0; margin: 0 auto;
	background: #fff; border: 1px solid var(--dm-sand-2); border-radius: 18px; padding: 8px 8px 8px 6px;
	box-shadow: 0 24px 54px -34px rgba(35, 33, 48,0.4), 0 8px 20px -16px rgba(35, 33, 48,0.2); }
.dm-hsearch__seg { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 8px 16px; text-align: left; }
.dm-hsearch__seg--grow { flex: 1.5 1 0; }
.dm-hsearch__seg label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dm-muted); padding-left: 26px; }
.dm-hsearch__ctl { display: flex; align-items: center; gap: 8px; }
.dm-hsearch__ctl > i { color: var(--dm-lime-deep); font-size: 14px; width: 18px; text-align: center; flex: 0 0 18px; }
.dm-hsearch__ctl .form-control { border: 0; background: transparent; padding: 4px 0; height: 30px; font-size: 15px; color: var(--dm-ink); box-shadow: none; width: 100%; font-family: var(--dm-font-body); }
.dm-hsearch__ctl .form-control:focus { outline: none; box-shadow: none; }
.dm-hsearch__ctl .form-control::placeholder { color: #a9a08a; }
.dm-hsearch__div { width: 1px; align-self: center; height: 40px; background: var(--dm-sand-2); flex: 0 0 1px; }
.dm-hsearch__btn { flex: 0 0 auto; align-self: center; margin-left: 6px; display: inline-flex; align-items: center; gap: 9px;
	padding: 0 28px; height: 54px; border: 0; border-radius: 13px; cursor: pointer;
	background: var(--dm-lime); color: var(--dm-accent-ink);
	font-family: var(--dm-font-body); font-weight: 700; font-size: 15.5px;
	box-shadow: 0 14px 26px -12px var(--dm-accent-glow); transition: transform .2s ease, box-shadow .2s ease; }
.dm-hsearch__btn:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px var(--dm-accent-glow); }
/* TomSelect inside the modern search */
.dm-hsearch .ts-wrapper { flex: 1; min-width: 0; }
.dm-hsearch .ts-control { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 4px 0 !important; min-height: 30px; font-size: 15px; color: var(--dm-ink); }
.dm-hsearch .ts-dropdown { border: 1px solid var(--dm-sand-2); border-radius: 12px; box-shadow: var(--dm-shadow-md); margin-top: 8px; overflow: hidden; }
.dm-hsearch .ts-dropdown .active { background: var(--dm-sand); color: var(--dm-ink); }
@media (max-width: 760px) {
	.dm-hsearch { flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; }
	.dm-hsearch__div { display: none; }
	.dm-hsearch__seg { padding: 10px 12px; border-bottom: 1px solid var(--dm-sand-2); }
	.dm-hsearch__seg:last-of-type { border-bottom: 0; }
	.dm-hsearch__btn { width: 100%; justify-content: center; margin: 6px 0 0; }
}
