/* Pearl Destinations discovery layer. Bootstrap 5 remains the layout and component base. */
:root {
  --pd-ink: #211f1d;
  --pd-muted: #68635d;
  --pd-line: #e4ded5;
  --pd-paper: #f8f6f2;
  --pd-surface: #ffffff;
  --pd-accent: #b54a16;
  --pd-accent-hover: #a64316;
}

html { scroll-behavior: smooth; }
body {
  background: var(--pd-paper) !important;
  color: var(--pd-ink) !important;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
}
body.text-bg-success {
  background: var(--pd-paper) !important;
  color: var(--pd-ink) !important;
}
body, main, header, footer { max-width: 100%; }
main { width: 100%; }
h1, h2, h3, h4, h5 { color: var(--pd-ink); font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700; }
a { color: var(--pd-accent); text-underline-offset: .18em; }
a:hover { color: var(--pd-accent-hover); }
:focus-visible { outline: 3px solid #b78b45; outline-offset: 3px; }

.btn { min-height: 44px; font-weight: 700; }
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--pd-accent);
  --bs-btn-border-color: var(--pd-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pd-accent-hover);
  --bs-btn-hover-border-color: var(--pd-accent-hover);
  --bs-btn-active-bg: var(--pd-accent-hover);
  --bs-btn-active-border-color: var(--pd-accent-hover);
}
.btn-outline-primary {
  --bs-btn-color: var(--pd-accent);
  --bs-btn-border-color: var(--pd-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pd-accent);
  --bs-btn-hover-border-color: var(--pd-accent);
}
.form-control, .form-select { border-color: #cbd6cf; min-height: 46px; }
.form-control:focus, .form-select:focus {
  border-color: var(--pd-accent);
  box-shadow: 0 0 0 .22rem rgba(181, 74, 22, .18);
}

.pd-header {
  position: relative;
  z-index: 1020;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--pd-line);
}
.pd-header .navbar { min-height: 92px; }
.pd-header .navbar-brand {
  align-items: center;
  display: inline-flex;
  min-height: 0;
}
.pd-brand-logo { display: block; height: auto; max-width: 100%; width: 170px; }
.pd-header .nav-link {
  color: var(--pd-ink);
  font-size: .93rem;
  font-weight: 600;
  padding: .65rem .8rem;
}
.pd-header .nav-link:hover, .pd-header .nav-link:focus { color: var(--pd-accent); }
.pd-property-link { white-space: nowrap; }

/* Explore surface: destination search first, then browsable stays. */
.pd-hero {
  align-items: center;
  background: #243b32;
  display: flex;
  isolation: isolate;
  min-height: 470px;
  overflow: hidden;
  position: relative;
}
.pd-hero-image, .pd-hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}
.pd-hero-image { object-fit: cover; object-position: center 46%; z-index: -2; }
.pd-hero-shade {
  background: linear-gradient(90deg, rgba(13, 31, 25, .76) 0%, rgba(13, 31, 25, .48) 52%, rgba(13, 31, 25, .15) 100%);
  z-index: -1;
}
.pd-hero-content {
  color: #fff;
  padding-bottom: 82px;
  padding-top: 70px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.pd-eyebrow {
  color: var(--pd-accent-hover);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin: 0 0 .55rem;
  text-transform: uppercase;
}
.pd-eyebrow-light { color: #f2dfbb; }
.pd-hero h1 {
  color: #fff;
  font-size: clamp(2.45rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.04;
  margin: 0 0 .9rem;
  max-width: 700px;
  text-wrap: balance;
}
.pd-hero-intro { color: rgba(255, 255, 255, .92); font-size: 1.03rem; margin: 0 0 1.2rem; }
.pd-search-form {
  align-items: end;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(9, 26, 20, .2);
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1.55fr) minmax(138px, .8fr) minmax(138px, .8fr) auto;
  margin-top: 18px;
  max-width: 1060px;
  padding: 10px;
}
.pd-search-field { min-width: 0; }
.pd-search-field label {
  color: var(--pd-ink);
  display: block;
  font-size: .74rem;
  font-weight: 700;
  margin: 0 0 .28rem .2rem;
}
.pd-search-field .form-control {
  background: #f8faf8;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--pd-ink);
  min-height: 49px;
  padding: .6rem .72rem;
}
.pd-search-field .form-control:focus { background: #fff; border-color: var(--pd-accent); }
.pd-search-submit {
  align-items: center;
  display: inline-flex;
  gap: .5rem;
  justify-content: center;
  min-height: 49px;
  padding-inline: 1.1rem;
  white-space: nowrap;
}
.pd-hero-scroll {
  align-items: center;
  bottom: 19px;
  color: #fff;
  display: inline-flex;
  font-size: .85rem;
  font-weight: 600;
  gap: .5rem;
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  text-decoration: none;
}
.pd-hero-scroll:hover { color: #f2dfbb; }

.pd-section { padding-bottom: 42px; padding-top: 54px; }
.pd-section-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.pd-section-heading h2, .pd-featured-copy h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  letter-spacing: -.035em;
  line-height: 1.15;
  margin: 0 0 .35rem;
  text-wrap: balance;
}
.pd-section-intro { color: var(--pd-muted); margin: 0; }
.pd-text-link { font-size: .91rem; font-weight: 700; margin-bottom: .25rem; text-decoration: none; white-space: nowrap; }
.pd-text-link span { margin-left: .22rem; }
.pd-destination-card {
  aspect-ratio: 1.22 / 1;
  background: #e4ebe6;
  border-radius: 12px;
  display: block;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}
.pd-destination-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .3s ease;
  width: 100%;
  z-index: 0;
}
.pd-destination-card:hover img, .pd-destination-card:focus-visible img { transform: scale(1.035); }
.pd-destination-scrim {
  background: linear-gradient(0deg, rgba(13, 31, 25, .67), rgba(13, 31, 25, 0) 62%);
  inset: 0;
  position: absolute;
  z-index: 1;
}
.pd-destination-name {
  align-items: center;
  bottom: 13px;
  color: #fff;
  display: flex;
  font-size: .98rem;
  font-weight: 700;
  justify-content: space-between;
  left: 14px;
  position: absolute;
  right: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
  z-index: 2;
}
.pd-destination-name span { font-size: 1.05rem; opacity: .9; }
.pd-destination-card:focus-visible { outline-color: #b78b45; outline-offset: 3px; }
.pd-featured-section { padding-bottom: 64px; }
.pd-featured-stay {
  align-items: stretch;
  background: #eef3ef;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
}
.pd-featured-copy { align-self: center; padding: clamp(24px, 4vw, 48px); }
.pd-featured-copy p:not(.pd-eyebrow) { color: var(--pd-muted); margin: 0 0 1.2rem; max-width: 430px; }
.pd-sponsored-label {
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  color: var(--pd-muted);
  font-size: .65rem;
  letter-spacing: .035em;
  margin-left: .35rem;
  padding: .2rem .5rem;
  vertical-align: middle;
}
.pd-featured-copy .pd-featured-banner-transcript { color: var(--pd-ink); font-size: .84rem; font-weight: 700; line-height: 1.45; margin: .4rem 0 .8rem; }
.pd-featured-image { align-self: center; aspect-ratio: 19 / 5; display: block; min-height: 0; }
.pd-featured-image img { display: block; height: 100%; max-height: none; object-fit: contain; width: 100%; }

.pd-footer { background: #edf2ee; border-top: 1px solid var(--pd-line); color: var(--pd-muted); }
.pd-footer-brand { color: var(--pd-ink); font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.pd-footer-brand:hover, .pd-footer-link:hover { color: var(--pd-accent); }
.pd-footer-link { color: var(--pd-ink); font-weight: 700; text-decoration: none; }

/* Search results: compact search, readable result count, aligned comparison cards. */
.pd-results-sponsor img { display: block; height: auto; width: 100%; }
.pd-results-search {
  align-items: center !important;
  background: #e9efea !important;
  min-height: 365px !important;
  overflow: hidden;
  padding: 34px 0 !important;
  position: relative;
}
.pd-results-search::before {
  background: rgba(16, 35, 26, .22);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.pd-results-search > .sponsor-link { inset: 0; position: absolute; z-index: 0; }
.pd-results-search > .sponsor-link img { height: 100%; object-fit: cover; opacity: .82 !important; }
.pd-results-search > .sponsor-link .badge { z-index: 2; }
#mainSearch { max-width: 1120px; z-index: 1; }
#mainSearch .pd-results-panel {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(12, 28, 20, .18);
  color: var(--pd-ink);
  padding: clamp(20px, 3vw, 34px);
}
.pd-results-eyebrow, .pd-results-kicker {
  color: var(--pd-accent-hover);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0 0 .45rem;
  text-transform: uppercase;
}
#mainSearch .pd-results-title { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.035em; margin: 0 0 18px; }
.pd-results-form {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1.45fr) minmax(135px, .8fr) minmax(135px, .8fr) auto;
}
.pd-results-form .form-floating { max-width: none !important; min-width: 0; }
.pd-results-form .form-control {
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  min-height: 56px;
}
.pd-results-form .form-floating > label { color: var(--pd-muted); text-align: left !important; }
.pd-results-form .pd-results-submit { min-height: 56px; white-space: nowrap; }
.hotel-listings { background: var(--pd-paper); }
.pd-results-summary {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.pd-results-summary h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); letter-spacing: -.03em; margin: 0 0 .25rem; }
.pd-results-count { color: var(--pd-muted); margin: 0; }
.pd-results-filter-link { background: none; border: 0; color: var(--pd-accent); font-weight: 700; padding: .35rem 0; text-decoration: underline; text-underline-offset: .18em; }
.hotel-result-card {
  align-items: stretch;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(31, 45, 38, .045);
  overflow: hidden;
  padding: 0 !important;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.hotel-result-card:hover { border-color: #bdcbc1; box-shadow: 0 8px 22px rgba(31, 45, 38, .09); }
.hotel-result-card > div:first-child { background: #e6ece7; flex: 0 0 230px; width: auto !important; }
.hotel-result-card.hotel-result-no-image > div:first-child { display: none; }
.hotel-result-card.hotel-result-no-image > div:nth-child(2) { flex-basis: 100%; }
.hotel-result-card > div:first-child img { display: block; height: 100%; min-height: 220px; object-fit: cover; }
.hotel-result-card > div:nth-child(2) { flex: 1 1 auto; min-width: 0; padding: 20px !important; width: auto !important; }
.hotel-result-card h3 { color: var(--pd-ink); font-size: 1.16rem; line-height: 1.25; margin-bottom: .4rem; }
.hotel-result-card p { color: var(--pd-muted); }
.hotel-result-card .text-yellow { color: #8a6739 !important; }
#filterToggleBtn {
  background: #fff !important;
  border: 1px solid var(--pd-line) !important;
  border-radius: 999px !important;
  bottom: 18px !important;
  box-shadow: 0 6px 20px rgba(21, 38, 29, .16);
  color: var(--pd-ink) !important;
  height: 52px;
  justify-content: center;
  padding: 0 !important;
  right: 18px !important;
  top: auto !important;
  transform: none !important;
  width: 52px;
  z-index: 1050;
}

/* Hotel detail and booking controls keep the same restrained visual system. */
.pd-hotel-cover {
  background-color: #e4ebe6 !important;
  background-position: center;
  background-size: cover;
  min-height: 360px !important;
  overflow: hidden;
  position: relative;
}
.pd-hotel-cover > .sponsor-link { inset: 0; position: absolute; }
.pd-hotel-cover > .sponsor-link img { height: 100%; object-fit: cover; width: 100%; }
.pd-hotel-cover > .pd-hotel-cover-image { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; z-index: 0; }
.pd-hotel-cover > .sponsor-link .badge { z-index: 2; }
.pd-hotel-main { padding-bottom: 64px; }
.pd-hotel-main-heading { font-size: clamp(1.55rem, 2.8vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 22px; }
.pd-availability-form .form-label { color: var(--pd-ink); font-weight: 700; }
#availabilityForm .btn-outline-light {
  --bs-btn-color: var(--pd-accent-hover);
  --bs-btn-border-color: var(--pd-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--pd-accent);
  --bs-btn-hover-border-color: var(--pd-accent);
}
#roomsContainer { margin-top: 30px !important; }
#roomsContainer .card {
  background: #fff;
  border-color: var(--pd-line) !important;
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
}
#roomsContainer .img-wrapper { aspect-ratio: 16 / 10; background: #e6ece7; overflow: hidden; padding-top: 0 !important; }
#roomsContainer .img-wrapper img { display: block; height: 100%; object-fit: cover; width: 100%; }
#roomsContainer .card-body { padding: 18px; }
#roomsContainer .card-title { color: var(--pd-ink); font-weight: 700; }
#roomsContainer .card-footer { background: #f8faf8; border-top: 1px solid var(--pd-line); padding: 12px 18px; }
#cartToggleBtn {
  bottom: 18px !important;
  border-radius: 999px !important;
  min-height: 52px;
  right: 18px !important;
  top: auto !important;
  transform: none !important;
  z-index: 1050;
}

@media (max-width: 991.98px) {
  .pd-search-form { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
  .pd-search-location { grid-column: 1 / -1; }
  .pd-search-submit { grid-column: 1 / -1; }
  .pd-results-form { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
  .pd-results-destination, .pd-results-submit { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .pd-header .navbar { min-height: 84px; }
  .pd-brand-logo { width: 150px; }
  .pd-header .navbar-collapse { padding-top: 10px; }
  .pd-header .navbar-nav { align-items: stretch !important; }
  .pd-header .pd-property-link { display: inline-flex; justify-content: center; width: 100%; }
  .pd-hero { min-height: 0; }
  .pd-hero-image { object-position: 58% center; }
  .pd-hero-shade { background: linear-gradient(90deg, rgba(13, 31, 25, .78), rgba(13, 31, 25, .4)); }
  .pd-hero-content { padding-bottom: 54px; padding-top: 48px; }
  .pd-hero h1 { font-size: clamp(2.25rem, 9vw, 3.35rem); }
  .pd-search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-search-location, .pd-search-submit { grid-column: 1 / -1; }
  .pd-search-submit { width: 100%; }
  .pd-hero-scroll { display: none; }
  .pd-section { padding-top: 40px; }
  .pd-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pd-destination-card { aspect-ratio: 1.05 / 1; border-radius: 10px; }
  .pd-destination-name { bottom: 10px; font-size: .9rem; left: 10px; right: 10px; }
  .pd-featured-stay { grid-template-columns: 1fr; }
  .pd-featured-image { min-height: 0; order: -1; }
  .pd-featured-image img { max-height: none; }
  .pd-footer .row { text-align: center; }
  .pd-results-search { min-height: auto !important; padding: 22px 0 !important; }
  .pd-results-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hotel-result-card { flex-direction: column !important; }
  .hotel-result-card > div:first-child { flex: 0 0 auto; width: 100% !important; }
  .hotel-result-card > div:first-child img { height: 205px; min-height: 205px; }
  .hotel-result-card > div:nth-child(2) { width: 100% !important; }
  .pd-hotel-cover { min-height: 230px !important; }
  .pd-hotel-cover-sponsor { aspect-ratio: 19 / 5; height: auto; min-height: 0 !important; padding: 0 !important; }
  .pd-hotel-main { padding-top: 8px; }
}
@media (max-width: 575.98px) {
  .pd-results-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-results-destination, .pd-results-submit { grid-column: 1 / -1; }
  .pd-results-form .form-control { font-size: .96rem; }
}
@media (max-width: 420px) {
  .pd-header .navbar { min-height: 80px; }
  .pd-brand-logo { width: 142px; }
  .pd-search-form { grid-template-columns: 1fr; }
  .pd-search-location, .pd-search-submit { grid-column: auto; }
  .pd-search-field .form-control { min-height: 47px; }
  .pd-search-submit { width: 100%; }
  .pd-section-heading h2, .pd-featured-copy h2 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
