/* HBH Delivery Checker 1.0 – colours follow the Cooking page tokens when they exist (--hbh-*), with the same hex values as fallback. */

.hbd, .hbd-map {
	--hbd-navy: var(--hbh-navy, #123B63);
	--hbd-navy-dark: var(--hbh-navy-dark, #0D2C4A);
	--hbd-gold: var(--hbh-gold, #D9A441);
	--hbd-gold-dark: var(--hbh-gold-dark, #A9781F);
	--hbd-gold-soft: var(--hbh-gold-soft, #F3E3BF);
	--hbd-card: var(--hbh-card, #F7F3EA);
	--hbd-border: var(--hbh-border, #E6DFCF);
	--hbd-text: var(--hbh-text, #2A2A2A);
	--hbd-muted: var(--hbh-muted, #6B6B66);
	--hbd-link: var(--hbh-gold, #D9A441);
	--hbd-link-hover: #E8BB62;
	--hbd-green: #2F7D5B;
	--hbd-green-soft: #E6F2EC;
}

/* ====================== Section panel (set up in the Elementor template) ====================== */
.hbd-panel { overflow: hidden; }
.hbd-map-col { align-self: stretch; min-height: 320px; padding: 0 !important; }
.hbd-map-col > .elementor-widget, .hbd-map-col .elementor-widget-container, .hbd-map-col .elementor-shortcode { height: 100%; }

/* ====================== Form ====================== */
.hbd { width: 100%; font-family: Inter, sans-serif; }
.hbd-form { margin: 0; }
.hbd-label { display: block; margin: 0 0 6px; color: var(--hbd-navy); font: 600 13px/18px Inter, sans-serif; letter-spacing: .02em; }
.hbd-row { display: flex; gap: 10px; align-items: stretch; }
.hbd-field {
	flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: #fff;
	border: 1px solid var(--hbd-border); border-radius: 12px; color: var(--hbd-muted); transition: border-color .15s ease, box-shadow .15s ease;
}
.hbd-field:focus-within { border-color: var(--hbd-gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .22); }
.hbd .hbd-field .hbd-input,
.hbd .hbd-field input[type="text"] {
	flex: 1; min-width: 0; width: 100%; height: auto; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: transparent !important; box-shadow: none !important; outline: 0 !important; -webkit-appearance: none; appearance: none;
	color: var(--hbd-text); font: 500 15px/22px Inter, sans-serif; letter-spacing: 0; text-transform: none;
}
.hbd .hbd-field input::placeholder { color: #9A978E; font-weight: 400; }
.hbd .hbd-field:has(.has-error) { border-color: #C0563A; box-shadow: 0 0 0 3px rgba(192, 86, 58, .14); }

.hbd .hbd-btn {
	flex: 0 0 auto; height: 48px; margin: 0; padding: 0 22px !important; border: 0 !important; border-radius: 12px !important; cursor: pointer;
	background: var(--hbd-navy) !important; color: #fff !important; font: 600 14px/20px Inter, sans-serif; letter-spacing: .02em; box-shadow: none !important;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}
.hbd .hbd-btn:hover:not(:disabled), .hbd .hbd-btn:focus-visible:not(:disabled) { background: var(--hbd-gold) !important; color: var(--hbd-navy-dark) !important; transform: translateY(-1px); }
.hbd .hbd-btn:disabled { opacity: .7; cursor: progress; }
.hbd.is-busy .hbd-btn-text::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hbd-spin .7s linear infinite; }
@keyframes hbd-spin { to { transform: rotate(360deg); } }
.hbd-help { margin: 8px 0 0; color: var(--hbd-muted); font: 400 12px/18px Inter, sans-serif; }

/* ====================== Result ====================== */
.hbd-result { margin-top: 14px; min-height: 0; }
.hbd-result:empty { display: none; }
.hbd-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hbd-border); background: #fff; animation: hbd-in .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hbd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hbd-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; }
.hbd-card.is-ok { border-color: #CFE5D8; background: #FBFDFC; }
.hbd-card.is-ok .hbd-ico { background: var(--hbd-green-soft); color: var(--hbd-green); }
.hbd-card.is-no { border-color: var(--hbd-border); background: var(--hbd-card); }
.hbd-card.is-no .hbd-ico { background: var(--hbd-gold-soft); color: var(--hbd-gold-dark); }
.hbd-card.is-err { border-color: #EAD3CB; background: #FDF8F6; }
.hbd-card.is-err .hbd-ico { background: #F7E4DD; color: #B04A30; }
.hbd-body { min-width: 0; }
.hbd-title { margin: 0; color: var(--hbd-navy); font: 600 15px/22px Inter, sans-serif; }
.hbd-fee { margin: 4px 0 0; color: var(--hbd-muted); font: 500 14px/22px Inter, sans-serif; }
.hbd-fee strong { color: var(--hbd-navy); font: 700 24px/30px "Playfair Display", serif; }
.hbd-fee small { font-size: 12px; }
.hbd-rates { list-style: none; margin: 8px 0 0; padding: 0; }
.hbd-rates li { display: flex; justify-content: space-between; gap: 24px; padding: 6px 0; color: var(--hbd-text); font: 400 14px/20px Inter, sans-serif; }
.hbd-rates li strong { color: var(--hbd-gold-dark); font-weight: 600; white-space: nowrap; }
.hbd-text { margin: 4px 0 0; color: var(--hbd-muted); font: 400 13px/20px Inter, sans-serif; }
.hbd-free { margin: 6px 0 0; color: var(--hbd-gold-dark); font: 600 13px/20px Inter, sans-serif; }
.hbd-meta { margin: 6px 0 0; color: var(--hbd-muted); font: 500 12px/16px Inter, sans-serif; letter-spacing: .04em; }
.hbd-debug { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--hbd-border); color: #8B8880; font: 400 11px/16px Inter, sans-serif; }

/* ====================== Map ====================== */
.hbd-map { position: relative; width: 100%; height: 100%; min-height: 320px; overflow: hidden; background: var(--hbd-card); }
.hbd-map-frame {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none;
	filter: sepia(.32) saturate(.82) brightness(1.03) contrast(.98); /* warms the map toward the page's cream tones */
}
.hbd-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(18, 59, 99, .06); }
.hbd-pin { position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); pointer-events: none; }
.hbd-pin-icon { display: block; filter: drop-shadow(0 6px 8px rgba(13, 44, 74, .35)); animation: hbd-drop .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hbd-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.hbd-tag {
	position: relative; margin-bottom: 8px; padding: 7px 12px; max-width: 230px; text-align: center; border-radius: 10px; background: #fff;
	border: 1px solid var(--hbd-border); box-shadow: 0 8px 20px -8px rgba(13, 44, 74, .4); white-space: nowrap;
}
.hbd-tag::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: #fff; border-right: 1px solid var(--hbd-border); border-bottom: 1px solid var(--hbd-border); transform: rotate(45deg); }
.hbd-tag strong { display: block; color: var(--hbd-navy); font: 700 12px/16px Inter, sans-serif; }
.hbd-tag span { display: block; color: var(--hbd-muted); font: 500 11px/15px Inter, sans-serif; }
.hbd-map-link {
	position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92);
	color: var(--hbd-navy); text-decoration: none; font: 600 11px/16px Inter, sans-serif; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .25); transition: background .15s ease;
}
.hbd-map-link:hover, .hbd-map-link:focus-visible { background: var(--hbd-gold); color: var(--hbd-navy-dark); }

/* ====================== Responsive ====================== */
@media (max-width: 767px) {
	.hbd-map-col { min-height: 240px; }
	.hbd-map { min-height: 240px; }
	.hbd-row { flex-direction: column; }
	.hbd .hbd-btn { width: 100%; }
	.hbd-tag { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
	.hbd-card, .hbd-pin-icon { animation: none; }
	.hbd .hbd-btn, .hbd-field { transition: none; }
}

/* ====================== Interactive map (Leaflet) ====================== */
.hbd-fallback { position: absolute; inset: 0; }
.hbd-map.is-live .hbd-fallback { display: none; }
.hbd-leaflet { position: absolute; inset: 0; z-index: 1; background: var(--hbd-card); font-family: Inter, sans-serif; }
.hbd-map .leaflet-tile-pane { filter: sepia(.32) saturate(.82) brightness(1.03) contrast(.98); } /* warms the map toward the page's cream tones */
.hbd-map .leaflet-container { background: var(--hbd-card); font-family: Inter, sans-serif; }
.hbd-map .leaflet-bar { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px -8px rgba(13, 44, 74, .4); }
.hbd-map .leaflet-bar a {
	width: 34px; height: 34px; line-height: 34px; background: #fff; color: var(--hbd-navy); border-bottom: 1px solid var(--hbd-border);
	font: 600 18px/34px Inter, sans-serif; transition: background .15s ease, color .15s ease;
}
.hbd-map .leaflet-bar a:last-child { border-bottom: 0; }
.hbd-map .leaflet-bar a:hover, .hbd-map .leaflet-bar a:focus-visible { background: var(--hbd-gold); color: var(--hbd-navy-dark); }
.hbd-map .leaflet-bar a.leaflet-disabled { background: #f4f2ec; color: #b7b3a8; }
.hbd-map .leaflet-control-attribution { padding: 1px 6px; background: rgba(255, 255, 255, .85); color: var(--hbd-muted); font: 400 10px/16px Inter, sans-serif; }
.hbd-map .leaflet-control-attribution a { color: var(--hbd-navy); }
.hbd-mk { background: transparent; border: 0; }
.hbd-mk-wrap { position: relative; width: 34px; height: 42px; }
.hbd-mk-wrap .hbd-tag { position: absolute; left: 50%; bottom: 50px; margin: 0; transform: translateX(-50%); }
.hbd-mk-pin { filter: drop-shadow(0 6px 8px rgba(13, 44, 74, .35)); }
.hbd-mk-pin svg { display: block; }

/* ====================== "Order Your Dishes" text link (shown only when delivery is available) ====================== */
.hbd-link-row { margin: 8px 0 0; }
.hbd .hbd-link {
	display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: var(--hbd-link) !important;
	font: 700 13px/20px Inter, sans-serif; letter-spacing: .01em; text-decoration: none; transition: color .15s ease;
}
.hbd .hbd-link:hover, .hbd .hbd-link:focus-visible { color: var(--hbd-link-hover) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hbd .hbd-link-ico { display: inline-flex; transition: transform .18s ease; }
.hbd .hbd-link:hover .hbd-link-ico, .hbd .hbd-link:focus-visible .hbd-link-ico { transform: translateY(-2px); }
#hbh-menu { scroll-margin-top: 16px; }
