/* Haramain Experience — package designer.
   Tokens follow DESIGN.md: one accent, neutral everything else, 8pt scale,
   concentric radii, system font stack so Apple devices render SF natively. */

.hmed, .hmarch {
	--bg: #FFFFFF;
	--bg-2: #F5F5F7;
	--surface: #FFFFFF;
	--label: #1D1D1F;
	--label-2: #6E6E73;
	--separator: #D2D2D7;
	--accent: #0B6E5F;
	--accent-pressed: #08574B;
	--accent-tint: rgba(11,110,95,.12);
	--stone: #9A7B4F;
	--success: #1F8A4C;
	--warning: #B25E00;
	--error: #C4302B;

	--r-lg: 28px;
	--r-md: 18px;
	--r-sm: 12px;
	--r-pill: 999px;

	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
	--s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

	--ease: cubic-bezier(0.32, 0.72, 0, 1);
	--shadow-sheet: 0 12px 40px rgba(0,0,0,.12);

	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;

	font-family: var(--font);
	font-size: 17px;
	line-height: 1.5;
	color: var(--label);
	max-width: 1200px;
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
	.hmed:not([data-theme="light"]), .hmarch:not([data-theme="light"]) {
		--bg: #000000;
		--bg-2: #1C1C1E;
		--surface: #1C1C1E;
		--surface-elevated: #2C2C2E;
		--label: #F5F5F7;
		--label-2: #A1A1A6;
		--separator: #38383A;
		--accent: #3FBFA7;
		--accent-pressed: #5FD0BA;
		--accent-tint: rgba(63,191,167,.16);
		--stone: #C9A877;
	}
}

.hmed *, .hmed *::before, .hmed *::after,
.hmarch *, .hmarch *::before, .hmarch *::after { box-sizing: border-box; }
.hmed button, .hmarch button { font: inherit; color: inherit; cursor: pointer; }
.hmed :focus-visible, .hmarch :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.hmed [hidden] { display: none !important; }

/* ---------------------------------------------------------------- type */
.hmed h2 { font-size: 32px; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; margin: 0 0 var(--s2); }
.hmed h3 { font-size: 24px; font-weight: 600; line-height: 1.2; margin: 0 0 var(--s1); }
.hmed h4 { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0 0 var(--s2); }
.hmed-of { font-size: 13px; color: var(--label-2); margin-bottom: var(--s2); }
.hmed-lede { color: var(--label-2); font-size: 17px; margin: 0 0 var(--s6); max-width: 68ch; }
.hmed-hint { font-size: 13px; color: var(--label-2); margin: var(--s3) 0 0; }
.hmed-num { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- steps */
.hmed-steps { display: flex; overflow-x: auto; gap: var(--s1); border-bottom: 1px solid var(--separator); margin-bottom: var(--s6); scrollbar-width: none; }
.hmed-steps::-webkit-scrollbar { display: none; }
.hmed-step {
	background: none; border: 0; padding: var(--s3) var(--s3) 14px; white-space: nowrap;
	color: var(--label-2); font-size: 15px; border-bottom: 2px solid transparent;
	display: flex; align-items: center; gap: var(--s2); min-height: 44px;
}
.hmed-step[disabled] { opacity: .4; cursor: not-allowed; }
.hmed-step i {
	font-style: normal; font-size: 12px; width: 22px; height: 22px; flex: none;
	display: grid; place-items: center; border: 1px solid currentColor; border-radius: var(--r-pill);
}
.hmed-step.is-done { color: var(--accent); }
.hmed-step.is-done i { background: var(--accent); border-color: var(--accent); color: #fff; }
.hmed-step.is-now { color: var(--label); font-weight: 600; border-bottom-color: var(--accent); }
.hmed-step.is-now i { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------- layout */
.hmed-body { display: grid; grid-template-columns: 1fr 340px; gap: var(--s7); align-items: start; }
.hmed-sec { margin-bottom: var(--s6); }
.hmed-label {
	font-size: 13px; color: var(--label-2); padding-bottom: var(--s2);
	border-bottom: 1px solid var(--separator); margin-bottom: var(--s4);
	display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline;
}
.hmed-label b { color: var(--label); font-weight: 600; }
.hmed-loading { padding: var(--s8) 0; color: var(--label-2); }

/* ------------------------------------------------------- journey rail */
.hmed-rail-viz { padding: var(--s5) 0 var(--s4); }
.hmed-track { display: flex; align-items: center; gap: 0; }
.hmed-track .seg { height: 3px; background: var(--accent); border-radius: var(--r-pill); transition: flex .35s var(--ease); }
.hmed-track .dot { width: 11px; height: 11px; border-radius: var(--r-pill); background: var(--accent); flex: none; }
.hmed-track .dot.hollow { background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.hmed-ends { display: flex; justify-content: space-between; margin-top: var(--s2); font-size: 15px; font-weight: 600; }
.hmed-ends small { display: block; font-weight: 400; font-size: 13px; color: var(--label-2); margin-top: 2px; }
.hmed-ends span:last-child { text-align: right; }

/* -------------------------------------------------------------- cards */
.hmed-field {
	border: 1px solid var(--separator); border-radius: var(--r-sm);
	padding: var(--s3) var(--s4); background: var(--surface);
}
.hmed-field label, .hmed-flab { display: block; font-size: 13px; color: var(--label-2); margin-bottom: var(--s1); }
.hmed-field .v { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hmed-field .sub { font-size: 13px; color: var(--label-2); margin-top: 2px; }
.hmed-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

.hmed-datebtn {
	width: 100%; text-align: left; background: none; border: 0; padding: 0;
	font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 28px;
}

/* steppers */
.hmed-stp { display: flex; align-items: center; gap: var(--s4); }
.hmed-stp button {
	width: 44px; height: 44px; border: 1px solid var(--separator); background: var(--surface);
	border-radius: var(--r-pill); font-size: 19px; line-height: 1; display: grid; place-items: center;
}
.hmed-stp button:hover:not(:disabled) { background: var(--bg-2); }
.hmed-stp button:disabled { opacity: .35; cursor: not-allowed; }
.hmed-stp .n { font-size: 21px; font-weight: 600; min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.hmed-stp .u { font-size: 13px; color: var(--label-2); }

.hmed-paxrow { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--separator); }
.hmed-paxrow:last-child { border-bottom: 0; }
.hmed-paxrow .t { font-weight: 600; }
.hmed-paxrow .d { font-size: 13px; color: var(--label-2); margin-top: 2px; }

/* ------------------------------------------------------- choice cards */
.hmed-choices { display: grid; gap: var(--s3); }
.hmed-choices.two { grid-template-columns: 1fr 1fr; }
.hmed-opt {
	display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: center;
	border: 1px solid var(--separator); background: var(--surface); border-radius: var(--r-md);
	padding: var(--s4); text-align: left; width: 100%; min-height: 44px;
	transition: border-color .15s var(--ease), background .15s var(--ease);
}
.hmed-opt:hover { border-color: var(--label-2); }
.hmed-opt[aria-checked=true] { border-color: var(--accent); background: var(--accent-tint); }
.hmed-opt .nm { font-weight: 600; font-size: 17px; }
.hmed-opt .mt { font-size: 15px; color: var(--label-2); margin-top: var(--s1); }
.hmed-check { width: 24px; height: 24px; border-radius: var(--r-pill); border: 1.5px solid var(--separator); display: grid; place-items: center; flex: none; }
.hmed-opt[aria-checked=true] .hmed-check { background: var(--accent); border-color: var(--accent); }
.hmed-check svg { opacity: 0; }
.hmed-opt[aria-checked=true] .hmed-check svg { opacity: 1; }

/* segmented control */
.hmed-seg { display: inline-flex; background: var(--bg-2); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.hmed-seg button { border: 0; background: none; padding: var(--s2) var(--s4); border-radius: 9px; font-size: 15px; min-height: 38px; color: var(--label-2); }
.hmed-seg button[aria-checked=true] { background: var(--surface); color: var(--label); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ----------------------------------------------------- hotel selector */
.hmed-city { border: 1px solid var(--separator); border-radius: var(--r-md); margin-bottom: var(--s3); overflow: hidden; background: var(--surface); }
.hmed-city-head {
	display: flex; align-items: center; gap: var(--s3); width: 100%; border: 0; background: none;
	padding: var(--s4); text-align: left; min-height: 64px;
}
.hmed-city-head .idx { width: 26px; height: 26px; border-radius: var(--r-pill); background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.hmed-city-head .tt { flex: 1; }
.hmed-city-head .tt strong { display: block; font-size: 19px; }
.hmed-city-head .tt span { font-size: 13px; color: var(--label-2); }
.hmed-city-head .chev { transition: transform .25s var(--ease); color: var(--label-2); }
.hmed-city.is-open .hmed-city-head .chev { transform: rotate(180deg); }
.hmed-city-body { display: none; padding: 0 var(--s4) var(--s4); border-top: 1px solid var(--separator); }
.hmed-city.is-open .hmed-city-body { display: block; }

.hmed-picked { display: flex; flex-wrap: wrap; gap: var(--s2); margin-left: auto; }
.hmed-chip {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
	background: var(--accent-tint); color: var(--accent); padding: 5px 10px; border-radius: var(--r-pill);
	max-width: 190px;
}
.hmed-chip b { font-weight: 600; white-space: nowrap; }
.hmed-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmed-chip.empty { background: var(--bg-2); color: var(--label-2); }

.hmed-tools { display: flex; gap: var(--s2); flex-wrap: wrap; padding: var(--s4) 0; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.hmed-search { flex: 1 1 220px; position: relative; }
.hmed-search input {
	width: 100%; border: 1px solid var(--separator); border-radius: var(--r-sm);
	padding: 11px 14px 11px 40px; font-size: 15px; background: var(--bg-2); min-height: 44px; color: var(--label);
}
.hmed-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--label-2); }
.hmed-filters { display: flex; gap: var(--s2); flex-wrap: wrap; padding-bottom: var(--s3); }
.hmed-fchip {
	border: 1px solid var(--separator); background: var(--surface); border-radius: var(--r-pill);
	padding: 7px 14px; font-size: 13px; color: var(--label-2); min-height: 36px;
}
.hmed-fchip[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.hmed-count { font-size: 13px; color: var(--label-2); padding: 0 0 var(--s2); }

.hmed-list { max-height: 520px; overflow-y: auto; margin: 0 calc(var(--s4) * -1); padding: 0 var(--s4); }
.hmed-hrow {
	display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s4); align-items: center;
	padding: var(--s3) 0; border-bottom: 1px solid var(--separator);
}
.hmed-hrow:last-child { border-bottom: 0; }
.hmed-hrow .pic { width: 96px; height: 72px; border-radius: var(--r-sm); background: var(--bg-2) center/cover no-repeat; flex: none; }
.hmed-hrow .nm { font-weight: 600; font-size: 17px; }
.hmed-hrow .meta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s1); font-size: 13px; color: var(--label-2); }
.hmed-hrow .meta span { display: inline-flex; align-items: center; gap: 5px; }
.hmed-hrow .meta svg { flex: none; }
.hmed-hrow .acts { display: flex; gap: var(--s2); align-items: center; }
.hmed-pick {
	border: 1px solid var(--separator); background: var(--surface); border-radius: var(--r-pill);
	padding: 8px 14px; font-size: 13px; min-height: 40px; white-space: nowrap; color: var(--label-2);
}
.hmed-pick:hover { border-color: var(--accent); color: var(--accent); }
.hmed-pick[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.hmed-pick.second[aria-pressed=true] { background: var(--stone); border-color: var(--stone); }
.hmed-info { border: 0; background: none; color: var(--accent); font-size: 13px; padding: 8px 4px; min-height: 40px; }
.hmed-empty { padding: var(--s6) 0; text-align: center; color: var(--label-2); font-size: 15px; }

.hmed-badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--label-2); margin-inline-start: var(--s2); }
.hmed-badge.tier { background: var(--accent-tint); color: var(--accent); }
.hmed-badge.stone { background: rgba(154,123,79,.14); color: var(--stone); }

/* ------------------------------------------------------------ nights */
.hmed-split { border: 1px solid var(--separator); border-radius: var(--r-md); padding: var(--s5); background: var(--surface); }
.hmed-bar { display: flex; height: 44px; border-radius: var(--r-sm); overflow: hidden; margin-bottom: var(--s3); }
.hmed-bar div { display: grid; place-items: center; font-size: 15px; font-weight: 600; transition: flex .3s var(--ease); color: #fff; }
.hmed-bar .a { background: var(--accent); }
.hmed-bar .b { background: var(--stone); }
.hmed-slider { width: 100%; appearance: none; -webkit-appearance: none; height: 4px; background: var(--separator); border-radius: var(--r-pill); outline: none; margin: var(--s3) 0 0; }
.hmed-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; background: var(--surface); border: 1px solid var(--separator); box-shadow: 0 1px 4px rgba(0,0,0,.18); border-radius: var(--r-pill); cursor: pointer; }
.hmed-slider::-moz-range-thumb { width: 26px; height: 26px; background: var(--surface); border: 1px solid var(--separator); border-radius: var(--r-pill); cursor: pointer; }

/* ---------------------------------------------------------- services */
.hmed-svc {
	display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); align-items: flex-start;
	border: 1px solid var(--separator); border-radius: var(--r-md); background: var(--surface);
	padding: var(--s4); text-align: left; width: 100%;
}
.hmed-svc:hover { border-color: var(--label-2); }
.hmed-svc[aria-checked=true] { border-color: var(--accent); background: var(--accent-tint); }
.hmed-box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--separator); background: var(--surface); display: grid; place-items: center; margin-top: 2px; flex: none; }
.hmed-svc[aria-checked=true] .hmed-box { background: var(--accent); border-color: var(--accent); }
.hmed-box svg { opacity: 0; }
.hmed-svc[aria-checked=true] .hmed-box svg { opacity: 1; }
.hmed-svc .t { font-weight: 600; font-size: 17px; }
.hmed-svc .d { font-size: 15px; color: var(--label-2); margin-top: var(--s1); }
.hmed-svc .p { font-size: 15px; color: var(--label-2); white-space: nowrap; text-align: right; }
.hmed-extra { grid-column: 1 / -1; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--separator); display: flex; gap: var(--s4); flex-wrap: wrap; }
.hmed-extra label { font-size: 13px; color: var(--label-2); display: block; margin-bottom: var(--s1); }
.hmed-extra select, .hmed-extra input { border: 1px solid var(--separator); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); font-size: 15px; min-height: 44px; color: var(--label); }
.hmed-names { grid-column: 1 / -1; margin-top: var(--s3); padding: var(--s4); background: var(--bg-2); border-radius: var(--r-sm); }
.hmed-names h5 { margin: 0 0 var(--s2); font-size: 13px; font-weight: 600; }
.hmed-names input { width: 100%; border: 1px solid var(--separator); border-radius: var(--r-sm); padding: 11px 13px; background: var(--surface); margin-bottom: var(--s2); font-size: 15px; min-height: 44px; color: var(--label); }

/* ------------------------------------------------------------- forms */
.hmed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.hmed-grid .full { grid-column: 1 / -1; }
.hmed-in {
	border: 1px solid var(--separator); border-radius: var(--r-sm); padding: 12px 14px;
	width: 100%; background: var(--surface); font-size: 17px; min-height: 44px; color: var(--label);
}
.hmed-in:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.hmed-in.has-error { border-color: var(--error); }
.hmed-fieldnote { font-size: 13px; color: var(--label-2); margin-top: var(--s1); }
.hmed-fielderr { font-size: 13px; color: var(--error); margin-top: var(--s1); }

/* ------------------------------------------------------------ review */
.hmed-rev { border: 1px solid var(--separator); border-radius: var(--r-md); overflow: hidden; }
.hmed-rev-row { display: grid; grid-template-columns: 130px 1fr auto; gap: var(--s4); padding: var(--s4); border-bottom: 1px solid var(--separator); align-items: center; }
.hmed-rev-row:last-child { border-bottom: 0; }
.hmed-rev-row .k { font-size: 13px; color: var(--label-2); }
.hmed-rev-row .v { font-weight: 600; }
.hmed-rev-row .v small { display: block; font-weight: 400; font-size: 15px; color: var(--label-2); margin-top: 2px; }
.hmed-link { border: 0; background: none; color: var(--accent); font-size: 15px; padding: var(--s2); min-height: 44px; }

.hmed-return { background: var(--accent-tint); border-radius: var(--r-sm); padding: var(--s3) var(--s4); margin-bottom: var(--s5); display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: 15px; }
.hmed-return b { font-weight: 600; }

/* ------------------------------------------------------------- aside */
.hmed-aside { background: var(--bg-2); border-radius: var(--r-lg); padding: var(--s5); position: sticky; top: var(--s5); }
.hmed-aside h4 { font-size: 13px; color: var(--label-2); font-weight: 400; margin: 0 0 var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--separator); }
.hmed-trip .big { font-size: 24px; font-weight: 600; line-height: 1.2; }
.hmed-trip .sm { font-size: 15px; color: var(--label-2); margin-top: var(--s1); font-variant-numeric: tabular-nums; }
.hmed-li { display: flex; justify-content: space-between; gap: var(--s3); font-size: 15px; padding: var(--s3) 0; border-top: 1px solid var(--separator); }
.hmed-li .l small { display: block; color: var(--label-2); font-size: 13px; margin-top: 2px; }
.hmed-est { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--separator); }
.hmed-est .lbl { font-size: 13px; color: var(--label-2); margin-bottom: var(--s1); }
.hmed-est .val { font-size: 28px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hmed-est .pp { font-size: 13px; color: var(--label-2); margin-top: var(--s1); }
.hmed-note { background: var(--surface); border-radius: var(--r-sm); padding: var(--s3) var(--s4); margin-top: var(--s4); font-size: 13px; color: var(--label-2); line-height: 1.45; display: flex; gap: var(--s2); }
.hmed-note svg { flex: none; color: var(--warning); margin-top: 2px; }

/* ----------------------------------------------------------- buttons */
.hmed-nav { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--separator); }
.hmed-btn {
	border: 0; background: var(--accent); color: #fff; border-radius: var(--r-pill);
	padding: 14px 28px; font-size: 17px; font-weight: 600; min-height: 44px;
	transition: background .15s var(--ease);
}
.hmed-btn:hover { background: var(--accent-pressed); }
.hmed-btn.secondary { background: var(--accent-tint); color: var(--accent); }
.hmed-btn.tertiary { background: none; color: var(--accent); padding: 14px 8px; }
.hmed-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------ sheets */
.hmed-ov { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: center; z-index: 9999; padding: var(--s4); }
.hmed-ov[hidden] { display: none; }
.hmed-sheet {
	background: var(--surface); border-radius: var(--r-lg); max-width: 720px; width: 100%;
	max-height: 88vh; overflow: auto; position: relative; box-shadow: var(--shadow-sheet);
	animation: hmed-rise .35s var(--ease);
}
@keyframes hmed-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.hmed-x { position: absolute; top: var(--s3); right: var(--s3); width: 36px; height: 36px; border-radius: var(--r-pill); border: 0; background: rgba(120,120,128,.2); font-size: 20px; line-height: 1; display: grid; place-items: center; z-index: 2; color: var(--label); }
.hmed-sheet .hero { width: 100%; height: 280px; object-fit: cover; display: block; }
.hmed-sheet .pad { padding: var(--s5); }
.hmed-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s2); margin: var(--s4) 0; }
.hmed-thumbs img { width: 100%; height: 72px; object-fit: cover; border-radius: var(--r-sm); display: block; cursor: pointer; }
.hmed-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hmed-tags span { background: var(--bg-2); padding: 6px 12px; border-radius: var(--r-pill); font-size: 13px; }

/* calendar */
.hmed-cal { width: 340px; max-width: 100%; padding: var(--s4); }
.hmed-calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.hmed-calhead .m { font-size: 17px; font-weight: 600; }
.hmed-calnav { width: 40px; height: 40px; border-radius: var(--r-pill); border: 0; background: var(--bg-2); display: grid; place-items: center; }
.hmed-calnav[disabled] { opacity: .3; cursor: not-allowed; }
.hmed-calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.hmed-calgrid .dow { font-size: 12px; color: var(--label-2); text-align: center; padding: var(--s2) 0; }
.hmed-calgrid button {
	aspect-ratio: 1; border: 0; background: none; border-radius: var(--r-pill);
	font-size: 15px; font-variant-numeric: tabular-nums; display: grid; place-items: center;
}
.hmed-calgrid button:hover:not(:disabled) { background: var(--bg-2); }
.hmed-calgrid button[disabled] { opacity: .25; cursor: not-allowed; }
.hmed-calgrid button.is-sel { background: var(--accent); color: #fff; font-weight: 600; }
.hmed-calgrid button.is-in { background: var(--accent-tint); border-radius: 0; }
.hmed-calgrid button.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.hmed-calfoot { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--separator); font-size: 13px; color: var(--label-2); }

/* -------------------------------------------------------------- misc */
.hmed-err { background: rgba(196,48,43,.1); color: var(--error); padding: var(--s4); border-radius: var(--r-sm); margin-bottom: var(--s4); font-size: 15px; }
.hmed-done { text-align: center; padding: var(--s8) var(--s4); }
.hmed-done .mk { width: 64px; height: 64px; border-radius: var(--r-pill); background: var(--success); margin: 0 auto var(--s5); display: grid; place-items: center; }
.hmed-done .ref { display: inline-block; font-size: 21px; font-weight: 600; background: var(--bg-2); padding: var(--s3) var(--s5); border-radius: var(--r-pill); margin: var(--s4) 0; font-variant-numeric: tabular-nums; }
.hmed-done p { color: var(--label-2); max-width: 52ch; margin: 0 auto var(--s3); }

@media (max-width: 980px) {
	.hmed-body { grid-template-columns: 1fr; }
	.hmed-aside { position: static; order: -1; }
	.hmed h2 { font-size: 26px; }
}
@media (max-width: 620px) {
	.hmed-row2, .hmed-grid, .hmed-choices.two { grid-template-columns: 1fr; }
	.hmed-hrow { grid-template-columns: 72px 1fr; }
	.hmed-hrow .pic { width: 72px; height: 56px; }
	.hmed-hrow .acts { grid-column: 1 / -1; }
	.hmed-rev-row { grid-template-columns: 1fr; gap: var(--s1); }
	.hmed-nav { flex-direction: column-reverse; }
	.hmed-btn { width: 100%; }
	.hmed-ov { padding: 0; align-items: end; }
	.hmed-sheet { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) { .hmed *, .hmarch * { animation: none !important; transition: none !important; } }

/* ======================= 0.4.0 additions ======================= */

.hmed-top { padding: var(--s5) 0 var(--s4); border-bottom: 1px solid var(--separator); margin-bottom: var(--s5); }
.hmed-logo { height: 38px; width: auto; display: block; margin-bottom: var(--s3); }
.hmed-word { font-size: 21px; font-weight: 600; display: block; margin-bottom: var(--s2); }
.hmed-top p { margin: 0; color: var(--label-2); font-size: 17px; }

.hmed-main-col { min-width: 0; }
.hmed-summary-toggle { display: none; }

.hmed-microcopy { font-size: 13px; color: var(--label-2); line-height: 1.5; margin: var(--s3) 0 0; }
.hmed-microcopy svg { vertical-align: -2px; }
.hmed-microcopy a { color: var(--accent); }
.hmed-strong { font-weight: 600; color: var(--label); }
.hmed-req { color: var(--error); font-weight: 600; }

/* children's ages */
.hmed-ages { display: flex; gap: var(--s3); flex-wrap: wrap; }
.hmed-ages span { width: 110px; }
.hmed-ages input { text-align: center; }

/* room arrangements */
.hmed-roomlist { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.hmed-roomrow {
	display: grid; grid-template-columns: 1fr auto auto 36px; gap: var(--s3); align-items: center;
	border: 1px solid var(--separator); border-radius: var(--r-md); padding: var(--s3) var(--s4); background: var(--surface);
}
.hmed-roomrow select { border: 1px solid var(--separator); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); font-size: 15px; min-height: 44px; width: 100%; color: var(--label); }
.hmed-stp.small button { width: 36px; height: 36px; font-size: 16px; }
.hmed-stp.small .n { font-size: 17px; min-width: 28px; }
.hmed-roomcap { font-size: 13px; color: var(--label-2); white-space: nowrap; }
.hmed-roomdel { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--label-2); width: 36px; height: 36px; border-radius: var(--r-pill); }
.hmed-roomdel:hover { background: var(--bg-2); color: var(--error); }
.hmed-capline { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); font-size: 15px; }
.hmed-capline.ok { background: rgba(31,138,76,.1); color: var(--success); }
.hmed-capline.warn { background: rgba(178,94,0,.1); color: var(--warning); }
.hmed-capline.bad { background: rgba(196,48,43,.1); color: var(--error); }

/* hotel rows — more breathing room, clearer selection */
.hmed-hrow {
	grid-template-columns: 120px 1fr auto; gap: var(--s5);
	padding: var(--s4) var(--s3); border-radius: var(--r-md); border-bottom: 1px solid var(--separator);
	transition: background .15s var(--ease), box-shadow .15s var(--ease);
}
.hmed-hrow .pic { width: 120px; height: 88px; position: relative; }
.hmed-hrow .pic .flag {
	position: absolute; left: 0; bottom: 0; right: 0; font-size: 11px; font-weight: 600;
	color: #fff; text-align: center; padding: 3px 0; border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.hmed-hrow .pic .flag.preferred { background: var(--accent); }
.hmed-hrow .pic .flag.alternative { background: var(--stone); }
.hmed-hrow.is-preferred { background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent); }
.hmed-hrow.is-alternative { background: rgba(154,123,79,.1); box-shadow: inset 0 0 0 2px var(--stone); }
.hmed-hrow .body { min-width: 0; }
.hmed-hrow .nm { font-weight: 600; font-size: 19px; display: block; }
.hmed-hrow .tags { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }
.hmed-hrow .meta { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s3); font-size: 14px; color: var(--label-2); }
.hmed-hrow .acts { display: flex; flex-direction: column; gap: var(--s2); align-items: stretch; }
.hmed-pick.preferred[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.hmed-pick.alt[aria-pressed=true] { background: var(--stone); border-color: var(--stone); color: #fff; }
.hmed-badge.best { background: rgba(31,138,76,.12); color: var(--success); }
.hmed-fchip.clear { border-color: var(--accent); color: var(--accent); }
.hmed-fchip[aria-pressed=true] { box-shadow: 0 0 0 3px var(--accent-tint); }
.hmed-chip.preferred { background: var(--accent-tint); color: var(--accent); }
.hmed-chip.alternative { background: rgba(154,123,79,.14); color: var(--stone); }
.hmed-city.is-set .hmed-city-head .idx { background: var(--success); }
.hmed-norec {
	width: 100%; border: 1px dashed var(--separator); background: none; border-radius: var(--r-md);
	padding: var(--s4); margin-top: var(--s4); color: var(--accent); font-size: 15px;
	display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px;
}
.hmed-norec:hover { border-color: var(--accent); background: var(--accent-tint); }

/* transport */
.hmed-lug { font-size: 13px; color: var(--label-2); display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s1); }

/* consent + submit note */
.hmed-consent { background: var(--bg-2); border-radius: var(--r-md); padding: var(--s4); display: grid; gap: var(--s3); }
.hmed-checkline { display: flex; gap: var(--s3); align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.hmed-checkline input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.hmed-checkline a { color: var(--accent); }
.hmed-submitnote {
	display: flex; gap: var(--s3); align-items: flex-start; background: rgba(178,94,0,.08);
	border-radius: var(--r-md); padding: var(--s4); font-size: 15px; line-height: 1.5; margin-top: var(--s5);
}
.hmed-submitnote svg { color: var(--warning); flex: none; margin-top: 2px; }

/* navigation — always in the same place */
.hmed-navright { display: flex; align-items: center; gap: var(--s4); }
.hmed-navnote { font-size: 13px; color: var(--label-2); }
.hmed-btn.ghost { background: none; color: var(--label); box-shadow: inset 0 0 0 1px var(--separator); }
.hmed-btn.ghost:hover { background: var(--bg-2); }

/* aside: estimate, loading, includes */
.hmed-est .val { font-size: 30px; }
.hmed-estnote { font-size: 13px; color: var(--label-2); margin-top: var(--s1); font-weight: 500; }
.hmed-est.is-loading .val { min-height: 36px; }
.hmed-shimmer { display: block; height: 30px; width: 80%; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--separator) 25%, var(--bg) 50%, var(--separator) 75%); background-size: 200% 100%; animation: hmed-sh 1.2s infinite; }
@keyframes hmed-sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.hmed-changed { font-size: 13px; color: var(--success); margin-top: var(--s3); display: flex; gap: 6px; align-items: center; }
.hmed-incl { margin-top: var(--s4); font-size: 14px; }
.hmed-incl summary { cursor: pointer; color: var(--accent); padding: var(--s2) 0; min-height: 44px; display: flex; align-items: center; }
.hmed-incl ul { margin: var(--s2) 0 var(--s3); padding-inline-start: var(--s5); color: var(--label-2); }
.hmed-incl li { margin-bottom: var(--s1); }
.hmed-incl strong { font-size: 13px; }
.hmed-empty-est { text-align: center; padding: var(--s6) var(--s4); color: var(--label-2); }
.hmed-empty-est svg { opacity: .4; margin-bottom: var(--s2); }
.hmed-empty-est p { margin: 0; font-size: 15px; }
.hmed-help { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--separator); font-size: 13px; color: var(--label-2); display: flex; gap: var(--s2); align-items: flex-start; }

/* confirmation */
.hmed-summary-card { background: var(--bg-2); border-radius: var(--r-lg); padding: var(--s5); margin: var(--s5) auto; max-width: 620px; text-align: left; }
.hmed-summary-card h4 { margin: 0 0 var(--s4); font-size: 15px; }
.hmed-summary-card .hmed-rev { background: var(--surface); }
.hmed-sheetacts { display: flex; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }
.hmed-sheet .meta { display: flex; gap: var(--s4); flex-wrap: wrap; color: var(--label-2); font-size: 14px; margin-bottom: var(--s3); }

@media (max-width: 980px) {
	.hmed-summary-toggle {
		display: flex; width: 100%; align-items: center; justify-content: center; gap: var(--s2);
		border: 1px solid var(--separator); background: var(--surface); border-radius: var(--r-pill);
		padding: var(--s3); font-size: 15px; font-weight: 600; margin-bottom: var(--s4); min-height: 44px;
	}
	.hmed-aside { display: none; }
	.hmed-aside.is-open { display: block; margin-bottom: var(--s5); }
}
@media (max-width: 620px) {
	.hmed-hrow { grid-template-columns: 1fr; gap: var(--s3); }
	.hmed-hrow .pic { width: 100%; height: 160px; }
	.hmed-hrow .acts { flex-direction: row; }
	.hmed-hrow .acts button { flex: 1; }
	.hmed-roomrow { grid-template-columns: 1fr auto; }
	.hmed-roomcap { grid-column: 1 / -1; }
	.hmed-nav { flex-direction: column-reverse; }
	.hmed-navright { flex-direction: column-reverse; width: 100%; }
	.hmed-navright .hmed-btn { width: 100%; }
}

/* international phone */
.hmed-phone { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: var(--s2); }
.hmed-phone select {
	border: 1px solid var(--separator); border-radius: var(--r-sm); padding: 12px 10px;
	background: var(--surface); font-size: 15px; min-height: 44px; color: var(--label); min-width: 0;
}
.hmed-phone input { min-width: 0; }
@media (max-width: 480px) { .hmed-phone { grid-template-columns: 1fr; } }
