/* ==========================================================================
   POMAR — Search Results
   Complete stylesheet for /search-results/. This file replaces older copies.
   ========================================================================== */

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ---------- Search panel ---------- */

.mphb_sc_search-wrapper {
  position: relative;
  z-index: 30;
  left: 50%;
  right: 50%;
  box-sizing: border-box;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: -50vw !important;
  margin-left: -50vw !important;
  padding: var(--space-6) var(--space-5) var(--space-4);
  background: var(--accent);
}

.mphb_sc_search-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-3);
  max-width: var(--container-max);
  margin: 0 auto !important;
}

.mphb-required-fields-tip {
  display: none;
}

.mphb_sc_search-check-in-date,
.mphb_sc_search-check-out-date,
.mphb_sc_search-adults {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column-reverse;
  justify-content: flex-end;
  box-sizing: border-box;
  height: 64px;
  margin: 0;
  padding: 8px var(--space-4) 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  gap: 3px;
  cursor: pointer;
}

.mphb_sc_search-check-in-date label,
.mphb_sc_search-check-out-date label,
.mphb_sc_search-adults label {
  order: 2;
  margin: 0;
  color: var(--text-muted);
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.mphb_sc_search-check-in-date label abbr,
.mphb_sc_search-check-out-date label abbr,
.mphb_sc_search-check-in-date br,
.mphb_sc_search-check-out-date br,
.mphb_sc_search-adults br {
  display: none;
}

input.mphb-datepick,
.mphb_sc_search-adults select {
  order: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 24px;
}

.mphb_sc_search-submit-button-wrapper {
  display: flex;
  align-items: center;
  height: 64px;
  margin: 0;
}

.mphb_sc_search-submit-button-wrapper .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h-lg);
  padding: 0 var(--space-6);
  border: 1px solid var(--brand);
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--text-on-brand);
  font-family: var(--font-title);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: var(--weight-medium);
  letter-spacing: .02em;
  text-transform: lowercase;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-control);
}

.mphb_sc_search-submit-button-wrapper .button:hover {
  transform: translateY(-2px);
}

.pomar-search-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  gap: var(--space-2);
  max-width: var(--container-max);
  margin: var(--space-2) auto 0 !important;
}

.pomar-search-note-text {
  order: 1;
  color: var(--clay-800);
  font-size: var(--text-xs);
  font-style: italic;
}

.pomar-search-note-row .pomar-weather-inline {
  order: 2;
  margin: 0 0 0 auto !important;
}

.pomar-search-weather {
  --pomar-w-accent: var(--sun-600);
  --pomar-w-accent-soft: var(--accent-soft);
  --pomar-w-brown: var(--clay-700);
  --pomar-w-text-muted: var(--text-muted);

  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: wrap;
  width: auto !important;
  max-width: 100%;
  gap: var(--space-3);
  margin: 0 !important;
  padding: 0;
  border-top: 0;
}

.pomar-search-weather .pomar-weather-btn {
  order: 2;
  min-height: var(--control-h-md);
  border-color: var(--border-brand);
  color: var(--text-link);
  font-family: var(--font-body);
  font-weight: 600;
}

.pomar-search-weather .pomar-weather-btn:hover,
.pomar-search-weather .pomar-weather-btn:focus-visible {
  background: var(--accent-soft);
  color: var(--text-link-hover);
}

.pomar-search-weather .pomar-weather-hint {
  order: 1;
  color: var(--text-muted);
  font: var(--type-small);
}

.pomar-search-accordion__toggle {
  display: none;
}

/* ---------- Results header ---------- */

.mphb_sc_search_results-wrapper {
  box-sizing: border-box;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) 0;
}

.mphb_sc_search_results-info {
  display: none;
}

.pomar-results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding: 0 0 var(--space-4);
}

.pomar-results-header__title-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pomar-results-header .pomar-results-header__title {
  margin: 0;
  color: var(--text-heading);
  font-size: var(--text-3xl);
}

.pomar-results-header .pomar-results-header__subtitle {
  margin: 0;
  color: var(--text-muted);
  font: var(--type-body);
}

.pomar-results-header__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.pomar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: none;
  cursor: pointer;
  transition: var(--transition-control);
}

.pomar-chip:hover {
  border-color: var(--clay-400);
}

.pomar-chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--text-on-brand);
}

.mphb-recommendation-title,
#mphb-recommendation,
#mphb-reservation-cart {
  display: none !important;
}

/* ---------- Result cards ---------- */

.mphb-room-type {
  display: grid;
  grid-template-columns: 320px 1fr auto auto;
  grid-template-rows: auto auto auto 1fr minmax(84px, auto) auto;
  grid-template-areas:
    "photo header    header      header"
    "photo desc      desc        desc"
    "photo icons     icons       icons"
    "photo spacer    spacer      spacer"
    "photo price     viewdetails book"
    "photo incentive incentive   incentive";
  overflow: hidden;
  margin: 0 0 var(--space-5);
  padding: 0 var(--space-6) var(--space-5) 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  column-gap: var(--space-6);
  row-gap: var(--space-3);
}

.mphb-room-type::before {
  content: "";
  z-index: 0;
  align-self: start;
  grid-row: 5;
  grid-column: 2 / -1;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
}

.mphb-room-type.pomar-is-hidden {
  display: none !important;
}

.mphb-room-type-images {
  position: relative;
  grid-area: photo;
  align-self: stretch;
  overflow: hidden;
  min-height: 220px;
  background: var(--sand-300);
}

.mphb-room-type-images .mphb-gallery-thumbnail-slider,
.mphb-room-type-images .flex-direction-nav {
  display: none !important;
}

.mphb-room-type-images .mphb-gallery-main-slider,
.mphb-room-type-images .mphb-gallery-main-slider .flex-viewport,
.mphb-room-type-images .mphb-gallery-main-slider ul.slides {
  height: 100% !important;
  margin: 0 !important;
}

.mphb-room-type-images .mphb-gallery-main-slider ul.slides {
  padding-left: 0 !important;
}

.mphb-room-type-images .mphb-gallery-main-slider ul.slides li,
.mphb-room-type-images .mphb-gallery-main-slider ul.slides li > a {
  display: block !important;
  height: 100% !important;
}

.mphb-room-type-images .mphb-gallery-main-slider ul.slides li img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mphb-room-type-images .flexslider {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

h2.mphb-room-type-title.entry-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-area: header;
  gap: var(--space-4);
  margin: 0;
  padding-top: var(--space-5);
}

.mphb-room-type .mphb-room-type-title.mphb-room-type-title {
  border-bottom: 0;
  color: var(--text-heading);
  font-size: var(--text-2xl);
  text-decoration: none;
}

.pomar-room-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--space-2);
  padding: 6px var(--space-3);
  border: 1px solid var(--sun-300);
  border-radius: var(--radius-pill);
  background: var(--sun-200);
  color: var(--clay-800);
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-style: italic;
  font-weight: var(--weight-medium);
  letter-spacing: .02em;
  white-space: nowrap;
}

.mphb-room-type > p:not([class]) {
  grid-area: desc;
  max-width: 560px;
  margin: 0;
  color: var(--text-body);
  font-size: var(--text-sm);
}

h3.mphb-room-type-details-title {
  display: none;
}

ul.mphb-loop-room-type-attributes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  grid-area: icons;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  color: var(--clay-600);
  list-style: none;
}

ul.mphb-loop-room-type-attributes li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

ul.mphb-loop-room-type-attributes li svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--clay-600);
}

ul.mphb-loop-room-type-attributes .mphb-attribute-title {
  display: none;
}

.pomar-room-amenities-extra {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.mphb-room-type-spacer {
  grid-area: spacer;
}

p.mphb-regular-price {
  display: flex;
  flex-direction: column;
  align-self: center;
  grid-area: price;
  gap: 2px;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

p.mphb-regular-price strong,
p.mphb-regular-price .mphb-price-period {
  display: none;
}

p.mphb-regular-price .mphb-price {
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-style: normal;
}

.pomar-price-sub {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

p.mphb-view-details-button-wrapper {
  align-self: center;
  grid-area: viewdetails;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

p.mphb-view-details-button-wrapper .mphb-view-details-button {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  text-decoration: none;
}

div.mphb-reserve-room-section {
  display: contents;
}

p.mphb-rooms-quantity-wrapper,
div.mphb-rooms-reservation-message-wrapper,
button.mphb-confirm-reservation {
  display: none !important;
}

button.mphb-book-button.mphb-book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  grid-area: book;
  gap: var(--space-2);
  height: var(--control-h-lg);
  margin-top: 0;
  padding: 0 var(--space-6);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--brand-strong);
  font-family: var(--font-title);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: var(--weight-medium);
  letter-spacing: .02em;
  text-transform: lowercase;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-control);
}

button.mphb-book-button.mphb-book-button:hover {
  background: var(--brand);
  color: var(--text-on-brand);
}

.mphb_sc_search_results-wrapper .pomar-long-stay-message {
  box-sizing: border-box;
  grid-area: incentive;
  margin: 0 !important;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--sun-500);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text-on-accent);
  font-size: small;
  font-weight: 400;
  line-height: 1.45;
}

/* ---------- Alternative dates ---------- */

.pomar-alt-dates-band {
  position: relative;
  left: 50%;
  right: 50%;
  box-sizing: border-box;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-top: var(--space-8);
  margin-right: -50vw !important;
  margin-left: -50vw !important;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-page-alt);
}

.pomar-alt-dates-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
}

.pomar-alt-dates-band__text {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: var(--space-3);
}

.pomar-alt-dates-band__text h2,
.pomar-alt-dates-band__text p {
  margin: 0;
}

.pomar-alt-dates-band__text h2 {
  color: var(--text-heading);
  font: var(--type-h2);
}

.pomar-alt-dates-band__text p {
  max-width: 560px;
  color: var(--text-body);
  font: var(--type-body);
}

.pomar-alt-dates-band__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h-lg);
  padding: 0 var(--space-6);
  border: 1px solid var(--brand);
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--text-on-brand);
  font-family: var(--font-title);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: var(--weight-medium);
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
  transition: var(--transition-control);
}

.pomar-alt-dates-band__cta:hover {
  transform: translateY(-2px);
}

/* ---------- Existing contact band ---------- */

.pomar-chat-band {
  position: relative;
  left: 50%;
  right: 50%;
  box-sizing: border-box;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-right: -50vw !important;
  margin-left: -50vw !important;
  background: var(--accent);
}

.pomar-chat-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
}

.pomar-chat-band__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pomar-chat-band__text h2,
.pomar-chat-band__text p {
  margin: 0;
}

.pomar-chat-band__text h2 {
  color: var(--clay-900);
  font: var(--type-h2);
}

.pomar-chat-band__text p {
  color: var(--clay-800);
  font: var(--type-body);
}

.pomar-chat-band__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0;
  color: var(--clay-900);
  font-size: var(--text-sm);
  text-decoration: none;
}

.pomar-chat-band__link svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

/* ---------- Tablet and mobile card layout ---------- */

@media (max-width: 921px) {
  .mphb_sc_search-wrapper {
    padding: var(--space-4);
  }

  .mphb_sc_search-form {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .mphb_sc_search-check-in-date,
  .mphb_sc_search-check-out-date,
  .mphb_sc_search-adults {
    flex: 1 1 auto;
    height: 56px;
  }

  .mphb_sc_search-submit-button-wrapper {
    height: auto;
  }

  .mphb_sc_search-submit-button-wrapper .button {
    width: 100%;
  }

  .pomar-search-note-row {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
  }

  .pomar-search-note-row .pomar-weather-inline {
    margin-left: 0 !important;
  }

  .mphb_sc_search_results-wrapper {
    padding: var(--space-6) var(--space-4) 0;
  }

  .pomar-results-header__controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mphb-room-type {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "photo"
      "header"
      "desc"
      "icons"
      "spacer"
      "price"
      "incentive"
      "book"
      "viewdetails";
    padding: 0 var(--space-5) var(--space-5);
    row-gap: var(--space-3);
  }

  .mphb-room-type::before {
    display: none;
  }

  .mphb-room-type-images {
    width: calc(100% + var(--space-5) * 2);
    min-height: 200px;
    margin: 0 calc(-1 * var(--space-5));
  }

  h2.mphb-room-type-title.entry-title {
    padding-top: var(--space-4);
  }

  p.mphb-regular-price,
  p.mphb-view-details-button-wrapper {
    padding-top: 0;
    border-top: 0;
  }

  p.mphb-view-details-button-wrapper {
    text-align: center;
  }

  button.mphb-book-button.mphb-book-button {
    width: 100%;
    margin-top: 0;
  }

  .pomar-alt-dates-band__inner {
    padding: var(--space-6) var(--space-4);
  }

  .pomar-alt-dates-band__cta {
    width: 100%;
  }

  .pomar-chat-band__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: var(--space-6) var(--space-4);
  }
}

/* ---------- Mobile search accordion ---------- */

@media (max-width: 700px) {
  .pomar-search-accordion__toggle.is-ready {
    position: relative;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 64px;
    margin: 0 0 0 -50vw !important;
    padding: var(--space-4);
    border: 0;
    border-radius: 0;
    background: var(--accent);
    box-shadow: none;
    color: var(--clay-900);
    font-family: var(--font-title);
    font-size: var(--text-lg);
    font-style: italic;
    font-weight: var(--weight-medium);
    line-height: 1.2;
    text-align: left;
    text-transform: lowercase;
    cursor: pointer;
  }

  .pomar-search-accordion__toggle::after {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-left: var(--space-4);
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 260ms ease;
  }

  .pomar-search-accordion__toggle[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  .pomar-search-accordion__toggle:hover,
  .pomar-search-accordion__toggle:focus-visible {
    background: var(--sun-400);
    color: var(--clay-900);
  }

  #pomar-search-accordion-panel.is-ready {
    overflow: hidden;
    max-height: var(--pomar-search-panel-height, 720px);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transform-origin: top;
    transition:
      max-height 380ms cubic-bezier(.22, 1, .36, 1),
      padding 380ms cubic-bezier(.22, 1, .36, 1),
      opacity 220ms ease,
      transform 380ms cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear;
  }

  #pomar-search-accordion-panel.is-ready[data-collapsed="true"] {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      max-height 320ms cubic-bezier(.4, 0, .2, 1),
      padding 320ms cubic-bezier(.4, 0, .2, 1),
      opacity 160ms ease,
      transform 320ms cubic-bezier(.4, 0, .2, 1),
      visibility 0s linear 320ms;
  }

  #pomar-search-accordion-panel.is-resizing {
    transition: none !important;
  }

  .pomar-search-weather {
    align-items: stretch;
    width: 100% !important;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
  }

  .pomar-search-weather .pomar-weather-btn {
    width: 100%;
  }

  .pomar-search-weather .pomar-weather-hint {
    width: 100%;
    text-align: left;
  }

  .pomar-room-badge {
    align-self: flex-start;
  }

  h2.mphb-room-type-title.entry-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pomar-search-accordion-panel.is-ready,
  .pomar-search-accordion__toggle::after {
    transition: none !important;
  }
}

/**
 * Affiche toujours la valeur sélectionnée du champ Guests.
 */
.mphb_sc_search-form .mphb_sc_search-adults select[name="mphb_adults"],
.mphb_widget_search-form .mphb_sc_search-adults select[name="mphb_adults"] {
	color: #241c14 !important;
	-webkit-text-fill-color: #241c14 !important;
	background-color: #fff !important;
	opacity: 1 !important;
}

/* Guests : le véritable select couvre toute la carte */
.mphb_sc_search-form .mphb_sc_search-adults {
    position: relative;
}

.mphb_sc_search-form .mphb_sc_search-adults label {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 16px;
    pointer-events: none;
}

.mphb_sc_search-form
.mphb_sc_search-adults select[name="mphb_adults"] {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    margin: 0;
    padding: 27px 16px 8px;

    border: 0;
    border-radius: inherit;
    background-color: #fff !important;

    color: #241c14 !important;
    -webkit-text-fill-color: #241c14 !important;

    cursor: pointer !important;
}