/*
 * The Hospitals page (/hospitals/) in the new design (owner 2026-11-20; Figma "Yeni Tasarım" → page "Hospitals" →
 * "Hospitals · 1440 Desktop", without its side column: "sidebarsız 2'li grid"). Markup: inc/livcom-page-hospitals.php
 * (class "lc-hosp"; <body> carries "lc-page-hospitals"). Behaviour: assets/js/livcom-page-hospitals.js.
 *
 * The band on top (title and accreditation bar), the path and the intro line are the page's own and are drawn as on
 * every inner page (assets/css/livcom-shell.css). Here: "Find a hospital" (title 28, a line, the search field 396 x
 * 44 with its icon, the city tabs 140 x 40, the chosen one filled), the hospitals two by two (the card of the home
 * page's row: photo, name in the Liv colour, address, phone; under the pointer "At a glance" over
 * the whole card, with the figures, "Contact us" and the 3D tour).
 */

.lc-hosp { --lc-hosp-brand: #0082B9; display: flex; flex-direction: column; gap: 48px; min-inline-size: 0; margin-block-end: 56px !important; -webkit-text-stroke-width: 0; }
.lc-hosp :is(h2, h3, p, ul, figure, dl, dd) { margin: 0; }
.lc-hosp ul { padding: 0; list-style: none; }
.lc-hosp a { text-decoration: none; }
.lc-hosp :is(a, button):focus-visible { outline: 2px solid var(--lc-hosp-brand); outline-offset: 2px; }

/* ---------- Find a hospital (owner 2026-11-20: "tasarımımıza göre modernize et") ----------
   One light-blue panel, as the site's soft surfaces: the title and its line at the start, the search at the end
   (a white pill with the lens, a clear button and a round go button in the Liv colour), the cities under a hairline
   as pills with their number of hospitals (the chosen one filled, as the tabs of "Your Liv Journey"). */
.lc-hfind { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; gap: 24px 40px; padding: 32px 36px; overflow: hidden; border: 1px solid #D6ECF6; border-radius: 24px; background: linear-gradient(120deg, #EEFAFF 0%, #F7FCFF 55%, #E6F5FC 100%); }
.lc-hfind::before { content: ""; position: absolute; z-index: -1; inset-block-start: -120px; inset-inline-end: -80px; inline-size: 340px; block-size: 340px; border-radius: 50%; background: radial-gradient(circle, rgb(0 130 185 / 0.12), rgb(0 130 185 / 0) 70%); pointer-events: none; }
.lc-hfind__head { display: flex; flex-direction: column; gap: 6px; }
.lc-hosp .lc-hfind__title { padding: 0; color: var(--lc-hosp-brand); font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.005em; }
.lc-hfind__lead { color: #386E98; font-size: 16px; line-height: 1.5; }
.lc-hfind__form { margin: 0 !important; }
.lc-hfind__field { position: relative; display: flex; align-items: center; gap: 4px; box-sizing: border-box; inline-size: 100%; block-size: 60px; padding: 6px; padding-inline-start: 20px; border: 1px solid #DCE4EA; border-radius: 999px; background: #FFFFFF; box-shadow: 0 10px 28px rgb(0 70 102 / 0.08); transition: border-color 0.15s, box-shadow 0.15s; }
.lc-hfind__field:focus-within { border-color: var(--lc-hosp-brand); box-shadow: 0 0 0 4px rgb(0 130 185 / 0.14), 0 10px 28px rgb(0 70 102 / 0.08); }
.lc-hfind__icon { flex: none; color: var(--lc-hosp-brand); }
.lc-hosp .lc-hfind__field input { flex: 1 1 auto; min-inline-size: 0; block-size: 100%; margin: 0; padding: 0 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; color: #163B4D; font: inherit; font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none; }
.lc-hosp .lc-hfind__field input::-webkit-search-cancel-button { display: none; }
.lc-hosp .lc-hfind__field input::placeholder { color: #6B7F8C; opacity: 1; }
.lc-hfind__clear { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 32px; block-size: 32px; padding: 0; border: 0; border-radius: 50%; background: #EEF3F6; color: #566F7A; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.lc-hfind__clear[hidden] { display: none; }
.lc-hfind__clear:hover { background: #DCE4EA; color: #163B4D; }
.lc-hfind__go { flex: none; display: inline-flex; align-items: center; gap: 8px; block-size: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--lc-hosp-brand); color: #FFFFFF; font: inherit; font-size: 15px; line-height: 1; font-weight: 700; cursor: pointer; transition: background-color 0.15s; }
.lc-hfind__go:hover { background: #05658B; }
[dir="rtl"] .lc-hfind__go svg { transform: scaleX(-1); }
.lc-hfind__tabs { grid-column: 1 / -1; padding-block-start: 20px; border-block-start: 1px solid #D6ECF6; }
.lc-hfind__tabs ul { display: flex; flex-wrap: wrap; gap: 10px; }
.lc-hfind__tab { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; block-size: 44px; padding-block: 0; padding-inline: 16px 8px; border: 1px solid #DCE4EA; border-radius: 999px; background: #FFFFFF; color: #163B4D; font-size: 15px; line-height: 1; font-weight: 500; white-space: nowrap; transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.lc-hfind__pin { flex: none; color: var(--lc-hosp-brand); }
.lc-hfind__tab-count { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-inline-size: 28px; block-size: 28px; padding: 0 8px; border-radius: 999px; background: #EEFAFF; color: var(--lc-hosp-brand); font-size: 13px; font-weight: 700; }
.lc-hfind__tab:hover { border-color: var(--lc-hosp-brand); color: var(--lc-hosp-brand); box-shadow: 0 6px 16px rgb(0 130 185 / 0.12); }
.lc-hfind__tab[aria-current="true"], .lc-hfind__tab[aria-current="true"]:hover { border-color: var(--lc-hosp-brand); background: var(--lc-hosp-brand); color: #FFFFFF; font-weight: 600; box-shadow: 0 8px 20px rgb(0 130 185 / 0.28); }
.lc-hfind__tab[aria-current="true"] .lc-hfind__pin { color: #FFFFFF; }
.lc-hfind__tab[aria-current="true"] .lc-hfind__tab-count { background: rgb(255 255 255 / 0.22); color: #FFFFFF; }

/* ---------- The hospitals ---------- */
.lc-hgrid { display: flex; flex-direction: column; gap: 6px; }
.lc-hgrid__count { color: #566F7A; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lc-hosp .lc-hgrid__title { padding: 0; color: var(--lc-hosp-brand); font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.lc-hgrid__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block-start: 14px !important; }
.lc-hgrid__item[hidden] { display: none; }
.lc-hgrid__empty { padding: 24px 0; color: #566F7A; font-size: 16px; }
.lc-hgrid__empty[hidden] { display: none; }

/* The card: the photo (366 x 192 in the design), then the name, the address and the phone (no "View Hospital" button:
   owner 2026-11-20). The name's link covers the card; the phone stands over it. */
.lc-hcard { position: relative; display: flex; flex-direction: column; box-sizing: border-box; block-size: 100%; overflow: hidden; border: 1px solid #DCE4EA; border-radius: 16px; background: #FFFFFF; transition: box-shadow 0.2s ease; }
.lc-hcard:is(:hover, :focus-within) { box-shadow: 0 14px 36px rgb(0 130 185 / 0.22); }
.lc-hcard__media { flex: none; aspect-ratio: 366 / 192; overflow: hidden; background: #E4F2F9; }
.lc-hcard__media img { display: block; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.24, 1); }
.lc-hcard:hover .lc-hcard__media img { transform: scale(1.03); }
.lc-hcard__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.lc-hosp .lc-hcard__name { padding: 0; font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: 0; }
.lc-hcard__name a, .lc-hcard__name a:hover { color: var(--lc-hosp-brand); }
.lc-hcard__name a::after { content: ""; position: absolute; z-index: 1; inset: 0; }
.lc-hcard__name a:focus-visible { outline: 0; }
.lc-hcard:has(.lc-hcard__name a:focus-visible) { outline: 2px solid var(--lc-hosp-brand); outline-offset: 2px; }
.lc-hcard__addr, .lc-hcard__phone { color: #566F7A; font-size: 14px; line-height: 1.5; }
.lc-hcard__phone a { position: relative; z-index: 2; color: inherit; }
.lc-hcard__phone a:hover { color: var(--lc-hosp-brand); }

/* "At a glance" over the whole card (the design's hovered card): the name, the figures, "Contact us" and the 3D tour.
   Clicks pass through it to the card, but its own buttons. */
.lc-hcard__glance { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; box-sizing: border-box; padding: 20px; background: linear-gradient(141deg, rgb(0 70 102 / 0.94) 0%, rgb(0 130 185 / 0.9) 71.4%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #FFFFFF; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
.lc-hcard:is(:hover, :focus-within) .lc-hcard__glance { opacity: 1; visibility: visible; transition: opacity 0.2s ease; }
.lc-hcard__glance-head { display: flex; flex-direction: column; gap: 4px; }
.lc-hcard__glance-head span { color: #9AD7F3; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.lc-hcard__glance-head strong { color: #FFFFFF; font-size: 20px; line-height: 1.3; font-weight: 700; }
.lc-hcard__stats { display: flex; gap: 10px; }
.lc-hcard__stat { flex: 0 0 calc((100% - 20px) / 3); display: flex; flex-direction: column; box-sizing: border-box; min-inline-size: 0; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 0.14); }
.lc-hcard__stat dd { margin: 0; color: #FFFFFF; font-size: 22px; line-height: 1.3; font-weight: 700; }
.lc-hcard__stat dt { color: #D6EEFA; font-size: 12px; line-height: 1.35; }
.lc-hcard__stat.is-accreditation { gap: 6px; }
.lc-hcard__stat.is-accreditation dd { color: #D6EEFA; font-size: 12px; line-height: 1.35; font-weight: 400; }
.lc-hcard__stat.is-jci::before { content: ""; inline-size: 30px; block-size: 30px; background: url(../img/v2/mark-jci.webp) center / contain no-repeat; }
.lc-hcard__glance-addr { color: #D6EEFA; font-size: 14px; line-height: 1.5; }
.lc-hcard__glance-links { display: flex; gap: 10px; }
.lc-hcard__glance-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; block-size: 42px; padding: 0 14px; border-radius: 999px; background: #FFFFFF; color: var(--lc-hosp-brand); font-size: 14px; line-height: 1; font-weight: 700; pointer-events: auto; transition: background-color 0.15s; }
.lc-hcard__glance-btn:hover { background: #EEFAFF; color: var(--lc-hosp-brand); }
.lc-hcard__glance-btn svg { flex: none; }
[dir="rtl"] .lc-hcard__glance-btn:first-child svg { transform: scaleX(-1); }

/* The cities spread across the panel (owner 2026-11-20: "bu butonları yayabilir miyiz"): on wide screens in one row
   of equal widths, on tablets in three equal columns (two full rows for the six tabs), the content in the middle.
   Phones keep the row that is pushed sideways. */
@media (min-width: 768px) {
	.lc-hfind__tabs ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lc-hfind__tab { justify-content: center; inline-size: 100%; }
}
@media (min-width: 1024px) {
	.lc-hfind__tabs ul { display: flex; flex-wrap: nowrap; }
	.lc-hfind__tabs li { flex: 1 1 0; min-inline-size: max-content; }
}

/* ---------- Phones and tablets ---------- */
@media (max-width: 1023.98px) {
	.lc-hfind { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
	.lc-hosp { gap: 36px; margin-block-end: 40px !important; }
	.lc-hfind { gap: 16px; padding: 20px 16px; border-radius: 20px; }
	.lc-hosp .lc-hfind__title { font-size: 24px; }
	.lc-hfind__lead { font-size: 15px; }
	.lc-hfind__field { block-size: 54px; padding-inline-start: 16px; }
	.lc-hfind__go { inline-size: 42px; block-size: 42px; justify-content: center; padding: 0; }
	.lc-hfind__go span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	/* The cities in one row that is pushed sideways, to the panel's edges. */
	.lc-hfind__tabs { margin-inline: -16px; padding-block-start: 16px; }
	.lc-hfind__tabs ul { flex-wrap: nowrap; gap: 8px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px; }
	.lc-hfind__tabs ul::-webkit-scrollbar { display: none; }
	/* Each tab keeps its whole width in the row that scrolls (the number was cut on phones, owner 2026-11-20). */
	.lc-hfind__tabs li { flex: none; }
	.lc-hfind__tab { block-size: 40px; padding-inline: 12px 6px; font-size: 14px; }
	.lc-hfind__tab-count { min-inline-size: 26px; block-size: 26px; font-size: 12px; }
	.lc-hgrid__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.lc-hosp .lc-hgrid__title { font-size: 22px; }
	.lc-hcard__glance { padding: 16px; }
	.lc-hcard__stat { padding: 10px; }
	.lc-hcard__stat dd { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.lc-hcard, .lc-hcard__media img, .lc-hcard__glance { transition: none; }
	.lc-hcard:hover .lc-hcard__media img { transform: none; }
}

/* ---------- Card of the contact and hospitals pages ---------- */
/* The card as Figma Contact 77:7407 / 543:3058 (owner 2026-11-23 "figmayla birebir"; the contact page and the hospitals page): white, 16px corners, the photo
   260px flush with the body (the card's corners round it), the name 20 in slate blue, "Get directions" outlined 48px;
   under the pointer the panel over the photo: the darker blue, "AT A GLANCE" 11, the name 16, two equal boxes
   (18 / 11), "Contact us →" orange across the row and "3D tour" white, both 35px pills. */
.lc-hcard.is-flat { border: 0; border-radius: 16px; background: #FFFFFF; box-shadow: none; }
.lc-hcard.is-flat:is(:hover, :focus-within) { box-shadow: none; }
.lc-hcard.is-flat .lc-hcard__media { position: relative; aspect-ratio: auto; block-size: 260px; border-radius: 0; }
.lc-hcard.is-flat:hover .lc-hcard__media img { transform: none; }
.lc-hcard.is-flat .lc-hcard__body { gap: 0; padding: 16px; }
.lc-hosp .lc-hcard.is-flat .lc-hcard__name { font-size: 20px; line-height: 1.35; font-weight: 600; }
.lc-hcard.is-flat .lc-hcard__name a { color: #386E98; }
.lc-hcard.is-flat .lc-hcard__dir { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; box-sizing: border-box; block-size: 48px; margin-block-start: 4px; padding: 0 12px; border: 1.5px solid #0082B9; border-radius: 10px; background: #FFFFFF; color: #0082B9; font-size: 16px; line-height: 1.55; font-weight: 600; text-decoration: none; }
.lc-hcard.is-flat .lc-hcard__dir:hover { background: #EEFAFF; }
.lc-hcard.is-flat .lc-hcard__glance { gap: 8px; padding: 14px; border-radius: 0; background: linear-gradient(144deg, rgb(6 40 58 / 0.9) 0%, rgb(4 106 145 / 0.86) 71.4%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lc-hcard.is-flat .lc-hcard__glance-head { gap: 2px; }
.lc-hcard.is-flat .lc-hcard__glance-head span { color: #9AD7F3; font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.lc-hcard.is-flat .lc-hcard__glance-head strong { color: #FFFFFF; font-size: 16px; line-height: 1.55; font-weight: 700; }
.lc-hcard.is-flat .lc-hcard__stats { gap: 8px; }
.lc-hcard.is-flat .lc-hcard__stat { flex: 1 1 0; padding: 8px 10px; border-radius: 10px; background: rgb(255 255 255 / 0.12); }
.lc-hcard.is-flat .lc-hcard__stat dd { font-size: 18px; line-height: 1.5; }
.lc-hcard.is-flat .lc-hcard__stat dt, .lc-hcard.is-flat .lc-hcard__stat.is-accreditation dd { font-size: 11px; line-height: 1.4; }
.lc-hcard.is-flat .lc-hcard__stat.is-accreditation { gap: 4px; }
.lc-hcard.is-flat .lc-hcard__stat.is-jci::before { inline-size: 26px; block-size: 26px; }
.lc-hcard.is-flat .lc-hcard__glance-acts { display: flex; align-items: center; gap: 8px; margin: 0; }
.lc-hcard.is-flat .lc-hcard__glance-acts a { position: relative; z-index: 4; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; block-size: 35px; border-radius: 999px; text-decoration: none; white-space: nowrap; pointer-events: auto; }
.lc-hcard.is-flat .lc-hcard__glance-contact { flex: 1 1 0; min-inline-size: 0; padding: 0 14px; background: #F37B54; color: #EEFAFF; font-size: 13px; line-height: 1.45; font-weight: 600; }
.lc-hcard.is-flat .lc-hcard__glance-contact:hover { background: #E86A42; color: #FFFFFF; }
.lc-hcard.is-flat .lc-hcard__glance-tour { flex: none; gap: 6.4px; padding: 0 9.6px; background: #FFFFFF; color: #0082B9; font-size: 12.8px; line-height: 1.55; font-weight: 700; }
.lc-hcard.is-flat .lc-hcard__glance-tour:hover { background: #EEFAFF; }
.lc-hcard.is-flat .lc-hcard__glance-tour svg { flex: none; }
/* The hospitals page shows two cards in a row: their photos are 4:3, so the wide cards do not look flat (owner
   2026-11-23: "2 li olduğu için basık duruyor"; square was "çok dikey", so 4:3); the panel covers the whole photo. */
@media (min-width: 768px) {
	body.lc-page-hospitals .lc-hcard.is-flat .lc-hcard__media { block-size: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 767.98px) {
	.lc-hcard.is-flat .lc-hcard__media { block-size: auto; aspect-ratio: 4 / 5; }
}
