/* APD 734 — canonical dates, premium host communication and mobile editor. */

/* The booking-card dates are the only visual range owner. */
html body.single-listing .apd52-native-calendar .apd732-range-band {
  background: #ececec !important;
  box-shadow: 1px 0 0 #ececec, -1px 0 0 #ececec !important;
}
html body.single-listing .apd52-native-calendar .days > li.apd732-range-middle,
html body.single-listing .apd52-native-calendar .days > li.apd732-range-middle .day-number {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #222 !important;
}
html body.single-listing .apd52-native-calendar .days > li:is(.apd732-range-start,.apd732-range-end)::before {
  content: none !important;
  display: none !important;
}
/* Old date pickers can leave day 3 marked even when the canonical inputs say
   15–18. Neutralize every stale endpoint unless APD732 owns that cell. */
html body.single-listing .apd52-native-calendar .days > li:is(
  .selected,.active,.from-day,.to-day,.is-selected,.reservation_start,.reservation_end,
  .apd20-selected,.apd20-range-start,.apd20-range-end,
  .apd417-start,.apd417-end,.apd423-range-start,.apd423-range-end,
  .apd512-start,.apd512-end,.apd514-start,.apd514-end,
  .apd516-start,.apd516-end,.apd518-start,.apd518-end,
  .apd520-start,.apd520-end,.apd523-start,.apd523-end
):not(.apd732-range-start):not(.apd732-range-end) .day-number {
  background: transparent !important;
  color: #222 !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.single-listing .apd52-native-calendar .days > li.current-day:not(.apd732-range-start):not(.apd732-range-end) .day-number {
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #222 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #222 !important;
}

/* One full premium communication card replaces the small collection pill. */
html body.single-listing.apd647-listing-release .apd647-host-facts .apd734-host-message-card {
  grid-column: 1 / -1 !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  min-height: 126px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(56, 82, 120, .10) !important;
  background:
    radial-gradient(circle at 8% 0, rgba(255,255,255,.95), transparent 42%),
    linear-gradient(145deg, #f9fbff 0%, #eef4ff 58%, #f5f9ff 100%) !important;
  box-shadow: 0 16px 38px rgba(29, 55, 94, .10), inset 0 1px 0 #fff !important;
}
html body.single-listing.apd647-listing-release .apd647-host-facts .apd734-host-message-card > img {
  width: 88px !important;
  height: 88px !important;
  max-width: none !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: drop-shadow(0 10px 12px rgba(24, 67, 83, .20)) !important;
}
html body.single-listing.apd647-listing-release .apd734-host-message-card > div {
  align-content: center !important;
}
html body.single-listing.apd647-listing-release .apd734-host-message-card strong {
  font-size: 19px !important;
  line-height: 1.18 !important;
}
html body.single-listing.apd647-listing-release .apd734-host-message-card small {
  max-width: 540px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* Payment protection is legible at a glance: one large transparent lock. */
html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note {
  grid-template-columns: 86px minmax(0, 1fr) !important;
  min-height: 112px !important;
  gap: 16px !important;
  align-items: center !important;
  margin-top: 20px !important;
  padding: 18px 16px !important;
  border: 1px solid rgba(121, 97, 46, .12) !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #fffdf8, #f7f4eb) !important;
  box-shadow: 0 14px 32px rgba(67, 55, 31, .08), inset 0 1px 0 #fff !important;
}
html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note-icon,
html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note-icon > img {
  width: 86px !important;
  height: 86px !important;
  max-width: none !important;
  object-fit: contain !important;
  background: transparent !important;
}
html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note-icon > img {
  filter: drop-shadow(0 10px 12px rgba(67, 48, 23, .22)) !important;
}
html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #4f4f4f !important;
}

/* Standalone host editor: no global APD header, banner or duplicate manager. */
body.apd734-host-editor-shell {
  min-width: 0 !important;
  overflow-x: hidden !important;
  background: #fff !important;
}
body.apd734-host-editor-shell .apd616-host-main {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 82px) !important;
  margin: 0 !important;
  padding: 0 0 92px !important;
}
body.apd734-host-editor-shell .apd619-listings-page,
body.apd734-host-editor-shell .apd619-tips-pill,
body.apd734-host-editor-shell .apd619-tips-overlay {
  display: none !important;
}
body.apd734-host-editor-shell #apd245-host-listings-manager {
  width: 100% !important;
  min-width: 0 !important;
  min-height: calc(100vh - 82px) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  z-index: 2 !important;
}
.apd249-photo-stack .apd734-editor-cover {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.apd249-photo-stack > span {
  position: relative !important;
  z-index: 2 !important;
}
.apd734-mobile-section-back { display: none; }

@media (max-width: 900px) {
  html body.single-listing.apd647-listing-release .apd647-host-facts .apd734-host-message-card {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    min-height: 118px !important;
    padding: 14px !important;
  }
  html body.single-listing.apd647-listing-release .apd647-host-facts .apd734-host-message-card > img {
    width: 78px !important;
    height: 78px !important;
  }
  html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    min-height: 104px !important;
    padding: 14px !important;
  }
  html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note-icon,
  html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note-icon > img {
    width: 76px !important;
    height: 76px !important;
  }

  body.apd734-host-editor-shell .apd245-manager.is-editor,
  body.apd734-host-editor-shell .apd249-editor-shell {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: calc(100vh - 82px) !important;
    grid-template-columns: none !important;
    overflow: visible !important;
  }
  body.apd734-host-editor-shell .apd249-sidebar {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
    height: auto !important;
    border: 0 !important;
    position: relative !important;
  }
  body.apd734-host-editor-shell .apd249-sidebar-top {
    position: relative !important;
    display: flex !important;
    min-height: 78px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: max(18px, env(safe-area-inset-top)) 68px 10px !important;
  }
  body.apd734-host-editor-shell .apd249-sidebar-top h1 {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
    font-weight: 690 !important;
    letter-spacing: -.025em !important;
    text-align: center !important;
  }
  body.apd734-host-editor-shell .apd249-back-link {
    position: absolute !important;
    left: 20px !important;
    top: max(18px, env(safe-area-inset-top)) !important;
    width: 44px !important;
    height: 44px !important;
    background: #f7f7f7 !important;
  }
  body.apd734-host-editor-shell .apd249-tabbar {
    justify-content: center !important;
    gap: 8px !important;
    padding: 7px 20px 18px !important;
  }
  body.apd734-host-editor-shell .apd249-tabbar button {
    height: 40px !important;
    padding: 0 15px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }
  body.apd734-host-editor-shell .apd249-tabbar .apd249-gear {
    width: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
  }
  body.apd734-host-editor-shell .apd249-sidebar-scroll {
    display: grid !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    gap: 12px !important;
    padding: 0 20px 148px !important;
  }
  body.apd734-host-editor-shell .apd249-side-card {
    width: 100% !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055) !important;
    transform: none !important;
  }
  body.apd734-host-editor-shell .apd249-side-card.is-active {
    border-color: #dedede !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .075) !important;
  }
  body.apd734-host-editor-shell .apd249-side-card strong {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  body.apd734-host-editor-shell .apd249-side-card small {
    font-size: 13px !important;
  }
  body.apd734-host-editor-shell .apd249-side-card.is-photo {
    min-height: 278px !important;
    padding: 0 0 15px !important;
    overflow: hidden !important;
  }
  body.apd734-host-editor-shell .apd249-photo-stack {
    width: 100% !important;
    height: 202px !important;
    min-height: 202px !important;
    border-radius: 15px 15px 0 0 !important;
  }
  body.apd734-host-editor-shell .apd253-photo-card-copy {
    padding: 13px 17px 0 !important;
  }
  body.apd734-host-editor-shell .apd249-side-card.is-task {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    align-items: center !important;
  }
  body.apd734-host-editor-shell .apd249-preview-sticky {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    z-index: 120 !important;
    padding: 0 !important;
    background: transparent !important;
    transform: translateX(-50%) !important;
  }
  body.apd734-host-editor-shell .apd249-show-preview {
    height: 44px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
  }
  body.apd734-host-editor-shell .apd249-main {
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: calc(100vh - 82px) !important;
    background: #fff !important;
  }
  body.apd734-host-editor-shell .apd249-editor-shell.is-apd734-mobile-detail > .apd249-sidebar {
    display: none !important;
  }
  body.apd734-host-editor-shell .apd249-editor-shell.is-apd734-mobile-detail > .apd249-main {
    display: flex !important;
  }
  body.apd734-host-editor-shell .apd249-main-head {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: max(24px, env(safe-area-inset-top)) 20px 14px 72px !important;
  }
  body.apd734-host-editor-shell .apd249-main-head h2 {
    margin: 0 0 8px !important;
    font-size: 27px !important;
    line-height: 1.12 !important;
  }
  body.apd734-host-editor-shell .apd734-mobile-section-back {
    position: absolute !important;
    left: 20px !important;
    top: max(20px, env(safe-area-inset-top)) !important;
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f7f7f7 !important;
    color: #222 !important;
  }
  body.apd734-host-editor-shell .apd734-mobile-section-back svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
  }
  body.apd734-host-editor-shell .apd249-main-body {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 20px 156px !important;
  }
  body.apd734-host-editor-shell .apd249-main-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    z-index: 115 !important;
    min-height: 70px !important;
    padding: 12px 20px !important;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(16px) !important;
  }
  body.apd734-host-editor-shell .apd249-save-btn {
    min-width: 108px !important;
    height: 46px !important;
  }
}

@media (max-width: 390px) {
  html body.single-listing.apd647-listing-release .apd647-host-facts .apd734-host-message-card {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    gap: 11px !important;
  }
  html body.single-listing.apd647-listing-release .apd647-host-facts .apd734-host-message-card > img {
    width: 70px !important;
    height: 70px !important;
  }
  html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    gap: 11px !important;
  }
  html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note-icon,
  html body.single-listing.apd647-listing-release .apd647-host-info .apd177-host-note-icon > img {
    width: 70px !important;
    height: 70px !important;
  }
  body.apd734-host-editor-shell .apd249-sidebar-scroll { padding-left: 16px !important; padding-right: 16px !important; }
}
