/* My Booking Flow: properties page.
   Everything is scoped under .mpf-wrap so it can't leak into Astra/Elementor. */

:root {
    --mpf-color-mocha: #cdb9a2;
    --mpf-color-gold: #ce9336;
}

.mpf-wrap {
  max-width: 80rem;
  margin: 3rem auto 0;
  padding: 0 1rem;
  color: #1f2937;
}
.mpf-wrap *, .mpf-wrap *::before, .mpf-wrap *::after { box-sizing: border-box; }

/* Intro */
.mpf-intro { max-width: 48rem; margin: 0 auto 3rem; text-align: center; }
.mpf-wrap .mpf-title {
  font-family: var(--mpf-serif) !important;
  font-size: 2.25rem; line-height: 2.5rem; font-weight: 400;
  margin: 0 0 1rem; color: inherit;
}
.mpf-wrap .mpf-intro p { margin: 0; font-size: .875rem; line-height: 1.625; color: #6b7280; }

/* Grid: 1 column, 2 from 768px, 3 from 1024px */
.mpf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 768px)  { .mpf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mpf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mpf-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 0; color: #6b7280; }

/* Card */
.mpf-wrap a.mpf-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #f3f4f6; border-radius: .75rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
  overflow: hidden;
  color: inherit; text-decoration: none;
  transition: all .3s ease;
}
.mpf-wrap a.mpf-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  color: inherit; text-decoration: none;
}

.mpf-card__media { position: relative; height: 14rem; width: 100%; background: #e5e7eb; overflow: hidden; }
.mpf-wrap .mpf-card__media img {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; transition: transform .3s ease;
}
.mpf-wrap a.mpf-card:hover .mpf-card__media img { transform: scale(1.05); }
.mpf-card__noimg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: .875rem; color: #9ca3af; }

.mpf-card__body { flex: 1 1 0%; display: flex; flex-direction: column; padding: 1.5rem; }
.mpf-wrap .mpf-card__title {
  margin: 0 0 .25rem; font-family: inherit; font-size: 1.125rem; line-height: 1.75rem;
  font-weight: 600; color: inherit;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mpf-card__summary {
  margin: 0 0 1rem; font-size: .875rem; line-height: 1.25rem; color: #6b7280;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mpf-card__price { margin: 0 0 .75rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.mpf-card__location { display: flex; align-items: center; margin: 0 0 1.5rem; font-size: .75rem; line-height: 1rem; color: #6b7280; }
.mpf-card__location span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpf-card__location .mpf-icon { color: #9ca3af; margin-right: .25rem; }

.mpf-card__stats {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid #f3f4f6;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .5rem 0; font-size: .75rem; line-height: 1rem; color: #6b7280;
}
.mpf-stat { display: flex; align-items: center; }
.mpf-stat .mpf-icon { margin-right: .375rem; }
.mpf-stat--pets { color: #059669; font-weight: 500; }
.mpf-stat--pets .mpf-icon { width: .875rem; height: .875rem; margin-right: .25rem; }

/* Icons: also set here in case the theme overrides SVG attributes */
.mpf-wrap .mpf-icon { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; }
.mpf-wrap .mpf-icon--filled { fill: currentColor; stroke: none; }

/* ==========================================================
   Search bar + calendar (step 3)
   Selectors start with ".mpf-wrap .mpf-search" so they out-rank
   Astra/Elementor button and heading styles.
   ========================================================== */

.mpf-search-wrap { margin-bottom: 3rem; }

.mpf-wrap .mpf-search {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: 100%; max-width: 56rem; margin: 2rem auto 0; padding: .5rem;
  background: #fff; border: 1px solid #f3f4f6;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  text-align: left; font-size: 1rem; line-height: 1.5;
}
@media (min-width: 768px) {
  .mpf-wrap .mpf-search { flex-direction: row; margin-top: 3rem; padding: .75rem; border-radius: 9999px; }
}
.mpf-wrap .mpf-search [hidden] { display: none !important; }

/* Button reset: undo theme button styling, components below re-style it */
.mpf-wrap .mpf-btn.mpf-btn {
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; text-shadow: none;
  color: inherit; font: inherit; line-height: inherit;
  letter-spacing: normal; text-transform: none; text-decoration: none;
  min-width: 0; min-height: 0;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.mpf-wrap .mpf-btn.mpf-btn:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.mpf-wrap .mpf-btn.mpf-btn:disabled { cursor: not-allowed; }

/* Fields: Where / Dates / Who */
.mpf-wrap .mpf-search .mpf-field {
  position: relative; flex: 1 1 0%; width: 100%;
  padding: .625rem 1.5rem; border-radius: 9999px;
  cursor: pointer; transition: background-color .15s;
}
.mpf-wrap .mpf-search .mpf-field:hover { background: #f3f4f6; }
@media (min-width: 768px) {
  .mpf-wrap .mpf-search .mpf-field { width: auto; padding-top: .75rem; padding-bottom: .75rem; }
}
.mpf-wrap .mpf-search .mpf-field__label {
  display: block; margin-bottom: .125rem;
  font-size: .75rem; line-height: 1rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: #1f2937;
}
.mpf-wrap .mpf-search .mpf-field__value {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: #6b7280;
}
.mpf-wrap .mpf-search .mpf-field__value .mpf-icon { color: #cdb9a2; }
.mpf-wrap .mpf-search .mpf-value { color: #9ca3af; }
.mpf-wrap .mpf-search .mpf-value.is-set { color: #111827; }

.mpf-wrap .mpf-search .mpf-divider { display: none; flex-shrink: 0; width: 1px; height: 2.5rem; background: #e5e7eb; }
@media (min-width: 768px) { .mpf-wrap .mpf-search .mpf-divider { display: block; } }

/* Dropdown panels */
.mpf-wrap .mpf-search .mpf-dropdown {
  display: none; position: absolute; top: 100%; margin-top: 1rem; z-index: 50;
  background: #fff; border: 1px solid #f3f4f6; border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.1); cursor: default;
}
.mpf-wrap .mpf-search .mpf-dropdown.is-open { display: block; }
.mpf-wrap .mpf-search .mpf-dropdown--dest  { left: 0;  width: 100%; padding: 1rem; }
.mpf-wrap .mpf-search .mpf-dropdown--date  { left: 0;  width: 320px; padding: 1rem; }
.mpf-wrap .mpf-search .mpf-dropdown--guest { right: 0; width: 100%; padding: 1.5rem; }
@media (min-width: 640px) {
  .mpf-wrap .mpf-search .mpf-dropdown--date { width: 600px; padding: 1.5rem; }
}
@media (min-width: 768px) {
  .mpf-wrap .mpf-search .mpf-dropdown--dest  { width: 20rem; }
  .mpf-wrap .mpf-search .mpf-dropdown--date  { left: -4rem; }
  .mpf-wrap .mpf-search .mpf-dropdown--guest { right: 8rem; width: 20rem; }
}

/* Destination options */
.mpf-wrap .mpf-search .mpf-dest__option {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: .75rem; border-radius: 1rem; text-align: left; transition: background-color .15s;
}
.mpf-wrap .mpf-search .mpf-dest__option:hover { background: #f9fafb; }
.mpf-wrap .mpf-search .mpf-dest__icon { display: flex; padding: .75rem; border-radius: .75rem; background: #f3f4f6; color: #6b7280; }
.mpf-wrap .mpf-search .mpf-dest__icon .mpf-icon { width: 1.25rem; height: 1.25rem; }
.mpf-wrap .mpf-search .mpf-dest__city   { display: block; font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: #111827; }
.mpf-wrap .mpf-search .mpf-dest__region { display: block; font-size: .875rem; line-height: 1.25rem; font-weight: 400; color: #6b7280; }

/* Guests */
.mpf-wrap .mpf-search .mpf-guests { display: flex; align-items: center; justify-content: space-between; }
.mpf-wrap .mpf-search .mpf-guests__title { display: block; font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: #111827; }
.mpf-wrap .mpf-search .mpf-guests__sub   { display: block; font-size: .875rem; line-height: 1.25rem; font-weight: 400; color: #6b7280; }
.mpf-wrap .mpf-search .mpf-guests__controls { display: flex; align-items: center; gap: 1rem; }
.mpf-wrap .mpf-search .mpf-guests__count { width: 1rem; text-align: center; font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; color: #111827; }
.mpf-wrap .mpf-search .mpf-round-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  border: 1px solid #d1d5db; background: #fff; color: #6b7280; transition: all .15s;
}
.mpf-wrap .mpf-search .mpf-round-btn:hover:not(:disabled) { border-color: #1f2937; color: #1f2937; }
.mpf-wrap .mpf-search .mpf-round-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Search button */
.mpf-wrap .mpf-search .mpf-search__submit-wrap { width: 100%; margin-top: .5rem; padding: 0 .5rem .5rem; }
@media (min-width: 768px) {
  .mpf-wrap .mpf-search .mpf-search__submit-wrap { width: auto; margin-top: 0; padding-bottom: 0; }
}
.mpf-wrap .mpf-search .mpf-search__submit {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .75rem; border-radius: 9999px;
  background: var(--mpf-color-mocha); color: #fff; font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  transition: all .3s;
}
.mpf-wrap .mpf-search .mpf-search__submit:hover {
  background: var(--mpf-color-gold); color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}
.mpf-wrap .mpf-search .mpf-search__submit .mpf-icon { width: 1.25rem; height: 1.25rem; }
@media (min-width: 768px) {
  .mpf-wrap .mpf-search .mpf-search__submit { width: auto; padding: 1rem 2rem; }
  .mpf-wrap .mpf-search .mpf-search__submit-label { display: none; }
}
@media (min-width: 1024px) {
  .mpf-wrap .mpf-search .mpf-search__submit-label { display: inline; }
}

/* Calendar */
.mpf-wrap .mpf-cal .mpf-cal__nav {
  position: absolute; top: 1rem; left: 1rem; right: 1rem; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.mpf-wrap .mpf-cal .mpf-cal__navbtn {
  display: flex; padding: .5rem; border-radius: 9999px;
  background: rgba(255,255,255,.8); border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); pointer-events: auto; transition: all .15s;
}
.mpf-wrap .mpf-cal .mpf-cal__navbtn:hover { background: #f3f4f6; }
.mpf-wrap .mpf-cal .mpf-cal__navbtn:disabled { opacity: .3; cursor: not-allowed; }
.mpf-wrap .mpf-cal .mpf-cal__navbtn .mpf-icon { width: 1.25rem; height: 1.25rem; }

.mpf-wrap .mpf-cal .mpf-cal__viewport { overflow: hidden; }
.mpf-wrap .mpf-cal .mpf-cal__track { display: flex; width: 100%; transition: transform .3s ease-in-out; }
.mpf-wrap .mpf-cal .mpf-cal__pane { flex: 0 0 100%; min-width: 0; padding: 0 .5rem; }
@media (min-width: 640px) {
  .mpf-wrap .mpf-cal .mpf-cal__pane { flex-basis: 50%; padding: 0 1rem; }
}

.mpf-wrap .mpf-cal .mpf-cal__title {
  margin: 0 0 1rem; padding: .5rem 0 0;
  font-family: inherit; font-size: .875rem; line-height: 1.25rem; font-weight: 700;
  letter-spacing: normal; text-transform: none; text-align: center; color: #1f2937; user-select: none;
}
.mpf-wrap .mpf-cal .mpf-cal__weekdays {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: .5rem; padding-bottom: .25rem; border-bottom: 1px solid #f9fafb;
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9ca3af;
}
.mpf-wrap .mpf-cal .mpf-cal__days {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: .25rem; text-align: center; font-size: .75rem;
}
.mpf-wrap .mpf-cal .mpf-cal__cell { position: relative; padding: .125rem 0; }
.mpf-wrap .mpf-cal .mpf-cal__cell.is-in-range { background: #f3f4f6; }

.mpf-wrap .mpf-cal .mpf-cal__day {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1; border-radius: 9999px;
  font-size: 11px; font-weight: 600; color: #374151; transition: all .15s;
}
.mpf-wrap .mpf-cal .mpf-cal__day:hover { background: #111827; color: #fff; }
.mpf-wrap .mpf-cal .mpf-cal__day.is-in-range { background: #f3f4f6; color: #111827; border-radius: 0; }
.mpf-wrap .mpf-cal .mpf-cal__day.is-in-range:hover { background: #111827; color: #fff; }
.mpf-wrap .mpf-cal .mpf-cal__day.is-selected { background: #111827; color: #fff; border-radius: 9999px; }
.mpf-wrap .mpf-cal .mpf-cal__day:disabled,
.mpf-wrap .mpf-cal .mpf-cal__day:disabled:hover {
  z-index: auto; font-weight: 500; color: #d1d5db; background: rgba(249,250,251,.5);
  cursor: not-allowed; user-select: none;
}

.mpf-wrap .mpf-cal .mpf-cal__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .5rem; padding-top: 1rem; border-top: 1px solid #f3f4f6;
  font-size: .75rem; line-height: 1rem; color: #9ca3af; user-select: none;
}
.mpf-wrap .mpf-cal .mpf-cal__clear { font-size: .75rem; font-weight: 600; text-decoration: underline; color: #4b5563; transition: color .15s; }
.mpf-wrap .mpf-cal .mpf-cal__clear:hover { color: #111827; }

/* ==========================================================
   Standalone search bar: [mpf_search] on any page
   Drops the page wrapper's outer margin and padding, so the bar
   fits whatever container it is placed in.
   ========================================================== */
.mpf-wrap.mpf-wrap--search { max-width: none; margin: 0; padding: 0; }
.mpf-wrap.mpf-wrap--search .mpf-search { margin-top: 0; }

/* ==========================================================
   Fonts: Inter for all plugin text, Playfair Display for the large headings.
   !important on purpose: theme and Elementor typography settings (body, headings,
   buttons, labels, inputs) must never change the plugin's font.
   ========================================================== */
.mpf-wrap {
  --mpf-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mpf-serif: 'Playfair Display', Georgia, 'Times New Roman', serif; /* Inter for headings too: var(--mpf-sans) */
}
.mpf-wrap   { font-family: var(--mpf-sans) !important; }
.mpf-wrap * { font-family: inherit !important; }

/* The booking reference stays monospace, as in Laravel */
.mpf-wrap .mpf-cf-ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }