@font-face {
  font-family: "BPG Mrgvlovani";
  src: url("../fonts/bpg_mrgvlovani_2010.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: "BPG Mrgvlovani Caps";
  src: url("../fonts/bpg_mrgvlovani_caps_2010.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

:root {
  --ink: #062f39;
  --ink-2: #06454b;
  --teal: #4f918f;
  --blue: #1477aa;
  --sky: #e8f3f5;
  --mist: #f4f8f8;
  --text: #26383c;
  --muted: #687b7f;
  --line: #d6e1e2;
  --white: #fff;
  --shadow: 0 18px 48px rgba(4, 49, 59, .12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "BPG Mrgvlovani", "Sylfaen", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.container--narrow { width: min(860px, calc(100% - 40px)); }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 1000; top: 10px; left: 10px; background: #fff; padding: 10px 14px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #012533;
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid currentColor;
  border-radius: 50%; font-size: .82rem; font-weight: 800; letter-spacing: .06em;
}
.brand-name { font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; }
.brand-logo--footer { width: 112px; height: 112px; }
.custom-logo { max-height: 58px; width: auto; }
.primary-nav { flex: 1; }
.menu { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.menu a { display: block; padding: 26px 0 22px; border-bottom: 3px solid transparent; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.menu a:hover, .menu .current-menu-item > a { color: #8fdbe1; border-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.add-listing-link {
  padding: 8px 13px; border: 1px solid rgba(255,255,255,.42); border-radius: 9px;
  font-size: .76rem; font-weight: 800; white-space: nowrap;
}
.add-listing-link:hover { background: #fff; color: var(--ink); }
.icon-link {
  display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: inherit; cursor: pointer; font-size: 1.45rem;
}
.icon-link:hover { background: rgba(255,255,255,.16); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span:not(.screen-reader-text) { display: block; width: 25px; height: 2px; margin: 5px; background: currentColor; }
.search-overlay {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: start center; padding-top: min(26vh, 230px);
  background: rgba(1, 27, 33, .76); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.search-overlay[hidden] { display: none; }
.search-overlay-inner { width: min(720px, calc(100% - 32px)); padding: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.search-overlay-inner > p { margin: 0 0 15px; color: var(--ink); font-weight: 800; }
.search-overlay-close { position: fixed; top: 28px; right: 32px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: transparent; color: #fff; font-size: 2rem; cursor: pointer; }
.search-form, .filter-bar { display: flex; align-items: center; gap: 12px; }
.search-form label, .filter-bar label { flex: 1; }
.search-field, .filter-bar input {
  width: 100%; min-height: 46px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}

.hero { position: relative; min-height: 555px; overflow: hidden; color: #fff; background: #064c4b; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: #004744;
  clip-path: polygon(0 0, 29% 0, 51% 100%, 0 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(75, 143, 140, .94);
  clip-path: polygon(28% 0, 55% 0, 68% 100%, 48% 100%);
}
.hero-media {
  position: absolute; inset: 0 0 0 42%; background: #547d7f url("../images/hero.jpg") 62% center/cover no-repeat;
}
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 555px; }
.hero-copy { width: min(520px, 51%); padding: 60px 0; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #a5e1e1; }
.hero h1 { margin: 0 0 20px; font-size: clamp(2.45rem, 5vw, 4.4rem); line-height: 1.08; letter-spacing: -.035em; }
.hero p:not(.eyebrow) { max-width: 480px; margin: 0 0 30px; font-size: 1.05rem; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.72); }
.button--ghost:hover { background: #fff; color: var(--ink); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--blue); border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800;
  transition: .2s ease;
}
.button:hover { transform: translateY(-2px); background: #0d628f; }
.button--small { min-height: 40px; padding: 8px 18px; border-radius: 10px; }
.button--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--outline:hover { color: #fff; background: var(--ink); }

.section { padding: 88px 0; }
.section--tint { background: var(--sky); }
.section--wave { position: relative; background: var(--sky); }
.section--wave::before {
  content: ""; position: absolute; left: 0; right: 0; top: -42px; height: 44px; background: var(--sky);
  clip-path: ellipse(58% 100% at 50% 100%);
}
.section-heading { max-width: 650px; margin: 0 auto 45px; text-align: center; }
.section-heading h2, .page-hero h1 { margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; }
.section-action { margin-top: 40px; text-align: center; }
.text-link { color: var(--ink-2); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  min-height: 265px; padding: 34px; background: #fff; border: 1px solid rgba(4,49,59,.07);
  border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: .2s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-icon {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px;
  border-radius: 20px; background: var(--sky); color: var(--blue); font-size: 2rem; font-weight: 400;
}
.service-card h3 { margin: 0 0 10px; color: var(--ink); font-size: 1.3rem; }
.service-card p { margin: 0; color: var(--muted); }

.article-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; }
.article-card { overflow: hidden; }
.article-card { padding-bottom: 12px; border-radius: 20px; background: #fff; box-shadow: 0 3px 20px rgba(4,49,59,.16); transition: box-shadow .3s ease; }
.article-card:hover { box-shadow: 0 4px 26px rgba(4,49,59,.25); }
.article-card--featured { grid-row: span 2; }
.article-card--featured .card-media { aspect-ratio: 1.35; }
.card-media {
  display: block; overflow: hidden; aspect-ratio: 1.4; border-radius: 20px; background: var(--sky);
  box-shadow: 0 12px 30px rgba(4,49,59,.1);
}
.article-card .card-media { transition: box-shadow .35s ease; box-shadow: 0 3px 20px rgba(4,49,59,.16); }
.article-card:hover .card-media { box-shadow: 0 4px 26px rgba(4,49,59,.25); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-media:hover img { transform: scale(1.035); }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--teal); font-weight: 900; letter-spacing: .12em; }
.card-body { padding: 17px 4px 4px; }
.card-meta { color: var(--muted); font-size: .78rem; }
.card-body h2, .card-body h3 { margin: 5px 0 8px; color: var(--ink); line-height: 1.35; }
.card-body h3 { font-size: 1.15rem; }
.card-body p { margin: 0 0 13px; color: var(--muted); }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.article-tags span { padding: 4px 8px; border-radius: 20px; background: var(--sky); color: var(--ink-2); font-size: .68rem; font-weight: 800; }

.listing-grid, .archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.listing-card, .archive-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.listing-card, .archive-card { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.listing-card:hover, .archive-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.article-archive-card { box-shadow: 0 3px 20px rgba(4,49,59,.16); }
.article-archive-card:hover { transform: none; box-shadow: 0 4px 26px rgba(4,49,59,.25); border-color: transparent; }
.listing-card .card-media, .archive-card .card-media { border-radius: 0; box-shadow: none; }
.listing-card .card-body, .archive-card .card-body { padding: 22px; }
.archive-card h2 { font-size: 1.3rem; }
.clinic-facts { margin: 16px 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.clinic-facts li + li { margin-top: 5px; }
.empty-state { grid-column: 1 / -1; padding: 50px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; background: #fff; }

.page-hero, .entry-header { padding: 78px 0; background: linear-gradient(135deg, var(--sky), #fff); }
.catalog-hero { padding: 86px 0 76px; background: linear-gradient(125deg, var(--sky), #fff 68%); }
.catalog-hero .container { max-width: var(--container); }
.catalog-hero h1 { max-width: 820px; margin: 0; color: var(--ink); font-size: clamp(2.7rem, 6vw, 5.1rem); line-height: 1.08; }
.catalog-hero p:not(.eyebrow) { max-width: 660px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.catalog-section { padding-top: 54px; }
.catalog-filters {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: end; gap: 13px;
  margin-bottom: 30px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--mist);
}
.catalog-filters label > span { display: block; margin: 0 0 6px 3px; color: var(--ink); font-size: .74rem; font-weight: 800; }
.catalog-filters select, .catalog-filters input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--text);
}
.catalog-filters select:focus, .catalog-filters input:focus { outline: 3px solid rgba(20,119,170,.14); border-color: var(--blue); }
.filter-reset { min-height: 46px; padding: 9px 14px; border: 0; background: transparent; color: var(--blue); font-weight: 800; cursor: pointer; }
.catalog-summary { margin: 0 0 18px; color: var(--muted); }
.clinic-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.clinic-catalog-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.clinic-catalog-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow); }
.clinic-card-media { position: relative; display: block; aspect-ratio: 1.35; overflow: hidden; background: var(--sky); }
.clinic-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.clinic-catalog-card:hover .clinic-card-media img { transform: scale(1.055); }
.clinic-rating { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; border-radius: 20px; background: rgba(255,255,255,.94); color: #b47700; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.clinic-card-content { padding: 23px; }
.clinic-card-content h2 { margin: 0 0 14px; color: var(--ink); font-size: 1.3rem; }
.clinic-card-content p { margin: 7px 0; color: var(--muted); font-size: .86rem; }
.card-cta { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--blue); font-weight: 800; }
.clinic-catalog-card:hover .card-cta span { transform: translateX(4px); }
.clinic-card-cta { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.clinic-catalog-card:hover .clinic-card-cta, .clinic-catalog-card:focus-within .clinic-card-cta { opacity: 1; visibility: visible; transform: translateY(0); }
.card-cta span { transition: transform .2s ease; }
.book-filters { grid-template-columns: 1fr 1fr 1.4fr auto; }
.book-catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.book-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.book-card:hover { transform: translateY(-9px); border-color: transparent; box-shadow: var(--shadow); }
.book-cover { position: relative; display: block; aspect-ratio: .74; overflow: hidden; background: var(--sky); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.book-card:hover .book-cover img { transform: scale(1.045); filter: brightness(.72); }
.book-overlay { position: absolute; inset: auto 16px 16px; padding: 10px 13px; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 800; opacity: 0; transform: translateY(12px); transition: .3s ease; }
.book-card:hover .book-overlay { opacity: 1; transform: translateY(0); }
.book-content { padding: 18px; }
.book-sphere { min-height: 1.2em; margin: 0 0 7px; color: var(--blue); font-size: .72rem; font-weight: 800; }
.book-content h2 { margin: 0 0 8px; color: var(--ink); font-size: 1.06rem; line-height: 1.35; }
.book-author { color: var(--muted); font-size: .8rem; }
.book-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.services-design-heading { margin-bottom: 75px; }
.service-list { display: grid; gap: 105px; max-width: 930px; margin: 0 auto; }
.service-row { display: grid; grid-template-columns: 350px 1fr; align-items: center; gap: clamp(45px, 7vw, 95px); }
.service-row--reverse .service-row-media { order: 2; }
.service-row-media { width: 350px; height: 350px; overflow: hidden; border-radius: 85px 32px 85px 32px; background: var(--sky); }
.service-row--reverse .service-row-media { border-radius: 32px 85px 32px 85px; }
.service-row-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.service-number { color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
.service-row-content h2 { color: #5748ed; }
.service-row-content h2, .about-copy h2, .contact-info h2 { margin: 8px 0 18px; color: var(--ink); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.18; }
.about-layout { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 70px; }
.about-mark { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--ink); box-shadow: var(--shadow); }
.about-mark img { width: 72%; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-panel { padding: 34px; border-radius: var(--radius); background: var(--mist); box-shadow: var(--shadow); }
.contact-detail { display: block; margin-top: 30px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; }
.contact-detail span, .contact-detail strong { display: block; }
.contact-detail span { color: var(--muted); font-size: .75rem; }
.booking-page { background: linear-gradient(180deg, #fff, var(--mist)); }
.booking-form { max-width: 930px; margin: 0 auto; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.booking-step { display: flex; align-items: flex-start; gap: 16px; margin: 38px 0 20px; }
.booking-step:first-of-type { margin-top: 0; }
.booking-step > span { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; }
.booking-step h2 { margin: 0; color: var(--ink); font-size: 1.35rem; }
.booking-step p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.booking-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.booking-service-option { position: relative; cursor: pointer; }
.booking-service-option input { position: absolute; opacity: 0; pointer-events: none; }
.booking-service-option > span { display: flex; flex-direction: column; min-height: 105px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; transition: .2s ease; }
.booking-service-option strong { color: var(--ink); }
.booking-service-option small { margin-top: 7px; color: var(--muted); }
.booking-service-option input:checked + span { border-color: var(--blue); background: var(--sky); box-shadow: 0 0 0 3px rgba(20,119,170,.12); }
.booking-submit { width: 100%; margin-top: 10px; }
.listing-empty .button { margin-top: 12px; }
.archive-description { max-width: 700px; color: var(--muted); }
.filter-bar { max-width: 760px; margin: 0 auto 45px; padding: 15px; background: var(--mist); border-radius: 16px; }
.pagination { margin-top: 45px; text-align: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; margin: 2px; border-radius: 8px; background: var(--mist); }
.page-numbers.current { background: var(--blue); color: #fff; }
.page-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--line); }
.page-links > span:first-child { margin-right: 5px; color: var(--muted); }
.page-links a span, .page-links > span:not(:first-child) { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; background: var(--mist); color: var(--ink); font-weight: 800; }
.page-links > span:not(:first-child) { background: var(--blue); color: #fff; }

.entry-header h1 { margin: 0; color: var(--ink); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; }
.entry-kicker { margin-bottom: 10px; color: var(--blue); font-weight: 800; }
.entry-meta { margin-top: 16px; color: var(--muted); }
.entry-featured { margin-top: 45px; }
.entry-featured img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-top: 55px; padding-bottom: 90px; }
.entry-content { font-size: 1.05rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--ink); line-height: 1.25; }
.listing-submit-form { max-width: 760px; margin: 0 auto 90px; padding: 30px; border-radius: var(--radius); background: var(--mist); }
.form-field { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field label { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 800; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
}
.booking-form input[type="date"], .booking-form select { min-height: 52px; height: 52px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 3px solid rgba(20,119,170,.18); border-color: var(--blue); }
.form-help { color: var(--muted); font-size: .85rem; }
.form-notice, .form-message { max-width: 760px; margin: 40px auto; padding: 25px; border-radius: 16px; background: var(--sky); }
.form-message--success { border-left: 5px solid #2f8b68; }
.form-message--error { border-left: 5px solid #c24d4d; background: #fff0f0; }
.clinic-contact { align-self: start; padding: 24px; border-radius: 18px; background: var(--sky); }
.clinic-contact h2 { margin-top: 0; color: var(--ink); font-size: 1.2rem; }
.clinic-contact div { padding: 12px 0; border-bottom: 1px solid rgba(4,49,59,.12); }
.clinic-contact span, .clinic-contact strong { display: block; }
.clinic-contact span { color: var(--muted); font-size: .78rem; }
.comments-wrap { padding-bottom: 80px; }
.not-found { padding: 130px 0; text-align: center; }

.site-footer { padding: 70px 0 24px; background: var(--ink); color: rgba(255,255,255,.65); }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(3, minmax(170px, 1fr)); align-items: start; gap: clamp(35px, 6vw, 95px); }
.footer-grid > div { align-self: start; }
.site-footer h2 { margin: 0 0 18px; color: #fff; font-size: 1rem; }
.site-footer a { display: block; margin: 9px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand p { max-width: 330px; font-size: .9rem; }
.brand--footer { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.footer-bottom { display: grid; grid-template-columns: 1.1fr .8fr 1fr auto auto; align-items: center; gap: 26px; margin-top: 55px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer-bottom .social-links { margin: 0; }
.footer-social-label { white-space: nowrap; }

body.admin-bar .site-header { top: 32px; }
.site-header { z-index: 500; }
.clinic-disclaimer { padding: 22px 0; background: var(--sky); color: var(--ink); text-align: center; font-size: .9rem; }
.clinic-disclaimer p { max-width: 1040px; margin: 0 auto; }
.clinic-single-title { padding: 52px 0; text-align: center; }
.clinic-single-title h1 { margin: 0; color: var(--ink); font-size: clamp(2.2rem,5vw,4rem); }
.clinic-single-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 48px; padding-bottom: 80px; }
.clinic-carousel { position: relative; min-height: 520px; overflow: hidden; border-radius: 26px; background: var(--sky); box-shadow: var(--shadow); }
.clinic-slide { display: none; height: 520px; margin: 0; }
.clinic-slide.is-active { display: block; }
.clinic-slide img { width: 100%; height: 100%; object-fit: cover; }
.clinic-carousel button { position: absolute; z-index: 2; top: 50%; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 2rem; cursor: pointer; }
.clinic-carousel [data-carousel-prev] { left: 18px; }.clinic-carousel [data-carousel-next] { right: 18px; }
.clinic-description { padding-top: 35px; }
.staff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.staff-card { padding: 20px; border-radius: 20px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.staff-card img { width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; }
.staff-card h3 { margin: 0; color: var(--ink); }.staff-card p { color: var(--muted); }
.clinic-map iframe { width: 100%; height: 480px; border: 0; border-radius: 24px; }
.rating-panel { max-width: 760px; padding: 35px; border-radius: 22px; background: var(--sky); text-align: center; }
.rating-panel select { min-height: 48px; margin-right: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.article-title-wrap { max-width: 1180px; }
.article-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 54px; padding-top: 55px; padding-bottom: 90px; }
.article-main .entry-content { max-width: 820px; }
.article-main .entry-featured { margin: 0 0 40px; }
.related-sidebar { position: sticky; top: 110px; padding: 24px; border-radius: 20px; background: var(--mist); }
.related-sidebar h2 { margin-top: 0; color: var(--ink); font-size: 1.25rem; }
.related-card { display: block; overflow: hidden; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.listings-top-action { padding-top: 42px; text-align: right; }
.contact-detail { position: relative; padding-left: 68px; }
.contact-detail i { position: absolute; left: 20px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--blue); font-style: normal; transform: translateY(-50%); }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-list details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.faq-list summary { padding: 18px 22px; color: var(--ink); font-weight: 800; cursor: pointer; }
.faq-list details > div, .faq-list details > p { padding: 0 22px 20px; }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 35px; max-width: 1080px; margin: 0 auto; }
.account-panel, .member-dashboard { padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--mist); box-shadow: var(--shadow); }
.account-panel h2, .member-dashboard h2, .member-dashboard h3 { margin-top: 0; color: var(--ink); }
.account-panel .listing-submit-form { margin: 0; padding: 0; background: transparent; }
.remember-field { display: block; margin: -6px 0 18px; }
.member-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 35px; }
.member-list { display: grid; gap: 10px; }
.member-list a { display: flex; justify-content: space-between; gap: 20px; padding: 15px; border-radius: 12px; background: #fff; }
.member-list span { color: var(--muted); }
.profile-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.profile-heading img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.profile-heading h2, .profile-heading p { margin: 0; }
.profile-editor { margin: 0 0 35px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.profile-editor summary { padding: 17px 20px; color: var(--ink); font-weight: 800; cursor: pointer; }
.profile-editor form { padding: 5px 20px 25px; }
.comment-list { margin: 0 0 35px; padding: 0; list-style: none; }
.comment-list .comment { margin: 15px 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--mist); }
.comment-list .children { list-style: none; }
.comment-form { max-width: 820px; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; }
.comment-form .submit { min-height: 48px; padding: 12px 22px; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; }

@media (max-width: 1050px) {
  .brand-name { display: none; }
  .add-listing-link { display: none; }
  .menu { gap: 14px; }
  .menu a { font-size: .78rem; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-card--featured { grid-column: span 2; grid-row: auto; }
  .listing-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .clinic-catalog { grid-template-columns: repeat(2, 1fr); }
  .book-catalog { grid-template-columns: repeat(3, 1fr); }
  .catalog-filters { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; margin-left: auto; color: #fff; cursor: pointer; }
  .primary-nav {
    position: absolute; top: 68px; left: 0; right: 0; max-height: 0; overflow: hidden;
    background: var(--ink); transition: max-height .25s ease;
  }
  .primary-nav.is-open { max-height: calc(100vh - 68px); overflow-y: auto; }
  .menu { display: block; padding: 12px 20px 25px; }
  .menu a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
  .hero, .hero-inner { min-height: 650px; }
  .hero-media { inset: 0; opacity: .42; }
  .hero::before { inset: 0; background: rgba(0,55,57,.92); clip-path: none; }
  .hero::after { display: none; }
  .hero-copy { width: min(560px, 92%); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .entry-layout { grid-template-columns: 1fr; }
  .book-catalog { grid-template-columns: repeat(2, 1fr); }
  .service-row, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .service-row--reverse .service-row-media { order: 0; }
  .service-row-media { width: 100%; height: auto; aspect-ratio: 1; }
  .booking-services { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .clinic-single-layout, .article-single-layout { grid-template-columns: 1fr; }
  .related-sidebar { position: static; }
  .staff-grid { grid-template-columns: repeat(2,1fr); }
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
  .container, .container--narrow { width: min(100% - 28px, var(--container)); }
  .section { padding: 64px 0; }
  .hero, .hero-inner { min-height: 570px; }
  .hero h1 { font-size: 2.65rem; }
  .article-grid, .listing-grid, .archive-grid { grid-template-columns: 1fr; }
  .article-card--featured { grid-column: auto; }
  .article-card--featured .card-media { aspect-ratio: 1.25; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom { display: flex; align-items: flex-start; }
  .staff-grid { grid-template-columns: 1fr; }
  .clinic-carousel, .clinic-slide { min-height: 340px; height: 340px; }
  .search-form, .filter-bar { align-items: stretch; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .catalog-filters, .clinic-catalog, .book-catalog { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* v0.9 */
.article-grid { grid-template-columns: repeat(3, 1fr); align-items: start; gap: 28px; }
.article-card--featured { grid-column: span 2; grid-row: auto; }
.article-card--featured .card-media { aspect-ratio: 1.8; }
.article-card--side .card-media { aspect-ratio: 1; }
.article-card .card-media { border-radius: 18px; }
.article-card { box-shadow: none; background: transparent; overflow: visible; }
.article-card:hover { box-shadow: none; }
.article-card .card-body { padding-inline: 0; }
.article-card .card-media { box-shadow: 0 3px 18px rgba(4,49,59,.2); }

.articles-page { padding-top: 35px; }
.article-category-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 70px; }
.article-category-filter a { padding: 7px 17px; border: 1px solid var(--blue); border-radius: 9px; color: var(--muted); font-size: .82rem; }
.article-category-filter a.is-active { background: var(--blue); color: #fff; }
.article-list { display: grid; gap: 50px; max-width: 1080px; margin: 0 auto; }
.article-list-row { display: grid; grid-template-columns: 330px 1fr; gap: 50px; align-items: center; }
.article-list-image { display: block; overflow: hidden; width: 330px; height: 250px; border-radius: 10px; box-shadow: 0 5px 20px rgba(4,49,59,.2); }
.article-list-image img { width: 100%; height: 100%; object-fit: cover; }
.article-list-copy h2 { margin: 0 0 10px; color: var(--ink); font-size: 1.65rem; }
.article-list-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; color: #aaa; font-size: .78rem; }
.article-list-meta .article-tags { margin: 0; }
.article-list-meta .article-tags b { padding: 4px 12px; border-radius: 4px; background: var(--ink); color: #fff; font-size: .72rem; }
.article-list-copy p { color: var(--muted); line-height: 1.45; }
.article-read-more { display: block; color: var(--ink-2); text-align: right; font-weight: 800; }

.clinic-filters { grid-template-columns: 1fr 1.1fr .85fr 1.4fr auto auto; padding: 14px; gap: 9px; }
.clinic-filters label > span { font-size: .66rem; }
.clinic-filters select, .clinic-filters input { min-height: 38px; padding: 7px 9px; font-size: .74rem; }
.clinic-filters .button, .clinic-filters .filter-reset { min-height: 38px; padding: 7px 11px; font-size: .7rem; }

.account-menu { position: relative; }
.account-icon-figure { position: relative; display: block; width: 23px; height: 23px; border: 1.8px solid currentColor; border-radius: 50%; }
.account-icon-figure::before { content: ""; position: absolute; left: 50%; top: 4px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; transform: translateX(-50%); }
.account-icon-figure i { position: absolute; left: 50%; bottom: 3px; width: 11px; height: 6px; border: 1.5px solid currentColor; border-radius: 8px 8px 4px 4px; transform: translateX(-50%); }
.account-popover { position: absolute; z-index: 800; top: calc(100% + 15px); right: -42px; width: 290px; padding: 22px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 18px 55px rgba(0,0,0,.24); }
.account-popover[hidden] { display: none; }
.account-popover::before { content: ""; position: absolute; right: 54px; top: -9px; width: 18px; height: 18px; background: #fff; transform: rotate(45deg); }
.account-popover form { display: grid; gap: 7px; margin-bottom: 20px; }
.account-popover input { width: 100%; height: 38px; padding: 7px 11px; border: 1px solid #aaa; border-radius: 5px; }
.account-popover .button { min-height: 38px; padding: 7px; border-radius: 4px; }
.account-popover > a { margin: 9px 4px; color: #164b79; font-size: .83rem; font-weight: 800; }
.password-wrap { position: relative; }
.password-wrap button { position: absolute; right: 5px; top: 3px; width: 32px; height: 32px; border: 0; background: transparent; color: #aaa; cursor: pointer; }

.listing-checks { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 15px 0 25px; }
.listing-checks label { color: var(--ink); font-weight: 700; }
.listing-current-image { width: 110px; height: 90px; margin-bottom: 10px; border-radius: 10px; object-fit: cover; }
.listing-flags { display: grid; gap: 8px; padding-top: 15px; color: var(--ink-2); }
.listing-owner-actions { display: flex; gap: 8px; margin-top: 20px; }
.button--danger { border-color: #b23b3b; background: #b23b3b; }
.member-list-row { padding: 13px; border-radius: 12px; background: #fff; }
.member-list-row > a { padding: 0; }
.member-list-actions { display: flex; gap: 15px; margin-top: 8px; }
.member-list-actions a { color: var(--blue); font-size: .8rem; font-weight: 800; }

@media (max-width: 1050px) {
  .clinic-filters { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px) {
  .article-list-row { grid-template-columns: 260px 1fr; gap: 28px; }
  .article-list-image { width: 260px; height: 210px; }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .article-card--featured { grid-column: span 2; }
  .article-card--side { grid-column: auto; }
  .article-card .card-body h3 { font-size: .9rem; }
  .article-tags span { font-size: .58rem; }
  .article-list-row { grid-template-columns: 1fr; gap: 18px; }
  .article-list-image { width: 100%; height: auto; aspect-ratio: 1.35; }
  .article-list-copy h2 { font-size: 1.25rem; }
  .clinic-filters { grid-template-columns: 1fr; }
  .account-popover { position: fixed; top: 76px; right: 14px; left: 14px; width: auto; }
  .services-summary .service-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82vw; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 2px 18px; }
  .services-summary .service-card { scroll-snap-align: start; min-height: 235px; }
}

/* v0.10 — PSD alignment and revised account/listing controls */
.article-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 24px;
}
.article-grid .article-card { grid-column: span 2; }
.article-grid .article-card:nth-child(1) { grid-column: span 4; }
.article-grid .article-card:nth-child(2) { grid-column: span 2; }
.article-grid .article-card:nth-child(1) .card-media,
.article-grid .article-card:nth-child(2) .card-media { height: 430px; aspect-ratio: auto; }
.article-grid .article-card:nth-child(n+3) .card-media { height: 275px; aspect-ratio: auto; }
.article-card .card-media img { object-position: center; }

.article-category-filter {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 0 0 62px;
}
.article-category-filter label {
  display: block;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
}
.article-category-filter select {
  min-width: 235px;
  min-height: 42px;
  padding: 8px 38px 8px 13px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.article-list { gap: 48px; max-width: 1040px; }
.article-list-row { grid-template-columns: 330px minmax(0, 1fr); gap: 50px; }
.article-list-image { width: 330px; height: 250px; }
.article-list-copy h2 { font-size: 1.55rem; font-weight: 500; }
.article-list-copy p { margin: 22px 0 10px; }

.account-toggle { background: #fff; }
.account-toggle:hover { background: #e9f5fa; }
.account-toggle img { width: 25px; height: 25px; object-fit: contain; }
.account-popover {
  right: 0;
  top: calc(100% + 12px);
  border: 1px solid rgba(1,37,51,.1);
  border-radius: 4px 4px 24px 24px;
  box-shadow: 0 16px 42px rgba(1,37,51,.2);
}
.account-popover::before { right: 12px; }
.account-popover form { gap: 6px; }
.account-popover > a { display: block; }

.service-list--psd { gap: 92px; max-width: 930px; }
.service-list--psd .service-row { min-height: 350px; }
.service-list--psd .service-row-content h2 {
  color: #5748ed;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}
.service-list--psd .service-row-content { color: #777; line-height: 1.45; }

.listing-card-top,
.listing-card-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.listing-card-top { color: var(--muted); font-size: .75rem; }
.listing-type {
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--sky);
  color: var(--ink-2);
  font-weight: 800;
}
.listing-card-facts {
  margin: 13px 0 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.listing-card-facts strong { color: var(--blue); font-size: .95rem; }
.listings-top-action { padding-top: 34px; text-align: right; }
.listings-page { padding-top: 35px; }

@media (max-width: 820px) {
  .article-grid .article-card:nth-child(1) .card-media,
  .article-grid .article-card:nth-child(2) .card-media { height: 330px; }
  .article-grid .article-card:nth-child(n+3) .card-media { height: 220px; }
}

@media (max-width: 600px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .article-grid .article-card,
  .article-grid .article-card:nth-child(1),
  .article-grid .article-card:nth-child(2) { grid-column: span 1; }
  .article-grid .article-card:nth-child(1) { grid-column: span 2; }
  .article-grid .article-card:nth-child(1) .card-media,
  .article-grid .article-card:nth-child(2) .card-media,
  .article-grid .article-card:nth-child(n+3) .card-media { height: 190px; aspect-ratio: auto; }
  .article-category-filter { display: block; margin-bottom: 38px; }
  .article-category-filter label { margin-bottom: 6px; }
  .article-category-filter select { width: 100%; min-width: 0; }
  .article-list-row { grid-template-columns: 1fr; gap: 18px; }
  .article-list-image { width: 100%; height: 230px; aspect-ratio: auto; }

  .services-summary .service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 7px;
    overflow: visible;
    padding: 0;
  }
  .services-summary .service-card {
    min-height: 145px;
    padding: 12px 7px;
    border-radius: 15px;
  }
  .services-summary .service-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 11px;
    font-size: 1.15rem;
  }
  .services-summary .service-card h3 { margin: 0; font-size: .72rem; line-height: 1.35; }
  .services-summary .service-card p { display: none; }
  .service-list--psd { gap: 65px; }
  .service-list--psd .service-row { min-height: 0; }
  .service-list--psd .service-row-media { max-width: 350px; margin: 0 auto; }
  .account-popover { border-radius: 4px 4px 24px 24px; }
}

/* v0.11 */
.icon-link,
.account-toggle,
.icon-link:hover,
.account-toggle:hover {
  background: transparent;
}
.icon-link:hover { color: #8fdbe1; }
.account-icon-figure {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}
.account-icon-figure::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}
.account-icon-figure i {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 12px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 9px 9px 4px 4px;
  transform: translateX(-50%);
}
.search-icon-figure {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}
.search-icon-figure::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 1.8px;
  border-radius: 3px;
  background: currentColor;
  transform: rotate(48deg);
  transform-origin: left center;
}

.article-category-filter { position: relative; width: 190px; }
.article-category-multiselect { position: relative; width: 100%; }
.article-category-multiselect summary {
  min-height: 36px;
  padding: 6px 32px 6px 11px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.article-category-multiselect summary::-webkit-details-marker { display: none; }
.article-category-multiselect summary::after {
  content: "⌄";
  position: absolute;
  top: 5px;
  right: 11px;
  color: var(--blue);
  font-size: 1rem;
}
.article-category-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: 235px;
  max-height: 310px;
  gap: 7px;
  padding: 13px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(1,37,51,.18);
}
.article-category-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: .75rem;
  cursor: pointer;
}
.article-category-options input { margin: 0; }
.article-category-options .button { margin-top: 5px; min-height: 34px; font-size: .72rem; }

.listing-card-link { display: block; height: 100%; }
.listing-card-link .card-body { display: flex; min-height: 205px; flex-direction: column; }
.listing-card-link .listing-card-facts { margin-top: auto; }

@media (max-width: 600px) {
  .article-category-filter { width: 170px; }
  .article-category-options { width: min(235px, calc(100vw - 28px)); }
}

/* v0.12 */
.account-icon-figure,
.search-icon-figure {
  width: 25px;
  height: 25px;
}
.search-icon-figure {
  border: 0;
  border-radius: 0;
}
.search-icon-figure::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 17px;
  height: 17px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}
.search-icon-figure::after {
  right: 0;
  bottom: 4px;
  width: 9px;
}
.profile-pet-card {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #cfe1e5;
  border-radius: 12px;
  background: #f7fbfc;
}
.profile-pet-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.profile-pet-card .button-link {
  border: 0;
  background: transparent;
  color: #b42318;
  cursor: pointer;
  text-decoration: underline;
}
.profile-editor [data-add-profile-pet] { margin: 0 10px 18px 0; }
.services-merged-section { scroll-margin-top: 90px; }
