/* ============================================================================
   Plan One Booking — Frontend Styles
   ملاحظة: متغيرات CSS الأساسية (--brand, --ink, etc.) تأتي من قالب Plan One
   إذا لم يكن القالب مثبَّتاً، نوفّر fallbacks
   ============================================================================ */

:root {
	/* Brand fallbacks if theme not active */
	--pb-brand: var(--brand, #1E40D7);
	--pb-brand-600: var(--brand-600, #1734B5);
	--pb-brand-700: var(--brand-700, #122995);
	--pb-brand-50: var(--brand-50, #EEF2FF);
	--pb-brand-100: var(--brand-100, #DCE3FE);
	--pb-accent: var(--accent, #1FCFC0);
	--pb-accent-600: var(--accent-600, #16AFA2);
	--pb-accent-50: var(--accent-50, #E6FAF7);
	--pb-ink: var(--ink, #2A3559);
	--pb-ink-700: var(--ink-700, #3C4670);
	--pb-ink-500: var(--ink-500, #5A6584);
	--pb-muted: var(--muted, #8089A8);
	--pb-line: var(--line, #E4E7F0);
	--pb-line-soft: var(--line-soft, #EFF1F7);
	--pb-bg: var(--bg, #FBFAF7);
	--pb-surface: var(--surface, #FFFFFF);
	--pb-tint: var(--tint, #F4F2EC);
	--pb-ok: var(--ok, #0F9F76);
	--pb-ok-50: var(--ok-50, #E5F7EF);
	--pb-warn: var(--warn, #C97A0A);
	--pb-warn-50: var(--warn-50, #FEF6E7);
	--pb-danger: var(--danger, #C8333A);
	--pb-danger-50: var(--danger-50, #FCEAEA);
	--pb-radius: var(--radius, 14px);
	--pb-radius-lg: var(--radius-lg, 22px);
	--pb-shadow-md: var(--shadow-md, 0 14px 30px -14px rgba(30,64,215,.15));
}

/* ============================================================================
   Plan One — Booking System Stylesheet
   Cart, Checkout, Confirm, Modal popup, Add-to-cart UI
   ============================================================================ */

/* ─── Cart Item (used on cart page) ─── */
.cart-item {
	display: grid;
	grid-template-columns: 100px 1fr auto;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: white;
	margin-bottom: 12px;
	align-items: center;
}

.cart-item-thumb {
	width: 100px;
	height: 80px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tint);
}
.cart-item-thumb img,
.cart-item-thumb svg { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { display: flex; flex-direction: column; gap: 6px; }
.cart-item-code { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.cart-item-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.cart-item-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-500); }

.cart-item-controls { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-item-price { font-size: 18px; font-weight: 800; color: var(--ink); }
.cart-item-remove {
	background: none;
	border: 1px solid var(--line);
	color: var(--danger);
	width: 36px; height: 36px;
	border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	transition: all .15s;
}
.cart-item-remove:hover { background: var(--danger-50); border-color: var(--danger); }

/* ─── Months selector inside cart ─── */
.month-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.month-pill {
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: white;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-500);
	cursor: pointer;
	transition: all .15s;
	user-select: none;
}
.month-pill:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.month-pill.active { background: var(--brand); color: white; border-color: var(--brand); }
.month-pill:disabled,
.month-pill.disabled { opacity: .35; cursor: not-allowed; }

/* ─── Cart Summary (sidebar) ─── */
.cart-summary {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	position: sticky;
	top: 100px;
}
.cart-summary-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: var(--ink); }

.summary-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 14px;
	color: var(--ink-500);
}
.summary-row strong { color: var(--ink); font-weight: 600; }
.summary-row.discount { color: var(--ok); }
.summary-row.discount strong { color: var(--ok); }
.summary-row.total {
	border-top: 1px solid var(--line);
	margin-top: 8px;
	padding-top: 16px;
	font-size: 16px;
	color: var(--ink);
}
.summary-row.total .summary-val { font-size: 24px; font-weight: 800; }

/* ─── Coupon ─── */
.coupon-form {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	margin-bottom: 16px;
}
.coupon-form .input { flex: 1; height: 42px; }
.coupon-form .btn { height: 42px; padding: 0 18px; }

.coupon-applied {
	background: var(--ok-50);
	color: var(--ok);
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.coupon-applied button {
	background: none;
	border: 0;
	color: var(--ok);
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	padding: 0 6px;
}

/* ─── Empty cart ─── */
.cart-empty {
	text-align: center;
	padding: 80px 20px;
}
.cart-empty-icon {
	width: 80px; height: 80px;
	margin: 0 auto 20px;
	background: var(--brand-50);
	color: var(--brand);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cart-empty h2 { font-size: 24px; margin-bottom: 8px; }
.cart-empty p { color: var(--ink-500); margin-bottom: 24px; }

/* ─── Checkout ─── */
.checkout-form { display: flex; flex-direction: column; gap: 20px; }
.checkout-section {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
}
.checkout-section h3 { font-size: 18px; margin-bottom: 16px; color: var(--ink); }

.checkout-fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.checkout-fields .field-full { grid-column: 1 / -1; }

/* ─── Payment methods ─── */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 2px solid var(--line);
	border-radius: 12px;
	cursor: pointer;
	transition: all .15s;
	background: white;
}
.payment-method:hover { border-color: var(--brand); background: var(--brand-50); }
.payment-method input[type="radio"] {
	margin: 4px 0 0;
	accent-color: var(--brand);
	width: 18px; height: 18px;
}
.payment-method.active {
	border-color: var(--brand);
	background: var(--brand-50);
}
.payment-method-info { flex: 1; }
.payment-method-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.payment-method-desc { font-size: 13px; color: var(--ink-500); }
.payment-method-extra {
	margin-top: 12px;
	padding: 12px;
	background: var(--bg-soft, var(--tint));
	border-radius: 8px;
	font-size: 13px;
	color: var(--ink-700);
	white-space: pre-wrap;
}

/* ─── File upload ─── */
.file-upload {
	border: 2px dashed var(--line);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	cursor: pointer;
	transition: all .15s;
	background: var(--bg-soft, var(--tint));
}
.file-upload:hover { border-color: var(--brand); background: var(--brand-50); }
.file-upload input[type="file"] { display: none; }
.file-upload-icon {
	width: 48px; height: 48px;
	margin: 0 auto 12px;
	color: var(--brand);
}
.file-upload-text { font-size: 14px; color: var(--ink-500); }
.file-upload-text strong { color: var(--brand); font-weight: 700; }

.file-uploaded {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: var(--ok-50);
	border-radius: 10px;
	margin-top: 8px;
}
.file-uploaded-name { font-size: 13px; color: var(--ok); font-weight: 600; }
.file-remove {
	background: none;
	border: 0;
	color: var(--danger);
	cursor: pointer;
	font-weight: 700;
}

/* ─── Confirm page ─── */
.confirm-wrap {
	max-width: 680px;
	margin: 0 auto;
	padding: 80px 24px;
	text-align: center;
}
.confirm-check {
	width: 96px; height: 96px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--ok-50);
	color: var(--ok);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 4px solid var(--ok);
}
.confirm h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.confirm p { color: var(--ink-500); font-size: 16px; margin-bottom: 8px; }
.confirm-number {
	display: inline-block;
	margin: 16px auto 24px;
	padding: 12px 24px;
	background: var(--brand-50);
	color: var(--brand);
	border-radius: 12px;
	font-size: 18px;
	font-weight: 800;
	font-family: 'IBM Plex Mono', monospace;
	letter-spacing: .05em;
}
.confirm-summary {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	margin: 32px 0;
	text-align: right;
}
.confirm-row {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
}
.confirm-row:last-child { border-bottom: 0; }
.confirm-row-key { color: var(--ink-500); font-size: 14px; }
.confirm-row-val { font-weight: 700; color: var(--ink); }

.confirm-next-steps {
	background: var(--brand-50);
	border-radius: var(--radius);
	padding: 24px;
	margin: 24px 0;
	text-align: right;
}
.confirm-next-steps h3 { color: var(--brand); margin-bottom: 12px; font-size: 16px; }
.confirm-next-steps ol { padding-right: 20px; line-height: 1.8; color: var(--ink-700); }

.confirm-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 32px;
}

/* ─── Detail Modal Popup ─── */
.detail-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 27, 64, .65);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow-y: auto;
	animation: fadeUp .25s ease both;
}
.detail-modal {
	background: white;
	border-radius: 20px;
	max-width: 1100px;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
	animation: fadeUp .3s ease both;
}
.detail-modal-close {
	position: absolute;
	top: 16px;
	inset-inline-end: 16px;
	z-index: 5;
	width: 40px; height: 40px;
	border-radius: 12px;
	background: white;
	border: 1px solid var(--line);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .15s;
	box-shadow: var(--shadow-sm);
}
.detail-modal-close:hover { background: var(--ink); color: white; transform: scale(1.05); }

.detail-modal-body { padding: 32px; }

/* ─── Detail page (grid for big detail) ─── */
.detail-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 32px;
	align-items: start;
}
.detail-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	border-radius: var(--radius);
	overflow: hidden;
}
.detail-gallery > *:first-child {
	grid-column: 1 / -1;
	aspect-ratio: 16/9;
}
.detail-gallery > * {
	aspect-ratio: 4/3;
	background: var(--tint);
	overflow: hidden;
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }

.detail-specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 20px 0;
}
.spec-item {
	background: var(--bg-soft, var(--tint));
	padding: 14px 16px;
	border-radius: 12px;
}
.spec-item-key { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.spec-item-val { font-size: 16px; font-weight: 700; color: var(--ink); }

.detail-side {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	position: sticky;
	top: 100px;
}
.detail-side h3 { font-size: 22px; margin-bottom: 8px; }
.detail-price-block { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; }
.detail-price-num { font-size: 28px; font-weight: 800; color: var(--ink); }
.detail-price-unit { font-size: 14px; color: var(--muted); }

/* ─── Availability calendar ─── */
.avail-calendar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	margin: 16px 0;
}
.avail-calendar-cell {
	padding: 12px 8px;
	border-radius: 10px;
	border: 1px solid var(--line);
	text-align: center;
	font-size: 12px;
	background: white;
	cursor: pointer;
	transition: all .15s;
	user-select: none;
}
.avail-calendar-cell .cal-month { font-weight: 700; color: var(--ink); display: block; margin-bottom: 2px; }
.avail-calendar-cell .cal-status { font-size: 10px; color: var(--muted); }
.avail-calendar-cell.available { border-color: var(--ok); background: var(--ok-50); }
.avail-calendar-cell.available .cal-status { color: var(--ok); }
.avail-calendar-cell.partial { border-color: var(--warn); background: var(--warn-50); }
.avail-calendar-cell.partial .cal-status { color: var(--warn); }
.avail-calendar-cell.booked { background: var(--line-soft); opacity: .6; cursor: not-allowed; }
.avail-calendar-cell.selected {
	background: var(--brand);
	border-color: var(--brand);
}
.avail-calendar-cell.selected .cal-month,
.avail-calendar-cell.selected .cal-status { color: white; }
.avail-calendar-cell:hover:not(.booked):not(.selected) { transform: translateY(-1px); border-color: var(--brand); }

/* ─── Sticky bottom booking bar (single billboard) ─── */
.booking-bar {
	position: sticky;
	bottom: 0;
	background: white;
	border-top: 1px solid var(--line);
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 30;
	box-shadow: 0 -8px 24px rgba(0,0,0,.06);
	margin: 32px -32px -32px;
}
.booking-bar-info { display: flex; flex-direction: column; gap: 2px; }
.booking-bar-info .price { font-size: 22px; font-weight: 800; color: var(--ink); }
.booking-bar-info .months { font-size: 13px; color: var(--muted); }

/* ─── In-cart state buttons ─── */
.btn-in-cart {
	background: var(--ok-50);
	color: var(--ok);
	border-color: transparent;
}
.btn-in-cart:hover { background: var(--ok); color: white; }

/* ─── Cart page layout ─── */
.cart-page { padding: 40px 0 80px; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.cart-header h1 { font-size: clamp(28px, 4vw, 40px); }
.cart-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	align-items: start;
}

/* ─── Checkout layout ─── */
.checkout-page { padding: 40px 0 80px; }
.checkout-header { margin-bottom: 24px; }
.checkout-header h1 { font-size: clamp(28px, 4vw, 40px); }
.checkout-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	align-items: start;
}

/* ─── Order summary on checkout ─── */
.order-summary {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	position: sticky;
	top: 100px;
}
.order-summary h3 { font-size: 18px; margin-bottom: 16px; }
.order-line {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 13px;
	color: var(--ink-500);
}
.order-line-title { color: var(--ink); font-weight: 600; }
.order-divider { border-top: 1px solid var(--line); margin: 12px 0; }

/* ─── Map legend & pin enhancements (added for theme) ─── */
.po-map-legend {
	background: white;
	padding: 10px 12px;
	border-radius: 10px;
	box-shadow: var(--shadow-md);
	font-size: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	border: 1px solid var(--line);
}
.po-legend-item { display: flex; align-items: center; gap: 8px; color: var(--ink-700); font-weight: 500; }
.po-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Browse layout */
.browse-page { padding: 24px 0 80px; }
.browse-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 28px;
	align-items: start;
}
.browse-sidebar {
	background: white;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	position: sticky;
	top: 100px;
}
.browse-sidebar h3 { font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); }
.filter-group { margin-bottom: 24px; }
.filter-group h3 { margin-bottom: 10px; }
.filter-checks { display: flex; flex-direction: column; gap: 8px; }
.filter-checks label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ink-700);
	cursor: pointer;
}
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range .input { height: 38px; font-size: 13px; }

.browse-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	gap: 12px;
	flex-wrap: wrap;
}
.browse-results-count strong { color: var(--ink); font-weight: 800; }

.view-toggle {
	display: inline-flex;
	background: var(--line-soft);
	border-radius: 10px;
	padding: 3px;
}
.view-toggle button {
	padding: 6px 14px;
	border: 0;
	background: transparent;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-500);
	cursor: pointer;
}
.view-toggle button.active { background: white; color: var(--ink); box-shadow: var(--shadow-sm); }

.browse-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
	min-height: 200px;
	transition: opacity .2s;
}

.browse-map {
	height: 600px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--bg);
}

.browse-layout.view-map .browse-results-grid { display: none; }
.browse-layout.view-map .browse-map { height: 700px; }
.browse-layout:not(.view-map) .browse-map { display: none; }

.city-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.city-tab {
	padding: 10px 18px;
	border-radius: 10px;
	background: white;
	border: 1px solid var(--line);
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--ink-700);
	white-space: nowrap;
	transition: all .15s;
}
.city-tab:hover { border-color: var(--brand); color: var(--brand); }
.city-tab.active { background: var(--brand); color: white; border-color: var(--brand); }
.city-tab .count { font-size: 11px; opacity: .7; margin-right: 4px; }


/* ============================================================================
   Browse + Cards + Modal styles (from prototype)
   ============================================================================ */

.bb-visual svg { display: block; width: 100%; height: 100%; }


.bb-visual-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(10, 27, 64, .75);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
}


.avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--line);
  display: block;
  position: relative;
  cursor: default;
  transition: transform .15s ease;
}


.avail-dot:hover { transform: scale(1.4); z-index: 2; }


.avail-dot::after {
  content: attr(data-month) " · " attr(data-status);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink, #111);
  color: #fff;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}


.avail-dot::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 4px solid transparent;
  border-top-color: var(--ink, #111);
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 10;
}


.avail-dot:hover::after,
.avail-dot:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.avail-dot.ok { background: var(--ok); }


.avail-dot.warn { background: var(--warn); }


.avail-dot.no { background: var(--line); opacity: .85; }


.bb-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-500);
}


.bb-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}


.bb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.bb-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}


.bb-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 44px;
}


.bb-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}


.bb-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  margin-top: auto;
}


.bb-price-num { font-size: 20px; font-weight: 800; color: var(--ink); }


.bb-price-unit { font-size: 12px; color: var(--muted); margin-right: 4px; }



.bb-card-compact .bb-card-body { padding: 12px 14px 14px; }


.bb-card-compact .bb-card-title { font-size: 14px; min-height: 38px; }


.bb-grid-3 { grid-template-columns: repeat(3, 1fr); }


.browse-filters {
  border-left: 1px solid var(--line);
  background: white;
  padding: 24px 24px;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}


.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }


.filter-group:first-of-type { padding-top: 0; }


.filter-group:last-of-type { border-bottom: 0; }

/* Reset old .filter-group div styling when it's <details> (handled by details rules below) */
details.filter-group { padding: 0 !important; border-bottom: 0 !important; }


.filter-group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}


.filter-list { display: flex; flex-direction: column; gap: 6px; }


.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-700);
  cursor: default;
  transition: background .12s;
}


.filter-item:hover { background: var(--line-soft); }


.filter-item.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }


.filter-item-count {
  font-size: 12px;
  color: var(--muted);
  background: var(--line-soft);
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
}


.filter-item.active .filter-item-count { background: white; color: var(--brand); }



.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 4px;
  font-size: 14px;
}


.checkbox-row input { width: 16px; height: 16px; accent-color: var(--brand); }



.browse-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}


.browse-toolbar {
  position: sticky;
  top: 72px;
  z-index: 5;
  background: var(--bg);
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}


.browse-toolbar-left { display: flex; align-items: center; gap: 16px; }


.browse-search {
  position: relative;
}


.browse-search input {
  width: 280px;
  height: 40px;
  padding: 0 40px 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  font-size: 14px;
  outline: none;
}


.browse-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }


.browse-search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }



.browse-map-wrap {
  height: 560px;
  margin: 24px 32px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #EFF1F6;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 0 rgba(10,27,64,.04), 0 16px 40px -22px rgba(10,27,64,.18);
}


.po-pin {
  position: relative;
  width: 40px; height: 50px;
  transform-origin: 50% 100%;
  transition: transform .18s ease;
  filter: drop-shadow(0 4px 6px rgba(10,27,64,.28));
}


.po-pin-body {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pin);
  border: 2.5px solid #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}


.po-pin-dot {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}


.po-pin-stem {
  width: 0; height: 0;
  margin: -3px auto 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid var(--pin);
  filter: drop-shadow(0 1px 0 #fff);
}


.po-tip-wrap.leaflet-tooltip:before { border-top-color: #0A1B40; }


.po-tip-loc { font-size: 13px; font-weight: 700; margin-bottom: 4px; }


.po-tip-meta {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  font-size: 11px; opacity: .8;
  font-family: 'IBM Plex Mono', monospace;
}


.po-tip-price { color: var(--accent); font-weight: 600; }



.browse-results-bar {
  padding: 24px 32px 12px;
  display: flex; align-items: baseline; justify-content: space-between;
}


.browse-results-bar h2 { font-size: 22px; font-weight: 800; }


.browse-results-bar .muted { color: var(--muted); font-size: 14px; margin-right: 8px; }



.browse-grid {
  padding: 8px 0 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}


.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 20px;
}


.crumbs a { color: var(--ink-500); }


.crumbs a:hover { color: var(--brand); }


.crumbs-sep { opacity: .5; }



.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}


.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}


.detail-gallery > div:nth-child(1) { grid-column: span 2; grid-row: span 2; }



.detail-meta {
  margin-top: 24px;
}


.detail-title { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }


.detail-sub { color: var(--ink-500); margin-top: 8px; font-size: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }



.detail-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }



.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}


.spec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: white;
}


.spec-lbl { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }


.spec-val { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 4px; }



.detail-section { margin-top: 40px; }


.detail-section h3 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }



.detail-mini-map {
  height: 240px;
  border-radius: var(--radius-lg);
  background: #EFF1F6;
  overflow: hidden;
  border: 1px solid var(--line);
}


.cal-cell {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px;
  text-align: right;
  cursor: pointer;
  transition: all .12s;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
}


.cal-cell:hover:not(.unavailable) { border-color: var(--brand); }


.cal-cell.selected { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-50); }


.cal-cell.unavailable { background: var(--line-soft); color: var(--muted); cursor: not-allowed; opacity: .8; }


.cal-cell.partial { border-color: var(--warn); }


.cal-month-name { font-size: 14px; font-weight: 700; color: var(--ink); }


.cal-cell.unavailable .cal-month-name { color: var(--muted); text-decoration: line-through; }


.cal-year { font-size: 11px; color: var(--muted); font-weight: 500; }


.cal-status {
  font-size: 11px; font-weight: 600;
  margin-top: 6px;
}


.cal-status.ok { color: var(--ok); }


.cal-status.warn { color: var(--warn); }


.cal-status.no { color: var(--muted); }


.book-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}


.book-price-num { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }


.book-price-unit { color: var(--muted); font-size: 14px; }


.book-price-meta { font-size: 13px; color: var(--ink-500); margin-bottom: 18px; }


.book-summary {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}


.book-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-700); }


.book-summary-total { font-size: 18px; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }


.cart-item {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 180px 1fr auto;
  gap: 20px; padding: 16px;
  align-items: center;
}


.cart-item-img { border-radius: var(--radius); overflow: hidden; }


.cart-item-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }


.cart-item-info p { color: var(--ink-500); font-size: 14px; }


.cart-item-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }


.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }


.qty-control {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}


.qty-control button {
  width: 34px; height: 34px;
  background: white; border: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-700);
}


.qty-control button:hover:not(:disabled) { background: var(--line-soft); }


.qty-control button:disabled { color: var(--line); }


.qty-control input {
  width: 38px; height: 34px;
  border: 0; text-align: center;
  font-weight: 700; font-size: 14px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: white;
  font-family: 'IBM Plex Mono', monospace;
}


.cart-item-right { text-align: left; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }


.cart-item-price { font-size: 20px; font-weight: 800; }


.cart-item-remove { color: var(--danger); background: transparent; border: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }



.cart-empty {
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 80px 32px;
  text-align: center;
}


.cart-empty-icon {
  width: 72px; height: 72px;
  border-radius: 24px;
  background: var(--brand-50);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}



.summary-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 88px;
}


.summary-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }


.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-700); }


.summary-row.muted { color: var(--muted); }


.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 20px; font-weight: 800;
}


.promo-row {
  display: flex; gap: 8px; margin: 16px 0;
}


.promo-row .input { flex: 1; height: 42px; }


.steps-bar {
  display: flex; gap: 8px; align-items: center; margin-bottom: 32px;
}


.step-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: white; border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-500);
}


.step-pill.active { background: var(--ink); color: white; border-color: var(--ink); }


.step-pill.done { background: var(--ok-50); color: var(--ok); border-color: transparent; }


.step-pill .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--line); color: var(--ink-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}


.step-pill.active .num { background: white; color: var(--ink); }


.step-pill.done .num { background: var(--ok); color: white; }



.form-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}


.form-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }


.form-card .form-card-sub { color: var(--ink-500); font-size: 14px; margin-bottom: 20px; }


.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }


.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }


.field-full { grid-column: 1 / -1; }



.pay-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }


.pay-option {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  cursor: default;
  transition: all .12s;
  background: white;
}


.pay-option:hover { border-color: var(--ink-500); }


.pay-option.selected { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-50); }


.pay-option-icon { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 12px; background: var(--line-soft); display: flex; align-items: center; justify-content: center; color: var(--ink); }


.pay-option.selected .pay-option-icon { background: white; color: var(--brand); }


.pay-option-name { font-size: 14px; font-weight: 700; color: var(--ink); }


.pay-option-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }



.upload-zone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  background: var(--tint);
  cursor: default;
}


.upload-zone:hover { border-color: var(--brand); background: var(--brand-50); }


.upload-zone-icon { width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 14px; background: var(--brand); color: white; display: flex; align-items: center; justify-content: center; }


.confirm-check {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--ok);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 0 0 12px var(--ok-50);
  animation: pop .4s ease both;
}


.confirm h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; }


.confirm p { color: var(--ink-500); font-size: 17px; margin-top: 12px; }


.confirm-summary {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
  text-align: right;
}


.confirm-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }


.confirm-row:last-child { border-bottom: 0; }


.confirm-row-key { color: var(--ink-500); font-size: 14px; }


.confirm-row-val { font-weight: 700; }



.next-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
  text-align: right;
}


.next-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}


.next-step-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }


.next-step-num { font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }


.next-step h4 { font-size: 16px; font-weight: 700; margin-top: 4px; }


.next-step p { color: var(--ink-500); font-size: 13px; margin-top: 4px; line-height: 1.5; }


.detail-modal {
  position: relative;
  width: 100%;
  max-width: 1200px;
  background: var(--bg);
  border-radius: 18px;
  box-shadow: 0 32px 96px -24px rgba(15, 23, 42, .5);
  overflow: hidden;
  animation: dmRise .3s cubic-bezier(.16,1,.3,1);
}


.detail-modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
  transition: transform .18s ease, background .18s ease;
}


.detail-modal-close:hover { background: var(--ink); color: white; transform: scale(1.05); }


.detail-in-modal .container { max-width: 100%; padding: 0 36px; }



@media (max-width: 700px) {
  .detail-modal-overlay { padding: 12px; }
  .detail-modal { border-radius: 12px; }
  .detail-in-modal .container { padding: 0 16px; }
  .detail-modal-close { top: 10px; inset-inline-end: 10px; }
}



.browse-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}



.browse-title { font-size: 2rem; margin: 0 0 4px; }


.browse-sub { color: var(--muted); margin: 0; }



.browse-toolbar {
	display: flex;
	gap: 12px;
	align-items: center;
}



.browse-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: start;
}



.browse-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 80px;
}



.spec-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: var(--bg-soft);
	border-radius: 10px;
}



.spec-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: .875rem;
}



.spec-value { font-weight: 700; color: var(--text); }



.detail-modal {
	background: #fff;
	border-radius: 20px;
	width: 100%;
	max-width: 720px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: modalIn .25s ease-out;
}



.detail-modal-close {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(0,0,0,.06);
	border: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: all .2s;
}



.detail-modal-close:hover { background: rgba(0,0,0,.1); }



.spec-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}



.spec-item .spec-label { font-size: .75rem; }


.spec-item .spec-value { font-size: .9375rem; font-weight: 700; }



.avail-calendar-large {
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}



.avail-month {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 8px;
	border-radius: 10px;
	cursor: pointer;
	transition: all .2s;
	border: 2px solid transparent;
	font-size: .8125rem;
	text-align: center;
	gap: 2px;
	position: relative;
}



.avail-month input { display: none; }



.avail-month.avail-ok {
	background: rgba(16, 185, 129, .1);
	color: #065f46;
}



.avail-month.avail-warn {
	background: rgba(245, 158, 11, .1);
	color: #78350f;
}



.avail-month.avail-no,
.avail-month.is-disabled {
	background: rgba(239, 68, 68, .08);
	color: #7f1d1d;
	cursor: not-allowed;
	opacity: .55;
}



.avail-month-name { font-weight: 700; font-size: .9375rem; }


.avail-month-year { color: var(--muted); }


.avail-month-status { font-size: .6875rem; opacity: .8; }



.avail-month:not(.is-disabled):hover {
	border-color: currentColor;
	transform: translateY(-1px);
}



.avail-month.is-selected {
	background: var(--brand);
	color: #fff;
	border-color: var(--brand-700);
}



.avail-month.is-selected .avail-month-year,
.avail-month.is-selected .avail-month-status {
	color: rgba(255,255,255,.85);
}



.confirm-card {
	background: #fff;
	padding: 56px 48px;
	border-radius: 24px;
	border: 1px solid rgba(0,0,0,.05);
	text-align: center;
	max-width: 600px;
	width: 100%;
}



.confirm-icon-wrap { display: flex; justify-content: center; margin-bottom: 24px; }



.confirm-icon {
	width: 96px;
	height: 96px;
	background: rgba(16, 185, 129, .15);
	color: #10b981;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}



.confirm-title { font-size: 2rem; margin: 0 0 8px; }


.confirm-sub { color: var(--muted); margin: 0 0 32px; }



.confirm-details {
	background: var(--bg-soft);
	padding: 20px;
	border-radius: 14px;
	margin-bottom: 24px;
}



.confirm-detail-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	font-size: .9375rem;
}



.confirm-detail-row + .confirm-detail-row {
	border-top: 1px solid rgba(0,0,0,.06);
}



.confirm-payment-info {
	text-align: right;
	background: var(--brand-50);
	padding: 20px;
	border-radius: 14px;
	margin-bottom: 24px;
}



.confirm-payment-info h3 { font-size: 1rem; margin: 0 0 8px; }



.confirm-payment-info pre {
	background: #fff;
	padding: 12px;
	border-radius: 8px;
	font-family: var(--font-mono);
	font-size: .875rem;
	white-space: pre-wrap;
	word-break: break-word;
	margin: 0 0 8px;
}



.confirm-note { font-size: .875rem; color: var(--muted); }



.confirm-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}


.bb-card-compact .bb-card-body { padding: 14px; gap: 8px; }
/* ============================================================================
   Professional Cart Page (Plan One Booking)
   ============================================================================ */
.plan-one-cart {
	font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
	color: var(--pb-ink, var(--ink, #2A3559));
}

/* ── Empty state ── */
.po-cart-empty {
	text-align: center;
	padding: 80px 24px;
	max-width: 540px;
	margin: 0 auto;
}
.po-cart-empty-illus {
	display: inline-block;
	margin-bottom: 24px;
}
.po-cart-empty-title {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	color: var(--pb-ink, var(--ink, #2A3559));
	margin: 0 0 12px;
	letter-spacing: -.01em;
}
.po-cart-empty-text {
	font-size: 15px;
	line-height: 1.7;
	color: var(--pb-ink-500, var(--ink-500, #5A6584));
	margin: 0 auto 28px;
	max-width: 44ch;
}

/* ── Head bar ── */
.po-cart-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}
.po-cart-eyebrow {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: .2em;
	font-weight: 700;
	color: var(--pb-brand, var(--brand, #1E40D7));
	text-transform: uppercase;
	margin-bottom: 8px;
}
.po-cart-title {
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 900;
	color: var(--pb-ink, var(--ink, #2A3559));
	margin: 0 0 14px;
	letter-spacing: -.02em;
	line-height: 1.1;
}
.po-cart-meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--pb-ink-500, var(--ink-500, #5A6584));
}
.po-cart-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.po-cart-meta-item strong { color: var(--pb-ink, var(--ink, #2A3559)); }
.po-cart-meta-sep { opacity: .4; }
.po-cart-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pb-brand, var(--brand, #1E40D7));
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 16px;
	border: 1px solid var(--pb-line, var(--line, #E4E7F0));
	border-radius: 999px;
	background: var(--pb-surface, var(--surface, #fff));
	transition: all .2s;
}
.po-cart-back:hover {
	border-color: var(--pb-brand, var(--brand, #1E40D7));
	background: var(--pb-brand-50, var(--brand-50, #EEF2FF));
}

/* ── Layout ── */
.po-cart-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 28px;
	align-items: flex-start;
}

/* ── Cart cards ── */
.po-cart-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.po-cart-card {
	display: grid;
	grid-template-columns: 48px 1fr 180px;
	gap: 20px;
	padding: 22px 24px;
	background: var(--pb-surface, #fff);
	border: 1px solid var(--pb-line, #E4E7F0);
	border-radius: 16px;
	transition: all .2s;
	position: relative;
}
.po-cart-card:hover {
	border-color: rgba(30, 64, 215, .25);
	box-shadow: 0 8px 24px -16px rgba(30, 64, 215, .25);
}
.po-cart-card-num {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 32px;
	font-weight: 700;
	color: var(--pb-brand, #1E40D7);
	opacity: .25;
	letter-spacing: -.02em;
	line-height: 1;
	padding-top: 2px;
}
.po-cart-card-main { min-width: 0; }
.po-cart-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.po-cart-card-tags {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.po-cart-code {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--pb-muted, #8089A8);
	background: var(--pb-tint, #F4F2EC);
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 600;
}
.po-cart-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--pb-tint, #F4F2EC);
	border: 1px solid transparent;
	color: var(--pb-muted, #8089A8);
	cursor: pointer;
	transition: all .15s;
	flex-shrink: 0;
}
.po-cart-remove:hover {
	background: var(--pb-danger-50, #FCEAEA);
	color: var(--pb-danger, #C8333A);
	border-color: var(--pb-danger, #C8333A);
}
.po-cart-card-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--pb-ink, #2A3559);
	margin: 0 0 6px;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.po-cart-card-loc {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--pb-ink-500, #5A6584);
	margin: 0 0 14px;
}
.po-cart-card-stats {
	display: inline-flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px dashed var(--pb-line, #E4E7F0);
}
.po-cart-stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--pb-ink-700, #3C4670);
	font-weight: 500;
}
.po-cart-stat-unit { color: var(--pb-muted, #8089A8); font-size: 11px; }

/* Months */
.po-cart-months-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--pb-ink-700, #3C4670);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.po-cart-months-list {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.po-cart-month-chip {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 11px;
	border-radius: 6px;
	background: linear-gradient(135deg, var(--pb-brand-50, #EEF2FF), var(--pb-brand-100, #DCE3FE));
	color: var(--pb-brand, #1E40D7);
	border: 1px solid rgba(30, 64, 215, .15);
}

/* Card side (price) */
.po-cart-card-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
	padding-right: 8px;
	border-right: 1px dashed var(--pb-line, #E4E7F0);
	padding-right: 20px;
}
.po-cart-side-key {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pb-muted, #8089A8);
	font-weight: 600;
}
.po-cart-side-price {
	font-size: 24px;
	font-weight: 900;
	color: var(--pb-ink, #2A3559);
	letter-spacing: -.02em;
	line-height: 1;
}
.po-cart-side-currency {
	font-size: 13px;
	font-weight: 600;
	color: var(--pb-muted, #8089A8);
	margin-right: 4px;
}
.po-cart-side-calc {
	font-size: 11px;
	color: var(--pb-muted, #8089A8);
}

/* ── Summary sidebar ── */
.po-cart-summary {
	position: sticky;
	top: 100px;
}
.po-cart-summary-inner {
	background: var(--pb-surface, #fff);
	border: 1px solid var(--pb-line, #E4E7F0);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(15,27,64,.04), 0 12px 28px -16px rgba(30, 64, 215, .15);
}
.po-cart-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px 16px;
	border-bottom: 1px solid var(--pb-line, #E4E7F0);
}
.po-cart-summary-head h3 {
	font-size: 16px;
	font-weight: 800;
	margin: 0;
	color: var(--pb-ink, #2A3559);
}
.po-cart-summary-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 24px;
	padding: 0 8px;
	background: var(--pb-brand, #1E40D7);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.po-cart-summary-rows {
	padding: 18px 22px 8px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.po-cart-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}
.po-cart-summary-key {
	color: var(--pb-ink-500, #5A6584);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.po-cart-summary-val {
	color: var(--pb-ink, #2A3559);
	font-weight: 700;
}
.po-cart-summary-val small { font-size: 11px; color: var(--pb-muted, #8089A8); font-weight: 600; margin-right: 3px; }
.po-cart-summary-row-discount .po-cart-summary-val { color: var(--pb-ok, #0F9F76); }
.po-cart-discount-tag {
	background: var(--pb-ok, #0F9F76);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	letter-spacing: .04em;
}

.po-cart-summary-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px;
	margin: 6px 0 0;
	background: linear-gradient(135deg, var(--pb-brand-50, #EEF2FF), rgba(31, 207, 192, .06));
	border-top: 1px dashed var(--pb-line, #E4E7F0);
	border-bottom: 1px dashed var(--pb-line, #E4E7F0);
}
.po-cart-summary-total-key {
	font-size: 13px;
	font-weight: 700;
	color: var(--pb-ink, #2A3559);
	margin-bottom: 2px;
}
.po-cart-summary-total-sub {
	font-size: 10px;
	color: var(--pb-muted, #8089A8);
}
.po-cart-summary-total-val {
	font-size: 28px;
	font-weight: 900;
	color: var(--pb-brand, #1E40D7);
	letter-spacing: -.02em;
	line-height: 1;
}
.po-cart-summary-total-val small {
	font-size: 12px;
	font-weight: 600;
	color: var(--pb-muted, #8089A8);
	margin-right: 4px;
}

/* Checkout button */
.po-cart-checkout-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: calc(100% - 32px);
	margin: 16px;
	padding: 14px 20px;
	background: linear-gradient(135deg, var(--pb-brand, #1E40D7) 0%, #1734B5 100%);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all .2s;
	box-shadow: 0 8px 20px -8px rgba(30, 64, 215, .5);
	position: relative;
	overflow: hidden;
}
.po-cart-checkout-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
	opacity: 0;
	transition: opacity .2s;
}
.po-cart-checkout-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px -8px rgba(30, 64, 215, .6);
}
.po-cart-checkout-btn:hover::before { opacity: 1; }

/* Trust badges */
.po-cart-trust {
	padding: 4px 22px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.po-cart-trust-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--pb-ink-500, #5A6584);
	font-weight: 500;
}
.po-cart-trust-row svg { color: var(--pb-ok, #0F9F76); flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 968px) {
	.po-cart-layout {
		grid-template-columns: 1fr;
	}
	.po-cart-summary {
		position: static;
	}
	.po-cart-card {
		grid-template-columns: 36px 1fr;
		gap: 14px;
		padding: 18px 18px;
	}
	.po-cart-card-side {
		grid-column: 1 / -1;
		border-right: 0;
		border-top: 1px dashed var(--pb-line, #E4E7F0);
		padding: 14px 0 0;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	.po-cart-card-num { font-size: 26px; }
}

@media (max-width: 640px) {
	.po-cart-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

/* ============================================================================
   Filter mobile drawer — hide trigger and head/footer on desktop
   ============================================================================ */
.browse-filter-trigger { display: none; }
.browse-filters-head,
.browse-filters-footer { display: none; }
.browse-filters-body { padding: 0; }
.browse-filters-inner { display: contents; }

@media (max-width: 768px) {
	.browse-filter-trigger { display: inline-flex !important; }
	.browse-filters-head,
	.browse-filters-footer { display: flex !important; }
	.browse-filters-body { padding: 20px !important; }
	.browse-filters-inner { display: flex !important; flex-direction: column; }
	/* Hide desktop-only filter title since head bar shows on mobile */
	.browse-filters .browse-filters-title { display: none !important; }
}

/* ─── Hierarchy filter groups (municipality, area) ─── */
.js-municipality-group,
.js-area-group {
	transition: opacity .25s ease;
}
.filter-empty-hint {
	color: var(--muted, #8089A8);
	font-size: 13px;
	padding: 10px 12px;
	background: var(--line-soft, #F5F7FA);
	border-radius: 10px;
	text-align: center;
	font-style: italic;
}
.js-municipality-filter,
.js-area-filter {
	animation: filterFadeIn .25s ease;
}
@keyframes filterFadeIn {
	from { opacity: 0; transform: translateY(-3px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ─── Smart filter: dim empty options ─── */
.filter-item.is-empty {
	opacity: .4;
	pointer-events: none;
}
.checkbox-row.is-empty {
	opacity: .45;
}
.checkbox-row.is-empty input[type="checkbox"] {
	cursor: not-allowed;
}
.filter-item-count {
	transition: color .2s;
}
.filter-item.is-empty .filter-item-count,
.checkbox-row.is-empty .filter-item-count {
	color: var(--muted, #8089A8);
}

/* ════════════════════════════════════════════════════════════════════════
   Year tabs for multi-year calendar
   ════════════════════════════════════════════════════════════════════════ */
.cal-year-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
	padding: 4px;
	background: var(--tint, #F8FAFC);
	border-radius: 12px;
	border: 1px solid var(--line, #E5E9F2);
}
.cal-year-tab {
	flex: 1;
	padding: 10px 14px;
	background: transparent;
	border: 0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-500, #64748B);
	cursor: pointer;
	transition: all .15s;
	font-family: inherit;
}
.cal-year-tab:hover {
	color: var(--brand, #1E40D7);
}
.cal-year-tab.is-active {
	background: var(--brand, #1E40D7);
	color: #fff;
	box-shadow: 0 2px 8px -2px rgba(30, 64, 215, .35);
}
.cal-year-group {
	display: none;
}
.cal-year-group.is-active {
	display: grid;
}

/* ════════════════════════════════════════════════════════════════════════
   Plan One — Professional Calendar (po-cal-*)
   ════════════════════════════════════════════════════════════════════════ */
.po-cal-section {
	padding: 22px 0;
}

/* Header */
.po-cal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.po-cal-header-text h3 {
	font-size: 18px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 4px;
	line-height: 1.3;
}
.po-cal-header-text p {
	font-size: 13px;
	color: #64748B;
	margin: 0;
}

/* Year navigator */
.po-cal-year-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #E5E9F2;
	border-radius: 12px;
	padding: 4px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
	flex-shrink: 0;
}
.po-cal-nav-btn {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #1E40D7;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .15s;
}
.po-cal-nav-btn:hover:not(:disabled) {
	background: #EEF2FF;
}
.po-cal-nav-btn:disabled {
	color: #CBD5E1;
	cursor: not-allowed;
}
.po-cal-year-display {
	font-size: 16px;
	font-weight: 800;
	color: #0F172A;
	min-width: 56px;
	text-align: center;
	letter-spacing: 0.5px;
}

/* Legend */
.po-cal-legend {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding: 14px 16px;
	background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
	border-radius: 14px;
	border: 1px solid #E5E9F2;
}
.po-cal-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475569;
	font-weight: 600;
	flex: 1;
	min-width: 90px;
}
.po-cal-legend-item strong {
	margin-right: auto;
	padding: 2px 10px;
	background: #fff;
	border-radius: 999px;
	font-size: 12px;
	color: #0F172A;
	min-width: 28px;
	text-align: center;
	border: 1px solid #E5E9F2;
}
.po-cal-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}
.po-cal-dot-available { background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.po-cal-dot-booked    { background: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.po-cal-dot-selected  { background: #1E40D7; box-shadow: 0 0 0 3px rgba(30, 64, 215, .15); }

.po-cal-legend-selected strong {
	background: #1E40D7;
	color: #fff;
	border-color: #1E40D7;
}

/* Grid */
.po-cal-grid {
	display: none;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	animation: po-cal-fade .3s ease-out;
}
.po-cal-grid.is-active {
	display: grid;
}
@keyframes po-cal-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Cell */
.po-cal-cell {
	position: relative;
	background: #fff;
	border: 2px solid #E5E9F2;
	border-radius: 14px;
	padding: 14px 12px 12px;
	cursor: pointer;
	text-align: center;
	font-family: inherit;
	transition: all .2s cubic-bezier(.4, 0, .2, 1);
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 120px;
	overflow: hidden;
}
.po-cal-cell::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: transparent;
	transition: background .2s;
}

/* Day number */
.po-cal-cell-num {
	font-family: 'IBM Plex Mono', 'Cairo', monospace;
	font-size: 22px;
	font-weight: 800;
	color: #0F172A;
	letter-spacing: -1px;
	line-height: 1;
	margin-bottom: 2px;
}

/* Month name */
.po-cal-cell-name {
	font-size: 14px;
	font-weight: 700;
	color: #1F2937;
	line-height: 1.2;
}
.po-cal-cell-year {
	font-size: 11px;
	color: #94A3B8;
	font-weight: 500;
	margin-bottom: 8px;
}

/* Badge */
.po-cal-cell-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 999px;
	margin-top: auto;
	width: fit-content;
	margin-inline: auto;
}

/* Check icon — hidden by default */
.po-cal-cell-check {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 24px;
	height: 24px;
	border-radius: 7px;
	background: #1E40D7;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0);
	transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
	box-shadow: 0 4px 10px -2px rgba(30, 64, 215, .5);
}

/* ─── States ─── */

/* Available */
.po-cal-cell.is-available::before { background: #10B981; }
.po-cal-cell.is-available .po-cal-cell-badge {
	background: #DCFCE7;
	color: #15803D;
}
.po-cal-cell.is-available:hover {
	border-color: #1E40D7;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -8px rgba(30, 64, 215, .3);
}

/* Partial */
.po-cal-cell.is-partial::before { background: #F59E0B; }
.po-cal-cell.is-partial {
	border-color: #FDE68A;
}
.po-cal-cell.is-partial .po-cal-cell-badge {
	background: #FEF3C7;
	color: #B45309;
}
.po-cal-cell.is-partial:hover {
	border-color: #F59E0B;
	transform: translateY(-2px);
}

/* Booked */
.po-cal-cell.is-booked::before { background: #DC2626; }
.po-cal-cell.is-booked {
	background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
	border-color: #FECACA;
	cursor: not-allowed;
	opacity: .9;
}
.po-cal-cell.is-booked .po-cal-cell-num,
.po-cal-cell.is-booked .po-cal-cell-name {
	color: #94A3B8;
	text-decoration: line-through;
}
.po-cal-cell.is-booked .po-cal-cell-badge {
	background: #FEE2E2;
	color: #B91C1C;
}
.po-cal-cell.is-booked:hover {
	transform: none;
	box-shadow: none;
}

/* Selected */
.po-cal-cell.is-selected,
.po-cal-cell.selected {
	background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 100%);
	border-color: #1E40D7;
	box-shadow: 0 0 0 3px rgba(30, 64, 215, .15), 0 8px 20px -6px rgba(30, 64, 215, .35);
	transform: translateY(-2px);
}
.po-cal-cell.is-selected::before,
.po-cal-cell.selected::before { background: #1E40D7; }
.po-cal-cell.is-selected .po-cal-cell-num,
.po-cal-cell.selected .po-cal-cell-num {
	color: #1E40D7;
}
.po-cal-cell.is-selected .po-cal-cell-badge,
.po-cal-cell.selected .po-cal-cell-badge {
	background: #1E40D7;
	color: #fff;
}
.po-cal-cell.is-selected .po-cal-cell-check,
.po-cal-cell.selected .po-cal-cell-check {
	transform: scale(1);
}

/* Responsive */
@media (max-width: 640px) {
	.po-cal-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	.po-cal-cell {
		min-height: 100px;
		padding: 12px 10px 10px;
	}
	.po-cal-cell-num { font-size: 18px; }
	.po-cal-legend {
		padding: 10px 12px;
	}
	.po-cal-legend-item {
		min-width: 80px;
		font-size: 12px;
	}
	.po-cal-header {
		flex-direction: column;
	}
	.po-cal-year-nav {
		width: 100%;
		justify-content: space-between;
	}
}

/* ════════════════════════════════════════════════════════════════════════
   Filter groups as collapsible <details> dropdowns
   ════════════════════════════════════════════════════════════════════════ */
.browse-filters details.filter-group {
	background: #fff;
	border: 1px solid var(--line, #E5E9F2);
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
	transition: box-shadow .2s, border-color .2s;
}
.browse-filters details.filter-group[open] {
	border-color: rgba(30, 64, 215, .25);
	box-shadow: 0 4px 14px -6px rgba(30, 64, 215, .15);
}

/* Hide native marker */
.browse-filters details.filter-group > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink, #0F172A);
	margin: 0;
	position: relative;
	transition: background .15s;
}
.browse-filters details.filter-group > summary::-webkit-details-marker {
	display: none;
}
.browse-filters details.filter-group > summary::marker {
	display: none;
}

/* Custom chevron icon */
.browse-filters details.filter-group > summary::after {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--ink-500, #64748B);
	border-bottom: 2px solid var(--ink-500, #64748B);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .25s ease;
	flex-shrink: 0;
}
.browse-filters details.filter-group[open] > summary::after {
	transform: rotate(-135deg) translate(-2px, -2px);
	border-color: #1E40D7;
}

/* Hover */
.browse-filters details.filter-group > summary:hover {
	background: var(--line-soft, #F8FAFC);
}

/* Active state when has filters */
.browse-filters details.filter-group[open] > summary {
	color: #1E40D7;
	border-bottom: 1px solid var(--line, #E5E9F2);
}

/* Content padding */
.browse-filters details.filter-group > .filter-list,
.browse-filters details.filter-group > .checkbox-row,
.browse-filters details.filter-group > input[type="range"],
.browse-filters details.filter-group > div:not(.filter-list) {
	padding: 12px 16px 14px;
}
.browse-filters details.filter-group > .filter-list {
	padding-top: 8px;
}

/* Smooth expand animation */
.browse-filters details.filter-group[open] > *:not(summary) {
	animation: filterExpand .25s ease;
}
@keyframes filterExpand {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Reset margin on first/last filter group */
.browse-filters details.filter-group:last-of-type {
	margin-bottom: 16px;
}

/* Mobile-specific tweaks */
@media (max-width: 968px) {
	.browse-filters details.filter-group {
		border-radius: 14px;
		margin-bottom: 8px;
	}
	.browse-filters details.filter-group > summary {
		padding: 16px 18px;
		font-size: 15px;
	}
	.browse-filters details.filter-group > summary:active {
		background: var(--brand-50, #EEF2FF);
	}
}

/* Desktop enhancement — Better sidebar with scrollable filters */
@media (min-width: 969px) {
	.plan-one-browse-fullwidth .browse-filters {
		position: sticky !important;
		top: var(--header-height, 76px) !important;
		max-height: calc(100vh - var(--header-height, 76px)) !important;
		overflow-y: auto !important;
		padding: 20px 16px !important;
		scrollbar-width: thin;
		scrollbar-color: #CBD5E1 transparent;
	}
	.plan-one-browse-fullwidth .browse-filters::-webkit-scrollbar {
		width: 6px;
	}
	.plan-one-browse-fullwidth .browse-filters::-webkit-scrollbar-thumb {
		background: #CBD5E1;
		border-radius: 999px;
	}
	.plan-one-browse-fullwidth .browse-filters::-webkit-scrollbar-track {
		background: transparent;
	}

	/* Better spacing on desktop sidebar */
	.browse-filters .browse-filters-desktop-head {
		display: flex !important;
		margin-bottom: 14px !important;
		padding-bottom: 14px !important;
		border-bottom: 1px solid var(--line, #E5E9F2);
	}

	/* Tighter filter cards on desktop sidebar */
	.browse-filters details.filter-group {
		border-radius: 10px;
		margin-bottom: 8px;
	}
	.browse-filters details.filter-group > summary {
		padding: 11px 14px;
		font-size: 14px;
	}
}

/* ════════════════════════════════════════════════════════════════════════
   BROWSE V2 — Complete Standalone Toolbar Filter (final, isolated)
   ════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   ROOT — block layout, no grid
   ────────────────────────────────────────────── */
.browse-v2 {
	display: block;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}
.browse-v2 *,
.browse-v2 *::before,
.browse-v2 *::after {
	box-sizing: border-box;
}

/* ──────────────────────────────────────────────
   TOOLBAR — desktop horizontal
   ────────────────────────────────────────────── */
.browse-v2 .browse-toolbar-v2 {
	display: block;
	background: #fff;
	border: 1.5px solid #E5E9F2;
	border-radius: 16px;
	padding: 16px 18px;
	margin: 16px 0 20px;
	box-shadow: 0 4px 18px -8px rgba(15, 27, 64, .08);
	width: 100%;
}

/* Top row: search + sort */
.browse-v2 .browse-tb-row-top {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px dashed #E5E9F2;
}

/* Search */
.browse-v2 .browse-tb-search {
	position: relative;
	flex: 1 1 300px;
	min-width: 240px;
}
.browse-v2 .browse-tb-search input {
	width: 100%;
	height: 44px;
	padding: 0 44px 0 16px;
	border: 1.5px solid #E5E9F2;
	border-radius: 12px;
	background: #F8FAFC;
	font-size: 14px;
	font-family: inherit;
	color: #0F172A;
	transition: all .15s;
}
.browse-v2 .browse-tb-search input:focus {
	outline: none;
	border-color: #1E40D7;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(30, 64, 215, .12);
}
.browse-v2 .browse-tb-search-icon {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	color: #94A3B8;
	pointer-events: none;
}

/* Sort select */
.browse-v2 .browse-tb-sort {
	width: 220px;
	height: 44px;
	flex-shrink: 0;
}

/* Filter row */
.browse-v2 .browse-tb-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
}

/* Each field */
.browse-v2 .browse-tb-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1 1 150px;
	min-width: 130px;
	max-width: 190px;
}

/* Label */
.browse-v2 .browse-tb-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	color: #64748B;
	padding: 0 2px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0;
}
.browse-v2 .browse-tb-label svg {
	color: #1E40D7;
	flex-shrink: 0;
}

/* Select dropdown */
.browse-v2 .browse-tb-select {
	display: block;
	width: 100%;
	height: 40px;
	padding: 0 36px 0 14px;
	border: 1.5px solid #E5E9F2;
	border-radius: 10px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: left 12px center;
	background-size: 14px;
	font-size: 13.5px;
	font-weight: 600;
	font-family: 'Cairo', sans-serif;
	color: #0F172A;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	margin: 0;
	transition: all .15s;
}
.browse-v2 .browse-tb-select:hover {
	border-color: rgba(30, 64, 215, .35);
	background-color: #F8FAFC;
}
.browse-v2 .browse-tb-select:focus {
	outline: none;
	border-color: #1E40D7;
	box-shadow: 0 0 0 3px rgba(30, 64, 215, .12);
}
.browse-v2 .browse-tb-select.is-active {
	border-color: #1E40D7;
	background-color: #EEF2FF;
	color: #1E40D7;
	font-weight: 700;
}

/* Reset button */
.browse-v2 .browse-tb-reset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 14px;
	background: #fff;
	color: #64748B;
	border: 1.5px solid #E5E9F2;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	flex-shrink: 0;
	white-space: nowrap;
	margin: 0;
	transition: all .15s;
}
.browse-v2 .browse-tb-reset:hover {
	background: #FEE2E2;
	color: #DC2626;
	border-color: #FCA5A5;
}

/* Active chips */
.browse-v2 .browse-tb-chips {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #E5E9F2;
	flex-wrap: wrap;
}
.browse-v2 .browse-tb-chips-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 800;
	color: #1E40D7;
	white-space: nowrap;
}
.browse-v2 .browse-tb-chips-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.browse-v2 .browse-tb-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
	color: #1E40D7;
	padding: 5px 6px 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid rgba(30, 64, 215, .25);
	max-width: 200px;
}
.browse-v2 .browse-tb-chip > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.browse-v2 .browse-tb-chip-remove {
	width: 18px;
	height: 18px;
	background: rgba(220, 38, 38, .15);
	color: #DC2626;
	border: 0;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	transition: all .2s;
	flex-shrink: 0;
}
.browse-v2 .browse-tb-chip-remove:hover {
	background: #DC2626;
	color: #fff;
	transform: rotate(90deg);
}

/* ──────────────────────────────────────────────
   CONTENT (map + grid)
   ────────────────────────────────────────────── */
.browse-v2 .browse-content-v2 {
	display: block;
	width: 100%;
	max-width: 100%;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
}

.browse-v2 .browse-map-wrap {
	position: relative;
	width: 100%;
	height: 480px;
	margin: 0 0 20px;
	border-radius: 16px;
	overflow: hidden;
	background: #F1F5F9;
}
.browse-v2 #plan-one-map {
	width: 100%;
	height: 100%;
}

.browse-v2 .browse-results-bar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 12px 4px;
	margin: 0 0 16px;
}
.browse-v2 .browse-results-bar h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: #0F172A;
}
.browse-v2 .browse-results-bar .muted {
	font-size: 13px;
	color: #64748B;
}

.browse-v2 .browse-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
	width: 100%;
	padding: 0 0 60px;
}
.browse-v2 .bb-card-wrap {
	display: block;
}

/* ──────────────────────────────────────────────
   MOBILE TRIGGER + DRAWER
   ────────────────────────────────────────────── */
.browse-v2 .browse-tb-mobile-trigger {
	display: none;
}

/* ═══════════════ DESKTOP ═══════════════ */
@media (min-width: 969px) {
	.browse-v2 .browse-tb-mobile-trigger,
	.browse-tb-mobile-drawer {
		display: none !important;
	}
}

/* ═══════════════ MOBILE ═══════════════ */
@media (max-width: 968px) {
	.browse-v2 {
		padding: 0;
	}
	.browse-v2 .browse-toolbar-v2 {
		display: none;
	}
	.browse-v2 .browse-tb-mobile-trigger {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 100%;
		height: 52px;
		margin: 0;
		padding: 0 18px;
		background: linear-gradient(135deg, #1E40D7 0%, #1734B5 100%);
		color: #fff;
		border: 0;
		border-radius: 0;
		font-family: inherit;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
		box-shadow: 0 2px 8px -2px rgba(15, 27, 64, .15);
		position: relative;
	}
	.browse-v2 .browse-tb-mobile-count {
		min-width: 22px;
		height: 22px;
		padding: 0 7px;
		background: #fff;
		color: #1E40D7;
		border-radius: 999px;
		font-size: 12px;
		font-weight: 800;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-inline-start: 4px;
	}
	.browse-v2 .browse-map-wrap {
		height: 50vh;
		min-height: 320px;
		border-radius: 0;
		margin: 0 0 12px;
	}
	.browse-v2 .browse-results-bar {
		padding: 14px 16px;
		margin: 0 0 8px;
	}
	.browse-v2 .browse-results-bar h2 { font-size: 18px; }
	.browse-v2 .browse-grid {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 0 12px 60px;
	}
}

/* Mobile drawer styles */
@media (max-width: 968px) {
	.browse-tb-mobile-drawer {
		position: fixed;
		inset: 0;
		z-index: 9999;
		background: #fff;
		display: none;
		flex-direction: column;
	}
	.browse-tb-mobile-drawer.is-open {
		display: flex;
		animation: drawerSlideIn .3s cubic-bezier(.4, 0, .2, 1);
	}
	@keyframes drawerSlideIn {
		from { transform: translateX(100%); }
		to   { transform: translateX(0); }
	}
	.browse-tb-mobile-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
		padding-top: calc(16px + env(safe-area-inset-top));
		background: linear-gradient(135deg, #1E40D7, #1734B5);
		color: #fff;
		flex-shrink: 0;
	}
	.browse-tb-mobile-header h3 {
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 17px;
		font-weight: 800;
		margin: 0;
		color: #fff;
	}
	.browse-tb-mobile-close {
		width: 38px;
		height: 38px;
		background: rgba(255, 255, 255, .18);
		color: #fff;
		border: 0;
		border-radius: 50%;
		font-size: 22px;
		font-weight: 700;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
		padding: 0;
	}
	.browse-tb-mobile-body {
		flex: 1;
		overflow-y: auto;
		padding: 20px;
		-webkit-overflow-scrolling: touch;
	}
	.browse-tb-mobile-body .browse-tb-field {
		max-width: 100%;
		margin-bottom: 14px;
		flex: none;
	}
	.browse-tb-mobile-body .browse-tb-select {
		height: 48px;
		font-size: 14.5px;
	}
	.browse-tb-mobile-body .browse-tb-search input {
		height: 48px;
	}
	.browse-tb-mobile-body .browse-tb-row-top,
	.browse-tb-mobile-body .browse-tb-filters {
		display: block;
	}
	.browse-tb-mobile-body .browse-tb-row-top > *,
	.browse-tb-mobile-body .browse-tb-filters > * {
		margin-bottom: 14px;
	}
	.browse-tb-mobile-body .browse-tb-reset,
	.browse-tb-mobile-body .browse-tb-chips {
		display: none;
	}
	.browse-tb-mobile-actions {
		display: grid;
		grid-template-columns: 1fr 2fr;
		gap: 10px;
		padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #E5E9F2;
		box-shadow: 0 -6px 16px -6px rgba(15, 27, 64, .08);
		flex-shrink: 0;
	}
	.browse-tb-mobile-actions .btn {
		height: 50px;
		border-radius: 14px;
		font-size: 15px;
		font-weight: 700;
	}
	.browse-tb-mobile-actions .btn-primary {
		background: linear-gradient(135deg, #1E40D7, #1734B5);
		color: #fff;
	}
	.browse-tb-mobile-actions .btn-ghost {
		background: #F1F5F9;
		color: #475569;
	}
	body.tb-drawer-open {
		overflow: hidden;
	}
}

@media (min-width: 969px) {
	.browse-tb-mobile-drawer { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   FORCE STYLES — Last resort with body prefix + !important
   ════════════════════════════════════════════════════════════════════════ */

body .browse-v2 {
	display: block !important;
	grid-template-columns: none !important;
}

body .browse-v2 .browse-toolbar-v2 {
	display: block !important;
	width: 100% !important;
}

body .browse-v2 .browse-tb-row-top {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px !important;
}

body .browse-v2 .browse-tb-filters {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: flex-end !important;
	gap: 10px !important;
}

body .browse-v2 .browse-tb-field {
	display: flex !important;
	flex-direction: column !important;
	gap: 5px !important;
	flex: 1 1 150px !important;
	min-width: 130px !important;
	max-width: 200px !important;
	float: none !important;
	clear: none !important;
}

body .browse-v2 .browse-tb-search {
	flex: 1 1 300px !important;
	min-width: 240px !important;
}

body .browse-v2 .browse-tb-select {
	display: block !important;
	width: 100% !important;
	height: 40px !important;
}

body .browse-v2 .browse-tb-sort {
	width: 220px !important;
	height: 44px !important;
}

body .browse-v2 .browse-content-v2 {
	display: block !important;
	width: 100% !important;
	float: none !important;
	clear: both !important;
}

@media (min-width: 969px) {
	body .browse-v2 .browse-tb-mobile-trigger {
		display: none !important;
	}
}
