/* Petline temporary care directory — staging */
:root {
  --pl-primary: #1f6b5c;
  --pl-primary-dark: #164f44;
  --pl-primary-soft: #e6f2ef;
  --pl-accent: #e07a4a;
  --pl-bg: #f3f6f5;
  --pl-text: #1c2b28;
  --pl-muted: #5c6b67;
  --pl-border: #dde5e2;
  --pl-font: "Noto Sans Georgian", "Noto Sans", system-ui, sans-serif;
  --pl-radius: 16px;
  --pl-focus: 0 0 0 3px rgba(31,107,92,.35);
  --pl-wrap: min(1180px, calc(100% - 1.5rem));
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0; font-family: var(--pl-font); color: var(--pl-text); line-height: 1.5;
  background: radial-gradient(900px 420px at 10% -10%, #d9ebe6 0, transparent 55%), var(--pl-bg);
}
a { color: var(--pl-primary); }
:focus-visible { outline: none; box-shadow: var(--pl-focus); }
.wrap { width: var(--pl-wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 44px; padding: .55rem 1rem; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: none;
}
.btn-primary { background: var(--pl-primary); color: #fff; }
.btn-secondary { background: #fff; color: var(--pl-text); border-color: var(--pl-border); }
.btn-compact { min-height: 38px; padding: .35rem .7rem; font-size: .88rem; }
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--pl-border); backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo img { height: 44px; width: auto; }
.header-actions { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.staging-pill { font-size: .65rem; font-weight: 800; background: #f0e6d6; color: #6a4a12; padding: .2rem .45rem; border-radius: 6px; }
.breadcrumb { padding: 1rem 0 .25rem; font-size: .9rem; color: var(--pl-muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #b7c4bf; }
.hero-compact { padding: .6rem 0 1rem; }
.hero-compact h1 { margin: 0 0 .35rem; font-size: clamp(1.4rem, 3vw, 1.95rem); }
.hero-compact p { margin: 0; color: var(--pl-muted); max-width: 58ch; }

.quick-pills {
  display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .35rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.pill {
  flex: 0 0 auto; border: 1px solid var(--pl-border); background: #fff; border-radius: 999px;
  min-height: 40px; padding: .35rem .85rem; font: inherit; font-weight: 700; cursor: pointer;
}
.pill[aria-pressed="true"] { background: var(--pl-primary); color: #fff; border-color: var(--pl-primary); }

.toolbar { display: grid; gap: .55rem; grid-template-columns: 1fr auto; align-items: center; margin: .85rem 0; }
@media (min-width: 900px) { .toolbar { grid-template-columns: 1fr auto auto auto; } }
.field input, .field select {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--pl-border);
  background: #fff; padding: .45rem .7rem; font: inherit;
}
.filter-count {
  display: none; min-width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 999px;
  background: var(--pl-primary); color: #fff; font-size: .72rem; font-weight: 800; margin-left: .25rem;
}
.filter-count:not(:empty) { display: inline-grid; }
.desktop-only { display: none; }
@media (min-width: 900px) { .desktop-only { display: block; } .mobile-only { display: none; } }

.view-toggle { display: flex; gap: .35rem; }
.result-meta { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: 0 0 .75rem; color: var(--pl-muted); font-weight: 600; }
.home-cats { display: grid; gap: .55rem; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0 0 1.1rem; }
@media (min-width: 760px) { .home-cats { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.home-cat {
  display: grid; gap: .3rem; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--pl-border); border-radius: 14px; padding: .55rem; font-weight: 700; font-size: .84rem;
}
.home-cat span { display: block; height: 52px; border-radius: 10px; }
.home-cat .v-hotels { background: linear-gradient(145deg,#1f6b5c,#3d9a86); }
.home-cat .v-day { background: linear-gradient(145deg,#c07a3a,#e0a86a); }
.home-cat .v-cat { background: linear-gradient(145deg,#3a5a7a,#6a90b4); }
.home-cat .v-sit { background: linear-gradient(145deg,#7a5a4a,#b08a72); }
.home-cat .v-home { background: linear-gradient(145deg,#4a6a3a,#7aaa5a); }
.home-cat .v-tax { background: linear-gradient(145deg,#2a7a8a,#5cb4c4); }

.state-panel[hidden], .state-panel[aria-hidden="true"]:not(.is-active) { display: none !important; }
.state-panel.is-active { display: block; }
#state-empty, #state-error {
  text-align: center; padding: 2rem 1rem; background: #fff; border: 1px dashed var(--pl-border); border-radius: var(--pl-radius);
}
.tc-grid { display: grid; gap: .85rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .tc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.tc-card {
  background: #fff; border: 1px solid var(--pl-border); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 100%; box-shadow: 0 2px 10px rgba(28,43,40,.05);
}
.tc-card.is-sponsored { border-color: #e0c9a8; }
.tc-visual { height: 140px; }
.tc-card--hotel .tc-visual { background: linear-gradient(145deg,#1f6b5c,#3d9a86); }
.tc-card--cat_hotel .tc-visual { background: linear-gradient(145deg,#3a5a7a,#6a90b4); }
.tc-card--sitter .tc-visual { background: linear-gradient(145deg,#7a5a4a,#b08a72); }
.tc-card--vet .tc-visual { background: linear-gradient(145deg,#4a5a8a,#7a8abc); }
.tc-card--transport .tc-visual { background: linear-gradient(145deg,#2a7a8a,#5cb4c4); }
.tc-body { padding: .9rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.tc-body h3 { margin: 0; font-size: 1.05rem; }
.tc-meta { color: var(--pl-muted); font-size: .86rem; }
.tc-badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.badge { font-size: .66rem; font-weight: 800; border-radius: 999px; padding: .18rem .45rem; border: 1px solid var(--pl-border); background: #fff; }
.badge-ge { background: var(--pl-primary-soft); color: var(--pl-primary-dark); border-color: #cfe3dd; }
.badge-ad { background: #fff6e8; color: #7a4a12; border-color: #edd4b0; }
.badge-vet { background: #eef2ff; color: #334; }
.price { font-weight: 800; color: var(--pl-primary-dark); }
.tc-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .55rem; }
.tc-actions .btn { min-height: 40px; font-size: .82rem; }

.skel-card { min-height: 280px; border-radius: 16px; background: #fff; border: 1px solid var(--pl-border); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .65; } }

#map-wrap.is-map-mode { margin-bottom: 1rem; }
#map-panel { height: 240px; border-radius: 16px; overflow: hidden; border: 1px solid var(--pl-border); margin-bottom: 1rem; }
@media (min-width: 768px) { #map-panel { height: 320px; } }
@media (min-width: 1024px) { #map-panel { height: 420px; } }
.map-note { font-size: .85rem; color: var(--pl-muted); margin: 0 0 .65rem; }
body.is-map-view #provider-grid { display: none; }
body.is-map-view #state-ready .ad-slot { display: none; }

.filter-drawer { position: fixed; inset: 0; z-index: 60; }
.filter-drawer[hidden] { display: none !important; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20,30,28,.45); }
.drawer-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; background: #fff;
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
}
@media (min-width: 900px) {
  #filter-drawer,
  #filter-drawer[hidden] {
    display: block !important;
    position: static;
    z-index: auto;
  }
  #filter-drawer .drawer-scrim,
  #filter-drawer .drawer-head,
  #filter-drawer .drawer-foot { display: none; }
  #filter-drawer .drawer-sheet {
    position: static; max-height: none; border-radius: 16px;
    border: 1px solid var(--pl-border); margin: 0 0 1rem;
  }
  #filter-drawer .drawer-body { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #filter-drawer .toggles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; }
}
.drawer-head, .drawer-foot { display: flex; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--pl-border); }
.drawer-foot { border-bottom: 0; border-top: 1px solid var(--pl-border); }
.drawer-body { overflow: auto; padding: 1rem; display: grid; gap: .75rem; }
.toggles label { display: flex; gap: .4rem; align-items: center; font-weight: 700; }

.profile-grid { display: grid; gap: 1.1rem; padding-bottom: 2rem; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1.3fr .8fr; } }
.panel { background: #fff; border: 1px solid var(--pl-border); border-radius: 16px; padding: 1.1rem; }
.specs { display: grid; gap: .45rem; }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: .5rem; font-size: .92rem; }
.specs .k { color: var(--pl-muted); font-weight: 700; }
.form-error { background: #fff1f0; border: 1px solid #f0c4c0; border-radius: 12px; padding: .8rem 1rem; color: #7a2e2a; }
.form-error[hidden] { display: none !important; }
.form-grid { display: grid; gap: .75rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 600; }

.ad-slot { margin: 0 0 .85rem; padding: .85rem 1rem; border-radius: 12px; border: 1px dashed #e0c9a8; background: #fffaf3; }
.ad-label { display: inline-block; font-size: .68rem; font-weight: 800; border: 1px solid #e0c9a8; border-radius: 999px; padding: .15rem .45rem; color: #7a4a12; }
.ad-slot[hidden] { display: none !important; }

.carousel-shell { position: relative; }
.carousel-track {
  display: flex; gap: .85rem; overflow-x: auto; padding-bottom: .4rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.carousel-track > * { flex: 0 0 min(78%, 260px); scroll-snap-align: start; }
@media (min-width: 760px) { .carousel-track > * { flex-basis: min(42%, 280px); } }
@media (min-width: 1024px) { .carousel-track > * { flex-basis: min(23%, 260px); } }
.carousel-nav {
  position: absolute; top: 40%; z-index: 2; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--pl-border); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.carousel-nav svg { width: 18px; height: 18px; display: block; }
.carousel-nav.prev { left: -8px; }
.carousel-nav.next { right: -8px; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1rem; }
.section-head h2 { margin: 0 0 .35rem; }
.section-head p { margin: 0; color: var(--pl-muted); max-width: 52ch; }
.module-chips { display: flex; gap: .45rem; overflow-x: auto; margin-bottom: 1rem; }
.module-states [data-state][hidden] { display: none !important; }
.skeleton-card { min-height: 220px; flex: 0 0 240px; border-radius: 16px; background: #fff; border: 1px solid var(--pl-border); animation: pulse 1.2s ease-in-out infinite; }

.admin-filters { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 1.25rem; }
.admin-filters label { font-weight: 700; font-size: .9rem; }
.profile-grid h2 { font-size: 1.05rem; margin: 1.1rem 0 .35rem; }
.tc-card--sitter .tc-visual { background: linear-gradient(145deg,#7a5a4a,#b08a72); }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--pl-border); padding: .55rem .65rem; text-align: left; font-size: .84rem; vertical-align: top; }
.admin-table th { background: var(--pl-primary-soft); }

.site-footer { margin-top: 1.5rem; padding: 2rem 0 1.5rem; border-top: 1px solid var(--pl-border); color: var(--pl-muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-list a { color: inherit; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 1.25rem; padding-top: .85rem; border-top: 1px solid var(--pl-border); font-size: .82rem; }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
