
/*
 DATE48 PLACES DESKTOP V40
 Route: /places
 Breakpoint: >=1200px
 Existing mobile styles and React logic preserved.
*/

@media (min-width:1200px) {

  html[data-d48-places-desktop-v40="1"] body {
    overflow-x:hidden!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .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;
  }

  /* Independent desktop sidebar */

  #d48-places-desktop-v40-sidebar {
    position:fixed;
    z-index:900;
    top:86px;
    bottom:12px;
    left:16px;
    width:202px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    padding:25px 14px 16px;
    border:1px solid rgba(64,36,47,.09);
    border-radius:15px;
    background:#fffdfb;
    box-shadow:0 8px 32px rgba(39,26,30,.035);
    font-family:inherit;
  }

  #d48-places-desktop-v40-sidebar
  .d48-v40-brand {
    display:block;
    padding:0 10px;
    color:#241d20;
    text-decoration:none;
    font-family:Georgia,"Times New Roman",serif;
    font-size:31px;
    letter-spacing:-1.9px;
    line-height:1.1;
  }

  #d48-places-desktop-v40-sidebar
  .d48-v40-brand span {
    font-size:20px;
    margin-left:3px;
  }

  #d48-places-desktop-v40-sidebar
  .d48-v40-tagline {
    margin:15px 10px 38px;
    font-size:7px;
    font-weight:750;
    line-height:1.9;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#a59a9e;
  }

  #d48-places-desktop-v40-sidebar nav {
    display:grid;
    gap:7px;
  }

  #d48-places-desktop-v40-sidebar nav a {
    box-sizing:border-box;
    display:flex;
    align-items:center;
    gap:13px;
    height:43px;
    padding:0 13px;
    border-radius:12px;
    color:#352c30;
    font-size:12px;
    font-weight:680;
    text-decoration:none;
    transition:background .16s ease;
  }

  #d48-places-desktop-v40-sidebar
  nav a:hover {
    background:rgba(159,52,89,.07);
  }

  #d48-places-desktop-v40-sidebar
  nav a[aria-current="page"] {
    background:#9e365d;
    color:white;
  }

  #d48-places-desktop-v40-sidebar
  .d48-v40-nav-icon {
    flex:0 0 21px;
    display:grid;
    place-items:center;
    font-size:17px;
    line-height:1;
  }

  #d48-places-desktop-v40-sidebar
  .d48-v40-footer {
    margin-top:auto;
    padding:18px 10px 4px;
    border-top:1px solid rgba(55,36,43,.1);
    color:#aca3a5;
    font-size:10px;
  }

  /* Full-width desktop page */

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

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

    margin:0 18px 0 246px!important;
    padding:27px 18px 75px!important;

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

  /* Editorial header */

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-top {
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) 30px!important;
    align-items:center!important;
    column-gap:18px!important;
    padding:5px 0 8px!important;
    margin:0!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-top > div {
    text-align:left!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-top h1 {
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:40px!important;
    font-weight:500!important;
    line-height:1.08!important;
    letter-spacing:-1.5px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-top p {
    font-size:9px!important;
    letter-spacing:2.2px!important;
    margin-bottom:7px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-discovery-subtitle {
    margin:0 0 22px 60px!important;
    font-size:13px!important;
    line-height:1.5!important;
    text-align:left!important;
  }

  /* Search and quick filters */

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-discovery-search {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:670px!important;
    min-height:54px!important;
    margin:0 0 16px!important;
    border-radius:17px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-filters {
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    width:100%!important;
    max-width:none!important;
    gap:9px!important;
    overflow:visible!important;
    margin:0 0 24px!important;
    padding:2px 0!important;
  }

  /* Four editorial collections */

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-discovery-collections {
    width:100%!important;
    max-width:none!important;
    margin:0 0 24px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-discovery-section-heading {
    margin:0 0 13px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-discovery-section-heading h2 {
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:23px!important;
    font-weight:500!important;
    margin:0 0 5px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-discovery-collection-grid {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:15px!important;
    width:100%!important;
    max-width:none!important;
    overflow:visible!important;
    padding:0!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-discovery-collection {
    box-sizing:border-box!important;
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:185px!important;
    height:185px!important;
    margin:0!important;
    padding:16px!important;
    flex:none!important;
    border-radius:17px!important;
    overflow:hidden!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page
  .date48-discovery-collection__photo {
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  /* Budget, cuisine, atmosphere, sorting */

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-discovery-tools {
    box-sizing:border-box!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:12px!important;
    width:100%!important;
    margin:0 0 14px!important;
    overflow:visible!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-intro {
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:4px 14px!important;
    width:100%!important;
    margin:0 0 17px!important;
    padding:8px 0 14px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-intro > p {
    grid-column:1!important;
    grid-row:1!important;
    font-size:18px!important;
    max-width:none!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-intro > small {
    grid-column:1!important;
    grid-row:2!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-discovery-sort {
    grid-column:2!important;
    grid-row:1 / span 2!important;
  }

  /* Real venue catalogue */

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-place-cards {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:start!important;
    gap:19px!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-place-card {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    border-radius:20px!important;
    overflow:hidden!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-place-card__visual {
    height:204px!important;
    min-height:204px!important;
    overflow:hidden!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-place-card__image {
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-place-card__body {
    padding:17px 18px 20px!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-place-card__title-row h2 {
    font-size:22px!important;
    line-height:1.12!important;
    letter-spacing:-.5px!important;
    max-width:none!important;
  }

  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-more-head,
  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-more-button,
  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-places-empty {
    grid-column:1 / -1!important;
  }

  /* Hide only the detected mobile bottom navigation */

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

@media (min-width:1900px) {
  html[data-d48-places-desktop-v40="1"]
  .date48-places-page .date48-place-cards {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

/* Dark theme */

@media (min-width:1200px) {
  html[data-theme="dark"][data-d48-places-desktop-v40="1"]
  #d48-places-desktop-v40-sidebar,
  html[data-date48-theme="dark"][data-d48-places-desktop-v40="1"]
  #d48-places-desktop-v40-sidebar,
  html.dark[data-d48-places-desktop-v40="1"]
  #d48-places-desktop-v40-sidebar {
    background:#211b22;
    border-color:rgba(255,255,255,.1);
  }

  html[data-theme="dark"][data-d48-places-desktop-v40="1"]
  #d48-places-desktop-v40-sidebar :is(.d48-v40-brand,nav a),
  html[data-date48-theme="dark"][data-d48-places-desktop-v40="1"]
  #d48-places-desktop-v40-sidebar :is(.d48-v40-brand,nav a),
  html.dark[data-d48-places-desktop-v40="1"]
  #d48-places-desktop-v40-sidebar :is(.d48-v40-brand,nav a) {
    color:#f5edf0;
  }

  html[data-theme="dark"][data-d48-places-desktop-v40="1"]
  #d48-places-desktop-v40-sidebar nav a[aria-current="page"],
  html[data-date48-theme="dark"][data-d48-places-desktop-v40="1"]
  #d48-places-desktop-v40-sidebar nav a[aria-current="page"],
  html.dark[data-d48-places-desktop-v40="1"]
  #d48-places-desktop-v40-sidebar nav a[aria-current="page"] {
    background:#9e365d;
    color:#fff;
  }
}
