/* -----------------------------------------------------------------
   4. SECTION HEADINGS (VILLAS / SUITES / CITY FLATS)
   These are page-builder headings on the home page. Centered, spaced,
   with a small brass rule beneath — a classic hospitality move.
   ----------------------------------------------------------------- */
.entry-content > h1,
.entry-content > h2,
.wpb_wrapper > h1,
.wpb_wrapper > h2,
.vc_custom_heading {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 500;
  color: var(--lux-primary);
  margin: 2.6em 0 1.6em;
}
.entry-content > h1::after,
.entry-content > h2::after,
.wpb_wrapper > h1::after,
.wpb_wrapper > h2::after,
.vc_custom_heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: .65em auto 0;
  background: var(--lux-accent);
}

/* -----------------------------------------------------------------
   5. ACCOMMODATION CARDS  (rooms / search-results loops)
   Frame each listing as a card with an image that gently zooms on
   hover and a card that lifts. This is the biggest visual upgrade.
   ----------------------------------------------------------------- */
.mphb_sc_rooms-wrapper,
.mphb_sc_search_results-wrapper {
  margin-top: 1em;
}

/* Each accommodation in the loop */
.mphb_sc_rooms-wrapper .mphb-room-type,
.mphb_sc_search_results-wrapper .mphb-room-type {
  background: var(--lux-card);
  border: 1px solid var(--lux-line);
  border-radius: 3px;
  box-shadow: var(--lux-shadow);
  overflow: hidden;
  transition: box-shadow .4s var(--lux-ease), transform .4s var(--lux-ease);
}
/* Kill the parent theme's decorative pseudo-elements on the card, gallery,
   and slider — one of these is the bar that floats in the image corner. */
.mphb-room-type::before,
.mphb-room-type::after,
.mphb-flexslider::before,
.mphb-flexslider::after,
.mphb-room-type-gallery::before,
.mphb-room-type-gallery::after,
.mphb-room-type > *:not(.mphb-room-type-title)::before,
.mphb-room-type > *:not(.mphb-room-type-title)::after {
  content: none !important;
  display: none !important;
}
.mphb_sc_rooms-wrapper .mphb-room-type:hover,
.mphb_sc_search_results-wrapper .mphb-room-type:hover {
  box-shadow: var(--lux-shadow-lg);
  transform: translateY(-4px);
}

/* INNER PADDING — done right.
   The card has no inner content wrapper: the title, text, price and button
   are all direct children alongside the image. So we inset every direct
   child by a fixed margin, then pull the image/gallery back to full bleed. */
.mphb_sc_rooms-wrapper .mphb-room-type > *,
.mphb_sc_room-wrapper .mphb-room-type > *,
.mphb_sc_search_results-wrapper .mphb-room-type > * {
  margin-left: 2rem;
  margin-right: 2rem;
}

/* IMAGE / GALLERY — full bleed at the top of the card.
   Any direct child that contains an image (a link, a div, a figure, or the
   MotoPress gallery/flexslider) goes edge-to-edge and flush to the top. */
.mphb_sc_rooms-wrapper .mphb-room-type > *:has(img),
.mphb_sc_room-wrapper .mphb-room-type > *:has(img),
.mphb_sc_search_results-wrapper .mphb-room-type > *:has(img) {
  margin: 0 0 0 0 !important;
  overflow: hidden;
}

/* Kill the theme's Flexslider frame (4px white border, rounded corners,
   shadow, 60px bottom margin) — that frame is what made the photo look
   inset and "floating" instead of filling the card. */
.mphb-room-type .mphb-flexslider,
.mphb-room-type .flexslider,
.mphb-room-type .mphb-gallery,
.mphb-room-type .mphb-room-type-gallery {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* The photo itself: fill the width, sit flush, and zoom gently on hover */
.mphb_sc_rooms-wrapper .mphb-room-type img,
.mphb_sc_room-wrapper .mphb-room-type img,
.mphb_sc_search_results-wrapper .mphb-room-type img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  transition: transform 1.1s var(--lux-ease);
}
.mphb_sc_rooms-wrapper .mphb-room-type:hover img,
.mphb_sc_room-wrapper .mphb-room-type:hover img,
.mphb_sc_search_results-wrapper .mphb-room-type:hover img {
  transform: scale(1.06);
}

/* Comfortable space at the foot of the card */
.mphb_sc_rooms-wrapper .mphb-room-type,
.mphb_sc_room-wrapper .mphb-room-type,
.mphb_sc_search_results-wrapper .mphb-room-type {
  padding-bottom: .6rem;
  position: relative;            /* anchor for the full-card link below */
}

/* WHOLE CARD CLICKABLE.
   The <h2> has class mphb-room-type-title. The <a> inside it now has class
   lux-room-title-link (via filter), so the parent's a.mphb-room-type-title
   ::after decoration no longer matches. Card click uses the <a>'s natural
   block-level coverage instead of a stretched pseudo-element. */
.mphb-room-type .mphb-view-details-button,
.mphb-room-type .mphb-book-button {
  position: relative;
  z-index: 3;
}
.mphb-room-type { cursor: pointer; }

/* THE PROPERTY NAME.
   The brass underline is a border-bottom on the <h2>, not a pseudo-element,
   so it can't conflict with anything the parent adds to the <a>. */
.mphb_sc_rooms-wrapper .mphb-room-type-title,
.mphb_sc_room-wrapper .mphb-room-type-title,
.mphb_sc_search_results-wrapper .mphb-room-type-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: .01em;
  line-height: 1.2;
  margin-top: 1.5rem;
  margin-bottom: .55rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--lux-accent);
  display: inline-block;
}
/* The link inside the title */
.lux-room-title-link { color: var(--lux-ink); }
.lux-room-title-link:hover { color: var(--lux-accent); }

/* Excerpt: muted, a little smaller, with room above the price */
.mphb_sc_rooms-wrapper .mphb-room-type-excerpt,
.mphb_sc_room-wrapper .mphb-room-type-excerpt,
.mphb_sc_search_results-wrapper .mphb-room-type-excerpt {
  color: var(--lux-muted);
  margin-bottom: 1.4rem;
}

/* Give the button a little space below it inside the card */
.mphb_sc_rooms-wrapper .mphb-view-details-button,
.mphb_sc_rooms-wrapper .mphb-book-button,
.mphb_sc_room-wrapper .mphb-view-details-button,
.mphb_sc_room-wrapper .mphb-book-button {
  margin-top: .4rem;
  margin-bottom: 1.6rem;
}

/* -----------------------------------------------------------------
   6. PRICE — let it read as a considered detail, in brass
   ----------------------------------------------------------------- */
.mphb-price,
.mphb-regular-price .mphb-price,
.mphb_sc_rooms-wrapper .mphb-price {
  color: var(--lux-accent);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
}
.mphb-regular-price .mphb-price { font-size: 1.5rem; }
