/* Desktop inner pages only. Phone unchanged under 1024px. */
@media (min-width: 1024px) {
  html, body {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: url("assets/hero-whitsundays.jpg") center 36% / cover no-repeat fixed !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  body.desk-inner {
    padding-top: 64px;
    padding-left: 400px;
    padding-right: 400px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .desk-inner-chrome {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 64px;
    background: #0b1220;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .desk-inner-chrome-inner {
    max-width: none;
    margin: 0;
    height: 64px;
    padding: 0 28px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .desk-inner-brand {
    display: flex; align-items: center; gap: 10px;
    color: #f8fafc; text-decoration: none; font-weight: 700; font-size: 1rem;
  }
  .desk-inner-brand img { width: 32px; height: 32px; object-fit: contain; }
  .desk-dest-label {
    margin-left: 8px; padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.2);
    font-weight: 500; font-size: 0.82rem; color: #99f6e4;
    position: relative;
  }
  .desk-top-dest-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #99f6e4;
    font: inherit; font-size: 0.84rem; font-weight: 600;
    padding: 6px 10px; border-radius: 999px; cursor: pointer;
  }
  .desk-top-dest-menu {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 240px; max-height: 360px; overflow-y: auto;
    background: #0f1a2c; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px; padding: 6px; z-index: 240;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  }
  .desk-top-dest-item {
    display: block; width: 100%; text-align: left;
    background: none; border: 0; color: #e2e8f0;
    font: inherit; font-size: 0.88rem; padding: 8px 10px;
    border-radius: 8px; cursor: pointer;
  }
  .desk-top-dest-item.is-on { color: #2dd4bf; font-weight: 700; }
  .desk-inner-nav { display: flex; gap: 22px; align-items: center; }
  .desk-inner-nav a {
    color: rgba(248,250,252,0.78); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  }
  .desk-inner-nav a:hover { color: #2dd4bf; }

  .desk-rail {
    position: fixed;
    top: 64px; left: 0; bottom: 0;
    width: 388px;
    background: #f8fafc;
    padding: 20px 16px 32px;
    z-index: 180;
    overflow-y: auto;
  }
  .desk-rail-back {
    display: inline-block;
    margin-bottom: 16px;
    color: #5eead4 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
  }
  .desk-rail-kicker {
    color: #94a3b8;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 10px;
  }
  .desk-rail a {
    display: block;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
  }
  .desk-rail a:hover { background: rgba(45,212,191,0.15); color: #5eead4; }
  .desk-rail a.desk-rail-on { background: #2dd4bf; color: #042f2e; }
  .desk-rail-right {
    border-right: none;
    border-left: 1px solid #e2e8f0;
    left: auto;
    right: 0;
    width: 388px;
    padding: 12px 8px;
  }
  .desk-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 12px 10px 16px;
    overflow: hidden !important;
  }
  .desk-banner {
    display: block;
    position: relative;
    flex: 0 0 auto;
    width: 88%;
    aspect-ratio: 16 / 10;
    height: auto;
    margin: 0 auto 14px;
    border-radius: 18px;
    overflow: hidden;
    background: #0b1220;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15) !important;
  }
  .desk-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .desk-banner span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .desk-banner.desk-rail-on { outline: 3px solid #2dd4bf; }

  .bottom-nav, nav.bottom-nav, .app-shell { display: none !important; }
  .hero-bg, .hero-overlay, .hero { display: none !important; background: none !important; }

  .page, .wrap {
    position: relative !important;
    z-index: 2;
    max-width: 920px !important;
    width: 100% !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 28px 32px 32px !important;
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #0b1220 !important;
    border: 1px solid rgba(255,255,255,0.55) !important;
    min-height: auto !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 50px rgba(15, 39, 68, 0.12) !important;
  }
  .page .title, .wrap .title, .page h1, .wrap h1, #title {
    color: #0b1220 !important;
    text-shadow: none !important;
    font-size: 1.7rem !important;
    margin: 18px 0 22px !important;
    text-align: center !important;
    width: 100% !important;
  }
  .page > .top { margin-bottom: 4px !important; }
  .page .back, .wrap .back, a.back {
    display: inline-flex !important;
    background: #0f2744 !important;
    color: #fff !important;
    border: none !important;
  }

  .tiles {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 18px !important;
  }
  .tiles:has(> :nth-child(4):last-child) {
    grid-template-columns: 1fr 1fr !important;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  .tiles:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .tiles:has(> :nth-child(5):last-child) .tile {
    grid-column: span 2;
  }
  .tiles:has(> :nth-child(5):last-child) .tile:nth-child(4) { grid-column: 2 / 4; }
  .tiles:has(> :nth-child(5):last-child) .tile:nth-child(5) { grid-column: 4 / 6; }
  .tiles:has(> :nth-child(7):last-child) .tile:nth-child(7) {
    grid-column: 2;
  }
  .tile {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 18px !important;
    filter: brightness(1.22) contrast(1.06) saturate(1.08);
  }
  .tile-body {
    max-width: 100% !important;
    justify-content: flex-end !important;
    color: #fff !important;
  }

  .add-listing {
    display: block !important;
    width: auto !important;
    max-width: 240px !important;
    margin: 28px auto 16px !important;
    padding: 11px 22px !important;
    border-radius: 999px !important;
    background: #0b1220 !important;
    border: 1.5px solid #2dd4bf !important;
    text-align: center !important;
    text-decoration: none !important;
  }
  .add-listing span {
    color: #5eead4 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
  }

  #list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .card {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #0b1220 !important;
    border: 1px solid rgba(255,255,255,0.55) !important;
    border: 1px solid #d5e0e8 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  }
  .card-name, .card-meta, .card p, .identity-card .name, .identity-card .locality {
    color: #0b1220 !important;
    text-shadow: none !important;
  }
  .card-meta { opacity: 0.7 !important; }
  .card-photo {
    width: 140px !important;
    min-height: 140px !important;
    height: 140px !important;
    border-radius: 12px !important;
  }
  .btn, .card-actions a, .card .web {
    color: #0f2744 !important;
    background: #e8eef3 !important;
    border-color: #c5d0da !important;
  }
  .btn-call, .card-actions a[href^="tel"] {
    background: #2dd4bf !important;
    color: #042f2e !important;
    border-color: transparent !important;
  }
  .empty { color: #64748b !important; }

  #ownerEditBtn, .owner-photo-btn { display: block !important; }
  .photo-hero {
    height: 420px !important;
    object-fit: contain !important;
    object-position: center top !important;
    background: #eef3f7 !important;
    border-radius: 18px !important;
    width: 100% !important;
  }

  body.desk-place .desk-bottom-bar { display: none !important; }
  body.desk-place .page {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-items: start;
  }
  body.desk-place .page > .top,
  body.desk-place .page > .photo-hero,
  body.desk-place .page > #ownerEditBtn,
  body.desk-place .page > .owner-edit-panel,
  body.desk-place .page > #descCard,
  body.desk-place .page > #specialsCard,
  body.desk-place .page > #happyCard,
  body.desk-place .page > #eventsCard,
  body.desk-place .page > .report-panel,
  body.desk-place .page > .report-btn,
  body.desk-place .page > #reportBtn {
    grid-column: 1 / -1;
  }
  body.desk-place .identity-card,
  body.desk-place #detailsCard {
    min-height: 0;
    height: auto;
    align-self: stretch;
  }
  body.desk-place .page {
    align-items: stretch !important;
  }
  body.desk-place .identity-card { grid-column: 1; }
  body.desk-place #detailsCard { grid-column: 2; }
  body.desk-place .actions {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  body.desk-place .actions a {
    flex: 1 1 0;
    min-width: 0 !important;
    padding: 8px 10px !important;
  }

  .desk-inner-foot { display: none !important; }
  .desk-inner-foot-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
  }
  .desk-inner-foot a { color: #334155; text-decoration: none; font-size: 1.9rem; }
}


@media (min-width: 1024px) {
  body.desk-hub .page, body.desk-hub .wrap {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 820px) !important;
    max-width: none !important;
    margin: 0 !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border-radius: 28px !important;
    box-shadow: 0 18px 50px rgba(15, 39, 68, 0.16) !important;
  }

  .desk-bottom-bar {
    display: none !important;
    position: fixed;
    left: 388px;
    right: 388px;
    bottom: 18px;
    z-index: 190;
    height: 96px;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: transparent !important;
  }
  body.desk-hub .desk-bottom-bar { display: flex !important; }
  .desk-mini {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 76px;
    min-width: 168px;
    padding: 8px 22px 10px;
    border: 1px solid #cbd5e1;
    border-right: none;
    background: #fff;
    color: #0f172a !important;
    font-size: 0.92rem !important;
    font-weight: 650 !important;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(15,23,42,0.12);
    text-decoration: none !important;
  }
  .desk-mini:first-child { border-radius: 28px 0 0 28px; }
  .desk-mini:last-child { border-radius: 0 28px 28px 0; border-right: 1px solid #cbd5e1; }
  .desk-ico { font-size: 1.25rem; line-height: 1; }
  .desk-mini:hover { background: #f1f5f9; color: #0f766e !important; }
}

@media (max-width: 1023px) {
  .desk-inner-chrome, .desk-rail, .desk-rail-right, .desk-inner-foot, .desk-bottom-bar { display: none !important; }

  /* Phone hubs: squares, not bars. Desktop 1024+ unchanged. */
  html, body {
    max-width: 430px !important;
    margin: 0 auto !important;
  }
  .tiles {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .tile {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 16px !important;
  }
  .tile-body {
    max-width: 100% !important;
    justify-content: flex-end !important;
    padding: 10px 10px 12px !important;
  }
  .tile-name { font-size: 0.92rem !important; }
  .tile-sub { font-size: 0.68rem !important; }
}

@media (min-width: 1024px) {
  body.desk-place .row a {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
  }
  body.desk-place .actions a {
    min-width: 132px;
    text-align: center;
    color: #0f172a !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
  }
  body.desk-place .actions a.primary {
    background: #0d9488 !important;
    color: #fff !important;
    border-color: #0d9488 !important;
  }
  body.desk-place .report-btn {
    width: auto !important;
    max-width: 180px !important;
    margin: 10px auto 0 !important;
    padding: 7px 16px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
  }
  body.desk-place .report-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    opacity: 1 !important;
  }
}

@media (min-width: 1024px) {
  body.desk-list .desk-bottom-bar,
  body.desk-feed .desk-bottom-bar,
  html.match-tours .desk-bottom-bar { display: none !important; }

  body.desk-list .page,
  body.desk-list .wrap,
  body.desk-feed .page,
  body.desk-feed .wrap {
    position: fixed !important;
    top: 80px !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(820px, calc(100vw - 820px)) !important;
    max-width: min(820px, calc(100vw - 820px)) !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    background: #ffffff !important;
    border-radius: 28px !important;
    overflow-y: auto !important;
  }

  body.desk-list .card-photo,
  body.desk-feed .card-photo {
    width: 88px !important;
    height: 88px !important;
    min-height: 88px !important;
  }
}

@media (min-width: 1024px) {
  body.desk-list .desk-rail,
  body.desk-list .desk-rail-right,
  body.desk-feed .desk-rail,
  body.desk-feed .desk-rail-right {
    bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-evenly !important;
    gap: 8px !important;
    overflow: hidden !important;
  }
  body.desk-list .desk-banner,
  body.desk-feed .desk-banner {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: 88% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    margin: 0 auto !important;
  }
}

@media (min-width: 1024px) {
  body.desk-feed .card-name,
  body.desk-list .card-name {
    color: #0f172a !important;
  }
  body.desk-feed .card-offer {
    color: #0f172a !important;
    font-weight: 650 !important;
    opacity: 1 !important;
  }
  body.desk-feed .card-when,
  body.desk-feed .card-meta,
  body.desk-list .card-meta {
    color: #334155 !important;
    opacity: 1 !important;
  }
}
