/* -----------------------------------------------------------
   Motion
   ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .venue-card,
  .court-card,
  button,
  .button,
  .btn,
  .kr-button {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  }
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .pm-public-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }

  .pm-public-header nav,
  .pm-header-actions {
    display: none;
  }

  .pm-mobile-login {
    display: inline-flex;
  }

  .pm-hero-search.is-pinned {
    top: 79px;
  }
}

@media (max-width: 980px) {
  .venue-grid,
  .court-grid,
  .suggested-courts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero,
  .home-hero,
  .guest-hero,
  .hero-marketplace {
    border-radius: 0 0 22px 22px;
  }

  .pm-public-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }

  .pm-hero-search.is-pinned {
    top: 79px;
    width: calc(100% - 24px);
  }

  .pm-public-header nav,
  .pm-header-actions {
    display: none;
  }

  .pm-mobile-login {
    display: inline-flex;
  }

  .pm-hero {
    grid-template-columns: 1fr;
  }

  .pm-hero-visual {
    min-height: 180px;
  }

  .pm-venue-grid,
  .pm-loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-open-play-grid {
    grid-template-columns: 1fr;
  }

  .pm-owner-solutions {
    grid-template-columns: 1fr;
  }

  .pm-owner-copy {
    max-width: 720px;
  }

  .pm-owner-visual {
    width: min(760px, 100%);
    margin-inline: auto;
  }

  .pm-how-it-works {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pm-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body .pm-marketplace-site > .dp-login-modal-backdrop {
    place-items: center;
    padding: 12px;
  }

  body .pm-marketplace-site .dp-login-modal,
  body .pm-marketplace-site .dp-register-modal {
    width: min(430px, 100%);
    max-height: calc(100dvh - 24px);
    padding: 22px 18px 20px;
    border-radius: 15px;
  }

  body .pm-marketplace-site .dp-login-modal-logo { margin-bottom: 14px; }
  .pm-auth-tabs { margin-bottom: 18px; }

  .pm-marketplace-site .dp-register-grid {
    grid-template-columns: 1fr;
  }

  .pm-marketplace-site .dp-register-spacer {
    display: none;
  }
}

@media (max-width: 680px) {
  :root,
  html[data-theme="picklemania_theme"],
  html[data-kradpc-theme="picklemania_theme"],
  body.kr-theme-picklemania-theme {
    --pm-radius: 14px;
    --pm-radius-lg: 18px;
  }

  .venue-grid,
  .court-grid,
  .suggested-courts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .court-search,
  .find-court-search,
  .hero-search,
  .landing-search,
  .search-courts-panel {
    border-radius: 14px;
  }

  .open-play-strip,
  .open-play-feature,
  .join-open-play-banner {
    border-radius: 16px;
  }

  .booking-sticky,
  .booking-summary-sticky,
  .sticky-booking-bar {
    border-radius: 16px 16px 0 0;
  }

  .pm-public-header {
    padding-inline: 18px;
  }

  .pm-brand-ball {
    width: 32px;
    height: 32px;
  }

  .pm-brand-copy {
    font-size: 17px;
  }

  .pm-marketplace main > section {
    width: calc(100% - 24px);
  }

  .pm-hero {
    border-radius: 0 0 21px 21px;
  }

  .pm-hero-copy {
    padding: 26px 20px 22px;
  }

  .pm-hero h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .pm-hero-copy > p {
    font-size: 14px;
  }

  .pm-hero-search {
    grid-template-columns: 1fr;
    padding: 7px;
  }

  .pm-hero-search button {
    width: 100%;
  }

  .pm-hero-search.is-pinned {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 5px;
  }

  .pm-hero-search.is-pinned label {
    gap: 7px;
    padding-left: 9px;
    font-size: 15px;
  }

  .pm-hero-search.is-pinned input {
    height: 40px;
    font-size: 14px;
  }

  .pm-hero-search.is-pinned button {
    width: auto;
    min-height: 40px;
    padding-inline: 13px;
    font-size: 12px;
    white-space: nowrap;
  }

  .pm-hero-perks {
    display: flex;
    gap: 8px 12px;
  }

  .pm-hero-visual {
    min-height: 130px;
  }

  .pm-section {
    padding-top: 34px;
  }

  .pm-section-heading {
    align-items: start;
  }

  .pm-section-heading > button {
    white-space: nowrap;
  }

  .pm-venue-grid,
  .pm-loading-grid {
    display: flex;
    gap: 14px;
    margin-right: -12px;
    padding: 2px 12px 14px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .pm-venue-grid::-webkit-scrollbar,
  .pm-loading-grid::-webkit-scrollbar,
  .pm-open-play-grid::-webkit-scrollbar {
    display: none;
  }

  .pm-venue-card,
  .pm-loading-grid > span {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: start;
  }

  .pm-open-play-section {
    padding-bottom: 12px;
  }

  .pm-open-play-grid {
    display: flex;
    gap: 12px;
    margin-right: -12px;
    padding: 2px 12px 14px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .pm-play-card {
    flex: 0 0 min(88vw, 390px);
    grid-template-columns: 1fr;
    scroll-snap-align: start;
  }

  .pm-play-photo {
    min-height: 190px;
  }

  .pm-play-copy {
    min-height: 230px;
  }

  .pm-open-play-empty {
    flex: 0 0 100%;
  }

  .pm-owner-solutions {
    width: calc(100% - 24px);
    min-height: 0;
    margin-top: 38px;
    padding: 34px 22px 38px;
    border-radius: 22px;
  }

  .pm-owner-copy h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .pm-owner-visual {
    min-height: 315px;
  }

  .pm-owner-browser {
    width: 100%;
  }

  .pm-owner-site-preview {
    min-height: 230px;
  }

  .pm-owner-site-hero {
    min-height: 175px;
    padding: 15px;
  }

  .pm-owner-dashboard {
    width: 70%;
  }

  .pm-how-it-works {
    gap: 24px;
    padding-block: 42px 46px;
  }

  .pm-how-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pm-how-grid article {
    grid-template-columns: 58px 22px minmax(0, 1fr);
    min-height: 78px;
    padding: 0;
  }

  .pm-how-grid article > span {
    width: 58px;
    height: 58px;
    font-size: 25px;
  }

  .pm-how-grid article:not(:last-child)::after {
    top: calc(100% + 4px);
    right: auto;
    left: 28px;
    width: 0;
    height: 14px;
    border-top: 0;
    border-left: 3px dotted rgba(111, 139, 37, .65);
  }

  .pm-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
    padding: 38px 24px 56px;
  }

  .pm-footer-brand,
  .pm-app-links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .pm-footer {
    grid-template-columns: 1fr;
  }

  .pm-footer > div,
  .pm-footer-brand,
  .pm-app-links {
    grid-column: 1;
  }
}

/* -----------------------------------------------------------
   Pickle Mania authenticated experience
   ----------------------------------------------------------- */
@media (max-width: 1180px) {
  body main.player-shell nav.player-topnav.pm-auth-header {
    grid-template-columns: minmax(180px, 1fr) auto minmax(16px, 1fr) auto auto !important;
    padding-inline: 24px !important;
  }

  .pmx-page {
    width: min(100% - 36px, 1180px);
  }

  .pmx-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pmx-recommended-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pmx-find-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .pmx-find-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .pmx-find-photo {
    height: 168px;
  }

  .pmx-court-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body main.player-shell nav.player-topnav.pm-auth-header {
    display: none !important;
  }

  body main.player-shell > section.content {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  body main.player-shell > section.content > header {
    position: sticky;
    z-index: 850;
    top: 0;
    display: flex !important;
    height: 68px;
    margin: 0;
    padding: 9px 16px;
    border-bottom: 1px solid var(--pm-border);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
  }

  .player-shell > .content > header > div:nth-child(2) {
    display: none;
  }

  .player-shell > .content > header .mobile-logo {
    display: block;
  }

  .player-shell > .content > header .mobile-logo .logo {
    color: var(--pm-navy);
    font-size: 17px;
  }

  .player-shell > .content > header .mobile-logo .logo b {
    color: var(--pm-lime-2);
  }

  .player-shell > .content > header .user {
    margin-left: auto;
  }

  .player-shell > .content > header .mobile-menu-toggle {
    display: grid;
  }

  .pmx-page {
    width: min(100% - 28px, 900px);
    padding-top: 18px;
  }

  .pmx-home-intro {
    grid-template-columns: 1fr;
  }

  .pmx-home-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    align-items: center;
  }

  .pmx-home-welcome > p,
  .pmx-home-welcome > h1 {
    grid-column: 1;
  }

  .pmx-nearby-search {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .pmx-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pmx-booking-grid,
  .pmx-play-grid {
    grid-template-columns: 1fr;
  }

  .pmx-find-layout {
    grid-template-columns: 1fr;
  }

  .pmx-map-panel {
    position: static;
    grid-row: 1;
  }

  .pmx-map-art {
    min-height: 300px;
  }

  .pmx-venue-layout,
  .pmx-profile-layout {
    grid-template-columns: 1fr;
  }

  .pmx-venue-layout > aside,
  .pmx-profile-layout > aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pmx-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pmx-page {
    width: min(100% - 20px, 680px);
    padding: 14px 0 34px;
  }

  .pmx-home-welcome {
    display: flex;
  }

  .pmx-nearby-search {
    width: 100%;
  }

  .pmx-home-hero {
    min-height: 220px;
    padding: 28px 22px;
  }

  .pmx-home-hero h2 {
    max-width: 75%;
    font-size: clamp(34px, 10vw, 48px);
  }

  .pmx-home-hero p {
    max-width: 72%;
  }

  .pmx-home-hero::after {
    right: -48px;
    bottom: -54px;
    width: 160px;
  }

  .pmx-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .pmx-action-grid > button {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 94px;
    padding: 12px;
  }

  .pmx-action-grid > button > i {
    width: 42px;
    height: 42px;
  }

  .pmx-action-grid em {
    display: none;
  }

  .pmx-section {
    margin-top: 14px;
    padding: 15px;
  }

  .pmx-section > header {
    align-items: flex-start;
  }

  .pmx-section > header button {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .pmx-booking-row,
  .pmx-play-row {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .pmx-booking-row .pmx-venue-thumb,
  .pmx-play-row .pmx-venue-thumb {
    height: 74px;
  }

  .pmx-recommended-grid {
    grid-template-columns: 1fr;
  }

  .pmx-find-head form {
    grid-template-columns: 1fr 1fr;
  }

  .pmx-find-head form label {
    grid-column: 1 / -1;
  }

  .pmx-find-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .pmx-filters {
    width: 100%;
    overflow-x: auto;
  }

  .pmx-filters select {
    flex: 0 0 auto;
  }

  .pmx-map-panel {
    display: none;
  }

  .pmx-find-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 11px;
    padding: 9px;
  }

  .pmx-find-photo {
    height: 124px;
  }

  .pmx-find-copy > p,
  .pmx-find-meta,
  .pmx-find-card .pmx-chips {
    font-size: 9px;
  }

  .pmx-find-card .pmx-chips {
    display: none;
  }

  .pmx-find-foot {
    gap: 5px;
  }

  .pmx-find-foot > span {
    display: none;
  }

  .pmx-find-foot .pmx-button {
    min-height: 32px;
    padding: 4px 12px;
  }

  .pmx-venue-cover {
    min-height: 175px;
  }

  .pmx-venue-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }

  .pmx-venue-logo {
    width: 94px;
    height: 94px;
    flex-basis: 94px;
    margin-top: -58px;
    border-width: 5px;
    font-size: 20px;
  }

  .pmx-venue-identity h1 {
    font-size: 25px;
  }

  .pmx-venue-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .pmx-venue-actions .pmx-button:first-child {
    grid-column: 1 / -1;
  }

  .pmx-venue-tabs,
  .pmx-profile-tabs {
    gap: 24px;
    padding-inline: 10px;
  }

  .pmx-venue-layout > aside,
  .pmx-profile-layout > aside {
    grid-template-columns: 1fr;
  }

  .pmx-court-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .pmx-court-grid article {
    min-width: 210px;
    scroll-snap-align: start;
  }

  .pmx-booking-embed {
    margin-inline: -10px;
  }

  .pmx-booking-embed .swipe-date-shell {
    padding-inline: 8px;
    position: sticky;
    top: 6px;
    z-index: 30;
    background: #fff;
}

  .pmx-profile-hero {
    align-items: flex-start;
    min-height: 250px;
    gap: 16px;
    padding: 20px;
  }

  .pmx-profile-photo {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
    border-width: 5px;
    font-size: 24px;
  }

  .pmx-profile-hero h1 {
    font-size: 25px;
  }

  .pmx-profile-details {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pmx-profile-hero .pmx-button {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .pmx-profile-tags {
    right: 20px;
    bottom: 14px;
    left: 20px;
  }

  .pmx-stat-grid {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 8px;
    margin-inline: 0;
    overflow-x: auto;
  }

  .pmx-stat-grid article {
    min-width: 110px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pmx-ranking-soon {
    align-items: flex-start;
    padding: 18px;
  }

  .mobile-nav {
    z-index: 930;
    height: calc(68px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--pm-border);
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 30px rgba(4,27,58,.08);
  }

  .mobile-nav button {
    color: #54677f;
    font-size: 18px;
  }

  .mobile-nav button.active {
    color: #79ad00;
  }

  .mobile-nav small {
    font-size: 8px;
    font-weight: 750;
  }
}

@media (max-width: 430px) {
  .pmx-page {
    width: calc(100% - 16px);
  }

  .pmx-nearby-search > div {
    grid-template-columns: 1fr 1fr;
  }

  .pmx-home-hero h2 {
    max-width: 83%;
    font-size: 34px;
  }

  .pmx-action-grid b {
    font-size: 12px;
  }

  .pmx-action-grid small {
    font-size: 9px;
  }

  .pmx-booking-row,
  .pmx-play-row {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }

  .pmx-booking-row .pmx-venue-thumb,
  .pmx-play-row .pmx-venue-thumb {
    height: 68px;
  }

  .pmx-find-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .pmx-find-photo {
    height: 112px;
  }

  .pmx-find-title h3 {
    font-size: 14px;
  }

  .pmx-find-copy > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .pmx-profile-hero {
    gap: 12px;
    padding: 16px;
  }

  .pmx-profile-photo {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }
}

/* Landing header overlays the hero on tablet/mobile too. Keep hero copy clear
   of the 70px compact header while preserving the edge-to-edge background. */
@media (max-width: 980px) {
  .pm-public-header-landing + main .pm-hero-copy {
    padding-top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-public-header,
  .pm-public-header-landing .pm-brand-copy strong,
  .pm-public-header-landing nav button,
  .pm-public-header-landing .pm-button-outline,
  .pm-public-header-landing .pm-mobile-login {
    transition: none;
  }
}

/* =========================================================
   PM_CANONICAL_VENUE_RESPONSIVE_V1_START
   ========================================================= */

@media (max-width: 1050px) {

    .pmx-vp2 {
        width: min(
            100% - 36px,
            1320px
        );
    }

    .pmx-vp2-about-grid {
        grid-template-columns: 1fr;
    }

    .pmx-vp2-about-copy,
    .pmx-vp2-gallery-card,
    .pmx-vp2-map-card {
        grid-column: auto;
    }

    .pmx-vp2-session-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }
}


@media (max-width: 760px) {

    .pmx-vp2 {
        width: calc(100% - 20px);
        margin-top: 10px;
        margin-bottom: 36px;
    }

    .pmx-vp2-page {
        border-radius: 14px;
    }

    .pmx-vp2-cover {
        min-height: 205px;
    }

    .pmx-vp2-identity {
        display: grid;
        grid-template-columns: 88px minmax(0,1fr) auto;
        align-items: end;
        gap: 13px;
        min-height: 106px;
        padding: 0 16px 18px;
    }

    .pmx-vp2-logo-wrap {
        margin-top: -38px;
    }

    .pmx-vp2-logo {
        width: 88px;
        height: 88px;
        border-width: 4px;
        border-radius: 18px;
    }

    .pmx-vp2-logo-fallback {
        font-size: 21px;
    }

    .pmx-vp2-name h1 {
        font-size: 24px;
    }

    .pmx-vp2-name > p {
        font-size: 14px;
    }

    .pmx-vp2-meta {
        grid-column: 1 / -1;
        gap: 6px 12px;
        font-size: 12px;
    }

    .pmx-vp2-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pmx-vp2-tabs::-webkit-scrollbar {
        display: none;
    }

    .pmx-vp2-tabs button {
        flex: 0 0 auto;
        padding: 14px 19px 13px;
        white-space: nowrap;
    }

    .pmx-vp2-content,
    .pmx-vp2-content-book {
        padding: 14px;
    }

    .pmx-vp2-card {
        padding: 16px;
    }

    .pmx-vp2-gallery {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .pmx-vp2-session-grid {
        grid-template-columns: 1fr;
    }

    .pmx-vp2-map-card iframe {
        height: 240px;
    }
}


@media (max-width: 420px) {

    .pmx-vp2 {
        width: calc(100% - 12px);
    }

    .pmx-vp2-cover {
        min-height: 175px;
    }

    .pmx-vp2-identity {
        grid-template-columns: 74px minmax(0,1fr) auto;
        padding-inline: 12px;
    }

    .pmx-vp2-logo {
        width: 74px;
        height: 74px;
        border-radius: 16px;
    }

    .pmx-vp2-name h1 {
        font-size: 21px;
    }

    .pmx-vp2-content,
    .pmx-vp2-content-book {
        padding: 10px;
    }
}



@media (max-width: 760px) {

    

    

    

    .pmx-vp2-meta-actions {
        align-self: end;
        justify-items: end;
        gap: 7px;
        margin-left: 0;
    }

    .pmx-vp2-hourly-rate {
        font-size: 14px;
    }

    .pmx-vp2-meta-actions .pmx-vp2-share-icon {
        width: 40px;
        height: 40px;
    }
}


@media (max-width: 420px) {

    

    

    .pmx-vp2-hourly-rate {
        font-size: 13px;
    }
}







/* PM_ATVENUE_EXACT_LANDING_HEADER_RESPONSIVE_V31 */

@media (max-width: 760px) {

    /*
     * Landing normally hides .pm-header-actions and
     * swaps to .pm-mobile-login.
     *
     * @venue has only Login, or My Bookings + Sign Out,
     * so keep the exact landing CTA buttons visible.
     */
    .pm-atvenue-shared-header .pm-header-actions {
        display: flex;
    }

    .pm-atvenue-shared-header nav {
        display: none;
    }
}

/* PM_ATVENUE_EXACT_LANDING_HEADER_RESPONSIVE_V31_END */

/* PM_CANONICAL_VENUE_RESPONSIVE_V1_END */


