/* v2.174: design fixes from the owner's screen recording - phones (Android, iPhone), tablets, laptops, desktops.
   Loaded last on every page (inc/layout-fixes.php). */

/* ---------- 1. Calm page: the background picture stays behind the top of the home page ---------- */
.vb-calm.home .vf { position: relative; z-index: 0; }
.vb-calm.home .vf::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	top: 0; bottom: -120px; left: 50%; width: 100vw; margin-left: -50vw; /* also under the gap before the footer */
	background: linear-gradient(180deg, transparent 0, var(--vb-page) 48px, var(--vb-page) 100%);
}
.vb-calm.home .vb-footer { position: relative; z-index: 0; }
.vb-calm.home .vb-footer::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	top: 0; bottom: -200px; left: 50%; width: 100vw; margin-left: -50vw; background: var(--vb-page);
}
/* (No colour on <body> itself: it would cover the picture behind the top of the page.) */

/* Cards on the plain page: solid, a soft border, no see-through. */
.vb-calm.home .vf-card, .vb-calm.home .vbh .vf-card { background: var(--vb-surface); }

/* ---------- 2. Sticky bar: solid, with the portal's links ---------- */
:root { --vb-bar: #ffffff; }
html.dark { --vb-bar: #181818; }
.vf-bar { display: flex; align-items: center; gap: 10px; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.vf-bar .vf-nav { flex: 1 1 auto; min-width: 0; }
.vf-quick { display: flex; flex: 0 0 auto; gap: 4px; }
.vf-quick-a {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	height: 38px; min-width: 38px; padding: 0 10px; border-radius: 10px;
	color: var(--vb-txt); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.vf-quick-a i { color: var(--vb-blue); font-size: 15px; }
.vf-quick-a:hover, .vf-quick-a:focus-visible { background: var(--vb-hover); color: var(--vb-txt); text-decoration: none; }
.vf-quick-a span { display: none; }
@media (min-width: 1180px) {
	.vf-quick-a span { display: inline; }
	.vf-quick { padding-left: 10px; border-left: 1px solid var(--vb-line); }
}
@media (max-width: 420px) {
	.vf-quick-a { min-width: 34px; padding: 0 6px; }
}
/* A faint edge where the topic tabs go on (phones): they can be swiped. */
@media (max-width: 1179px) {
	.vf-bar .vf-nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}

/* ---------- 3. One look for all scroll arrows; nothing hidden under an arrow ---------- */
.vbh-arrow {
	width: 40px; height: 40px; border-radius: 50%; border: 0;
	background: #fff; color: #1e293b; font-size: 15px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.vbh-arrow:hover, .vbh-arrow:focus-visible { background: #f1f5f9; color: #1e293b; }
html.dark .vbh-arrow { background: #2a2a2a; color: #f1f5f9; }
.vbh-prev { left: -6px; }
.vbh-next { right: -6px; }
/* The last card fades out at the edge instead of being cut under the arrow ("Glove Re...", "Bioderma"). */
.vbh-lx-row:not(.is-end), .vbh-rg-row:not(.is-end), .vbh-ms-row:not(.is-end) {
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
.vbh-lx-row:not(.is-start):not(.is-end), .vbh-rg-row:not(.is-start):not(.is-end), .vbh-ms-row:not(.is-start):not(.is-end) {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.vbh-lx-row.is-end:not(.is-start), .vbh-rg-row.is-end:not(.is-start), .vbh-ms-row.is-end:not(.is-start) {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px);
}
/* Touch screens swipe; no arrows there (as before). */
@media (hover: none) { .vbh-arrow { display: none !important; } }

/* ---------- 4. Local sections (cities, popular, doctors ...) ---------- */
.vblx .vblx-box { position: relative; }
.vblx--cities .vblx-box, .vblx--blue .vblx-box { padding-bottom: 18px; }
.vblx-credit { margin: 6px 4px 0; text-align: right; }
.vblx-credit a { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--vb-surface); color: var(--vb-muted); font-size: 11px; }
/* Big screens: the cards grow and fill the row when there are few (no empty space after 4 doctors). */
@media (min-width: 1100px) {
	.vbh-lx-row > .vblx-city { flex: 1 0 186px; max-width: 260px; }
	.vbh-lx-row > .vblx-blue { flex: 1 0 236px; max-width: 460px; }
	.vbh-lx-row > .vblx-wide { flex: 1 0 330px; max-width: 460px; }
}
/* Phones: 2 cards and a bit of the third show, so it is clear the row moves. */
@media (max-width: 639px) {
	.vblx-city { width: 42vw; max-width: 180px; height: 58vw; max-height: 250px; }
	.vblx-city-name { font-size: 18px; left: 12px; top: 12px; }
	.vblx-city-foot { left: 12px; bottom: 10px; }
	.vblx-city-sub { font-size: 11px; }
	.vblx-city-go { font-size: 16px; }
	.vblx-blue { width: 72vw; max-width: 260px; }
	.vblx-blue-img { height: 44vw; max-height: 190px; }
	.vblx-wide { width: 82vw; max-width: 320px; }
	.vblx-wide-img { flex-basis: 96px; width: 96px; min-height: 104px; }
	.vblx-wide-name { font-size: 16px; }
	.vblx-box { border-radius: 14px; }
}

/* ---------- 5. Upcoming movies: few posters sit in the middle, a little bigger ---------- */
.vbh-mvp:not(.is-auto) .vbh-mv-view { display: flex; justify-content: center; }
@media (min-width: 900px) {
	.vbh-mvp:not(.is-auto) .vbh-mvp-card { width: 176px; }
}

/* ---------- 6. Footer ---------- */
.vb-footer { max-width: 84rem; }
.vb-footer-inner { background: var(--vb-surface); border: 1px solid var(--vb-line); }
.vb-lf-cols {
	display: grid; grid-template-columns: 1fr; gap: 18px 28px;
	margin: 4px 0 14px; padding: 6px 4px 16px; border-bottom: 1px solid var(--vb-line); text-align: left;
}
.vb-lf-about strong { font-size: 17px; color: var(--vb-txt); }
.vb-lf-about p { margin: 6px 0 0; font-size: 13.5px; color: var(--vb-muted); line-height: 1.5; }
.vb-lf-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vb-muted); }
.vb-lf-col ul { list-style: none; margin: 0; padding: 0; }
.vb-lf-col li { margin: 0; }
.vb-lf-col a { display: inline-flex; align-items: center; min-height: 34px; color: var(--vb-txt); font-size: 14.5px; }
.vb-lf-col a:hover, .vb-lf-col a:focus-visible { color: var(--vb-blue); text-decoration: underline; }
@media (min-width: 560px) { .vb-lf-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .vb-lf-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .vb-footer-inner { padding: 22px 26px; } }

/* ---------- 7. Phones: notch / home bar of iPhones, no sideways scrolling, bigger touch targets ---------- */
@media (max-width: 899px) {
	.vf, .vb-footer { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
}
.vb-footer { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.vf-tab { min-height: 38px; }
img, video, iframe { max-width: 100%; }
.vbh, .vf-row, .vf-grid { min-width: 0; }
@media (max-width: 767px) {
	.vbh-mvs-head small { display: block; }
}
/* iOS: no zoom when a field gets the focus (fields under 16px make Safari zoom in). */
@supports (-webkit-touch-callout: none) {
	input, select, textarea { font-size: max(16px, 1em); }
}
