/* StayMarket – original marketplace presentation */

:root {
	--sm-ink: #1c1917;
	--sm-muted: #78716c;
	--sm-paper: #fffaf6;
	--sm-sand: #f5f0ea;
	--sm-line: #e7e0d8;
	--sm-accent: #c45c26;
	--sm-accent-dark: #9a3f14;
	--sm-radius: 16px;
	--sm-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
	--sm-max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body.staymarket {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	color: var(--sm-ink);
	background: var(--sm-paper);
	line-height: 1.5;
	overflow-x: hidden;
	max-width: 100%;
}
img, video, iframe, svg, canvas {
	max-width: 100%;
	height: auto;
}
.sm-page,
.sm-main,
.amp-search-page,
.amp-search-form,
.amp-wrapper,
.amp-dashboard,
.amp-table-wrap,
.amp-properties-table-wrap {
	max-width: 100%;
	box-sizing: border-box;
}
.amp-table-wrap,
.amp-properties-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sm-skip {
	position: absolute;
	left: -999px;
	top: 0;
}
.sm-skip:focus { left: 8px; background: #fff; padding: 8px; z-index: 100; }

.sm-header {
	background: rgba(255, 250, 246, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--sm-line);
	z-index: 40;
}
.sm-sticky-header .sm-header { position: sticky; top: 0; }

.sm-header-inner {
	max-width: var(--sm-max);
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.sm-logo-text {
	font-family: Fraunces, Georgia, serif;
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--sm-ink);
	text-decoration: none;
}

.sm-nav-center { flex: 1; }
.sm-cats {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}
.sm-cats a { color: var(--sm-ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.sm-cats a:hover { color: var(--sm-accent); }

.sm-nav-right { display: flex; align-items: center; gap: 10px; }
.sm-link-quiet { color: var(--sm-ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; }

.sm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 10px 16px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
}
.sm-btn-solid { background: var(--sm-accent); color: #fff; }
.sm-btn-solid:hover { background: var(--sm-accent-dark); color: #fff; }
.sm-btn-ghost { background: transparent; border-color: var(--sm-line); color: var(--sm-ink); }

.sm-icon-btn {
	background: none;
	border: 0;
	font-size: 1.1rem;
	text-decoration: none;
	color: var(--sm-ink);
}
.sm-avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.sm-avatar-btn img { border-radius: 50%; display: block; }
.sm-user-menu { position: relative; }
.sm-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	background: #fff;
	border: 1px solid var(--sm-line);
	border-radius: 12px;
	min-width: 200px;
	box-shadow: var(--sm-shadow);
	padding: 8px 0;
	z-index: 50;
}
.sm-dropdown a {
	display: block;
	padding: 8px 14px;
	color: var(--sm-ink);
	text-decoration: none;
}
.sm-dropdown a:hover { background: var(--sm-sand); }

.sm-burger {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: 0;
	padding: 6px;
}
.sm-burger span { width: 18px; height: 2px; background: var(--sm-ink); display: block; }

.sm-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(320px, 88vw);
	background: #fff;
	z-index: 60;
	padding: 24px;
	box-shadow: var(--sm-shadow);
}
.sm-drawer nav { display: flex; flex-direction: column; gap: 12px; }
.sm-drawer a { color: var(--sm-ink); text-decoration: none; font-weight: 500; }

.sm-main { min-height: 60vh; }

/* Hero */
.sm-hero {
	background:
		radial-gradient(1200px 400px at 10% -10%, #f3d7c4 0%, transparent 50%),
		linear-gradient(180deg, #f8efe6 0%, var(--sm-paper) 100%);
	padding: 56px 20px 40px;
}
.sm-hero-inner { max-width: var(--sm-max); margin: 0 auto; text-align: center; }
.sm-hero h1 {
	font-family: Fraunces, Georgia, serif;
	font-size: clamp(2rem, 5vw, 3.4rem);
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}
.sm-hero p { color: var(--sm-muted); margin: 0 0 28px; font-size: 1.1rem; }

.sm-search {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 0.7fr auto;
	gap: 8px;
	background: #fff;
	padding: 10px;
	border-radius: 999px;
	border: 1px solid var(--sm-line);
	box-shadow: var(--sm-shadow);
	text-align: left;
	max-width: 980px;
	margin: 0 auto;
}
.sm-search label { display: flex; flex-direction: column; padding: 6px 14px; }
.sm-search label span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sm-muted); }
.sm-search input {
	border: 0;
	background: transparent;
	font: inherit;
	padding: 4px 0 0;
	color: var(--sm-ink);
}
.sm-search input:focus { outline: none; }

.sm-row, .sm-destinations, .sm-why, .sm-host-cta, .sm-page, .sm-property {
	max-width: var(--sm-max);
	margin: 0 auto;
	padding: 36px 20px;
}

.sm-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sm-row-head h2, .sm-destinations h2, .sm-why h2 {
	font-family: Fraunces, Georgia, serif;
	font-size: 1.6rem;
	margin: 0;
}

.sm-carousel {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}
.sm-carousel::-webkit-scrollbar { height: 6px; }
.sm-carousel::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 99px; }

.sm-card {
	flex: 0 0 260px;
	scroll-snap-align: start;
	background: #fff;
	border-radius: var(--sm-radius);
	overflow: hidden;
	border: 1px solid var(--sm-line);
}
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.sm-grid .sm-card { flex: none; }

.sm-card-media { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; }
.sm-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sm-card-media:hover img { transform: scale(1.04); }
.sm-card-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #efe7de, #d9cfc4); }
.sm-badge {
	position: absolute;
	left: 10px; top: 10px;
	background: #fff;
	border-radius: 999px;
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 700;
}
.sm-card-body { padding: 12px 14px 16px; }
.sm-card-body h3 { margin: 0 0 4px; font-size: 1rem; }
.sm-card-body h3 a { color: inherit; text-decoration: none; }
.sm-muted { color: var(--sm-muted); margin: 0; font-size: 0.9rem; }
.sm-meta { margin: 6px 0; font-size: 0.85rem; color: var(--sm-muted); }
.sm-price { margin: 8px 0 0; }
.sm-price span { color: var(--sm-muted); font-weight: 400; font-size: 0.85rem; }
.sm-rating { float: right; }

.sm-dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.sm-dest {
	display: flex; align-items: flex-end;
	min-height: 140px;
	padding: 16px;
	border-radius: var(--sm-radius);
	text-decoration: none;
	color: #fff;
	font-weight: 700;
	background: linear-gradient(160deg, #c45c26, #7c2d12);
}
.sm-dest:nth-child(2) { background: linear-gradient(160deg, #44403c, #1c1917); }
.sm-dest:nth-child(3) { background: linear-gradient(160deg, #0f766e, #134e4a); }
.sm-dest:nth-child(4) { background: linear-gradient(160deg, #7c3aed, #4c1d95); }

.sm-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.sm-why-grid div { background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); padding: 20px; }
.sm-why-grid h3 { margin-top: 0; }

.sm-host-cta {
	background: var(--sm-ink);
	color: #fff;
	border-radius: 24px;
	margin: 20px auto 48px;
}
.sm-host-cta h2 { font-family: Fraunces, Georgia, serif; margin-top: 0; }

.sm-footer { border-top: 1px solid var(--sm-line); background: #faf6f1; padding: 40px 20px 100px; }
.sm-footer-grid { max-width: var(--sm-max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.sm-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; }
.sm-footer ul { list-style: none; padding: 0; margin: 0; }
.sm-footer a { color: var(--sm-ink); text-decoration: none; }
.sm-copy { max-width: var(--sm-max); margin: 28px auto 0; color: var(--sm-muted); font-size: 0.85rem; }
.sm-social { display: flex; gap: 10px; margin-top: 10px; }

.sm-bottom-nav { display: none; }

.sm-page-title { font-family: Fraunces, Georgia, serif; }

.sm-property-head h1 { font-family: Fraunces, Georgia, serif; margin-bottom: 4px; }
.sm-gallery img { width: 100%; border-radius: var(--sm-radius); max-height: 520px; object-fit: cover; }
.sm-property-grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 28px; margin-top: 24px; }
.sm-facts { display: flex; gap: 16px; list-style: none; padding: 0; color: var(--sm-muted); }
.sm-book-card {
	position: sticky; top: 88px;
	background: #fff;
	border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius);
	padding: 20px;
	box-shadow: var(--sm-shadow);
}

/* Plugin surfaces */
.amp-wrapper, .amp-dashboard, .amp-auth-wrapper {
	max-width: 1080px !important;
}
.amp-auth-wrapper { border-radius: var(--sm-radius) !important; }
.amp-btn-primary, .amp-btn.amp-btn-primary {
	background: var(--sm-accent) !important;
	border-color: var(--sm-accent) !important;
	color: #fff !important;
	border-radius: 999px !important;
}
.amp-search-form {
	max-width: 100%;
	box-sizing: border-box;
}
.amp-search-form .amp-search-primary {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr) auto;
	gap: 8px;
	align-items: end;
}
.amp-search-form .amp-form-row,
.amp-search-form .amp-search-submit {
	min-width: 0;
	margin-bottom: 0;
}
.amp-search-form input,
.amp-search-form select,
.amp-search-form button {
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}
.amp-search-form .amp-search-submit .amp-btn {
	width: 100%;
	white-space: nowrap;
}

@media (max-width: 900px) {
	.sm-nav-center, .sm-link-quiet { display: none; }
	.sm-burger { display: flex; }
	.sm-search { grid-template-columns: 1fr; border-radius: var(--sm-radius); }
	.sm-dest-grid, .sm-why-grid, .sm-footer-grid, .sm-property-grid { grid-template-columns: 1fr; }
	.sm-book-card { position: static; }
	.sm-header-inner { padding: 10px 12px; gap: 8px; }
	.sm-nav-right { gap: 6px; }
	.sm-btn { padding: 8px 12px; font-size: 0.9rem; }
	.sm-page, .amp-search-page, .amp-wrapper, .amp-dashboard {
		padding-left: 12px !important;
		padding-right: 12px !important;
		max-width: 100% !important;
	}
	.amp-search-form .amp-search-primary {
		grid-template-columns: 1fr 1fr;
	}
	.amp-search-form .amp-search-destination,
	.amp-search-form .amp-search-submit {
		grid-column: 1 / -1;
	}
	.sm-has-bottom-nav .sm-bottom-nav {
		display: flex;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		background: #fff;
		border-top: 1px solid var(--sm-line);
		justify-content: space-around;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		z-index: 30;
		font-size: 12px;
	}
	.sm-bottom-nav a { color: var(--sm-ink); text-decoration: none; font-weight: 600; }
	.sm-footer { padding-bottom: 120px; }
}

@media (max-width: 600px) {
	.amp-search-form .amp-search-primary,
	.amp-search-primary {
		grid-template-columns: 1fr !important;
	}
	.amp-search-form .amp-search-destination,
	.amp-search-form .amp-search-submit,
	.amp-search-submit {
		grid-column: auto !important;
	}
	.amp-results-header,
	.amp-results-controls {
		flex-direction: column;
		align-items: stretch;
	}
	.amp-properties-grid,
	.sm-grid {
		grid-template-columns: 1fr 1fr !important;
		gap: 12px;
	}
}

/* Plugin listing inside the theme shell */
.sm-property-wrap {
	max-width: var(--sm-max);
	margin: 0 auto;
	padding: 24px 20px 48px;
}
.sm-property-wrap .amp-single-property { background: transparent; }
.sm-property-wrap .amp-property-layout {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr;
	gap: 32px;
	align-items: start;
}
.sm-property-wrap .amp-booking-widget,
.sm-property-wrap .amp-property-sidebar .amp-booking-widget {
	position: sticky;
	top: 88px;
	background: #fff;
	border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius);
	padding: 20px;
	box-shadow: var(--sm-shadow);
}
@media (max-width: 900px) {
	.sm-property-wrap .amp-property-layout { grid-template-columns: 1fr; }
	.sm-property-wrap .amp-booking-widget { position: static; }
}

/* ========== Site-wide mobile fit ========== */
.sm-page,
.sm-hero,
.sm-hero-inner,
.sm-row,
.sm-property,
.sm-property-wrap,
.sm-footer,
.sm-footer-grid,
.sm-search,
.sm-carousel {
	max-width: 100%;
	box-sizing: border-box;
}
.sm-search input,
.sm-search button {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.sm-facts { flex-wrap: wrap; }
.sm-carousel .sm-card {
	flex: 0 0 min(280px, 82vw);
	max-width: 82vw;
}
.sm-page-title,
.sm-hero h1,
.sm-property-head h1 {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 700px) {
	.sm-header-inner { flex-wrap: nowrap; min-width: 0; }
	.sm-brand { min-width: 0; overflow: hidden; }
	.sm-logo-text { font-size: 1.15rem; }
	.sm-page, .sm-row, .sm-destinations, .sm-why, .sm-host-cta, .sm-property, .sm-property-wrap {
		padding-left: 12px;
		padding-right: 12px;
	}
	.sm-hero { padding: 28px 12px 24px; }
	.amp-search-form,
	.amp-search-page,
	.amp-dashboard,
	.amp-single-property,
	.amp-wrapper,
	.amp-wizard,
	.amp-messages,
	.amp-messages-layout {
		max-width: 100% !important;
		overflow-x: hidden;
	}
	.amp-property-layout,
	.sm-property-wrap .amp-property-layout,
	.amp-map-layout,
	.amp-messages-layout,
	.amp-messages {
		grid-template-columns: 1fr !important;
	}
	.amp-table,
	table.amp-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* ========== Feed / rails / tab bar ========== */
body.staymarket {
	background: #fff;
}
.sm-hero-feed {
	background: #fff;
	padding: 16px 16px 8px;
}
.sm-hero-feed .sm-hero-inner { text-align: left; max-width: var(--sm-max); }
.sm-search-wrap { max-width: 980px; margin: 0 auto 14px; }
.sm-search-pill {
	width: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid #e5e5e5;
	box-shadow: 0 6px 20px rgba(0,0,0,.08);
	background: #fff;
	border-radius: 999px;
	padding: 14px 18px;
	font: inherit;
	font-weight: 600;
	color: var(--sm-ink);
	cursor: pointer;
}
.sm-search-pill-icon { display: flex; color: var(--sm-ink); }

.sm-chips {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 4px 2px 12px;
	scrollbar-width: none;
}
.sm-chips::-webkit-scrollbar { display: none; }
.sm-chip {
	flex: 0 0 auto;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 8px 14px;
	text-decoration: none;
	color: var(--sm-ink);
	font-size: 13px;
	font-weight: 600;
	background: #fff;
	white-space: nowrap;
}
.sm-chip.is-active {
	background: var(--sm-ink);
	color: #fff;
	border-color: var(--sm-ink);
}

.sm-feed { padding-bottom: 24px; }
.sm-rail {
	max-width: var(--sm-max);
	margin: 0 auto;
	padding: 8px 0 18px;
}
.sm-rail .sm-row-head {
	padding: 0 16px;
	margin-bottom: 10px;
}
.sm-rail .sm-row-head h2 {
	font-family: Inter, system-ui, sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.sm-row-more,
.sm-rail .sm-prev {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--sm-ink);
	font-size: 16px;
	cursor: pointer;
}
.sm-carousel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 16px;
	padding: 0 16px 8px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.sm-carousel::-webkit-scrollbar { display: none; }
.sm-carousel .sm-card {
	flex: 0 0 calc((100% - 12px) / 2.12);
	max-width: calc((100% - 12px) / 2.12);
	scroll-snap-align: start;
	min-width: 0;
}
@media (min-width: 760px) {
	.sm-carousel .sm-card {
		flex-basis: calc((100% - 36px) / 4);
		max-width: calc((100% - 36px) / 4);
	}
}

.sm-card { background: transparent; }
.sm-card-media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	background: #eee;
}
.sm-card-media img,
.sm-card-ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sm-card-ph { background: linear-gradient(135deg, #efe7df, #ddd); }
.sm-badge {
	position: absolute;
	left: 8px;
	top: 8px;
	background: #fff;
	color: var(--sm-ink);
	font-size: 11px;
	font-weight: 700;
	padding: 5px 8px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.sm-heart {
	position: absolute;
	right: 8px;
	top: 8px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	text-shadow: 0 1px 4px rgba(0,0,0,.45);
	padding: 4px;
	z-index: 2;
}
.sm-heart.is-active { color: #e11d48; text-shadow: none; }
.sm-card-body { padding: 8px 2px 0; }
.sm-card-body h3 {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 2px;
	line-height: 1.3;
}
.sm-card-body h3 a { color: var(--sm-ink); text-decoration: none; }
.sm-price-line {
	margin: 0;
	font-size: 12.5px;
	color: #444;
}
.sm-price-line strong { font-weight: 600; color: var(--sm-ink); }
.sm-rating { float: right; color: var(--sm-ink); }

.sm-host-cta {
	margin: 12px 16px 32px;
	border-radius: 20px;
	padding: 28px 22px;
	background: linear-gradient(135deg, #2b211c, #5a3a2a);
	color: #fff;
}
.sm-host-cta h2 { color: #fff; font-family: Fraunces, Georgia, serif; }
.sm-host-cta p { color: rgba(255,255,255,.82); }

.sm-tabbar {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	background: #fff;
	border-top: 1px solid #eee;
	justify-content: space-around;
	align-items: flex-end;
	padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
	z-index: 80;
}
.sm-tabbar a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-decoration: none;
	color: #737373;
	font-size: 10px;
	font-weight: 600;
}
.sm-tabbar a.is-active { color: var(--sm-accent); }
.sm-tabbar svg { display: block; }

@media (max-width: 900px) {
	.sm-tabbar { display: flex; }
	.sm-has-bottom-nav .sm-bottom-nav { display: none !important; }
	.sm-footer { padding-bottom: 92px; }
	.sm-main { padding-bottom: 72px; }
	.sm-nav-right .sm-btn,
	.sm-link-quiet { display: none; }
	.sm-search-pill { display: flex; }
	.sm-search-wrap:not(.is-open) .sm-search { display: none; }
	.sm-search-wrap.is-open .sm-search-pill { display: none; }
	.sm-search-wrap.is-open .sm-search {
		display: grid;
		grid-template-columns: 1fr;
		border-radius: 18px;
		padding: 12px;
	}
	.sm-hero h1, .sm-hero-feed > .sm-hero-inner > h1 { display: none; }
}

@media (min-width: 901px) {
	.sm-search-pill { display: none; }
	.sm-tabbar { display: none; }
}

/* Header: burger on the right */
.sm-header-inner { justify-content: space-between; }
.sm-nav-right { margin-left: auto; }

/* Drawer overlay + close */
.sm-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(28, 25, 23, 0.4);
	z-index: 90;
}
.sm-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min(320px, 88vw);
	background: #fff;
	z-index: 100;
	padding: 56px 24px 24px;
	box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
.sm-drawer-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	background: #f4f4f4;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--sm-ink);
}
body.sm-menu-open { overflow: hidden; }

/* Homepage search panel = same form as Explore */
.sm-search-panel { display: none; position: relative; }
.sm-search-close {
	display: none;
	margin: 0 0 8px auto;
	border: 0;
	background: #f4f4f4;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.sm-search-wrap.is-open .sm-search-pill { display: none !important; }
.sm-search-wrap.is-open .sm-search-panel { display: block; }
.sm-search-wrap.is-open .sm-search-close { display: block; }
.sm-search-wrap .amp-search-form {
	margin-bottom: 8px;
}
@media (min-width: 901px) {
	.sm-search-pill { display: none !important; }
	.sm-search-panel { display: block; }
	.sm-search-close { display: none !important; }
}
@media (max-width: 900px) {
	.sm-search-wrap:not(.is-open) .sm-search-panel { display: none; }
	.sm-search-wrap:not(.is-open) .sm-search-pill { display: flex; }
}

.sm-empty {
	margin: 24px 16px;
	padding: 28px 20px;
	border: 1px dashed var(--sm-line);
	border-radius: 16px;
	text-align: center;
}

/* Force restored chrome */
.sm-nav-right { margin-left: auto !important; }
.sm-header-inner { width: 100%; }
.sm-tabbar {
	display: flex !important;
	position: fixed !important;
	left: 0; right: 0; bottom: 0;
	z-index: 200;
}
@media (min-width: 1025px) {
	.sm-tabbar { display: none !important; }
	.sm-burger { display: none; }
}
@media (max-width: 1024px) {
	.sm-burger { display: flex !important; }
	.sm-nav-right .sm-btn,
	.sm-nav-right .sm-link-quiet { display: none; }
	body.staymarket { padding-bottom: 72px; }
	.sm-chips, .sm-feed, .sm-rail, .sm-host-cta { display: block; }
}
.sm-drawer[hidden],
.sm-drawer-overlay[hidden] { display: none !important; }
.sm-drawer:not([hidden]) { display: block !important; }
.sm-drawer-overlay:not([hidden]) { display: block !important; }

/* Homepage must never trap clicks or hide rails */
.sm-header {
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 80;
	pointer-events: auto;
	background: #fffaf6;
}
.sm-header-inner {
	width: 100%;
	max-width: var(--sm-max);
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: auto;
}
.sm-burger,
.sm-search-pill,
.sm-logo-text {
	pointer-events: auto;
	position: relative;
	z-index: 81;
}
.sm-search-panel {
	display: none !important;
	position: relative !important;
	inset: auto !important;
	background: transparent;
}
.sm-search-wrap.is-open .sm-search-panel {
	display: block !important;
}
.sm-drawer-overlay[hidden],
.sm-drawer[hidden] {
	display: none !important;
	pointer-events: none !important;
}
.sm-chips,
.sm-feed,
.sm-rail,
.sm-carousel,
.sm-host-cta,
.sm-footer {
	display: block;
	visibility: visible;
	opacity: 1;
}
.sm-carousel { display: flex !important; }
.sm-row-nav { display: flex; gap: 8px; }
.sm-prev, .sm-next {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
