
/*
 DATE48 V42 — Place detail desktop.
 Only /places/:planKey at >= 1200px.

 React behavior, place selection and mobile layout unchanged.
*/

@media (min-width:1200px) {

  /* Expand the same application shell used by /places */

  html[data-d48-places-desktop-v40="1"]
  body:has(main.date48-place-detail-page)
  .d48-v40-places-ancestor {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
  }

  /*
   Main layout:
   large venue image on the left,
   information and action on the right.
  */

  html[data-d48-places-desktop-v40="1"]
  body main.date48-place-detail-page:has(
    > .date48-place-detail-hero
  ) {
    box-sizing:border-box!important;
    display:grid!important;

    grid-template-columns:
      minmax(0,.96fr)
      minmax(0,1.04fr)!important;

    grid-template-rows:auto auto!important;

    align-items:start!important;
    align-content:start!important;

    gap:18px 26px!important;

    width:calc(100vw - 280px)!important;
    max-width:calc(100vw - 280px)!important;
    min-width:0!important;

    margin:0 18px 0 246px!important;
    padding:24px 18px 70px!important;

    overflow:visible!important;
    position:relative!important;
    transform:none!important;
  }

  /* Left editorial hero */

  html[data-d48-places-desktop-v40="1"]
  body main.date48-place-detail-page
  > .date48-place-detail-hero {
    box-sizing:border-box!important;

    grid-column:1!important;
    grid-row:1 / span 2!important;

    position:sticky!important;
    top:105px!important;

    align-self:start!important;

    width:100%!important;
    max-width:none!important;
    min-width:0!important;

    height:min(35vw,520px)!important;
    min-height:370px!important;

    margin:0!important;
    padding:0!important;

    border-radius:24px!important;
    overflow:hidden!important;

    isolation:isolate!important;
    box-shadow:0 16px 44px rgba(47,29,36,.09)!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-detail-hero__image {
    position:absolute!important;
    inset:0!important;

    display:block!important;

    width:100%!important;
    height:100%!important;

    max-width:none!important;

    object-fit:cover!important;
    object-position:center!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-detail-back {
    z-index:5!important;
  }

  /* Right information column */

  html[data-d48-places-desktop-v40="1"]
  body main.date48-place-detail-page
  > .date48-place-detail-sheet {
    box-sizing:border-box!important;

    grid-column:2!important;
    grid-row:1!important;

    display:block!important;

    width:100%!important;
    max-width:none!important;
    min-width:0!important;

    margin:0!important;
    padding:24px 27px 22px!important;

    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;

    transform:none!important;

    border-radius:23px!important;
    overflow:visible!important;

    box-shadow:0 8px 30px rgba(47,29,36,.04)!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-detail-sheet h1 {
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:clamp(34px,3vw,48px)!important;
    line-height:1.1!important;
    letter-spacing:-1.5px!important;
    font-weight:500!important;
    margin:5px 0 8px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-detail-address {
    font-size:13px!important;
    line-height:1.5!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-detail-tags {
    display:flex!important;
    flex-wrap:wrap!important;
    gap:7px!important;
    margin:12px 0 16px!important;
  }

  /* Price, location and opening hours */

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-detail-facts {
    width:100%!important;
    max-width:none!important;
    gap:0!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-why {
    margin-top:16px!important;
    margin-bottom:14px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-why h2 {
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:21px!important;
    font-weight:500!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-budget-compact {
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }

  /* Gallery remains connected to the actual React component */

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-gallery-compact {
    margin-top:20px!important;
    width:100%!important;
    min-width:0!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-detail-thumbs {
    display:grid!important;
    grid-template-columns:
      repeat(3,minmax(0,1fr))!important;
    gap:9px!important;
    width:100%!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-detail-thumbs img {
    display:block!important;
    width:100%!important;
    height:108px!important;
    object-fit:cover!important;
    border-radius:13px!important;
  }

  /* Remove mobile sticky spacer only on this desktop route */

  html[data-d48-places-desktop-v40="1"]
  body main.date48-place-detail-page
  > .date48-place-detail-sticky-spacer {
    display:none!important;
  }

  /*
   Move the existing select action into the page flow.
   Keep its original click handler and all state.
  */

  html[data-d48-places-desktop-v40="1"]
  body main.date48-place-detail-page
  > .date48-place-detail-sticky {
    box-sizing:border-box!important;

    grid-column:2!important;
    grid-row:2!important;

    position:static!important;
    inset:auto!important;
    top:auto!important;
    bottom:auto!important;
    left:auto!important;
    right:auto!important;

    transform:none!important;

    display:flex!important;
    align-items:center!important;

    width:100%!important;
    max-width:none!important;
    min-width:0!important;

    margin:0!important;
    padding:12px!important;

    border-radius:20px!important;
    box-shadow:0 8px 28px rgba(47,29,36,.06)!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body .date48-place-detail-sticky button {
    flex:1 1 auto!important;
    min-height:51px!important;
    border-radius:13px!important;
    cursor:pointer!important;
  }

  /*
   Mobile bottom navigation is detected and hidden
   by the existing desktop shell.
  */

  [data-d48-places-mobile-nav-v40="1"] {
    display:none!important;
  }
}

@media (min-width:1200px) and (max-width:1399px) {

  html[data-d48-places-desktop-v40="1"]
  body main.date48-place-detail-page:has(
    > .date48-place-detail-hero
  ) {
    grid-template-columns:
      minmax(0,.88fr)
      minmax(0,1.12fr)!important;

    gap:16px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  body main.date48-place-detail-page
  > .date48-place-detail-sheet {
    padding:20px!important;
  }
}

/* Preserve the existing dark palette */

@media (min-width:1200px) {

  html[data-date48-theme="dark"]
  [data-d48-places-desktop-v40="1"]
  body main.date48-place-detail-page
  > .date48-place-detail-sheet {
    box-shadow:none!important;
  }

  html[data-date48-theme="dark"]
  body main.date48-place-detail-page
  > .date48-place-detail-hero {
    box-shadow:0 16px 44px rgba(0,0,0,.22)!important;
  }
}
