/* ===================================================================
   Zumritter Theme — Base Stylesheet v1.3.0
   Oceanica-inspired layout: logo left, nav right, full-width image
   hero with booking form overlapping the bottom edge.
   Card-based room listings, fluid responsive typography, generous
   whitespace, accessible focus states.
   Palette: Deep navy #1a3a5c | Sand #e8dcc8 | White #fff
   Accent: #c9a96e (muted gold)
   Fonts: Playfair Display (headings) + Source Sans 3 (body)
   Type scale: 1.2 (Minor Third), 17px base, 1.65 line-height
   Spacing grid: 8px base, 4-step modular scale
   ======================================================= */

:root {
  /* Brand */
  --color-navy: #1a3a5c;
  --color-navy-dark: #0f2a44;
  --color-navy-soft: #2d557d;
  --color-sand: #e8dcc8;
  --color-sand-light: #f7f3ec;
  --color-white: #ffffff;
  --color-text: #2a2a2a;
  --color-text-soft: #555;
  --color-text-light: #6b6b6b;
  --color-accent: #c9a96e;
  --color-accent-hover: #b8965a;
  --color-border: #e0e0e0;
  --color-border-soft: #ececec;
  --color-bg-soft: #faf9f7;
  --color-success: #2d8f5f;
  --color-error: #c0392b;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Fluid base — 16px mobile, 17px tablet, 18px desktop (web.dev pattern) */
  --fs-base: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --lh-base: 1.65;

  /* Layout */
  --container-width: 1320px;
  --container-narrow: 880px;
  --container-reading: 66ch;          /* best-practice reading measure */
  --sidebar-width: 320px;
  --header-height: 90px;

  /* Spacing (8px base) */
  --s-1: 0.25rem;   /* 4 */
  --s-2: 0.5rem;    /* 8 */
  --s-3: 0.75rem;   /* 12 */
  --s-4: 1rem;      /* 16 */
  --s-5: 1.5rem;    /* 24 */
  --s-6: 2rem;      /* 32 */
  --s-7: 2.5rem;    /* 40 */
  --s-8: 3rem;      /* 48 */
  --s-9: 4rem;      /* 64 */
  --s-10: 5rem;     /* 80 */
  --s-11: 6rem;     /* 96 */

  /* Form geometry (Material/NN/g guidelines) */
  --input-height: 48px;                /* comfortable touch target */
  --input-padding-x: 0.95rem;
  --input-border: 1px solid var(--color-border);
  --input-border-focus: 2px solid var(--color-navy);
  --field-gap: 1rem;                   /* label-to-input + field-to-field */
  --radius: 6px;
  --radius-sm: 4px;
  --transition: 0.25s ease;
  --transition-fast: 0.15s ease;
  --shadow-sm: 0 1px 2px rgba(15,42,68,0.06);
  --shadow-md: 0 4px 12px rgba(15,42,68,0.08);
  --shadow-lg: 0 12px 32px rgba(15,42,68,0.12);
}

/* ---------- Reset / Base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent); }

/* Focus state — visible, accessible */
:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-navy); color: var(--color-white);
  padding: var(--s-4) var(--s-6); z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Typography scale (Minor Third 1.2) ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(1.875rem, 1.5rem + 1.8vw, 2.6rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); }
h4 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--color-navy); }
em, i { font-style: italic; }
small { font-size: 0.875em; }

blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-3) 0 var(--s-3) var(--s-5);
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2em;
  color: var(--color-text-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--s-7) 0;
}

code, kbd, pre, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.85rem 1.8rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-navy-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; min-height: 56px; }

/* ---------- Top Bar (slim) ---------- */

.top-bar {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.84rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
  max-width: var(--container-width); margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar-left, .top-bar-right { display: flex; gap: var(--s-5); align-items: center; }
.top-bar a { color: var(--color-white); }
.top-bar a:hover { color: var(--color-accent); }
.top-bar .dashicons { font-size: 16px; vertical-align: middle; opacity: 0.75; }
.top-bar-menu { display: flex; gap: var(--s-5); list-style: none; }

/* ---------- Header (logo left, nav right) ---------- */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: relative;
  z-index: 50;
}
.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--s-6);
}
.site-branding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}
.custom-logo-link { display: inline-block; line-height: 1; }
.custom-logo { max-height: 60px; width: auto; }
.site-name {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: inline-block;
}
.site-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 0.25rem;
  font-weight: 500;
}

.main-navigation { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  margin: 0;
  align-items: center;
}
.main-navigation a {
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-navy); padding: 0.5rem 0;
  display: block; border-bottom: 2px solid transparent;
}
.main-navigation a:hover { border-bottom-color: var(--color-accent); color: var(--color-navy); }
.main-navigation ul li { position: relative; }
.main-navigation .sub-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0; display: none; min-width: 240px;
  text-align: left; z-index: 100;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-soft);
}
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu a {
  padding: 0.65rem 1.25rem; border-bottom: none;
  font-size: 0.85rem; letter-spacing: 0.05em;
}
.main-navigation .sub-menu a:hover { background: var(--color-sand-light); border-bottom: none; color: var(--color-navy); }
.main-navigation .sub-menu li { position: relative; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--color-navy);
  padding: var(--s-2);
}
.menu-toggle .dashicons { font-size: 32px; width: 32px; height: 32px; }

/* ---------- Page Hero (inner pages) ---------- */

.page-hero {
  position: relative;
  min-height: 300px;
  height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sand-light);
  overflow: hidden;
}
.page-hero.has-image { min-height: 300px; }
.page-hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  z-index: 1;
}
.page-hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(15,42,68,0.4), rgba(15,42,68,0.65));
  z-index: 2;
}
.page-hero-inner {
  position: relative; z-index: 3;
  text-align: center;
  padding: var(--s-7) var(--s-5);
  max-width: var(--container-width);
}
.page-hero .page-title {
  color: var(--color-white);
  margin-bottom: var(--s-3);
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.page-hero:not(.has-image) .page-title { color: var(--color-navy); text-shadow: none; }
.page-hero .page-subtitle {
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: var(--s-2);
  font-weight: 500;
}
.page-hero:not(.has-image) .page-subtitle { color: var(--color-text-light); }

/* ---------- Layout ---------- */

.content-with-sidebar {
  display: flex;
  gap: var(--s-8);
  padding: var(--s-9) 0;
}
.content-area { flex: 1; min-width: 0; }
.sidebar { width: var(--sidebar-width); flex-shrink: 0; }
.site-main.full-width .content-area {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--s-9) var(--s-5);
}

/* ---------- Content typography (best-practice) ---------- */

/* Reading width on prose (only for full-width / narrow layouts,
   not for content-with-sidebar where content should fill the column) */
.site-main.full-width .content-area .entry-content,
.site-main.full-width .content-area .section-content,
.container-narrow .entry-content {
  max-width: var(--container-reading);
}
.content-area .entry-content,
.content-area .section-content,
.about-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-soft);
}
.content-area .entry-content p,
.about-content p {
  margin: 0 0 var(--s-5);
}
.content-area .entry-content h2,
.about-content h2 {
  margin-top: var(--s-8);
  margin-bottom: var(--s-4);
}
/* Checkout page heading: extra space underneath the centered title */
.content-area .entry-content h2.wp-block-heading.has-text-align-center {
  margin-bottom: var(--s-7);
}
.content-area .entry-content h3,
.about-content h3 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
}
.content-area .entry-content h4,
.about-content h4 {
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
}

/* Lists — comfortable spacing, custom bullets, no list-style:none anywhere */
.content-area .entry-content ul,
.content-area .entry-content ol,
.content-area ul,
.content-area ol,
.about-content ul,
.about-content ol,
.widget ul,
.widget ol {
  margin: 0 0 var(--s-5);
  padding-left: var(--s-6);
}
.content-area .entry-content ul li,
.content-area ul li,
.about-content ul li {
  margin-bottom: var(--s-3);
  line-height: 1.7;
  padding-left: var(--s-1);
}
.content-area .entry-content ul li::marker,
.content-area ul li::marker,
.about-content ul li::marker {
  color: var(--color-accent);
  font-size: 1.1em;
}
.content-area .entry-content ol li::marker,
.content-area ol li::marker,
.about-content ol li::marker {
  color: var(--color-navy);
  font-weight: 700;
}
.content-area .entry-content li > ul,
.content-area .entry-content li > ol,
.about-content li > ul,
.about-content li > ol {
  margin-top: var(--s-3);
  margin-bottom: var(--s-2);
}

/* Inline links inside content — underlined for readability */
.content-area .entry-content a:not(.button):not(.btn),
.about-content a:not(.button):not(.btn) {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: all var(--transition);
}
.content-area .entry-content a:not(.button):not(.btn):hover,
.about-content a:not(.button):not(.btn):hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-navy);
}

/* Blockquotes inside content */
.content-area .entry-content blockquote,
.about-content blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-4) var(--s-6);
  background: var(--color-bg-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-soft);
}

/* Tables */
.content-area .entry-content table,
.about-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  font-size: 0.95rem;
}
.content-area .entry-content th,
.about-content th {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  background: var(--color-sand-light);
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-navy);
}
.content-area .entry-content td,
.about-content td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--color-border-soft);
  vertical-align: top;
}
.content-area .entry-content tr:hover td,
.about-content tr:hover td {
  background: var(--color-bg-soft);
}

/* Code blocks */
.content-area .entry-content code,
.about-content code {
  background: var(--color-sand-light);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--color-navy-dark);
}
.content-area .entry-content pre,
.about-content pre {
  background: #1a3a5c;
  color: #e8dcc8;
  padding: var(--s-4);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: var(--s-5) 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.content-area .entry-content pre code,
.about-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ---------- Sidebar Widgets ---------- */

.sidebar .widget {
  margin-bottom: var(--s-8);
  padding: var(--s-5) var(--s-5) var(--s-6);
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--color-border-soft);
}
.sidebar .widget:last-child { margin-bottom: 0; }
.widget-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--s-4);
  font-weight: 700;
  color: var(--color-navy);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--color-accent);
}
.widget ul { list-style: none; padding: 0; }
.widget ul li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--color-text); }
.widget a:hover { color: var(--color-accent); }

/* ---------- Search Form ---------- */

.search-form { display: flex; gap: 0; }
.search-field {
  flex: 1; padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit; font-size: 0.95rem;
}
.search-submit {
  padding: 0.65rem 1.25rem;
  background: var(--color-navy); color: var(--color-white);
  border: none; border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/* ---------- Front Page: Hero (full image + bottom-anchored booking form) ---------- */

.front-page-main .hero {
  position: relative;
  height: 42vh;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  z-index: 1;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(15,42,68,0.25) 0%, rgba(15,42,68,0.15) 45%, rgba(15,42,68,0.6) 100%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  padding: var(--s-5);
  max-width: var(--container-width);
}
.hero-title {
  color: var(--color-white);
  margin-bottom: var(--s-3);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-subtitle {
  color: var(--color-white);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  font-weight: 500;
}

/* Booking form — sits at the bottom edge of the hero on desktop (absolute,
   centered, overlapping the image), then in normal flow below the hero on
   mobile with a small upward overlap. .hero-block wraps both .hero and
   .hero-booking so the absolute form can anchor to the hero's bottom. */
.hero-block { position: relative; }
.hero-booking {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-width);
  z-index: 4;
  padding: 0 var(--s-5);
  pointer-events: none;
}
.hero-booking-inner {
  pointer-events: auto;
  background: rgba(255,255,255,0.98);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--s-5) var(--s-5) var(--s-4);
  transform: translateY(50%);
  margin-bottom: 0;
  border: 1px solid var(--color-border-soft);
}

/* ---------- Home content (simple page body) ---------- */
.home-content { padding: var(--s-9) 0; margin-top: 40px; }
.home-content .container-narrow { padding: 0 var(--s-5); }
.home-content p { font-size: 1.05rem; line-height: 1.75; color: var(--color-text-soft); margin-bottom: var(--s-4); }
.home-content h1, .home-content h2 { margin-top: 0; }

/* ---------- Front Page: Testimonials ---------- */

.testimonials-section { background: var(--color-sand-light); padding: var(--s-9) 0; }
.testimonials-carousel { max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial blockquote {
  font-family: var(--font-heading); font-size: 1.4rem;
  font-style: italic; color: var(--color-text);
  margin: 0 0 var(--s-4); padding: 0;
  border: 0; background: transparent; border-radius: 0;
}
.testimonial cite {
  font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-style: normal;
  font-weight: 700; color: var(--color-accent);
}

/* ---------- Front Page: News (sits flush with the dark footer) ---------- */

.news-section { background: var(--color-sand-light); padding: var(--s-9) 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.news-card img { margin-bottom: var(--s-4); border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.news-card h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.news-card p { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.6; }

/* ---------- Activities Grid ---------- */

.activities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.activity-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--s-5);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.activity-card img { margin-bottom: var(--s-4); border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.activity-card h2 { font-size: 1.3rem; margin-bottom: var(--s-3); }
.activity-card p { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: var(--s-4); line-height: 1.6; }

/* ---------- Offers ---------- */

.offers-list { display: flex; flex-direction: column; gap: var(--s-8); }
.offer-card { display: flex; gap: var(--s-6); align-items: flex-start; padding: var(--s-5); background: var(--color-bg-soft); border-radius: var(--radius); }
.offer-card img { width: 300px; flex-shrink: 0; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.offer-card h2 { font-size: 1.4rem; margin-bottom: var(--s-3); }
.offer-excerpt { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.6; }

/* ---------- About ---------- */

.about-content { line-height: 1.8; }
.about-content h2 { margin: var(--s-9) 0 var(--s-4); }
.about-contact {
  background: var(--color-sand-light);
  padding: var(--s-6);
  border-radius: var(--radius);
  margin-top: var(--s-8);
  border-left: 4px solid var(--color-accent);
}
.about-contact h4 { margin-bottom: var(--s-3); }

/* ---------- Book Online (search + results) ---------- */

.book-online-content { max-width: var(--container-width); margin: 0 auto; padding: var(--s-8) 0 var(--s-9); }
.book-online-content > p:first-of-type {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-soft);
  margin-bottom: var(--s-7);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Reuse the same form styling as the hero, but in a freestanding card.
   (Currently the search form only appears on the hero; the [mphb_search_results]
   shortcode handles results on /book-online/. If we re-add a freestanding form
   here, the same .mphb_sc_search-form rules above will style it.) */
.book-online-content .mphb_sc_search-wrapper {
  max-width: 980px;
  margin: 0 auto var(--s-8);
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  padding: var(--s-5) var(--s-5) var(--s-4);
}

/* Search results header (e.g. "3 Unterkünfte gefunden von 21.07.2026 - bis 23.07.2026") */
.mphb_sc_search_results-info {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-navy);
  font-weight: 600;
  margin: 0 0 var(--s-7);
  padding: var(--s-4) var(--s-5);
  background: var(--color-sand-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
}

/* ---------- Card-based room listings (MotoPress room types) ----------
   The plugin renders the room card as:
     <div class="mphb-room-type post-XX ...">
       <a href="..."><img class="wp-post-image" /></a>      ← image
       <h2 class="mphb-room-type-title">...                  ← title
       <p>excerpt...</p>                                     ← excerpt
       <h3 class="mphb-room-type-details-title">Details</h3> ← details
       <ul class="mphb-loop-room-type-attributes">...</ul>  ← attributes
       <p class="mphb-regular-price">...</p>                 ← price
       <p class="mphb-view-details-button-wrapper">...</p>   ← view button
       <div class="mphb-reserve-room-section">...</div>      ← reserve form
     </div>
   We use CSS grid to lay the image on the left, body on the right. */

/* Reset WordPress core's <p> margin/padding that leaks into the room card
   (the .entry-content p { margin-bottom: 1em } rule). */
.mphb-room-type p {
  margin: 0;
  padding: 0;
}

/* Grid: image on the left, all body content on the right.
   Body rows: header → excerpt → details → price → view-button → reserve. */
.mphb-room-type {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 0 0 var(--s-7);
  padding: 0;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-areas:
    "image header"
    "image excerpt"
    "image details"
    "image price"
    "image view-button"
    "image reserve";
  gap: 0;
}
.mphb-room-type:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* The image is the first <p class="post-thumbnail"> child wrapping <a><img>.
   The <p> is the grid item; we force it to span the full grid height. */
.mphb-room-type > p.post-thumbnail,
.mphb-room-type > p.mphb-loop-room-thumbnail {
  grid-area: image;
  grid-row: image / actions;       /* span every row in the right column */
  display: block;
  background: var(--color-navy);
  overflow: hidden;
  line-height: 0;
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
.mphb-room-type > p.post-thumbnail a,
.mphb-room-type > p.mphb-loop-room-thumbnail a {
  display: block;
  line-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
}
.mphb-room-type > p.post-thumbnail img,
.mphb-room-type > p.mphb-loop-room-thumbnail img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mphb-room-type:hover > p.post-thumbnail img,
.mphb-room-type:hover > p.mphb-loop-room-thumbnail img {
  transform: scale(1.04);
}

.mphb-room-type h2.mphb-room-type-title {
  grid-area: header;
  margin: 0;
  padding: var(--s-6) var(--s-6) var(--s-2);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.mphb-room-type h2.mphb-room-type-title a {
  color: var(--color-navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}
.mphb-room-type h2.mphb-room-type-title a:hover {
  color: var(--color-navy);
  border-bottom-color: var(--color-accent);
}
.mphb-room-type > p:not(.mphb-regular-price):not(.mphb-view-details-button-wrapper):not(.mphb-data-incorrect):not(.post-thumbnail):not(.mphb-loop-room-thumbnail) {
  grid-area: excerpt;
  margin: 0;
  padding: 0 var(--s-6) var(--s-4);
  color: var(--color-text-soft);
  line-height: 1.7;
  font-size: 0.98rem;
}
.mphb-room-type h3.mphb-room-type-details-title {
  display: none;
}
.mphb-room-type ul.mphb-loop-room-type-attributes {
  grid-area: details;
  list-style: none;
  padding: 0 var(--s-6) var(--s-5);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-5);
  font-size: 0.92rem;
  color: var(--color-text-soft);
}
.mphb-room-type ul.mphb-loop-room-type-attributes li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0;
  border: 0;
  line-height: 1.4;
}
.mphb-room-type .mphb-attribute-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-text-light);
}
.mphb-room-type .mphb-attribute-value {
  color: var(--color-text);
  font-weight: 500;
}
.mphb-room-type .mphb-attribute-value a {
  color: var(--color-text);
  text-decoration: none;
}
.mphb-room-type .mphb-attribute-value a:hover { color: var(--color-accent); }

/* Price + booking actions row */
.mphb-room-type .mphb-regular-price {
  grid-area: price;
  margin: 0;
  padding: var(--s-4) var(--s-6);
  background: var(--color-sand-light);
  border-top: 1px solid var(--color-border-soft);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  justify-content: space-between;
}
.mphb-room-type .mphb-price-view-details {
  color: var(--color-navy);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
  margin-left: auto;
}
.mphb-room-type .mphb-price-view-details:hover {
  color: var(--color-accent);
}
.mphb-room-type .mphb-regular-price strong { color: var(--color-navy); font-weight: 700; }
.mphb-room-type .mphb-price {
  color: var(--color-navy);
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}
.mphb-room-type .mphb-price .mphb-currency {
  color: var(--color-accent);
  margin-right: 0.15em;
}
.mphb-room-type .mphb-price-period {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 400;
}

/* Action buttons row (View details + reserve section) */
.mphb-room-type .mphb-view-details-button-wrapper {
  grid-area: view-button;
  padding: var(--s-4) var(--s-6) 0;
  margin: 0;
}
.mphb-room-type .mphb-reserve-room-section {
  grid-area: reserve;
  padding: var(--s-3) var(--s-6) var(--s-5);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: var(--s-3);
}
.mphb-room-type .mphb-view-details-button {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border: 2px solid var(--color-navy);
  min-height: 48px;
  align-self: flex-start;
}
.mphb-room-type .mphb-view-details-button:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
}
.mphb-room-type .mphb-reserve-room-section {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border-soft);
  padding: var(--s-4) var(--s-6);
}
.mphb-room-type .mphb-rooms-quantity-wrapper {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}
.mphb-room-type .mphb-rooms-quantity {
  width: auto;
  min-width: 70px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  font-size: 0.95rem;
  font-family: inherit;
  height: 40px;
}
.mphb-room-type .mphb-available-rooms-count {
  color: var(--color-text-light);
  font-size: 0.88rem;
}
.mphb-room-type .mphb-to-book-btn-wrapper {
  grid-area: reserve;
}
.mphb-room-type .mphb-to-book-btn-wrapper br {
  display: none;
}
.mphb-room-type .mphb-book-button {
  background: var(--color-navy);
  color: var(--color-white);
  border: 2px solid var(--color-navy);
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0;
  border-bottom-right-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 56px;
  width: 100%;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}
.mphb-room-type .mphb-book-button:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
}
.mphb-room-type .mphb-confirm-reservation {
  background: var(--color-success);
  border-color: var(--color-success);
}
.mphb-room-type .mphb-confirm-reservation:hover {
  background: #246d49;
  border-color: #246d49;
}
.mphb-room-type .mphb-rooms-reservation-message-wrapper {
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
}
.mphb-room-type .mphb-remove-from-reservation {
  color: var(--color-error);
  font-size: 0.88rem;
  text-decoration: underline;
  margin-top: var(--s-2);
  display: inline-block;
}

/* Mobile: stack the room card */
@media (max-width: 720px) {
  .mphb-room-type {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "header"
      "excerpt"
      "details"
      "price"
      "reserve";
  }
  .mphb-room-type > p.post-thumbnail,
  .mphb-room-type > p.mphb-loop-room-thumbnail {
    min-height: 200px;
    aspect-ratio: 16/9;
    grid-row: auto;
  }
  .mphb-room-type > p.post-thumbnail img,
  .mphb-room-type > p.mphb-loop-room-thumbnail img {
    min-height: 200px;
    width: 100%;
    object-fit: cover;
  }
  .mphb-room-type h2.mphb-room-type-title {
    padding: var(--s-5) var(--s-5) var(--s-2);
    font-size: 1.3rem;
  }
  .mphb-room-type > p:not(.mphb-regular-price):not(.mphb-view-details-button-wrapper):not(.mphb-data-incorrect):not(.post-thumbnail):not(.mphb-loop-room-thumbnail) {
    padding: 0 var(--s-5) var(--s-4);
    font-size: 0.95rem;
  }
  .mphb-room-type ul.mphb-loop-room-type-attributes {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3) var(--s-4);
    padding: 0 var(--s-5) var(--s-5);
    font-size: 0.88rem;
  }
  .mphb-room-type .mphb-attribute-title {
    font-size: 0.68rem;
  }
  .mphb-room-type .mphb-regular-price {
    padding: var(--s-4) var(--s-5);
    font-size: 1rem;
  }
  .mphb-room-type .mphb-price {
    font-size: 1.4rem;
  }
  .mphb-room-type .mphb-price-view-details {
    font-size: 1rem;
  }
  .mphb-room-type .mphb-book-button {
    margin: 0;
    border-radius: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .mphb-room-type ul.mphb-loop-room-type-attributes {
    grid-template-columns: 1fr;
  }
  .mphb-room-type h2.mphb-room-type-title {
    font-size: 1.15rem;
    padding: var(--s-4) var(--s-4) var(--s-2);
  }
  .mphb-room-type > p:not(.mphb-regular-price):not(.mphb-view-details-button-wrapper):not(.mphb-data-incorrect):not(.post-thumbnail):not(.mphb-loop-room-thumbnail) {
    padding: 0 var(--s-4) var(--s-3);
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .mphb-room-type ul.mphb-loop-room-type-attributes {
    padding: 0 var(--s-4) var(--s-4);
  }
  .mphb-room-type .mphb-regular-price {
    padding: var(--s-3) var(--s-4);
  }
}

/* ---------- Service items ---------- */

.mphb-service-item {
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--color-border-soft);
}
.mphb-service-item:last-child { border-bottom: none; }

/* ---------- Single Post / Room Detail ---------- */

.room-detail .room-gallery { margin-bottom: var(--s-6); }
.room-detail .room-gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.room-detail .room-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3); }
.room-detail .room-description { margin-bottom: var(--s-6); line-height: 1.8; }

.single-post .entry-meta {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: var(--s-5);
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.single-post .entry-image { margin-bottom: var(--s-6); border-radius: var(--radius); overflow: hidden; }
.single-post .entry-content { line-height: 1.8; margin-bottom: var(--s-6); }
.single-post .tags-links { font-size: 0.88rem; color: var(--color-text-light); }

.post-navigation {
  display: flex; justify-content: space-between;
  margin: var(--s-8) 0;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--color-border);
  gap: var(--s-4);
}
.post-navigation .nav-previous, .post-navigation .nav-next { font-size: 0.9rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: 0;
}
.footer-inner { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--s-5); }
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}
.footer-widget .widget-title { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.footer-widget a { color: var(--color-white); }
.footer-widget a:hover { color: var(--color-accent); }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { padding: 0.35rem 0; font-size: 0.95rem; line-height: 1.5; border: 0; }
.footer-nav { text-align: center; margin-bottom: var(--s-4); }
.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  padding: 0;
}
.footer-menu a {
  color: var(--color-white);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.footer-social { text-align: center; margin-bottom: var(--s-4); }
.social-menu { list-style: none; display: flex; justify-content: center; gap: var(--s-4); padding: 0; }
.social-menu a { color: var(--color-white); font-size: 1.3rem; }
.footer-credit {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-credit a { color: rgba(255,255,255,0.7); }

/* ===================================================================
   FORMS — best-practice layout
   References: NN/g input guidance, Material Design forms,
   gov.uk design system form spacing.
   - 48px tall inputs (touch-friendly)
   - 16px label-to-input gap
   - 24px between fields
   - 2px focus ring (AA contrast)
   - Single-column on mobile
   =================================================================== */

.mphb-availability-search-form,
.mphb_sc_search-form,
form.mphb-booking-form,
form.mphb-checkout-form,
form.mphb-customer-details {
  font-family: var(--font-body);
}

/* Top-level form: row of fields + submit */
.mphb-availability-search-form,
.mphb_sc_search-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: flex-end;     /* inputs baseline-align across the row */
  background: transparent;
  margin: 0;
}

/* Each field wrapper is a flex column: label on top, input below */
.mphb_sc_search-form > p,
.mphb-availability-search-form > p,
.mphb_sc_search-form .mphb_sc_search-check-in-date,
.mphb_sc_search-form .mphb_sc_search-check-out-date,
.mphb_sc_search-form .mphb_sc_search-adults,
.mphb_sc_search-form .mphb_sc_search-children,
.mphb_sc_search-form .mphb_sc_search-submit-button-wrapper {
  display: flex;
  flex-direction: column;
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  gap: 0.4rem;             /* label-to-input gap */
}
.mphb_sc_search-form .mphb_sc_search-submit-button-wrapper {
  flex: 0 0 auto;
}

/* Required-fields tip */
.hero-booking .mphb-required-fields-tip { display: none; }
.mphb-required-fields-tip {
  margin-bottom: var(--s-3);
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: left;
  flex: 1 1 100%;
}
.mphb-required-fields-tip abbr {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
}

/* Labels — uppercase eyebrow style, generous spacing to input */
.mphb-availability-search-form label,
.mphb_sc_search-form label,
.mphb_sc_search-form .mphb-search-form-label,
form.mphb-checkout-form label,
form.mphb-customer-details label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  color: var(--color-text-light);
  line-height: 1.3;
}
/* Strip the <br> between label and input that MotoPress adds */
.mphb_sc_search-form label + br,
.mphb-availability-search-form label + br { display: none; }

/* Inputs — 48px tall, comfortable padding, AA-contrast border, focus ring */
.mphb-availability-search-form input[type="text"],
.mphb-availability-search-form input[type="email"],
.mphb-availability-search-form input[type="tel"],
.mphb-availability-search-form input[type="number"],
.mphb-availability-search-form select,
.mphb-availability-search-form textarea,
.mphb_sc_search-form input[type="text"],
.mphb_sc_search-form input[type="email"],
.mphb_sc_search-form input[type="tel"],
.mphb_sc_search-form input[type="number"],
.mphb_sc_search-form select,
.mphb_sc_search-form textarea,
form.mphb-checkout-form input[type="text"],
form.mphb-checkout-form input[type="email"],
form.mphb-checkout-form input[type="tel"],
form.mphb-checkout-form select,
form.mphb-checkout-form textarea,
form.mphb-customer-details input[type="text"],
form.mphb-customer-details input[type="email"],
form.mphb-customer-details input[type="tel"],
form.mphb-customer-details select,
form.mphb-customer-details textarea {
  padding: 0 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  height: var(--input-height);
  line-height: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.mphb-availability-search-form textarea,
.mphb_sc_search-form textarea,
form.mphb-checkout-form textarea,
form.mphb-customer-details textarea {
  height: auto;
  min-height: 110px;
  resize: vertical;
  padding: 0.75rem 0.9rem;
  line-height: 1.5;
}
.mphb-availability-search-form select,
.mphb_sc_search-form select,
form.mphb-checkout-form select,
form.mphb-customer-details select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a3a5c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 10px;
  padding-right: 2.25rem;
}
.mphb-availability-search-form input:focus,
.mphb-availability-search-form select:focus,
.mphb-availability-search-form textarea:focus,
.mphb_sc_search-form input:focus,
.mphb_sc_search-form select:focus,
.mphb_sc_search-form textarea:focus,
form.mphb-checkout-form input:focus,
form.mphb-checkout-form select:focus,
form.mphb-checkout-form textarea:focus,
form.mphb-customer-details input:focus,
form.mphb-customer-details select:focus,
form.mphb-customer-details textarea:focus {
  outline: 0;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}
.mphb-availability-search-form input::placeholder,
.mphb_sc_search-form input::placeholder,
form.mphb-checkout-form input::placeholder,
form.mphb-customer-details input::placeholder {
  color: var(--color-text-light);
  opacity: 1;
}

/* First field rounds left, last field rounds right (hero one-line) */
.mphb_sc_search-form > p:first-of-type input[type="text"],
.mphb_sc_search-form > p:first-of-type input[type="email"],
.mphb_sc_search-form > p:first-of-type select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.mphb_sc_search-form > p:not(:last-of-type) input,
.mphb_sc_search-form > p:not(:last-of-type) select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right-color: transparent;
}
.mphb_sc_search-form > p:not(:first-of-type) input,
.mphb_sc_search-form > p:not(:first-of-type) select {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.mphb_sc_search-form > p:not(:last-of-type):focus-within input,
.mphb_sc_search-form > p:not(:last-of-type):focus-within select {
  border-right-color: var(--color-navy);
  box-shadow: none;
}

/* Submit button — height matches input, full color, hover lift */
.mphb-availability-search-form button,
.mphb-availability-search-form input[type="submit"],
.mphb_sc_search-form button,
.mphb_sc_search-form input[type="submit"] {
  background: var(--color-navy);
  color: var(--color-white);
  border: 1.5px solid var(--color-navy);
  padding: 0 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  height: var(--input-height);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  transition: all var(--transition);
  white-space: nowrap;
}
.mphb-availability-search-form button:hover,
.mphb-availability-search-form input[type="submit"]:hover,
.mphb_sc_search-form button:hover,
.mphb_sc_search-form input[type="submit"]:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hidden duplicate date inputs */
.mphb_sc_search-form input[type="hidden"] { display: none !important; }

/* Book Online page — fully square buttons and inputs (no rounded corners) */
.page-template-template-book-online .mphb_sc_search-form input[type="text"],
.page-template-template-book-online .mphb_sc_search-form input[type="email"],
.page-template-template-book-online .mphb_sc_search-form input[type="tel"],
.page-template-template-book-online .mphb_sc_search-form input[type="number"],
.page-template-template-book-online .mphb_sc_search-form select,
.page-template-template-book-online .mphb_sc_search-form textarea,
.page-template-template-book-online .mphb_sc_search-form button,
.page-template-template-book-online .mphb_sc_search-form input[type="submit"] {
  border-radius: 0;
}
.page-template-template-book-online .mphb_sc_search-form > p:first-of-type input[type="text"],
.page-template-template-book-online .mphb_sc_search-form > p:first-of-type select,
.page-template-template-book-online .mphb_sc_search-form > p:not(:last-of-type) input,
.page-template-template-book-online .mphb_sc_search-form > p:not(:last-of-type) select,
.page-template-template-book-online .mphb_sc_search-form > p:not(:first-of-type) input,
.page-template-template-book-online .mphb_sc_search-form > p:not(:first-of-type) select {
  border-radius: 0;
}
.page-template-template-book-online .mphb-room-type {
  border-radius: 0;
}
.page-template-template-book-online .mphb-room-type .mphb-book-button {
  border-radius: 0;
}

/* Adults/Children selects — equal width with date fields */
.mphb_sc_search-form .mphb_sc_search-adults,
.mphb_sc_search-form .mphb_sc_search-children { flex: 1 1 0; }

/* ===================================================================
   CHECKOUT form — full-page booking
   - Group sections with headings + descriptions
   - Two-column layout for short fields (name, country, etc.)
   - Single column for long fields (address, notes)
   - Generous spacing between sections
   =================================================================== */

.mphb_sc_checkout-wrapper {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.98rem;
}

/* Customer details — 2-column grid for short fields, full-width for long */
.mphb_sc_checkout-wrapper .mphb-customer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-5);
}
.mphb_sc_checkout-wrapper .mphb-customer-details > p {
  margin: 0;
  font-size: 1rem;
}
.mphb_sc_checkout-wrapper .mphb-customer-details .mphb-customer-address1,
.mphb_sc_checkout-wrapper .mphb-customer-details .mphb-customer-note,
.mphb_sc_checkout-wrapper .mphb-customer-details .mphb-customer-state {
  grid-column: 1 / -1;
}
.mphb_sc_checkout-wrapper .mphb-customer-details label + br {
  display: none;
}
.mphb_sc_checkout-wrapper .mphb-customer-details label {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.mphb_sc_checkout-wrapper .mphb-customer-details input,
.mphb_sc_checkout-wrapper .mphb-customer-details select,
.mphb_sc_checkout-wrapper .mphb-customer-details textarea {
  width: 100%;
  margin-top: 0;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
  min-height: 52px;
}
@media (max-width: 600px) {
  .mphb_sc_checkout-wrapper .mphb-customer-details {
    grid-template-columns: 1fr;
  }
}
.mphb_sc_checkout-wrapper h3,
.mphb_sc_checkout-wrapper .mphb-rooms-reservation-message-wrapper + h3 {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-navy);
  margin: var(--s-8) 0 var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.mphb_sc_checkout-wrapper h2:first-of-type,
.mphb_sc_checkout-wrapper h3:first-of-type,
.book-online-content > h2.wp-block-heading { margin-top: 0; margin-bottom: var(--s-5); }

/* Booking details section: 2-column layout
   Left:  .mphb-booking-details-left  → title + check-in + check-out
   Right: .mphb-booking-details-right → reserved rooms + room details
   Below: services (full width, appended outside the columns by JS) */
.mphb_sc_checkout-wrapper .mphb-booking-details {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}
.mphb_sc_checkout-wrapper .mphb-booking-details > .mphb-booking-details-left > h3.mphb-booking-details-title {
  margin-top: 0;
}
.mphb_sc_checkout-wrapper .mphb-booking-details > .mphb-booking-details-left > .mphb-check-in-date {
  margin-bottom: var(--s-3);
}
.mphb_sc_checkout-wrapper .mphb-booking-details > .mphb-booking-details-right {
  align-self: start;
  padding-left: var(--s-5);
  border-left: 1px solid var(--color-border-soft);
}
.mphb_sc_checkout-wrapper .mphb-booking-details .mphb-services-details {
  grid-column: 1 / -1;
  margin-top: var(--s-6);
  padding: var(--s-5) var(--s-6);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
}
.mphb_sc_checkout-wrapper .mphb-booking-details .mphb-services-details .mphb-services-details-title {
  margin-top: 0;
}
@media (max-width: 720px) {
  .mphb_sc_checkout-wrapper .mphb-booking-details {
    grid-template-columns: 1fr;
  }
  .mphb_sc_checkout-wrapper .mphb-booking-details > .mphb-booking-details-right {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border-soft);
    padding-top: var(--s-5);
  }
}
.mphb_sc_checkout-wrapper p,
.mphb_sc_checkout-wrapper .mphb-customer-details {
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-bottom: var(--s-4);
  font-size: 1rem;
}
.mphb_sc_checkout-wrapper .mphb-check-in-date,
.mphb_sc_checkout-wrapper .mphb-check-out-date {
  font-size: 1rem;
  padding: var(--s-4) var(--s-5);
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  margin-bottom: var(--s-3);
}
.mphb_sc_checkout-wrapper .mphb-check-in-date span:first-child,
.mphb_sc_checkout-wrapper .mphb-check-out-date span:first-child {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
}
.mphb_sc_checkout-wrapper .mphb-check-in-date time,
.mphb_sc_checkout-wrapper .mphb-check-out-date time {
  display: inline;
}
.mphb_sc_checkout-wrapper .mphb-check-in-date time strong,
.mphb_sc_checkout-wrapper .mphb-check-out-date time strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}
.mphb_sc_checkout-wrapper .mphb-room-info,
.mphb_sc_checkout-wrapper .mphb-reserve-room-section {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-5);
}
.mphb_sc_checkout-wrapper .mphb-room-info h4 {
  margin: 0 0 var(--s-2);
  font-size: 1.1rem;
  color: var(--color-navy);
}
/* Accommodation form inputs (Adults/Children selects, Guest name) */
.mphb_sc_checkout-wrapper .mphb-room-details input[type="text"],
.mphb_sc_checkout-wrapper .mphb-room-details input[type="email"],
.mphb_sc_checkout-wrapper .mphb-room-details input[type="tel"],
.mphb_sc_checkout-wrapper .mphb-room-details input[type="number"],
.mphb_sc_checkout-wrapper .mphb-room-details select,
.mphb_sc_checkout-wrapper .mphb-room-details textarea {
  padding: 0 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  height: 40px;
  line-height: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-top: 0.4rem;
}
.mphb_sc_checkout-wrapper .mphb-room-details select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a3a5c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 10px;
  padding-right: 2.25rem;
}
.mphb_sc_checkout-wrapper .mphb-room-details input:focus,
.mphb_sc_checkout-wrapper .mphb-room-details select:focus,
.mphb_sc_checkout-wrapper .mphb-room-details textarea:focus {
  outline: 0;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}
.mphb_sc_checkout-wrapper .mphb-price-breakdown {
  background: var(--color-sand-light);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--radius);
  margin: var(--s-5) 0;
  width: 100%;
  border-collapse: collapse;
}
.mphb_sc_checkout-wrapper .mphb-price-breakdown th {
  text-align: left;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mphb_sc_checkout-wrapper .mphb-price-breakdown td,
.mphb_sc_checkout-wrapper .mphb-price-breakdown th {
  padding: var(--s-2) var(--s-3);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border-soft);
}
.mphb_sc_checkout-wrapper .mphb-price-breakdown tr:last-child td,
.mphb_sc_checkout-wrapper .mphb-price-breakdown tr:last-child th {
  border-bottom: none;
}
.mphb_sc_checkout-wrapper .mphb-price-breakdown .mphb-price-breakdown-accommodation {
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
}
.mphb_sc_checkout-wrapper .mphb-total-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  border-top: 2px solid var(--color-navy);
  padding-top: var(--s-3);
  margin-top: var(--s-3);
}
.mphb_sc_checkout-wrapper input[type="submit"],
.mphb_sc_checkout-wrapper button[type="submit"] {
  background: var(--color-navy);
  color: var(--color-white);
  border: 2px solid var(--color-navy);
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 54px;
  width: auto;
  font-family: var(--font-body);
  transition: all var(--transition);
  margin-top: var(--s-5);
}
.mphb_sc_checkout-wrapper input[type="submit"]:hover,
.mphb_sc_checkout-wrapper button[type="submit"]:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.mphb_sc_checkout-wrapper .mphb-errors-wrapper,
.mphb_sc_checkout-wrapper .mphb-data-incorrect {
  background: #fdf2f0;
  color: var(--color-error);
  border-left: 4px solid var(--color-error);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  margin-bottom: var(--s-5);
}
.mphb_sc_checkout-wrapper .mphb-terms-and-conditions {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  max-height: none !important;
  overflow: visible !important;
}
.mphb_sc_checkout-wrapper .mphb-terms-and-conditions label {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--color-text);
  font-weight: 400;
  cursor: pointer;
}
.mphb_sc_checkout-wrapper .mphb-terms-and-conditions input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  accent-color: var(--color-navy);
  flex-shrink: 0;
}

/* Billing details / Payment Method — stack properly, no inline */
.mphb_sc_checkout-wrapper .mphb-billing-fields-wrapper {
  margin-top: var(--s-6);
}
.mphb_sc_checkout-wrapper .mphb-billing-fields-wrapper h3 {
  margin-bottom: var(--s-4);
}
.mphb_sc_checkout-wrapper .mphb-gateways-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mphb_sc_checkout-wrapper .mphb-gateways-list > li {
  display: block;
  margin: var(--s-3) 0;
  padding: var(--s-4) var(--s-5);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color var(--transition);
}
.mphb_sc_checkout-wrapper .mphb-gateways-list > li:hover {
  border-color: var(--color-navy);
}
.mphb_sc_checkout-wrapper .mphb-gateways-list > li label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.mphb_sc_checkout-wrapper .mphb-gateways-list > li input[type="radio"] {
  margin-right: var(--s-2);
  accent-color: var(--color-navy);
}
.mphb_sc_checkout-wrapper .mphb-gateways-list > li .mphb-payment-method-description {
  display: block;
  margin-top: var(--s-2);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-soft);
  line-height: 1.5;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Tablet: 720-1024px */
@media (max-width: 1024px) {
  .mphb-room-type { grid-template-columns: 260px 1fr; }
}

/* Below 968px: sidebar stacks, search form wraps 2-per-row */
@media (max-width: 968px) {
  .content-with-sidebar { flex-direction: column; gap: var(--s-7); }
  .sidebar { width: 100%; }
  .news-grid, .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr; gap: var(--s-5); }
  .offer-card { flex-direction: column; }
  .offer-card img { width: 100%; }
  .hero-title { font-size: 2rem; }
  .page-hero .page-title { font-size: 2.1rem; }
  /* Hero form: allow 2 fields per row */
  .mphb_sc_search-form,
  .mphb-availability-search-form { flex-wrap: wrap; row-gap: 1rem; column-gap: 1rem; }
  .mphb_sc_search-form > p,
  .mphb-availability-search-form > p,
  .mphb_sc_search-form .mphb_sc_search-check-in-date,
  .mphb_sc_search-form .mphb_sc_search-check-out-date,
  .mphb_sc_search-form .mphb_sc_search-adults,
  .mphb_sc_search-form .mphb_sc_search-children { flex: 1 1 45%; }
  .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper { flex: 1 1 100%; }
  .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper input[type="submit"] {
    border-radius: var(--radius);
  }
  .home-content { margin-top: 0; }
  /* On tablet, fields are stacked 2-per-row, so each needs its own full border. */
  .mphb_sc_search-form > p input,
  .mphb_sc_search-form > p select {
    border-radius: var(--radius) !important;
    border-right-color: var(--color-border) !important;
    border-bottom-color: var(--color-border) !important;
  }
  /* On tablet, drop the absolute positioning so the form pushes content down naturally. */
  .hero-booking {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    padding: 0 var(--s-4);
    width: auto;
    max-width: none;
    margin-top: -20px;
  }
  .hero-booking-inner {
    transform: none;
    margin-bottom: 0;
    padding: var(--s-3) var(--s-4);
  }
}

/* Below 860px: mobile header */
@media (max-width: 860px) {
  .header-inner {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: var(--s-4) var(--s-5);
    gap: var(--s-2);
  }
  .site-branding { padding: 0.4rem 0; padding-right: 3rem; }
  .main-navigation {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-navigation ul { display: none; gap: 0; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: var(--s-4);
    right: var(--s-5);
  }
  .main-navigation.toggled ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .main-navigation.toggled ul li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--color-border-soft);
  }
  .main-navigation.toggled ul li:last-child {
    border-bottom: 0;
  }
  .main-navigation.toggled ul li a { padding: 0.9rem 0; }
  .main-navigation.toggled .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    padding-left: var(--s-4);
    border: 0;
    background: transparent;
  }
  .front-page-main .hero { height: 50vh; min-height: 300px; }
  .hero-booking-inner { padding: var(--s-4); }
}

/* Below 640px: phones */
@media (max-width: 640px) {
  .top-bar-inner { flex-direction: column; gap: 0.25rem; }
  .top-bar-left, .top-bar-right { flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
  .container { padding: 0 var(--s-4); }
  .site-main.full-width .content-area { padding: var(--s-7) var(--s-4); }
  .page-hero { min-height: 220px; height: auto; }
  .page-hero.has-image { min-height: 220px; }
  .page-hero .page-title { font-size: 1.8rem; }
  /* Mobile hero: title centered, form sits in normal flow just below the hero
     with a 20px upward overlap. */
  .front-page-main .hero { height: 38vh; min-height: 240px; }
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .news-grid, .activities-grid { grid-template-columns: 1fr; }
  .post-navigation { flex-direction: column; gap: var(--s-3); }
  .home-content { margin-top: 0; }
  /* Form: drop the absolute positioning, place it in flow with a small hover. */
  .hero-booking {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    padding: 0 var(--s-4);
    width: auto;
    max-width: none;
    margin-top: -20px;
  }
  .hero-booking-inner {
    transform: none;
    margin-bottom: 0;
    padding: var(--s-3) var(--s-4);
  }
  /* Form on mobile: 2 rows.
     Row 1: check-in + check-out (50/50).
     Row 2: adults + children + search (33/33/33).
     Same gap everywhere.
     NOTE: use class selectors (not :nth-child) because the form has a
     .mphb-required-fields-tip and hidden inputs as direct children that
     would shift nth-child positions. */
  /* Form on mobile: 2 rows.
     Row 1: check-in + check-out (50/50).
     Row 2: adults + children + search (33/33/33).
     Same gap everywhere. Use CSS grid for explicit, predictable column control. */
  .mphb_sc_search-form,
  .mphb-availability-search-form {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    column-gap: var(--s-3) !important;
    row-gap: var(--s-3) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Hide the required-fields tip and hidden inputs in the grid layout so they
     don't take a cell. The required-fields tip is display:none globally, but
     in grid it would still reserve a row slot. */
  .mphb_sc_search-form > .mphb-required-fields-tip,
  .mphb-availability-search-form > .mphb-required-fields-tip,
  .mphb_sc_search-form > input[type="hidden"],
  .mphb-availability-search-form > input[type="hidden"] {
    display: none !important;
    grid-column: 1 / -1 !important;
  }
  /* Row 1: check-in (cols 1-3), check-out (cols 4-6) → each takes 50%. */
  .mphb_sc_search-form .mphb_sc_search-check-in-date,
  .mphb_sc_search-form .mphb_sc_search-check-out-date,
  .mphb-availability-search-form .mphb_sc_search-check-in-date,
  .mphb-availability-search-form .mphb_sc_search-check-out-date {
    grid-column: span 3 !important;
  }
  /* Row 2: adults, children each span 3/6 columns (50% each). Submit spans all 6. */
  .mphb_sc_search-form .mphb_sc_search-adults,
  .mphb_sc_search-form .mphb_sc_search-children,
  .mphb-availability-search-form .mphb_sc_search-adults,
  .mphb-availability-search-form .mphb_sc_search-children {
    grid-column: span 3 !important;
  }
  .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper,
  .mphb-availability-search-form .mphb_sc_search-submit-button-wrapper {
    grid-column: 1 / -1 !important;
  }
  .mphb_sc_search-form > p input,
  .mphb_sc_search-form > p select {
    border-radius: var(--radius) !important;
    border-right-color: var(--color-border) !important;
    border-bottom-color: var(--color-border) !important;
  }
  .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper input[type="submit"] { border-radius: var(--radius); }
  .content-with-sidebar { padding: var(--s-7) 0; }
  .book-online-content { padding: var(--s-6) 0 var(--s-7); }
  .mphb-room-type { grid-template-columns: 1fr; }
  .mphb-room-type > p.post-thumbnail,
  .mphb-room-type > p.mphb-loop-room-thumbnail { min-height: 200px; aspect-ratio: 4/3; }
  .mphb-room-type > p.post-thumbnail img,
  .mphb-room-type > p.mphb-loop-room-thumbnail img { min-height: 200px; }
  .mphb-room-type h2.mphb-room-type-title { padding: var(--s-4) var(--s-4) var(--s-2); font-size: 1.3rem; }
  .mphb-room-type > p:not(.mphb-regular-price):not(.mphb-view-details-button-wrapper):not(.mphb-data-incorrect):not(.post-thumbnail):not(.mphb-loop-room-thumbnail) { padding: 0 var(--s-4) var(--s-3); }
  .mphb-room-type h3.mphb-room-type-details-title,
  .mphb-room-type ul.mphb-loop-room-type-attributes { padding-left: var(--s-4); padding-right: var(--s-4); }
  .mphb-room-type ul.mphb-loop-room-type-attributes { grid-template-columns: 1fr; }
  .mphb-room-type .mphb-regular-price { padding: var(--s-3) var(--s-4); font-size: 1rem; }
  .mphb-room-type .mphb-price { font-size: 1.4rem; }
  .mphb-room-type .mphb-view-details-button-wrapper,
  .mphb-room-type .mphb-reserve-room-section { padding-left: var(--s-4); padding-right: var(--s-4); }
}

/* Gallery: stack to 1 column on narrow screens */
@media (max-width: 600px) {
  .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    width: 100% !important;
    margin-bottom: var(--s-4) !important;
  }
}

/* ===================================================================
   Lightbox — click any image in .room-gallery or .wp-block-gallery
   =================================================================== */

.zumritter-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--s-5);
}
.zumritter-lightbox.is-open {
  display: flex;
}
.zumritter-lightbox-figure {
  margin: 0;
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.zumritter-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.zumritter-lightbox-caption {
  color: var(--color-white);
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.2em;
}
.zumritter-lightbox-caption:empty {
  display: none;
}
.zumritter-lightbox-close,
.zumritter-lightbox-prev,
.zumritter-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.zumritter-lightbox-close {
  top: var(--s-4);
  right: var(--s-4);
  font-size: 1.5rem;
}
.zumritter-lightbox-prev {
  left: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
}
.zumritter-lightbox-next {
  right: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
}
.zumritter-lightbox-close:hover,
.zumritter-lightbox-prev:hover,
.zumritter-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.zumritter-lightbox-prev:hover,
.zumritter-lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 600px) {
  .zumritter-lightbox-prev,
  .zumritter-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  .zumritter-lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

/* Single room: spacing for Details + Reservation Form sections */
.room-detail .mphb-details-title,
.room-detail .mphb-reservation-form-title {
  margin-top: 40px;
}

/* TranslatePress floating language switcher — no bottom border, rounded top corners */
.trp-floating-switcher {
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
}

/* Checkout submit button spinner — shows a rotating spinner to the right of
   the "Jetzt buchen" button while the AJAX booking request is in flight. */
.mphb_sc_checkout-submit-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mphb_sc_checkout-submit-wrapper input[type=submit] {
  margin: 0;
}

.zumritter-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid #d4c5a9;
  border-top-color: #8b6f47;
  border-radius: 50%;
  animation: zumritter-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.zumritter-btn-spinner.is-active {
  display: inline-block;
}

/* Center the checkout success message text */
.mphb_checkout-success-reservation-message,
.mphb_sc_checkout-success-reservation-message {
  text-align: center;
}

.mphb_checkout-success-reservation-message a,
.mphb_sc_checkout-success-reservation-message a {
  color: #8b6f47;
  text-decoration: underline;
  font-weight: 600;
}

@keyframes zumritter-spin {
  to { transform: rotate(360deg); }
}

/* ===================================================================
   Checkout form — client-side validation states
   Toggled by main.js (zumritter-field-error / zumritter-field-msg /
   zumritter-form-errors). Uses the existing --color-error token.
   =================================================================== */

/* Inline message under a field */
.zumritter-field-msg {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-error);
  font-weight: 500;
}

/* Invalid field — red border + soft red glow. Mirrors the focus ring
   geometry so the layout doesn't jump when validity changes. */
form.mphb_sc_checkout-form .zumritter-field-error,
form.mphb-checkout-form .zumritter-field-error,
form.mphb-customer-details .zumritter-field-error {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14) !important;
}

/* Keep the red glow while the user is correcting the field, then let
   the normal focus style take over. */
form.mphb_sc_checkout-form .zumritter-field-error:focus,
form.mphb-checkout-form .zumritter-field-error:focus,
form.mphb-customer-details .zumritter-field-error:focus {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.22) !important;
}

/* Summary banner at the top of the form */
.zumritter-form-errors {
  margin: 0 0 var(--s-4);
  padding: 0.85rem 1rem;
  background: rgba(192, 57, 43, 0.08);
  border-left: 4px solid var(--color-error);
  border-radius: var(--radius);
  color: var(--color-error);
  font-size: 0.95rem;
  font-weight: 600;
}

.zumritter-form-errors p {
  margin: 0;
}

/* Screen-reader-only — browsers already announce aria-live, but we keep
   the visible summary for sighted users. */
.zumritter-form-errors[hidden] {
  display: none !important;
}
