/*
Theme Name:  Hotello Child — Petrie Mill Motel
Description: Child theme for Petrie Mill Motel, replicating the static HTML site design.
Author:      Content Authority
Template:    hotello
Version:     1.0.0
Text Domain: hotello-child-petrie-mill
*/

/* ============================================================
   DESIGN TOKENS — exact values from the static site styles.css
   ============================================================ */
:root {
  --ink:       #1f2024;
  --charcoal:  #2e2c2d;
  --muted:     #62666f;
  --paper:     #f7f5ee;
  --white:     #ffffff;
  --line:      #dedbd0;
  --gold:      #a98710;
  --gold-dark: #7e640e;
  --teal:      #286a69;
  --sky:       #dcebf2;
  --sage:      #e5ede8;
  --shadow:    0 22px 60px rgba(31, 32, 36, 0.16);
}

/* ============================================================
   BASE FONT SIZE FIX
   Hotello sets html { font-size: 10px } which breaks rem units.
   Reset to 16px to match the static site.
   ============================================================ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}



body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

p, li, span, h1, h2, h3, a, button, input, select, textarea {
  min-width: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

button, input, select, textarea {
  font: inherit;
}

/* ============================================================
   STICKY FIX — prevent Hotello parent overflow:hidden
   from breaking position:sticky on our header
   ============================================================ */
.stm-site {
  overflow: visible !important;
  overflow-x: clip !important;
}

/* ============================================================
   TYPOGRAPHY — match static site heading scale
   ============================================================ */
h1, .h1 {
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: 0.94;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 14px;
}

h2, .h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin-top: 0;
  margin-bottom: 14px;
}

h3, .h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 8px;
}

.eyebrow,
.stm-eyebrow,
p.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* ============================================================
   LINK COLOUR
   ============================================================ */
.stm-site a:not([class]),
.entry-content a {
  color: var(--gold-dark);
}

.stm-site a:not([class]):hover,
.entry-content a:hover {
  color: var(--gold);
}

/* ============================================================
   INPUTS / FORMS
   ============================================================ */
.stm-site input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.stm-site select,
.stm-site textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stm-site input:focus,
.stm-site select:focus,
.stm-site textarea:focus {
  outline: 3px solid rgba(169, 135, 16, 0.22);
  border-color: var(--gold);
}

/* ============================================================
   BUTTONS — WPBakery / Hotello
   ============================================================ */
.stm-btn,
.btn,
.vc_btn3,
.stm-button,
a.stm-btn {
  border-radius: 8px !important;
  font-weight: 800 !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.stm-btn.stm-btn__primary,
.vc_btn3.vc_btn3-color-primary,
.btn-primary,
.stm-btn--primary {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--white) !important;
}

.stm-btn.stm-btn__primary:hover,
.vc_btn3.vc_btn3-color-primary:hover,
.btn-primary:hover {
  background: var(--gold-dark) !important;
  border-color: var(--gold-dark) !important;
}

.stm-btn.stm-btn__secondary,
.vc_btn3.vc_btn3-color-white,
.btn-secondary {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  color: var(--white) !important;
}

.stm-btn.stm-btn__secondary:hover {
  background: rgba(255,255,255,0.16) !important;
}

.stm-btn.stm-btn__muted {
  background: var(--sage) !important;
  color: var(--charcoal) !important;
}

.stm-btn.stm-btn__muted:hover {
  background: var(--sky) !important;
}

/* ============================================================
   PMM HEADER — hardcoded, matches static site exactly
   ============================================================ */
.pmm-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 48px;
  background: rgba(46, 44, 45, 0.96);
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* WP admin bar offset */
.admin-bar .pmm-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  .admin-bar .pmm-header {
    top: 46px !important;
  }
}

.pmm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.pmm-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  flex-shrink: 0;
}

.pmm-brand strong {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 800;
}

.pmm-brand small {
  display: block;
  color: #d8d2c4;
  font-size: 0.78rem;
  font-weight: 400;
}

.pmm-header nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Nav links — force white, override Hotello gold */
.pmm-header nav a,
.pmm-header nav a:visited,
.pmm-header #pmmPrimaryNav a,
.pmm-header #pmmPrimaryNav a:visited {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  color: #f5f0e7 !important;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.pmm-header nav a:hover,
.pmm-header nav a:focus,
.pmm-header nav a[aria-current="page"],
.pmm-header #pmmPrimaryNav a:hover,
.pmm-header #pmmPrimaryNav a:focus {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.08) !important;
}

.pmm-book-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: #a98710;
  color: #ffffff !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  border: 0;
}

.pmm-book-btn:hover {
  background: #7e640e;
  color: #ffffff !important;
}

/* Hamburger toggle — hidden on desktop */
.pmm-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  justify-self: end;
}

.pmm-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

/* ============================================================
   PMM HEADER — mobile (≤900px) matches static site exactly
   ============================================================ */
@media (max-width: 900px) {
  .pmm-header {
    grid-template-columns: auto auto;
    padding: 10px 18px;
  }

  .pmm-menu-toggle {
    display: block;
  }

  .pmm-header nav,
  .pmm-book-btn {
    display: none;
  }

  .pmm-header[data-open="true"] nav,
  .pmm-header[data-open="true"] .pmm-book-btn {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .pmm-header[data-open="true"] nav {
    flex-wrap: wrap;
  }

  .pmm-book-btn {
    width: max-content;
  }
}

@media (max-width: 680px) {
  .pmm-brand small {
    display: none;
  }
}

/* ============================================================
   BOOKING PANEL SHORTCODE
   ============================================================ */
.pmm-booking-panel {
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pmm-booking-panel form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.pmm-booking-panel label {
  display: flex;
  flex-direction: column;
}

.pmm-booking-panel label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pmm-booking-panel input[type="date"],
.pmm-booking-panel select {
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
}

.pmm-booking-panel input:focus,
.pmm-booking-panel select:focus {
  outline: 3px solid rgba(169, 135, 16, 0.22);
  border-color: var(--gold);
}

.pmm-booking-panel button[type="submit"] {
  min-height: 45px;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  align-self: end;
}

.pmm-booking-panel button[type="submit"]:hover {
  background: var(--gold-dark);
}

/* Mobile booking panel — matches static site */
@media (max-width: 900px) {
  .pmm-booking-panel form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .pmm-booking-panel {
    width: calc(100% - 24px);
  }
}

/* ============================================================
   CAFE BAND — sage to sky gradient
   ============================================================ */
.cafe-band,
.pmm-cafe-band {
  background: linear-gradient(90deg, #e5ede8, #dcebf2) !important;
}

/* ============================================================
   LOCAL AREA GRID — coloured cards (nth-child)
   ============================================================ */
.local-grid article:nth-child(1) {
  background: #2e2c2d;
  color: #ffffff;
}

.local-grid article:nth-child(2) {
  background: #286a69;
  color: #ffffff;
}

.local-grid article:nth-child(3) {
  background: #dcebf2;
  color: #1f2024;
}

.local-grid article:nth-child(4) {
  background: #56493a;
  color: #ffffff;
}

.local-grid article p {
  color: inherit;
  margin-bottom: 0;
}

/* WPBakery column wrappers for local grid */
.pmm-local-grid .vc_col-sm-3:nth-child(1) .vc_column-inner { background: #2e2c2d; color: #ffffff; border-radius: 8px; min-height: 210px; padding: 22px; }
.pmm-local-grid .vc_col-sm-3:nth-child(2) .vc_column-inner { background: #286a69; color: #ffffff; border-radius: 8px; min-height: 210px; padding: 22px; }
.pmm-local-grid .vc_col-sm-3:nth-child(3) .vc_column-inner { background: #dcebf2; color: #1f2024; border-radius: 8px; min-height: 210px; padding: 22px; }
.pmm-local-grid .vc_col-sm-3:nth-child(4) .vc_column-inner { background: #56493a; color: #ffffff; border-radius: 8px; min-height: 210px; padding: 22px; }

/* Mobile — local grid single column */
@media (max-width: 680px) {
  .local-grid,
  .pmm-local-grid .vc_row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ROOM FILTER BUTTONS
   ============================================================ */
.pmm-room-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pmm-room-controls button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #dedbd0;
  border-radius: 8px;
  background: #f7f5ee;
  color: #1f2024;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.pmm-room-controls button.active,
.pmm-room-controls button:hover {
  color: #ffffff;
  border-color: #2e2c2d;
  background: #2e2c2d;
}

/* ============================================================
   PMM FOOTER — hardcoded, matches static site exactly
   ============================================================ */
.pmm-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 56px;
  color: #f4f0e8;
  background: #2e2c2d;
}

.pmm-footer-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
}

.pmm-footer h2 {
  font-size: 1rem;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.pmm-footer p {
  color: #d9d2c6;
}

.pmm-footer a {
  display: block;
  margin-bottom: 8px;
  color: #f4f0e8;
  text-decoration: none;
}

.pmm-footer a:hover {
  color: #f4d778;
}

.pmm-copyright {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: #d9d2c6;
}

.pmm-copyright a {
  display: inline;
  color: inherit;
}

/* Mobile footer — single column, matches static site */
@media (max-width: 900px) {
  .pmm-footer {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
}

/* ============================================================
   LIGHTHOUSE / ACCESSIBILITY
   ============================================================ */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(169, 135, 16, 0.22);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   FIX — Hotello skin-custom.css sets line-height: 1.6px
   Override to correct unitless value from static site
   ============================================================ */
p, li, dd, dt, blockquote {
  line-height: 1.5 !important;
}

/* ============================================================
   FIX — WPBakery default red buttons → gold
   ============================================================ */
.vc_btn3,
a.vc_btn3,
.vc_btn3-container a,
.vc_btn3.vc_btn3-color-btn-danger,
.vc_btn3.vc_btn3-color-danger,
.vc_btn3.vc_btn3-color-default,
.vc_general.vc_btn3 {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
}

.vc_btn3:hover,
a.vc_btn3:hover,
.vc_btn3-container a:hover,
.vc_btn3.vc_btn3-color-btn-danger:hover,
.vc_btn3.vc_btn3-color-danger:hover,
.vc_btn3.vc_btn3-color-default:hover,
.vc_general.vc_btn3:hover {
  background-color: var(--gold-dark) !important;
  border-color: var(--gold-dark) !important;
  color: #ffffff !important;
}

/* ============================================================
   LATEST POSTS GRID
   ============================================================ */
.pmm-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.pmm-blog-card {
  display: grid;
  grid-template-rows: 200px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pmm-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(31, 32, 36, 0.12);
}

.pmm-blog-card__imgwrap {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.pmm-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pmm-blog-card:hover .pmm-blog-card__img {
  transform: scale(1.05);
}

.pmm-blog-card__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  min-height: 210px;          /* room for date + title + excerpt + link */
}

.pmm-blog-card__date {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
  line-height: 1.4 !important;
}

.pmm-blog-card__title {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 10px;
}

.pmm-blog-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.pmm-blog-card__title a:hover {
  color: var(--gold-dark);
}

.pmm-blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55 !important;
  margin-bottom: 18px;
  flex: 1;
}

.pmm-blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark) !important;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  width: max-content;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.pmm-blog-card__link::after {
  content: "\2192";               /* → arrow */
  transition: transform 0.2s ease;
}

.pmm-blog-card__link:hover {
  border-bottom-color: var(--gold);
  gap: 10px;
}

@media (max-width: 1180px) {
  .pmm-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pmm-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PMM SHORTCODE STYLES
   ============================================================ */

/* Hero buttons */
.pmm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.pmm-btn-primary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 13px 18px;
  background: #a98710;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.pmm-btn-primary:hover {
  background: #7e640e;
  color: #fff !important;
}

.pmm-btn-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff !important;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.pmm-btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  color: #fff !important;
}

/* Hero facts bar */
.pmm-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 22px 60px rgba(31,32,36,0.16);
  margin: 0;
}

.pmm-hero-facts > div {
  padding: 16px;
  background: rgba(46,44,45,0.68);
}

.pmm-hero-facts dt {
  margin-bottom: 4px;
  color: #d9d2c6;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pmm-hero-facts dd {
  margin: 0;
  font-weight: 900;
  color: #ffffff;
}

/* Stay grid mobile */
@media (max-width: 900px) {
  .pmm-stay-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 480px) {
  .pmm-stay-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Room image height fix */
.pmm-room-img img,
.pmm-room-img .vc_single_image-wrapper {
  height: 210px !important;
  object-fit: cover !important;
  overflow: hidden !important;
}

/* ============================================================
   WPBAKERY SECTION FIXES — padding, sizing, layout
   ============================================================ */

/* WPBakery inner row columns — remove default gutters */
.vc_row-fluid .vc_col-sm-12 {
  padding: 0;
}

/* Award band — constrain h2 size inside dark band */
.pmm-award-band h2,
[style*="background:#2e2c2d"] h2,
[style*="background: #2e2c2d"] h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
  line-height: 1.2 !important;
}

/* Intro section heading — match static site scale */
.vc_custom_pmm_intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
}

/* Room section heading */
.vc_custom_pmm_rooms h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
}

/* Function room heading */
.vc_custom_pmm_func h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
}

/* Cafe heading */
.vc_custom_pmm_cafe h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
}

/* Local area heading */
.vc_custom_pmm_local h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
}

/* Stay types heading */
.vc_custom_pmm_stay h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
}

/* Blog section heading */
.vc_custom_pmm_blog h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
}

/* Room cards — fix image height in VC single image */
.pmm-room-img .vc_single_image-wrapper,
.pmm-room-img img {
  display: block !important;
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
}

/* Room card inner columns — remove VC padding */
.vc_custom_pmm_rc1,
.vc_custom_pmm_rc2,
.vc_custom_pmm_rc3,
.vc_custom_pmm_rc4,
.vc_custom_pmm_rc5 {
  padding: 0 !important;
}

.vc_custom_pmm_rc1 .vc_column-inner,
.vc_custom_pmm_rc2 .vc_column-inner,
.vc_custom_pmm_rc3 .vc_column-inner,
.vc_custom_pmm_rc4 .vc_column-inner,
.vc_custom_pmm_rc5 .vc_column-inner {
  padding: 0 !important;
}

/* Room card text padding */
.vc_custom_pmm_rc1 .wpb_text_column,
.vc_custom_pmm_rc2 .wpb_text_column,
.vc_custom_pmm_rc3 .wpb_text_column,
.vc_custom_pmm_rc4 .wpb_text_column,
.vc_custom_pmm_rc5 .wpb_text_column {
  padding: 18px !important;
}

/* Room card h3 links */
.vc_custom_pmm_rc1 h3 a,
.vc_custom_pmm_rc2 h3 a,
.vc_custom_pmm_rc3 h3 a,
.vc_custom_pmm_rc4 h3 a,
.vc_custom_pmm_rc5 h3 a {
  color: #1f2024 !important;
  text-decoration: none !important;
}


.vc_custom_pmm_rooms .vc_row-fluid .vc_col-sm-2 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* Stay types — force 5 col even on wrap */
.pmm-stay-grid {
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
}

/* Function room — enquiry form input label spacing */
.pmm-enquiry-form label {
  margin-top: 8px;
}

/* Intro section image — rounded */
.vc_custom_pmm_extimg img {
  border-radius: 8px !important;
}

/* Booking panel — pull up over hero */
.vc_custom_pmm_rooms ~ .vc_row {
  margin-top: 0;
}

/* ------------------------------------------------------------
   BOOKING PANEL — VC CONTAINMENT FIX (v2)
   Symptom: the panel and its inner form both compute correct,
   visible styles (display, min-height, visibility) yet paint
   nowhere — hovering the node in DevTools shows NO highlight.
   That means an ANCESTOR (a VC row/column or Hotello wrapper,
   whose CSS lives outside this child theme) is collapsing to
   zero height / clipping via overflow. The panel's own
   overflow:visible can't undo an ancestor clip, so these rules
   force height:auto + overflow:visible up the entire WPBakery
   wrapper chain that holds the booking shortcode, and give the
   panel a firm min-height so it pushes those ancestors open.
   Scoped to columns that actually contain the panel via :has()
   (with a non-:has fallback below) so no other row is touched.
   ------------------------------------------------------------ */

/* 1. Panel itself: solid box, centred, no negative pull-up. */
.pmm-booking-panel {
  margin: 24px auto 0 !important;
  position: relative;
  z-index: 3;
  float: none;
  clear: both;
  width: min(1120px, calc(100% - 40px));
  min-height: 92px !important;
  display: block !important;
  visibility: visible !important;
  overflow: visible !important;
  box-sizing: border-box;
}

/* 2. Un-collapse the wrapper chain that directly holds the panel.
      These are the generic WPBakery wrappers; forcing auto height
      + visible overflow stops any ancestor clip from hiding it. */
.wpb_wrapper:has(> .pmm-booking-panel),
.wpb_text_column:has(.pmm-booking-panel),
.vc_column-inner:has(.pmm-booking-panel),
.wpb_column:has(.pmm-booking-panel),
.vc_row:has(.pmm-booking-panel) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* 3. Fallback for browsers/contexts without :has() support.
      Applies the same un-collapse to the known chain classes.
      Slightly broader but only affects text-column wrappers,
      which never need clipping on this site. */
.vc_row-fluid .wpb_column .vc_column-inner .wpb_wrapper .wpb_text_column .wpb_wrapper {
  height: auto;
  overflow: visible;
}

/* 4. Rescued panel form layout. The panel/wrapper geometry and
      overlap live in the MATCHED-TO-ORIGINAL block at the end of
      this file (single source of truth); here we only guarantee
      the form grid lays out — it was collapsing to width:0 and
      floating off-screen without an explicit width. */
.pmm-booking-rescue .pmm-booking-form-el {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
  gap: 12px !important;
  width: 100% !important;
  align-items: end !important;
}
/* Mobile: stack the rescued form */
@media (max-width: 900px) {
  .pmm-booking-rescue .pmm-booking-form-el {
    grid-template-columns: 1fr !important;
  }
}



/* Local grid — nth-child colours applied to vc_column_inner */
.pmm-local-grid .vc_col-sm-3:nth-child(1) > .vc_column-inner {
  background: #2e2c2d !important;
  border-radius: 8px;
  padding: 28px !important;
  min-height: 210px;
}

.pmm-local-grid .vc_col-sm-3:nth-child(2) > .vc_column-inner {
  background: #286a69 !important;
  border-radius: 8px;
  padding: 28px !important;
  min-height: 210px;
}

.pmm-local-grid .vc_col-sm-3:nth-child(3) > .vc_column-inner {
  background: #dcebf2 !important;
  border-radius: 8px;
  padding: 28px !important;
  min-height: 210px;
}

.pmm-local-grid .vc_col-sm-3:nth-child(4) > .vc_column-inner {
  background: #56493a !important;
  border-radius: 8px;
  padding: 28px !important;
  min-height: 210px;
}

/* Mobile fixes */
@media (max-width: 900px) {
  .vc_custom_pmm_rooms .vc_row-fluid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .pmm-local-grid .vc_row-fluid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .pmm-stay-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 480px) {
  .vc_custom_pmm_rooms .vc_row-fluid {
    grid-template-columns: 1fr !important;
  }

  .pmm-local-grid .vc_row-fluid {
    grid-template-columns: 1fr !important;
  }

  .pmm-stay-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   HERO ROW — background image + gradient overlay
   ============================================================ */
.vc_custom_pmm_hero {
  background-image: url(https://hostholiday.io/wp-content/uploads/2026/07/motel-entrance.jpg) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  min-height: 780px !important;
  padding-top: 96px !important;
  padding-bottom: 58px !important;
  padding-left: 56px !important;
  padding-right: 56px !important;
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
}

/* Gradient overlay via pseudo element */
.vc_custom_pmm_hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25,24,24,0.88), rgba(25,24,24,0.58) 48%, rgba(25,24,24,0.18)),
    linear-gradient(0deg, rgba(25,24,24,0.66), rgba(25,24,24,0.05) 42%);
  z-index: 0;
  pointer-events: none;
}

/* Hero column — sit above overlay */
.vc_custom_pmm_hero > .vc_column_container {
  position: relative;
  z-index: 1;
}

.vc_custom_pmm_hero_col {
  background: none !important;
  position: relative;
  z-index: 1;
}

/* Remove the column-level gradient since row handles it now */
.vc_custom_pmm_hero .vc_column-inner {
  background: none !important;
  padding-bottom: 20px;
}

/* ============================================================
   HOTELLO CONTAINER OVERRIDE — force full width rows
   ============================================================ */

/* Remove the container constraint on full-width rows */
.container-fluid.vc_custom_pmm_hero > .vc_row > .container,
.container-fluid.vc_custom_pmm_awrd > .vc_row > .container,
.container-fluid.vc_custom_pmm_intro > .vc_row > .container,
.container-fluid.vc_custom_pmm_rooms > .vc_row > .container,
.container-fluid.vc_custom_pmm_func > .vc_row > .container,
.container-fluid.vc_custom_pmm_cafe > .vc_row > .container,
.container-fluid.vc_custom_pmm_local > .vc_row > .container,
.container-fluid.vc_custom_pmm_stay > .vc_row > .container,
.container-fluid.vc_custom_pmm_blog > .vc_row > .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.container-fluid.vc_custom_pmm_hero > .vc_row > .container > .row,
.container-fluid.vc_custom_pmm_awrd > .vc_row > .container > .row,
.container-fluid.vc_custom_pmm_intro > .vc_row > .container > .row,
.container-fluid.vc_custom_pmm_rooms > .vc_row > .container > .row,
.container-fluid.vc_custom_pmm_func > .vc_row > .container > .row,
.container-fluid.vc_custom_pmm_cafe > .vc_row > .container > .row,
.container-fluid.vc_custom_pmm_local > .vc_row > .container > .row,
.container-fluid.vc_custom_pmm_stay > .vc_row > .container > .row,
.container-fluid.vc_custom_pmm_blog > .vc_row > .container > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* The stm_markup wrapper also adds constraints */
.stm_markup,
.stm_markup_full,
.stm_markup__content {
  max-width: 100% !important;
  padding: 0 !important;
}

/* post-content wrapper */
.post-content {
  padding: 0 !important;
  max-width: 100% !important;
}

/* wpb-content-wrapper */
.wpb-content-wrapper {
  max-width: 100% !important;
}

/* Remove margin-bottom from stm-header */
.stm-header {
  margin-bottom: 0 !important;
}

/* ============================================================
   HOTELLO CONTENT WRAPPER FIXES
   Remove padding/max-width constraints from page content
   so WPBakery full-width rows stretch edge to edge
   ============================================================ */

/* Hide the auto-generated "Home" page title */
.post-content > .stm_markup > .stm_markup__content > h1:first-child {
  display: none !important;
}

/* Remove container constraints */
.post-content {
  padding: 0 !important;
  margin: 0 !important;
}

.post-content > div {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.stm_markup,
.stm_markup_full {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.stm_markup__content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* WPBakery full-width row stretch fix */
.vc_row-fluid.vc_row-o-full-height,
.vc_row[data-vc-full-width="true"] {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* Fix room cards inner row — override VC default column float layout */
.vc_custom_pmm_rooms .vc_inner .vc_row-fluid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  overflow-x: auto !important;
}

.vc_custom_pmm_rooms .vc_inner .vc_row-fluid > [class*="vc_col-"] {
  float: none !important;
  flex: 1 1 220px !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0 !important;
}

/* Fix room card vc_column_inner padding */
.vc_custom_pmm_rc1 .vc_column-inner,
.vc_custom_pmm_rc2 .vc_column-inner,
.vc_custom_pmm_rc3 .vc_column-inner,
.vc_custom_pmm_rc4 .vc_column-inner,
.vc_custom_pmm_rc5 .vc_column-inner {
  padding: 0 !important;
}

.vc_custom_pmm_rc1 .wpb_text_column.wpb_content_element,
.vc_custom_pmm_rc2 .wpb_text_column.wpb_content_element,
.vc_custom_pmm_rc3 .wpb_text_column.wpb_content_element,
.vc_custom_pmm_rc4 .wpb_text_column.wpb_content_element,
.vc_custom_pmm_rc5 .wpb_text_column.wpb_content_element {
  padding: 18px !important;
  margin-bottom: 0 !important;
}

/* Fix intro section columns alignment */
.vc_custom_pmm_intro .vc_row-fluid {
  align-items: center !important;
}

/* Remove wpb_content_element bottom margin in sections */
.vc_custom_pmm_intro .wpb_content_element,
.vc_custom_pmm_func .wpb_content_element,
.vc_custom_pmm_cafe .wpb_content_element {
  margin-bottom: 16px !important;
}

/* ============================================================
   FRONT PAGE TEMPLATE — full width, no constraints
   ============================================================ */
.pmm-front-page {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Only remove margins on outer rows, not inner rows */
.pmm-front-page > .wpb-content-wrapper > .vc_row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Room cards inner rows — use CSS grid */
.vc_custom_pmm_rooms .vc_row-inner .vc_row-fluid,
.vc_custom_pmm_rooms2 .vc_row-fluid,
.vc_custom_pmm_rooms3 .vc_row-fluid {
  display: grid !important;
  gap: 18px !important;
}

/* First room row — 3 columns */
.vc_custom_pmm_rooms .vc_row-inner:first-of-type .vc_row-fluid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}

/* Second room row — 2 columns */
.vc_custom_pmm_rooms .vc_row-inner:last-of-type .vc_row-fluid {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
}

/* Fix column widths inside grid — override WPBakery floats */
.vc_custom_pmm_rooms .vc_row-inner .vc_col-sm-4,
.vc_custom_pmm_rooms .vc_row-inner .vc_col-sm-6 {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

/* Remove vc_column_inner padding so room cards sit flush */
.vc_custom_pmm_rooms .vc_row-inner .vc_column-inner {
  padding: 0 !important;
}

/* Prevent vc_row-has-fill from adding blue background */
.vc_row-has-fill {
  background-color: transparent !important;
}

/* Only apply fill where we explicitly set it */
.vc_custom_pmm_intro.vc_row-has-fill { background-color: #f7f5ee !important; }
.vc_custom_pmm_rooms.vc_row-has-fill,
.vc_custom_pmm_func.vc_row-has-fill { background-color: #ffffff !important; }
.vc_custom_pmm_local.vc_row-has-fill { background-color: #f7f5ee !important; }
.vc_custom_pmm_stay.vc_row-has-fill { background-color: #ffffff !important; }
.vc_custom_pmm_blog.vc_row-has-fill { background-color: #f7f5ee !important; }

/* Hide page title on front page */
.pmm-front-page + h1,
body.home .post-content h1:first-child,
body.home .stm_markup__content > h1:first-child,
body.home .entry-title {
  display: none !important;
}

/* ============================================================
   CUSTOM VC ELEMENT STYLES
   ============================================================ */

/* --- PMM Hero Section --- */
.pmm-hero-section {
  position: relative;
  min-height: 780px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.pmm-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25,24,24,0.88), rgba(25,24,24,0.58) 48%, rgba(25,24,24,0.18)),
    linear-gradient(0deg, rgba(25,24,24,0.66), rgba(25,24,24,0.05) 42%);
  z-index: 0;
}

.pmm-hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 56px 58px;
  width: 100%;
  max-width: 100%;
}

.pmm-hero-eyebrow {
  color: #f4d778;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.pmm-hero-h1 {
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: 0.94;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
}

.pmm-hero-copy {
  font-size: 1.2rem;
  color: #f7f2ea;
  max-width: 680px;
  margin-bottom: 24px;
}

@media (max-width: 680px) {
  .pmm-hero-content {
    padding: 60px 24px 40px;
  }
  .pmm-hero-section {
    min-height: 560px;
  }
}

/* --- PMM Room Card Element --- */
.pmm-room-card-el {
  background: #f7f5ee;
  border: 1px solid #dedbd0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pmm-room-card-img-wrap {
  display: block;
  height: 210px;
  overflow: hidden;
}

.pmm-room-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.pmm-room-card-img-wrap:hover img {
  transform: scale(1.03);
}

.pmm-room-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pmm-room-card-price {
  color: #7e640e;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 8px;
}

.pmm-room-card-title {
  font-size: 1.04rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pmm-room-card-title a {
  color: #1f2024;
  text-decoration: none;
}

.pmm-room-card-title a:hover {
  color: #7e640e;
}

.pmm-room-card-desc {
  color: #62666f;
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 12px;
}

.pmm-room-card-guests {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  background: #e5ede8;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  width: max-content;
}

/* --- PMM Section Heading --- */
.pmm-section-heading {
  margin-bottom: 40px;
}

.pmm-section-heading .pmm-eyebrow {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #7e640e;
  margin: 0 0 10px;
}

.pmm-section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.pmm-section-heading p {
  max-width: 680px;
}

.pmm-section-heading[style*="center"] p {
  margin-left: auto;
  margin-right: auto;
}

/* --- PMM Award Band --- */
.pmm-award-band {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 44px;
  align-items: center;
  padding: 32px;
  background: #2e2c2d;
  border-radius: 8px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.pmm-award-logo {
  width: 170px;
  margin: auto;
}

.pmm-award-eyebrow {
  color: #f4d778;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.pmm-award-heading {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
  margin: 0 0 14px;
}

.pmm-award-body {
  color: #e8e1d7;
  margin: 0;
}

@media (max-width: 680px) {
  .pmm-award-band {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pmm-award-logo {
    width: 120px;
  }
}

/* --- PMM Stay Grid --- */
.pmm-stay-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
}

.pmm-stay-link {
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid #dedbd0;
  background: #f7f5ee;
  color: #2e2c2d !important;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.pmm-stay-link:hover {
  background: #2e2c2d;
  border-color: #2e2c2d;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .pmm-stay-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 480px) {
  .pmm-stay-grid {
    grid-template-columns: 1fr;
  }
}

/* --- PMM Tick List --- */
.pmm-tick-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.pmm-tick-list li {
  position: relative;
  padding-left: 30px;
}

.pmm-tick-list li span {
  position: absolute;
  left: 0;
  color: #a98710;
  font-weight: 900;
}

/* --- PMM Enquiry Form --- */
.pmm-enquiry-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.pmm-enquiry-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #62666f;
}

.pmm-enquiry-form input,
.pmm-enquiry-form textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  background: #fbfaf7;
  border: 1px solid #dedbd0;
  border-radius: 8px;
  font: inherit;
}

.pmm-enquiry-form button[type="submit"] {
  min-height: 42px;
  padding: 12px 18px;
  background: #a98710;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  font: inherit;
  cursor: pointer;
}

.pmm-enquiry-form button[type="submit"]:hover {
  background: #7e640e;
}

/* --- PMM Front Page wrapper --- */
.pmm-front-page {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Hide auto-generated page title on front page */
body.home .post-content h1,
body.home .stm_markup__content > h1:first-child,
body.home .entry-title,
body.page-id-7 .post-content > .stm_markup > div > .stm_markup__content > h1 {
  display: none !important;
}

/* Remove Hotello content wrapper padding on front page */
body.home .post-content,
body.home .stm_markup,
body.home .stm_markup_full,
body.home .stm_markup__content {
  padding: 0 !important;
  max-width: 100% !important;
}

body.home .post-content > div {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ============================================================
   FRONT PAGE — kill all container width constraints
   WPBakery adds .container inside full-width rows which
   caps width at ~1200px even on stretch_row sections
   ============================================================ */
body.home .wpb-content-wrapper > .vc_row > .container,
body.home .wpb-content-wrapper > .container-fluid > .vc_row > .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.home .wpb-content-wrapper > .vc_row > .container > .row,
body.home .wpb-content-wrapper > .container-fluid > .vc_row > .container > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Fix the wpb_column full-width constraint */
body.home .wpb-content-wrapper > .vc_row > .container > .row > .wpb_column.vc_col-sm-12 {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Fix vc_column_inner inside inner rows */
body.home .vc_row-inner .vc_column-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Room card inner row columns — use grid on the row-fluid */
body.home .vc_custom_pmm_rooms .vc_row-inner .vc_row-fluid,
body.home .vc_custom_pmm_rooms2 .vc_row-inner .vc_row-fluid {
  display: grid !important;
  gap: 18px !important;
}

body.home .vc_custom_pmm_rooms .vc_row-inner .vc_row-fluid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}

body.home .vc_custom_pmm_rooms2 .vc_row-inner .vc_row-fluid {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
}

body.home .vc_custom_pmm_rooms .vc_row-inner .vc_col-sm-4,
body.home .vc_custom_pmm_rooms2 .vc_row-inner .vc_col-sm-6 {
  width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================================
   ROOM CARD — prevent collapse when no image set
   ============================================================ */
.pmm-room-card-img-wrap {
  min-height: 210px;
  background: #e5ede8;
  display: block;
}

/* vc_column_inner inside room rows — remove height constraints */
.vc_custom_pmm_rooms .vc_column-inner,
.vc_custom_pmm_rooms2 .vc_column-inner {
  height: 100%;
  padding: 0 !important;
}

/* Force room card to fill its column */
.vc_custom_pmm_rooms .wpb_wrapper,
.vc_custom_pmm_rooms2 .wpb_wrapper {
  height: 100%;
}

.vc_custom_pmm_rooms .pmm-room-card-el,
.vc_custom_pmm_rooms2 .pmm-room-card-el {
  height: 100%;
}

/* Remove blue fill from rooms row */
.vc_custom_pmm_rooms .vc_row-fluid.vc_row-has-fill {
  background-color: transparent !important;
}

/* Rooms raw HTML block — ensure full width */
.vc_custom_pmm_rooms .wpb_wrapper {
  width: 100% !important;
}

.vc_custom_pmm_rooms .vc_column-inner {
  padding: 0 !important;
}

/* Kill the container constraint specifically in rooms row */
.vc_custom_pmm_rooms > .vc_row > .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}

.vc_custom_pmm_rooms > .vc_row > .container > .row {
  margin: 0 !important;
}

.vc_custom_pmm_rooms > .vc_row > .container > .row > .wpb_column {
  width: 100% !important;
  padding: 0 !important;
}

.vc_custom_pmm_rooms .wpb_wrapper {
  width: 100% !important;
}

/* Kill vc_row clearfix before/after */
.vc_custom_pmm_rooms .vc_row::before,
.vc_custom_pmm_rooms .vc_row::after {
  display: none !important;
}

/* Remove vc_row-has-fill blue bg */
.vc_custom_pmm_rooms .vc_row-has-fill {
  background-color: transparent !important;
}
/* Fix — empty vc_container divs between sections */
.wpb-content-wrapper > .vc_container {
  display: none !important;
}

.fivecol {
	display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 18px;
	
}

.pmm-rcr {
	display: grid;
    grid-template-rows: 210px 1fr;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
	padding: 20px;
}

/* ============================================================
   MATCHED-TO-ORIGINAL STYLING
   Ports the room-card, hero-facts and responsive rules from the
   original static site (styles.css) onto the WordPress class
   names, plus a post grid designed to match. Appended last so
   these win on cascade order.
   ============================================================ */

/* --- Item 2: kill the parent-theme dl border under hero stats.
   The original .hero-facts dl has NO bottom border; the Hotello
   parent adds `dl { padding-bottom:5px; border-bottom:1px solid #eee }`.
   Scoped to the front page so other dl uses are untouched. --- */
.pmm-front-page dl,
.pmm-front-page dl dd,
.pmm-hero-section dl {
  padding-bottom: 0;
  border-bottom: none;
}

/* --- Item 3: ROOM CARDS — ported from original .room-card ---
   Grid: 5 cols desktop, 3 at <=1180px, 1 at <=680px, matching
   the original breakpoints exactly. Card = image row + body. */
.fivecol {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;
}

.pmm-rcr {
  display: grid;
  grid-template-rows: 210px 1fr;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;                 /* original has no card padding */
}

.pmm-rcr[hidden] { display: none; }

.pmm-rcr > a,
.pmm-rcr > a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pmm-rcr-body { padding: 18px; }

.pmm-rcr-price {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-weight: 900;
}

.pmm-rcr-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}
.pmm-rcr-body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.pmm-rcr-body h3 a:hover { color: var(--gold-dark); }

.pmm-rcr-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pmm-rcr-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  color: var(--charcoal);
  background: var(--sage);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

/* Room filter buttons already styled above (.pmm-room-controls);
   the JS wiring is fixed in functions.php to target .pmm-rcr. */

/* --- Item 1: booking panel overlap (matches original -36px) --- */
.pmm-booking-rescue {
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 0 20px 40px;
  margin-top: 0;               /* overlap is on the panel below, not the wrapper */
  box-sizing: border-box;
  background: transparent;     /* let the hero show through above the card */
  position: relative;
  z-index: 6;
}
.pmm-booking-rescue .pmm-booking-panel {
  display: block !important;
  width: min(1120px, calc(100% - 40px)) !important;
  max-width: 1120px !important;
  margin: 0 auto -36px !important;      /* negative bottom pulls following content up */
  transform: translateY(-36px);         /* the visual overlap (immune to margin-zeroing) */
  padding: 16px !important;
  position: relative;
  z-index: 6;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Blog post grid is handled by the [pmm_latest_posts] shortcode
   and its .pmm-blog-* styles earlier in this file. */

/* --- Responsive: room grid + booking, ported breakpoints --- */
@media (max-width: 1180px) {
  .fivecol { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}
@media (max-width: 900px) {
  .pmm-booking-rescue .pmm-booking-panel .pmm-booking-form-el {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 680px) {
  .fivecol { grid-template-columns: 1fr; }
  .pmm-rcr { grid-template-rows: 240px 1fr; }
  .pmm-booking-rescue {
    margin-top: 0;
  }
  .pmm-booking-rescue .pmm-booking-panel {
    width: calc(100% - 24px) !important;
    margin: 36px auto 0 !important;
    transform: none !important;
  }
  .pmm-room-controls { flex-wrap: wrap; }
}
