.details-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(108px + var(--safe-bottom));
  background: var(--background);
}

.details-gallery {
  position: relative;
  height: min(54vh, 520px);
  min-height: 380px;
  overflow: hidden;
  background: #dedee2;
}

.details-gallery > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-gallery::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background: linear-gradient(rgba(0,0,0,.2), transparent);
  pointer-events: none;
}

.details-gallery__top {
  position: absolute;
  z-index: 3;
  top: calc(12px + var(--safe-top));
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
}

.details-gallery__top > div {
  display: flex;
  gap: 9px;
}

.image-count {
  position: absolute;
  right: 15px;
  bottom: 15px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(15,15,18,.6);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 750;
}

.details-content {
  padding: 23px 18px 25px;
}

.details-title h1 {
  margin-bottom: 8px;
  font-size: 31px;
}

.details-title > p:not(.eyebrow) {
  margin-bottom: 9px;
  color: var(--muted);
}

.details-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.details-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 25px 0;
}

.feature-row > div {
  min-width: 0;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  text-align: center;
}

.feature-row svg {
  margin-bottom: 8px;
}

.feature-row span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.feature-row strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.host-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.host-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: #202024;
  font-weight: 900;
}

.host-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.details-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.details-section h2 {
  margin-bottom: 12px;
  font-size: 21px;
}

.details-section > p {
  margin-bottom: 0;
  color: #505058;
  line-height: 1.65;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 10px;
}

.amenities-grid > div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.amenities-grid svg {
  width: 18px;
  height: 18px;
}

.availability-card,
.payment-protection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 0;
  padding: 17px;
  border-radius: 20px;
  color: #0f6f50;
  background: #e9f8f2;
}

.availability-card p,
.payment-protection p {
  margin: 4px 0 0;
  color: #4f766a;
  font-size: 12px;
  line-height: 1.45;
}

.map-placeholder {
  height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,.85) 48%, rgba(255,255,255,.85) 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(255,255,255,.85) 48%, rgba(255,255,255,.85) 52%, transparent 53%),
    #dce9e3;
  background-size: 80px 80px;
}

.map-pin {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 12px;
  color: white;
  background: var(--accent);
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
}

.map-pin svg {
  transform: rotate(45deg);
}

.map-placeholder > span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: white;
  font-size: 12px;
  font-weight: 800;
}

.booking-bar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  width: min(100%, 760px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 13px 18px calc(12px + var(--safe-bottom));
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.booking-bar > div {
  min-width: 0;
}

.booking-bar strong {
  font-size: 18px;
}

.booking-bar span {
  color: var(--muted);
  font-size: 12px;
}

.booking-bar small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.booking-bar .primary-button {
  flex: 0 0 auto;
  min-height: 49px;
}

.date-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 19px 0;
}

.date-summary > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.date-summary small,
.date-summary strong {
  display: block;
}

.date-summary small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-grid--days {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.calendar-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 13px;
}

.calendar-day.is-disabled {
  color: #c6c6cb;
}

.calendar-day.is-selected {
  color: white;
  background: var(--accent);
}

.calendar-day.is-range {
  border-radius: 10px;
  background: #ffe4ea;
}

.date-modal .primary-button {
  width: 100%;
  margin-top: 8px;
}

.checkout-page {
  padding-top: calc(12px + var(--safe-top));
}

.checkout-header {
  margin-bottom: 22px;
}

.checkout-property {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 13px;
  padding: 12px;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.checkout-property img {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 16px;
}

.checkout-property span,
.checkout-property p {
  color: var(--muted);
  font-size: 12px;
}

.checkout-property h2 {
  margin: 5px 0;
  font-size: 17px;
}

.checkout-property p {
  margin-bottom: 7px;
}

.checkout-property small {
  display: flex;
  align-items: center;
  gap: 4px;
}

.checkout-property small svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.checkout-section {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-section h2 {
  margin-bottom: 17px;
  font-size: 21px;
}

.checkout-line,
.price-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
}

.checkout-line p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-line button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  font-weight: 800;
}

.price-line {
  color: #53535b;
  font-size: 14px;
}

.price-line strong {
  color: var(--text);
}

.price-line--total {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
}

.payment-method {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  text-align: left;
}

.payment-method small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.card-symbol {
  width: 42px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: linear-gradient(135deg, #17255b, #3b58b7);
  font-size: 10px;
}

.payment-protection {
  justify-content: flex-start;
  margin-bottom: 20px;
}

.payment-protection > svg {
  flex: 0 0 auto;
}

.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  text-align: center;
}

.success-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 28px;
  color: white;
  background: var(--success);
  box-shadow: 0 18px 45px rgba(24,165,114,.25);
}

.success-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.5;
}

.success-page h1 {
  max-width: 480px;
  margin: 0 auto 13px;
}

.success-copy {
  max-width: 500px;
  margin: 0 auto 25px;
  color: var(--muted);
  line-height: 1.55;
}

.confirmation-card {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 13px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.confirmation-card img {
  width: 105px;
  height: 115px;
  object-fit: cover;
  border-radius: 16px;
}

.confirmation-card h2 {
  margin: 3px 0 4px;
  font-size: 17px;
}

.confirmation-card p,
.confirmation-card span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.confirmation-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.confirmation-code {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 18px;
  background: #ececef;
}

.confirmation-code span {
  color: var(--muted);
}

@media (min-width: 760px) {
  .booking-bar {
    bottom: 28px;
    border-radius: 0 0 34px 34px;
  }
}


.premium-feature-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.score-card,
.power-card {
  padding: 20px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.score-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
}

.score-card h2 {
  margin: 0;
  font-size: 46px;
  letter-spacing: -.06em;
}

.score-card > div:first-child > span {
  color: var(--muted);
  font-size: 12px;
}

.score-bars {
  display: grid;
  gap: 9px;
}

.score-bars div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  text-transform: capitalize;
  font-size: 12px;
}

.power-card {
  display: flex;
  gap: 14px;
  color: #174a37;
  background: linear-gradient(135deg, #e7f9f1, #ffffff);
}

.power-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: white;
  background: var(--success);
}

.power-card h3 {
  margin: 0 0 5px;
  font-size: 21px;
}

.power-card p,
.power-card small {
  display: block;
  margin: 0;
  color: #5d776d;
}

.section-copy {
  color: var(--muted);
  font-size: 13px;
}

.verification-timeline {
  display: grid;
  gap: 0;
}

.verification-timeline > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  position: relative;
  padding-bottom: 18px;
}

.verification-timeline > div:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: #cfe9dd;
}

.verification-timeline > div > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: #e9f8f2;
}

.verification-timeline svg {
  width: 16px;
  height: 16px;
}

.verification-timeline p {
  margin: 0;
}

.verification-timeline small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.stay-guarantee {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  padding: 20px;
  margin: 24px 0 0;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, #ff385c, #9b2348);
  box-shadow: var(--shadow-md);
}

.stay-guarantee > div:first-child {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255,255,255,.16);
}

.stay-guarantee .eyebrow,
.stay-guarantee p {
  color: rgba(255,255,255,.78);
}

.stay-guarantee h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.stay-guarantee p:last-child {
  margin-bottom: 0;
  line-height: 1.55;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.action-grid button {
  min-height: 94px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
  font-size: 12px;
  font-weight: 800;
}

.nearby-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.nearby-list > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  background: white;
  font-size: 12px;
}

.map-placeholder {
  width: 100%;
  border: 0;
}

.navigation-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin: 18px 0;
  border-radius: 20px;
  background: #f1f1f4;
}

.navigation-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: #18181b;
}

.navigation-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.navigation-link {
  display: grid;
  place-items: center;
  margin-top: 10px;
  text-decoration: none;
}

.arrival-video {
  position: relative;
  overflow: hidden;
  margin: 18px 0 14px;
  border-radius: 24px;
  background: #151518;
}

.arrival-video img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  opacity: .78;
}

.arrival-video__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  color: white;
  text-align: center;
}

.arrival-video__overlay > span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
}

.arrival-video__overlay svg {
  width: 34px;
  height: 34px;
}

.arrival-video__overlay small {
  margin-top: 5px;
  color: rgba(255,255,255,.72);
}

.arrival-status {
  position: relative;
  padding: 22px;
  margin: 18px 0;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, #141416, #45454e);
}

.arrival-status h3 {
  margin: 8px 0;
  font-size: 25px;
}

.arrival-status p:last-child {
  margin: 0;
  color: rgba(255,255,255,.7);
}

.live-dot {
  width: 10px;
  height: 10px;
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 50%;
  background: #36d98c;
  box-shadow: 0 0 0 7px rgba(54,217,140,.12);
}

.arrival-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.arrival-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f6f6f8;
}

.arrival-grid small,
.arrival-grid strong {
  display: block;
}

.arrival-grid small {
  margin-bottom: 5px;
  color: var(--muted);
}

@media (min-width: 620px) {
  .premium-feature-grid {
    grid-template-columns: 1.1fr .9fr;
  }
}


/* Portfolio Final: fully in-app Stay Map */
.in-app-map-modal {
  padding-bottom: calc(26px + var(--safe-bottom));
}

.stay-map {
  height: min(52vh, 430px);
  min-height: 350px;
  position: relative;
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid rgba(20,20,24,.06);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(230,239,234,.92), rgba(244,240,229,.94));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}

.stay-map::before,
.stay-map::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(98,116,103,.13);
  border-radius: 40%;
}

.stay-map::before {
  width: 60%;
  height: 42%;
  left: -12%;
  bottom: -15%;
  transform: rotate(17deg);
}

.stay-map::after {
  width: 50%;
  height: 35%;
  right: -13%;
  top: -9%;
  transform: rotate(-12deg);
}

.stay-map__roads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stay-map__roads path {
  fill: none;
  stroke: rgba(255,255,255,.96);
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(40,60,50,.08));
}

.stay-map__route {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  vector-effect: non-scaling-stroke;
  opacity: .88;
}

.stay-map__route.is-animated {
  animation: route-flow 1.1s linear infinite;
}

@keyframes route-flow {
  to { stroke-dashoffset: -32; }
}

.map-water {
  position: absolute;
  border-radius: 50%;
  background: rgba(160,205,218,.4);
}

.map-water--one {
  width: 150px;
  height: 80px;
  right: -35px;
  bottom: 32px;
  transform: rotate(-25deg);
}

.map-water--two {
  width: 100px;
  height: 45px;
  left: 27%;
  top: 17%;
  transform: rotate(18deg);
}

.map-user-marker,
.map-destination-marker {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
}

.map-user-marker {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  background: #1687ff;
  box-shadow: 0 5px 16px rgba(22,135,255,.38);
  transition: left .7s ease, top .7s ease;
}

.map-user-marker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.map-user-marker.is-live::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(22,135,255,.28);
  border-radius: 50%;
  animation: user-pulse 1.8s ease-out infinite;
}

@keyframes user-pulse {
  from { transform: scale(.6); opacity: 1; }
  to { transform: scale(1.45); opacity: 0; }
}

.map-destination-marker {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 4px solid white;
  border-radius: 17px;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(255,56,92,.3);
}

.map-area-label {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 8px;
  color: rgba(35,45,40,.57);
  background: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 800;
}

.map-area-label--one { left: 10%; top: 23%; }
.map-area-label--two { right: 8%; bottom: 22%; }
.map-area-label--three { right: 18%; top: 15%; }

.map-distance-card {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 34px rgba(27,38,32,.12);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.map-distance-card small,
.map-distance-card strong,
.map-distance-card span {
  display: block;
}

.map-distance-card small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.map-distance-card strong {
  font-size: 18px;
}

.map-distance-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.map-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.map-actions button {
  width: 100%;
}

.map-actions .primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.map-note {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  margin-top: 14px;
  padding: 13px;
  border-radius: 17px;
  color: #13684b;
  background: #edf9f4;
}

.map-note svg {
  width: 18px;
  height: 18px;
}

.map-note p {
  margin: 0;
}

.map-note strong,
.map-note span {
  display: block;
}

.map-note span {
  margin-top: 3px;
  color: #5a776c;
  font-size: 11px;
  line-height: 1.45;
}

@media (min-width: 520px) {
  .map-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Owner-uploaded walkthrough video */
.details-gallery__video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  background: #000;
}
.details-gallery.has-video {
  background: #000;
}
.details-gallery.has-video .image-count {
  pointer-events: none;
}
@media (max-width: 620px) {
  .details-gallery__video {
    min-height: 340px;
  }
}
