
/* ==========================================================================
   Parkify — Parking Marketplace Enterprise Layout
   File: assets/css/pages/parkingjet-enterprise.css
   Purpose: Complete responsive styling for parkingjet.php
   Notes:
   - Keeps existing PHP/HTML classes unchanged
   - Compatible with dropdowns.css / dropdowns.js
   - Responsive from 320px to 4K
   ========================================================================== */

:root {
  --pm-bg: #07111f;
  --pm-bg-deep: #050d18;
  --pm-surface: #0b1727;
  --pm-surface-2: #0f1d31;
  --pm-surface-3: #13243b;
  --pm-line: rgba(148, 163, 184, .16);
  --pm-line-strong: rgba(148, 163, 184, .26);
  --pm-text: #f8fafc;
  --pm-text-soft: #dbeafe;
  --pm-muted: #94a3b8;
  --pm-faint: #64748b;
  --pm-green: #10b981;
  --pm-green-soft: #6ee7b7;
  --pm-cyan: #06b6d4;
  --pm-blue: #3b82f6;
  --pm-danger: #ef4444;
  --pm-warning: #f59e0b;
  --pm-radius-sm: 10px;
  --pm-radius-md: 14px;
  --pm-radius-lg: 18px;
  --pm-radius-xl: 22px;
  --pm-shadow-sm: 0 8px 24px rgba(0, 0, 0, .16);
  --pm-shadow-md: 0 18px 50px rgba(0, 0, 0, .24);
  --pm-ease: cubic-bezier(.2, 0, 0, 1);
}

/* ==========================================================================
   1. Page foundation
   ========================================================================== */

body.pf-parking-market-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(16, 185, 129, .10), transparent 28rem),
    radial-gradient(circle at 92% 0%, rgba(59, 130, 246, .12), transparent 34rem),
    linear-gradient(180deg, var(--pm-bg-deep), var(--pm-bg) 42%, #081523 100%);
}

.pm-page,
.pm-page * {
  box-sizing: border-box;
}

.pm-page {
  position: relative;
  min-width: 0;
  color: var(--pm-text);
}

.pm-shell {
  width: min(calc(100% - clamp(1rem, 3vw, 3rem)), 1760px);
  margin-inline: auto;
}

.pm-hero {
  padding: 1.25rem 0 .9rem;
}

.pm-main {
  padding: 0 0 clamp(3rem, 5vw, 5rem);
}

/* ==========================================================================
   2. Hero
   ========================================================================== */

.pm-hero-card {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3.25rem);
  align-items: center;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 42%),
    var(--pm-surface);
  box-shadow: var(--pm-shadow-sm);
  overflow: visible;
}

.pm-hero-content {
  display: grid;
  align-content: center;
  gap: .55rem;
  min-width: 0;
  padding-right: clamp(0rem, 1vw, 1rem);
  border-right: 1px solid var(--pm-line);
}

.pm-eyebrow {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: max-content;
  max-width: 100%;
  color: var(--pm-green-soft);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pm-eyebrow i {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--pm-green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .10);
}

.pm-hero h1 {
  order: 1;
  max-width: 330px;
  margin: 0;
  color: var(--pm-text);
  font-size: clamp(2rem, 2.4vw, 3.15rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.pm-hero p {
  order: 3;
  max-width: 34rem;
  margin: .25rem 0 0;
  color: var(--pm-muted);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Search area */
.pm-searchbar {
  display: grid;
  grid-template-columns:
    minmax(300px, 1fr)
    minmax(190px, 230px)
    minmax(140px, 170px)
    minmax(96px, 110px);
  gap: .75rem;
  align-items: center;
  align-self: end;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
}

.pm-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  min-width: 0;
  min-height: 46px;
  padding: 0 .8rem;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius-sm);
  background: #091625;
  transition:
    border-color .18s var(--pm-ease),
    background .18s var(--pm-ease),
    box-shadow .18s var(--pm-ease);
}

.pm-search-field:focus-within {
  border-color: rgba(16, 185, 129, .55);
  background: #0b192a;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .10);
}

.pm-search-field > span {
  color: var(--pm-muted);
  font-size: .9rem;
  line-height: 1;
}

.pm-search-field input,
.pm-search-field select,
.pm-field input,
.pm-field select,
.pm-toolbar select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pm-text);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
}

.pm-search-field input::placeholder {
  color: var(--pm-faint);
}

.pm-search-field option,
.pm-field option,
.pm-toolbar option {
  color: #fff;
  background: #0b1727;
}

.pm-searchbar button,
.pm-apply,
.pm-card-bottom a,
.pm-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-height: 46px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--pm-radius-sm);
  background: linear-gradient(135deg, var(--pm-green), var(--pm-blue));
  color: #fff;
  box-shadow: none;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform .18s var(--pm-ease),
    filter .18s var(--pm-ease),
    box-shadow .18s var(--pm-ease);
}

.pm-searchbar button:hover,
.pm-apply:hover,
.pm-card-bottom a:hover,
.pm-empty a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(16, 185, 129, .18);
}

.pm-quick-row {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-top: -2.8rem;
  padding-left: 0;
  pointer-events: auto;
}

.pm-quick-row a,
.pm-chips a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 30px;
  padding: 0 .68rem;
  border: 1px solid rgba(16, 185, 129, .22);
  border-radius: 999px;
  background: rgba(16, 185, 129, .08);
  color: var(--pm-green-soft);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background .18s var(--pm-ease),
    border-color .18s var(--pm-ease),
    color .18s var(--pm-ease);
}

.pm-quick-row a:hover,
.pm-chips a:hover {
  border-color: rgba(16, 185, 129, .40);
  background: rgba(16, 185, 129, .14);
  color: #fff;
}

/* ==========================================================================
   3. Stats
   ========================================================================== */

.pm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 .9rem;
}

.pm-stats article {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius-md);
  background: var(--pm-surface);
}

.pm-stats strong,
.pm-stats span {
  display: block;
}

.pm-stats strong {
  color: var(--pm-text);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.pm-stats span {
  margin-top: .3rem;
  color: var(--pm-muted);
  font-size: .76rem;
  font-weight: 600;
}

/* ==========================================================================
   4. Main layout
   ========================================================================== */

.pm-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
}

.pm-filters {
  position: sticky;
  top: calc(var(--pf-navbar-height, 76px) + .75rem);
  max-height: calc(100vh - var(--pf-navbar-height, 76px) - 1.5rem);
  overflow: auto;
  padding: .95rem;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius-md);
  background: #091625;
  box-shadow: var(--pm-shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .25) transparent;
}

.pm-filters::-webkit-scrollbar {
  width: 8px;
}

.pm-filters::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, .25);
}

/* ==========================================================================
   5. Filters
   ========================================================================== */

.pm-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.pm-filter-head span,
.pm-toolbar span {
  display: block;
  color: var(--pm-green-soft);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pm-filter-head strong {
  display: block;
  margin-top: .18rem;
  color: var(--pm-text);
  font-size: 1.06rem;
  font-weight: 800;
}

.pm-filter-head a {
  color: #67e8f9;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}

.pm-filter-form {
  display: grid;
  gap: .72rem;
}

.pm-field {
  display: grid;
  gap: .35rem;
}

.pm-field > span {
  color: var(--pm-muted);
  font-size: .74rem;
  font-weight: 700;
}

.pm-field input,
.pm-field select,
.pm-toolbar select {
  min-height: 42px;
  padding: 0 .75rem;
  border: 1px solid var(--pm-line);
  border-radius: 9px;
  background: var(--pm-surface-2);
}

.pm-field input:focus,
.pm-field select:focus,
.pm-toolbar select:focus {
  border-color: rgba(16, 185, 129, .55);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .10);
}

.pm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}

.pm-feature-list {
  display: grid;
  gap: .4rem;
}

.pm-feature {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .42rem .52rem;
  border: 1px solid var(--pm-line);
  border-radius: 10px;
  background: var(--pm-surface-2);
  cursor: pointer;
  transition:
    background .18s var(--pm-ease),
    border-color .18s var(--pm-ease);
}

.pm-feature:hover {
  border-color: var(--pm-line-strong);
  background: var(--pm-surface-3);
}

.pm-feature input {
  display: none;
}

.pm-feature span {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, .12);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 800;
}

.pm-feature strong {
  color: var(--pm-text-soft);
  font-size: .78rem;
  font-weight: 700;
}

.pm-feature em {
  color: var(--pm-faint);
  font-size: .7rem;
  font-style: normal;
  font-weight: 700;
}

.pm-feature.is-checked {
  border-color: rgba(16, 185, 129, .32);
  background: rgba(16, 185, 129, .08);
}

.pm-apply {
  width: 100%;
  min-height: 42px;
  max-height: 42px;
}

/* ==========================================================================
   6. Results toolbar
   ========================================================================== */

.pm-results {
  min-width: 0;
}

.pm-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
  padding: .95rem 1rem;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius-md);
  background: #091625;
}

.pm-toolbar h2 {
  margin: .18rem 0 0;
  color: var(--pm-text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.pm-toolbar p {
  margin: .26rem 0 0;
  color: var(--pm-muted);
  font-size: .82rem;
  font-weight: 500;
}

.pm-toolbar-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.pm-toolbar-actions form {
  min-width: 170px;
}

.pm-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 .85rem;
  border: 1px solid var(--pm-line);
  border-radius: 9px;
  background: var(--pm-surface-2);
  color: var(--pm-text);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
}

.pm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .8rem;
}

.pm-chips span {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.pm-alert {
  margin-bottom: .8rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(239, 68, 68, .30);
  border-radius: 12px;
  background: rgba(239, 68, 68, .08);
  color: #fecaca;
}

/* ==========================================================================
   7. Empty state
   ========================================================================== */

.pm-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 1.25rem;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius-md);
  background: var(--pm-surface);
  text-align: center;
}

.pm-empty span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pm-green), var(--pm-blue));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.pm-empty strong {
  color: var(--pm-text);
  font-size: 1.25rem;
  font-weight: 800;
}

.pm-empty p {
  max-width: 560px;
  margin: 0;
  color: var(--pm-muted);
  line-height: 1.55;
}

.pm-empty a {
  min-height: 42px;
  max-height: 42px;
}

/* ==========================================================================
   8. Parking grid and cards
   ========================================================================== */

.pm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.pm-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius-md);
  background: var(--pm-surface);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
  overflow: hidden;
  transition:
    transform .18s var(--pm-ease),
    border-color .18s var(--pm-ease),
    background .18s var(--pm-ease),
    box-shadow .18s var(--pm-ease);
}

.pm-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, .30);
  background: var(--pm-surface-2);
  box-shadow: var(--pm-shadow-md);
}

.pm-card-media {
  position: relative;
  display: block;
  height: clamp(180px, 14vw, 230px);
  overflow: hidden;
  background: #111827;
  text-decoration: none;
}

.pm-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.60));
  pointer-events: none;
}

.pm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
  transition: transform .25s var(--pm-ease);
}

.pm-card:hover .pm-card-media img {
  transform: scale(1.025);
}

.pm-live,
.pm-price {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 .62rem;
  border-radius: 999px;
  color: #fff;
  font-size: .71rem;
  font-weight: 800;
  white-space: nowrap;
}

.pm-live {
  top: .65rem;
  left: .65rem;
  background: rgba(16, 185, 129, .90);
}

.pm-live--busy {
  background: rgba(245, 158, 11, .92);
}

.pm-live--full,
.pm-live--unavailable {
  background: rgba(239, 68, 68, .92);
}

.pm-price {
  right: .65rem;
  bottom: .65rem;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(7, 18, 31, .90);
}

.pm-card-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: .72rem;
  min-width: 0;
  padding: .85rem;
}

.pm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
  min-width: 0;
}

.pm-card-head > div {
  min-width: 0;
}

.pm-card-title {
  display: block;
  color: var(--pm-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.02em;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-card-head span {
  display: block;
  margin-top: .2rem;
  color: var(--pm-muted);
  font-size: .75rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-heart {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--pm-line);
  border-radius: 9px;
  background: #0a1727;
  color: var(--pm-muted);
  cursor: pointer;
}

.pm-heart:hover {
  color: #fff;
  border-color: rgba(239, 68, 68, .28);
  background: rgba(239, 68, 68, .12);
}

.pm-heart.is-active {
  color: #fff;
  border-color: rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .20);
}

.pm-card-score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.pm-card-score span {
  min-width: 0;
  padding: .55rem;
  border: 1px solid var(--pm-line);
  border-radius: 9px;
  background: #0a1727;
  color: var(--pm-muted);
  font-size: .71rem;
  font-weight: 600;
}

.pm-card-score strong {
  display: block;
  color: var(--pm-text);
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.1;
}

.pm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.pm-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--pm-muted);
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}

.pm-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  gap: .65rem;
  min-width: 0;
}

.pm-card-bottom small {
  min-width: 0;
  color: var(--pm-muted);
  font-size: .71rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-card-bottom a {
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  max-height: 38px;
  padding: 0 .9rem;
  border-radius: 9px;
  font-size: .78rem;
}

/* ==========================================================================
   9. Pagination
   ========================================================================== */

.pf-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .8rem;
  padding: .8rem;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius-md);
  background: #091625;
}

.pf-pagination__meta {
  color: var(--pm-muted);
  font-size: .8rem;
  font-weight: 600;
}

.pf-pagination__links {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.pf-pagination__btn,
.pf-pagination__page,
.pf-pagination__ellipsis {
  display: grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--pm-line);
  border-radius: 8px;
  background: var(--pm-surface-2);
  color: var(--pm-text);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.pf-pagination__page.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pm-green), var(--pm-blue));
}

.pf-pagination__btn.is-disabled {
  opacity: .35;
}

.pm-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(3px);
}

/* ==========================================================================
   10. Dropdown compatibility
   ========================================================================== */

.pm-page .pf-select {
  min-width: 0;
}

.pm-page .pf-select__trigger {
  min-height: 42px;
  border-radius: 9px;
}

.pm-searchbar .pf-select__trigger {
  min-height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pm-searchbar .pf-select {
  width: 100%;
}

.pm-toolbar-actions .pf-select {
  min-width: 170px;
}

/* ==========================================================================
   11. Responsive — 4K / ultrawide
   ========================================================================== */

@media (min-width: 2200px) {
  .pm-shell {
    max-width: 1960px;
  }

  .pm-layout {
    grid-template-columns: 310px minmax(0, 1fr);
  }

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

  .pm-card-media {
    height: 240px;
  }
}

/* ==========================================================================
   12. Responsive — desktop/laptop
   ========================================================================== */

@media (max-width: 1600px) {
  .pm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1320px) {
  .pm-hero-card {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .pm-searchbar {
    grid-template-columns: minmax(240px, 1fr) minmax(170px, 210px) minmax(130px, 150px) 96px;
  }

  .pm-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

@media (max-width: 1120px) {
  .pm-hero-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pm-hero-content {
    padding-right: 0;
    padding-bottom: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--pm-line);
  }

  .pm-hero h1 {
    max-width: 640px;
  }

  .pm-searchbar {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) minmax(140px, 170px) 100px;
  }

  .pm-quick-row {
    grid-column: 1;
    margin-top: 0;
  }

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

  .pm-filters {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: min(88vw, 380px);
    height: 100vh;
    max-height: none;
    border-radius: 0 var(--pm-radius-lg) var(--pm-radius-lg) 0;
    transform: translateX(-105%);
    transition: transform .22s var(--pm-ease);
  }

  .is-filter-open {
    overflow: hidden;
  }

  .is-filter-open .pm-filters {
    transform: translateX(0);
  }

  .is-filter-open .pm-backdrop {
    display: block;
  }

  .pm-filter-toggle {
    display: inline-flex;
  }
}

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

  .pm-search-field--main {
    grid-column: 1 / -1;
  }

  .pm-searchbar button {
    grid-column: 2;
  }

  .pm-quick-row {
    margin-top: 0;
  }

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

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

/* ==========================================================================
   13. Responsive — tablets and phones
   ========================================================================== */

@media (max-width: 700px) {
  .pm-shell {
    width: min(calc(100% - .8rem), 100%);
  }

  .pm-hero {
    padding-top: .75rem;
  }

  .pm-hero-card {
    padding: 1rem;
    border-radius: var(--pm-radius-lg);
  }

  .pm-hero h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    line-height: 1.02;
  }

  .pm-hero p {
    font-size: .86rem;
  }

  .pm-searchbar {
    grid-template-columns: 1fr;
    gap: .6rem;
  }

  .pm-search-field--main,
  .pm-searchbar button {
    grid-column: auto;
  }

  .pm-searchbar button {
    width: 100%;
    min-height: 46px;
    max-height: 46px;
  }

  .pm-quick-row {
    grid-column: auto;
    margin-top: 0;
  }

  .pm-toolbar {
    flex-direction: column;
  }

  .pm-toolbar-actions,
  .pm-toolbar-actions form,
  .pm-toolbar-actions .pf-select,
  .pm-toolbar select {
    width: 100%;
    min-width: 0;
  }

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

  .pm-card-media {
    height: 220px;
  }

  .pf-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pm-shell {
    width: min(calc(100% - .6rem), 100%);
  }

  .pm-hero-card,
  .pm-stats article,
  .pm-toolbar,
  .pm-card,
  .pf-pagination {
    border-radius: 12px;
  }

  .pm-stats {
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }

  .pm-stats article {
    padding: .8rem;
  }

  .pm-stats strong {
    font-size: 1.35rem;
  }

  .pm-card-media {
    height: 210px;
  }

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

  .pm-card-bottom {
    flex-direction: row;
    align-items: center;
  }

  .pm-card-bottom a {
    width: auto;
    min-width: 88px;
    min-height: 38px;
    max-height: 38px;
    padding-inline: .8rem;
  }

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

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

  .pm-card-media {
    height: 195px;
  }

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

  .pm-card-bottom {
    gap: .45rem;
  }

  .pm-card-bottom small {
    font-size: .68rem;
  }

  .pm-card-bottom a {
    min-width: 82px;
    padding-inline: .7rem;
  }

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

/* ==========================================================================
   14. Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .pm-page *,
  .pm-page *::before,
  .pm-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body.pf-parking-market-page {
    background: #fff !important;
  }

  .pm-filters,
  .pm-searchbar,
  .pm-quick-row,
  .pm-heart,
  .pm-card-bottom a,
  .pf-pagination {
    display: none !important;
  }

  .pm-page {
    color: #000;
  }

  .pm-shell {
    width: 100%;
  }

  .pm-layout,
  .pm-grid {
    display: block;
  }

  .pm-card {
    margin-bottom: 1rem;
    break-inside: avoid;
  }
}