/* Elite Crest Booking — villa search bar */

.ecb {
	position: relative;
	width: 100%;
	font-family: var(--font-body, Inter, system-ui, sans-serif);
	color: var(--ink, #2b2118);
}

.ecb-bar {
	display: flex;
	align-items: stretch;
	width: 100%;
	background: #fffcf6;
	border: 1px solid rgba(43, 33, 24, 0.12);
	border-radius: 18px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 16px 40px rgba(58, 34, 18, 0.12);
	padding: 0.4rem 0.45rem;
	gap: 0;
}

.ecb-bar__seg {
	appearance: none;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	min-width: 0;
	flex: 1;
	padding: 0.65rem 1.05rem;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	transition: background 0.2s ease;
	font-family: inherit;
}

.ecb-bar__seg:hover,
.ecb-bar__seg.is-open {
	background: rgba(245, 240, 228, 0.9);
}

.ecb-bar__label {
	font-family: var(--font-mono, "Space Mono", monospace);
	font-size: 0.64rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--amber-deep, #b5741c);
	line-height: 1.2;
}

.ecb-bar__value {
	font-family: var(--font-display, Fraunces, Georgia, serif);
	font-size: 0.98rem;
	font-weight: 450;
	color: rgba(43, 33, 24, 0.55);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.25;
}

.ecb-bar__seg.is-filled .ecb-bar__value {
	color: var(--ink, #2b2118);
}

.ecb-bar__split {
	width: 1px;
	align-self: center;
	height: 2.15rem;
	background: rgba(43, 33, 24, 0.12);
	flex-shrink: 0;
}

.ecb-bar__go {
	flex-shrink: 0;
	align-self: center;
	appearance: none;
	border: 1px solid var(--terracotta, #ad4a28);
	border-radius: 100px;
	background: var(--terracotta, #ad4a28);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.7rem;
	padding: 0.55rem 1.2rem;
	margin: 0 0.15rem 0 0.35rem;
	font-family: var(--font-body, Inter, sans-serif);
	font-size: 0.82rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ecb-bar__go:hover {
	background: var(--amber-deep, #b5741c);
	border-color: var(--amber-deep, #b5741c);
	transform: translateY(-1px);
}

.ecb-bar__go svg {
	display: none;
}

.ecb-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(8% + 0.7rem);
	z-index: 20;
	background: #fffcf6;
	border: 1px solid rgba(43, 33, 24, 0.1);
	border-radius: 20px;
	padding: 1.25rem 1.3rem 1.15rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 18px 48px rgba(58, 34, 18, 0.12);
}

.ecb-panel::before {
	content: "";
	position: absolute;
	left: 1.35rem;
	right: 1.35rem;
	top: 0;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--terracotta, #ad4a28), var(--amber, #d6912e));
}

.ecb-panel[hidden] {
	display: none !important;
}

.ecb-panel__title {
	margin: 0 0 0.35rem;
	font-family: var(--font-display, Fraunces, Georgia, serif);
	font-size: 1.15rem;
	font-weight: 450;
}

.ecb-panel__copy {
	margin: 0;
	font-size: 0.95rem;
}

.ecb-panel__hint {
	margin: 0.45rem 0 0;
	font-size: 0.82rem;
	color: rgba(43, 33, 24, 0.58);
}

.ecb-cal__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.ecb-cal__label {
	margin: 0;
	font-family: var(--font-display, Fraunces, Georgia, serif);
	font-weight: 450;
	font-size: 1.05rem;
}

.ecb-cal__nav {
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	border: 1px solid rgba(43, 33, 24, 0.16);
	background: #fff;
	color: var(--ink, #2b2118);
	cursor: pointer;
	font-size: 1.15rem;
	line-height: 1;
}

.ecb-cal__nav:hover {
	border-color: var(--terracotta, #ad4a28);
	color: var(--terracotta, #ad4a28);
}

.ecb-cal {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 760px) {
	.ecb-cal {
		grid-template-columns: 1fr 1fr;
	}

	.ecb-cal__month-title {
		display: none;
	}
}

.ecb-cal__month-title {
	margin: 0 0 0.45rem;
	font-family: var(--font-mono, "Space Mono", monospace);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(43, 33, 24, 0.5);
}

.ecb-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.28rem;
}

.ecb-cal__dow {
	text-align: center;
	font-family: var(--font-mono, "Space Mono", monospace);
	font-size: 0.62rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(43, 33, 24, 0.45);
	padding-bottom: 0.2rem;
}

.ecb-cal__empty {
	min-height: 2.55rem;
}

.ecb-cal__day {
	position: relative;
	appearance: none;
	border: 1px solid transparent;
	background: #fff;
	border-radius: 10px;
	min-height: 2.7rem;
	font-family: var(--font-body, Inter, sans-serif);
	font-size: 0.86rem;
	color: var(--ink, #2b2118);
	cursor: pointer;
}

.ecb-cal__day:hover:not(:disabled) {
	border-color: rgba(173, 74, 40, 0.4);
	background: #fff8ef;
}

.ecb-cal__day.is-past {
	background: transparent;
	color: rgba(43, 33, 24, 0.28);
	cursor: default;
}

.ecb-cal__day.is-in-stay {
	background: rgba(173, 74, 40, 0.12);
	border-radius: 10px;
}

.ecb-cal__day.is-arrival,
.ecb-cal__day.is-departure {
	background: var(--terracotta, #ad4a28);
	color: #fff;
}

.ecb-cal__day.is-booked {
	color: rgba(43, 33, 24, 0.42);
	cursor: not-allowed;
	background:
		repeating-linear-gradient(
			-48deg,
			rgba(43, 33, 24, 0.05),
			rgba(43, 33, 24, 0.05) 3px,
			rgba(255, 255, 255, 0.5) 3px,
			rgba(255, 255, 255, 0.5) 7px
		);
}

.ecb-cal__day:disabled {
	opacity: 1;
}

.ecb-cal__booked-tag {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.16rem;
	font-family: var(--font-mono, "Space Mono", monospace);
	font-size: 0.5rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--terracotta, #ad4a28);
}

.ecb-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	width: 1.6rem;
	height: 0.9rem;
	padding: 0.1rem;
	border-radius: 999px;
	background: var(--terracotta, #ad4a28);
}

.ecb-toggle span {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: #fff;
}

.ecb-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid rgba(43, 33, 24, 0.08);
	font-size: 0.78rem;
	color: rgba(43, 33, 24, 0.62);
}

.ecb-cal__legend li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.ecb-swatch {
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 4px;
	border: 1px solid rgba(43, 33, 24, 0.16);
	background: #fff;
}

.ecb-swatch--pick {
	background: var(--terracotta, #ad4a28);
	border-color: var(--terracotta, #ad4a28);
}

.ecb-cal__hours {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	color: rgba(43, 33, 24, 0.5);
}

.ecb-who {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid rgba(43, 33, 24, 0.08);
}

.ecb-who:last-of-type {
	border-bottom: 0;
	padding-bottom: 0.15rem;
}

.ecb-who strong {
	display: block;
	font-family: var(--font-display, Fraunces, Georgia, serif);
	font-size: 1.02rem;
	font-weight: 450;
}

.ecb-who span {
	display: block;
	font-size: 0.78rem;
	color: rgba(43, 33, 24, 0.55);
}

.ecb-who__ctrl {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.ecb-who__ctrl button {
	width: 1.95rem;
	height: 1.95rem;
	border-radius: 999px;
	border: 1px solid rgba(43, 33, 24, 0.16);
	background: #f7f2e6;
	cursor: pointer;
	font-size: 1.05rem;
	line-height: 1;
	color: var(--ink, #2b2118);
}

.ecb-who__ctrl button:hover {
	border-color: var(--terracotta, #ad4a28);
	color: var(--terracotta, #ad4a28);
}

.ecb-who__ctrl em {
	font-family: var(--font-display, Fraunces, Georgia, serif);
	font-style: normal;
	min-width: 1.2rem;
	text-align: center;
	font-size: 1.15rem;
	font-weight: 450;
}

.ecb-reserve,
.ecb-success {
	position: relative;
	margin-top: 1rem;
	background: #fffcf6;
	border: 1px solid rgba(43, 33, 24, 0.1);
	border-radius: 20px;
	padding: 1.35rem 1.3rem 1.25rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 16px 40px rgba(58, 34, 18, 0.08);
}

.ecb-reserve::before,
.ecb-success::before {
	content: "";
	position: absolute;
	left: 1.35rem;
	right: 1.35rem;
	top: 0;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--terracotta, #ad4a28), var(--amber, #d6912e));
}

.ecb-reserve[hidden],
.ecb-success[hidden] {
	display: none !important;
}

.ecb-reserve label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0 0 0.75rem;
	font-family: var(--font-mono, "Space Mono", monospace);
	font-size: 0.62rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(43, 33, 24, 0.55);
}

.ecb-reserve input {
	border: 1px solid rgba(43, 33, 24, 0.14);
	border-radius: 10px;
	padding: 0.7rem 0.85rem;
	font-family: var(--font-body, Inter, sans-serif);
	font-size: 0.92rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ink, #2b2118);
	background: #fff;
	min-height: 2.65rem;
}

.ecb-reserve input:focus {
	outline: none;
	border-color: var(--terracotta, #ad4a28);
	box-shadow: 0 0 0 3px rgba(173, 74, 40, 0.12);
}

.ecb-reserve input[name="guest_gstin"] {
	text-transform: uppercase;
}

.ecb-reserve input.is-invalid {
	border-color: #8f1d14;
	box-shadow: 0 0 0 3px rgba(143, 29, 20, 0.1);
}

.ecb-field__error {
	display: block;
	margin: 0;
	font-family: var(--font-body, Inter, sans-serif);
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.35;
	text-transform: none;
	color: #8f1d14;
}

.ecb-field__error[hidden] {
	display: none !important;
}

.ecb-reserve__summary {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--ink, #2b2118);
}

.ecb-captcha {
	min-height: 78px;
	margin: 0 0 0.85rem;
}

.ecb-reserve__note {
	margin: 0 0 0.7rem;
	font-size: 0.8rem;
	color: rgba(43, 33, 24, 0.58);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	font-family: var(--font-body, Inter, sans-serif);
}

.ecb-alert {
	margin: 0 0 0.7rem;
	padding: 0.65rem 0.8rem;
	border-radius: 10px;
	font-size: 0.86rem;
}

.ecb-alert.is-error {
	background: rgba(180, 35, 24, 0.08);
	color: #8f1d14;
}

.ecb-reserve__submit {
	width: 100%;
	border: 1px solid var(--terracotta, #ad4a28);
	border-radius: 100px;
	background: var(--terracotta, #ad4a28);
	color: #fff;
	font-family: var(--font-body, Inter, sans-serif);
	font-size: 0.88rem;
	font-weight: 500;
	padding: 0.82rem 1.2rem;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.ecb-reserve__submit:hover {
	background: var(--amber-deep, #b5741c);
	border-color: var(--amber-deep, #b5741c);
}

.ecb-success h3 {
	margin: 0.2rem 0 0.4rem;
	font-family: var(--font-display, Fraunces, Georgia, serif);
	font-size: 1.55rem;
	font-weight: 450;
}

.ecb-success p {
	margin: 0;
	color: rgba(43, 33, 24, 0.68);
}

.ecb-rate-line {
	margin: 0.65rem 0 0;
	font-size: 0.78rem;
	color: rgba(43, 33, 24, 0.62);
	text-align: center;
}

.hero__search .ecb-rate-line {
	color: rgba(245, 240, 228, 0.88);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.ecb-price {
	margin-top: 0.85rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(43, 33, 24, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ecb-price--card {
	margin: 0 0 1rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid rgba(43, 33, 24, 0.1);
	border-radius: 12px;
	background: rgba(245, 240, 228, 0.55);
}

.ecb-price[hidden] {
	display: none !important;
}

.ecb-price__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.86rem;
	color: rgba(43, 33, 24, 0.7);
}

.ecb-price__row[hidden] {
	display: none !important;
}

.ecb-price__row strong {
	font-weight: 600;
	color: var(--ink, #2b2118);
}

.ecb-price__row--total {
	margin-top: 0.2rem;
	padding-top: 0.45rem;
	border-top: 1px dashed rgba(43, 33, 24, 0.12);
	font-family: var(--font-display, Fraunces, Georgia, serif);
	font-size: 1.05rem;
	color: var(--ink, #2b2118);
}

.ecb-manage {
	margin-top: 1rem;
	padding: 1rem 1.15rem;
	border-radius: 16px;
	background: rgba(173, 74, 40, 0.08);
	border: 1px solid rgba(173, 74, 40, 0.18);
}

.ecb-manage p {
	margin: 0.25rem 0 0;
	font-size: 0.9rem;
	color: rgba(43, 33, 24, 0.72);
}

.ecb-reserve__cancel {
	width: 100%;
	margin-top: 0.65rem;
	border: 1px solid rgba(43, 33, 24, 0.28);
	border-radius: 100px;
	background: transparent;
	color: var(--ink, #2b2118);
	font-family: var(--font-body, Inter, sans-serif);
	font-size: 0.86rem;
	font-weight: 500;
	padding: 0.78rem 1.2rem;
	cursor: pointer;
}

.ecb-reserve__cancel:hover {
	border-color: #8f1d14;
	color: #8f1d14;
}

.ecb-success__manage {
	margin-top: 0.75rem !important;
}

.ecb-success__manage a {
	color: var(--terracotta, #ad4a28);
	text-decoration: underline;
}

.ecb-success [data-pay-now] {
	margin-top: 1rem;
}

.ecb-reserve [data-pay-now] {
	margin-top: 0.65rem;
}

.hero__search {
	position: absolute;
	z-index: 6;
	left: 50%;
	top: calc(var(--header-h, 5.2rem) + 1.5rem);
	transform: translateX(-50%);
	width: min(880px, calc(100% - 1.5rem));
	pointer-events: auto;
}

.hero__search .ecb-bar {
	background: rgba(255, 252, 246, 0.96);
}

.hero__search .ecb-panel {
	pointer-events: auto;
}

.ecb--home .ecb-panel {
	top: calc(60% + 0.7rem);
}

.ecb--book {
	margin-top: 0.15rem;
}

@media (max-width: 720px) {
	.ecb-bar {
		flex-wrap: wrap;
		border-radius: 16px;
		padding: 0.45rem 0.45rem 3.4rem;
		position: relative;
	}

	.ecb-bar__split {
		display: none;
	}

	.ecb-bar__seg {
		flex: 1 1 100%;
		padding: 0.5rem 0.8rem;
	}

	.ecb-bar__go {
		position: absolute;
		left: 0.55rem;
		right: 0.55rem;
		bottom: 0.55rem;
		margin: 0;
		width: auto;
	}

	.ecb-cal__booked-tag {
		display: none;
	}

	.hero__search {
		top: calc(var(--header-h, 4.5rem) + 0.85rem);
	}
}
