/* Marfani Holidays Core. Override the variables in your theme to match the brand. */
:root {
	--mhc-accent: #0093c6;
	--mhc-accent-ink: #fff;
	--mhc-ink: #13212b;
	--mhc-muted: #5f6b76;
	--mhc-line: #e4e8ec;
	--mhc-bg: #fff;
	--mhc-tint: #f4f7f8;
	--mhc-visa: #c2410c;
	--mhc-radius: 16px;
	--mhc-shadow: 0 10px 30px rgba(19, 33, 43, .08);
	--mhc-wrap: 1320px;
}

.mhc-wrap { max-width: var(--mhc-wrap); margin: 0 auto; padding: 0 20px; }
.mhc-page { color: var(--mhc-ink); }
.mhc-section { padding: 64px 0; }
.mhc-section--tint { background: var(--mhc-tint); }
.mhc-section__head { margin-bottom: 28px; }
.mhc-section__head h2 { margin: 6px 0 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.mhc-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mhc-accent); }
.mhc-intro { max-width: 820px; font-size: 18px; line-height: 1.7; color: var(--mhc-muted); }

/* Buttons and chips */
.mhc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--mhc-accent); background: var(--mhc-accent); color: var(--mhc-accent-ink); font-weight: 600; text-decoration: none; line-height: 1; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.mhc-btn:hover { transform: translateY(-2px); color: var(--mhc-accent-ink); }
.mhc-btn--light { background: #fff; border-color: #fff; color: var(--mhc-ink); }
.mhc-btn--light:hover { color: var(--mhc-ink); }
.mhc-btn--ghost { background: transparent; color: var(--mhc-accent); }
.mhc-btn--ghost:hover { background: var(--mhc-accent); color: var(--mhc-accent-ink); }
.mhc-btn--sm { padding: 9px 16px; font-size: 14px; }
.mhc-btn--block { width: 100%; margin-top: 18px; }
.mhc-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--mhc-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mhc-chip--on-media { position: absolute; top: 14px; left: 14px; }
.mhc-chip--visa { background: var(--mhc-visa); color: #fff; }

/* Toolbar, search, tabs */
.mhc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.mhc-search { position: relative; display: flex; align-items: center; flex: 1 1 340px; max-width: 520px; margin: 0; }
.mhc-search__icon { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--mhc-muted); pointer-events: none; }
.mhc-search__input { width: 100%; height: 54px; padding: 0 48px 0 50px !important; border: 1px solid var(--mhc-line) !important; border-radius: 999px !important; background: var(--mhc-bg) !important; font-size: 16px; color: var(--mhc-ink); box-shadow: var(--mhc-shadow); outline: none; transition: border-color .2s, box-shadow .2s; }
.mhc-search__input:focus { border-color: var(--mhc-accent) !important; box-shadow: 0 0 0 4px rgba(0, 147, 198, .14); }
.mhc-spinner { position: absolute; right: 18px; width: 18px; height: 18px; border: 2px solid var(--mhc-line); border-top-color: var(--mhc-accent); border-radius: 50%; opacity: 0; animation: mhc-spin .7s linear infinite; transition: opacity .2s; }
.is-loading > .mhc-toolbar .mhc-spinner, .mhc-live.is-loading .mhc-spinner { opacity: 1; }
@keyframes mhc-spin { to { transform: rotate(360deg); } }
.mhc-count { margin: 0; color: var(--mhc-muted); font-size: 15px; }

.mhc-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 26px; scrollbar-width: none; }
.mhc-tabs::-webkit-scrollbar { display: none; }
.mhc-tab { flex: 0 0 auto; padding: 11px 20px; border: 1px solid var(--mhc-line); border-radius: 999px; background: var(--mhc-bg); color: var(--mhc-ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: all .2s; }
.mhc-tab:hover { border-color: var(--mhc-accent); color: var(--mhc-accent); background: var(--mhc-bg); }
.mhc-tab.is-active { background: var(--mhc-accent); border-color: var(--mhc-accent); color: var(--mhc-accent-ink); }

/* Grid */
.mhc-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); transition: opacity .2s; }
.mhc-grid--1 { grid-template-columns: 1fr; }
.mhc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mhc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mhc-listing.is-loading .mhc-grid { opacity: .45; pointer-events: none; }
.mhc-empty { padding: 40px 20px; text-align: center; color: var(--mhc-muted); border: 1px dashed var(--mhc-line); border-radius: var(--mhc-radius); }
.mhc-more { text-align: center; margin-top: 32px; }
[hidden] { display: none !important; }

/* Cards */
.mhc-card { display: flex; flex-direction: column; background: var(--mhc-bg); border: 1px solid var(--mhc-line); border-radius: var(--mhc-radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.mhc-card:hover { transform: translateY(-4px); box-shadow: var(--mhc-shadow); }
.mhc-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--mhc-tint); overflow: hidden; }
.mhc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mhc-card:hover .mhc-card__media img { transform: scale(1.05); }
.mhc-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px; }
.mhc-card__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mhc-accent); text-decoration: none; }
.mhc-card__eyebrow svg { width: 15px; height: 15px; }
.mhc-card__title { margin: 0; font-size: 20px; line-height: 1.3; }
.mhc-card__title a { color: inherit; text-decoration: none; }
.mhc-card__title a:hover { color: var(--mhc-accent); }
.mhc-card__sub { margin: 0; color: var(--mhc-muted); font-size: 15px; }
.mhc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--mhc-line); }
.mhc-card__meta { color: var(--mhc-muted); font-size: 14px; }
.mhc-card__price { font-weight: 800; font-size: 18px; color: var(--mhc-ink); }
.mhc-card__price del { margin-right: 6px; font-weight: 500; font-size: 14px; color: var(--mhc-muted); }
.mhc-card__price small { font-weight: 500; font-size: 12px; color: var(--mhc-muted); }

.mhc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 6px 0 0; }
.mhc-facts div { margin: 0; }
.mhc-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mhc-muted); }
.mhc-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.mhc-facts--stack { grid-template-columns: 1fr; }
.mhc-facts--stack div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mhc-line); }
.mhc-facts--stack dd { margin: 0; text-align: right; }

.mhc-card--wide { flex-direction: row; }
.mhc-card--wide .mhc-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 240px; }

/* Destination card */
.mhc-card--destination { border: 0; }
.mhc-dest { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; padding: 18px; color: #fff; text-decoration: none; border-radius: var(--mhc-radius); overflow: hidden; background: #1d2b34; }
.mhc-dest__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mhc-dest:hover .mhc-dest__img { transform: scale(1.06); }
.mhc-dest__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78) 100%); }
.mhc-dest__top, .mhc-dest__body { position: relative; display: flex; gap: 8px; }
.mhc-dest__top { flex-wrap: wrap; }
.mhc-dest__body { flex-direction: column; gap: 4px; }
.mhc-dest__region { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.mhc-dest__name { font-size: 28px; font-weight: 800; line-height: 1.15; }
.mhc-dest__list { font-size: 14px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mhc-dest__cta { margin-top: 10px; font-weight: 700; }
.mhc-dest:hover, .mhc-dest:focus { color: #fff; }

/* Hero */
.mhc-hero { position: relative; display: flex; align-items: flex-end; min-height: 460px; padding: 120px 0 56px; color: #fff; background: #1d2b34 var(--mhc-hero, none) center / cover no-repeat; }
.mhc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .7)); }
.mhc-hero--compact { min-height: 300px; padding-top: 100px; background: linear-gradient(135deg, var(--mhc-ink), var(--mhc-accent)); }
.mhc-hero--compact::before { display: none; }
.mhc-hero__inner { position: relative; width: 100%; }
.mhc-hero .mhc-kicker { color: #fff; opacity: .85; }
.mhc-hero__title { margin: 8px 0 10px; color: #fff; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; }
.mhc-hero__tagline { max-width: 680px; margin: 0; font-size: 18px; opacity: .9; }
.mhc-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.mhc-hero__stats li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: 14px; }
.mhc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mhc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.mhc-crumbs a { color: #fff; opacity: .8; text-decoration: none; }
.mhc-crumbs a:hover { opacity: 1; }
.mhc-crumbs__sep { opacity: .5; }

/* Visa single */
.mhc-visa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.mhc-visa-side { position: sticky; top: 100px; }
.mhc-panel { padding: 26px; border: 1px solid var(--mhc-line); border-radius: var(--mhc-radius); background: var(--mhc-bg); box-shadow: var(--mhc-shadow); }
.mhc-panel h3 { margin: 0 0 8px; }
.mhc-checklist { margin: 0 0 32px; padding: 0; list-style: none; display: grid; gap: 10px; }
.mhc-checklist li { position: relative; padding: 12px 16px 12px 46px; border-radius: 12px; background: var(--mhc-tint); }
.mhc-checklist li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--mhc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* CTA */
.mhc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 40px; border-radius: var(--mhc-radius); background: linear-gradient(135deg, var(--mhc-accent), var(--mhc-ink)); color: #fff; }
.mhc-cta h2 { margin: 0 0 6px; color: #fff; }
.mhc-cta p { margin: 0; opacity: .85; }

/* Global live search dropdown */
.mhc-live { position: relative; max-width: 640px; }
.mhc-live .mhc-search { max-width: none; }
.mhc-live__panel { position: absolute; z-index: 999; top: calc(100% + 8px); left: 0; right: 0; max-height: 440px; overflow-y: auto; padding: 8px; border: 1px solid var(--mhc-line); border-radius: 18px; background: var(--mhc-bg); box-shadow: 0 20px 50px rgba(19, 33, 43, .18); text-align: left; }
.mhc-live__label { margin: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mhc-muted); }
.mhc-live__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--mhc-ink); text-decoration: none; }
.mhc-live__item:hover, .mhc-live__item.is-active { background: var(--mhc-tint); color: var(--mhc-ink); }
.mhc-live__item img, .mhc-live__ph { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--mhc-tint); }
.mhc-live__item strong { display: block; font-size: 15px; }
.mhc-live__item small { display: block; color: var(--mhc-muted); font-size: 13px; }
.mhc-live__item mark { background: rgba(0, 147, 198, .16); color: inherit; padding: 0 1px; border-radius: 3px; }
.mhc-live__empty { margin: 0; padding: 16px; text-align: center; color: var(--mhc-muted); }

@media (max-width: 1024px) {
	.mhc-grid, .mhc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mhc-visa-layout { grid-template-columns: 1fr; }
	.mhc-visa-side { position: static; }
}
@media (max-width: 680px) {
	.mhc-grid, .mhc-grid--2, .mhc-grid--4 { grid-template-columns: 1fr; }
	.mhc-card--wide { flex-direction: column; }
	.mhc-card--wide .mhc-card__media { aspect-ratio: 16 / 9; min-height: 0; }
	.mhc-section { padding: 44px 0; }
	.mhc-hero { min-height: 380px; }
	.mhc-cta { padding: 28px; }
	.mhc-dest { min-height: 320px; }
}

/* Listings placed in Elementor Shortcode widgets: match the theme container */
.elementor-widget-shortcode .mhc-listing,
.elementor-widget-shortcode .mhc-live { max-width: var(--mhc-wrap); margin-left: auto; margin-right: auto; padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 24px); }
.elementor-widget-shortcode .mhc-live { padding-top: 0; padding-bottom: 0; }

/* Keep theme link colours from overriding plugin buttons and links */
a.mhc-btn, a.mhc-btn:visited, a.mhc-btn:hover, a.mhc-btn:focus { color: var(--mhc-accent-ink) !important; }
a.mhc-btn--light, a.mhc-btn--light:visited, a.mhc-btn--light:hover { color: var(--mhc-ink) !important; }
.mhc-crumbs a, .mhc-crumbs a:visited, .mhc-crumbs a:hover { color: #fff !important; }
.mhc-card__title a, .mhc-card__title a:visited { color: var(--mhc-ink) !important; }
.mhc-card__title a:hover { color: var(--mhc-accent) !important; }
a.mhc-dest, a.mhc-dest:visited, a.mhc-dest:hover { color: #fff !important; }
