:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --ink: #16232f;
  --muted: #647381;
  --line: #dce7e8;
  --blue: #138bd2;
  --blue-2: #49b5e7;
  --teal: #158f8b;
  --green: #4f9e63;
  --red: #d94b42;
  --yellow: #f3c854;
  --shadow: 0 16px 42px rgba(21, 42, 54, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}

.brand {
  font-size: 24px;
}

.brand-logo {
  display: block;
  width: clamp(190px, 20vw, 248px);
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
}

nav {
  gap: 22px;
  color: var(--muted);
}

.directory-app {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(420px, 1fr) minmax(320px, 420px);
  gap: 22px;
  min-height: calc(100vh - 72px);
  padding: 22px;
}

.filter-rail,
.directory-main,
.map-panel,
.panel,
.summary-card,
.metric,
.shop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filter-rail,
.directory-main,
.map-panel {
  align-self: start;
  min-height: calc(100vh - 116px);
  padding: 24px;
}

.filter-rail h1 {
  margin: 0 0 24px;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: 0;
}

.filter-form,
.stack,
.trust-note {
  display: grid;
  gap: 16px;
}

label,
legend {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5e0e3;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(19, 139, 210, 0.12);
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  border: 0;
  border-radius: 8px;
  font-weight: 820;
  cursor: pointer;
}

.button.secondary,
.icon-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.icon-button.primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.button.danger {
  background: var(--red);
}

.messenger-cta {
  margin-top: 14px;
  min-height: 54px;
  background: linear-gradient(90deg, #006aff, #00b2ff);
  font-size: 18px;
}

.trust-note {
  margin-top: 26px;
  padding: 18px;
  background: #f5fbfb;
  border: 1px solid #d8eeee;
  border-radius: 8px;
  color: var(--muted);
}

.trust-note span {
  display: block;
}

.directory-heading,
.admin-head,
.shop-card-top,
.map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h2 {
  font-size: 30px;
}

.directory-heading p,
.muted,
.shop-card p,
.map-head p {
  color: var(--muted);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.category-strip a,
.badge,
.pill,
.score {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.category-strip a,
.badge {
  color: var(--teal);
  background: #edfafa;
  border: 1px solid #cfeceb;
}

.shop-list {
  display: grid;
  gap: 14px;
}

.shop-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  padding: 20px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.shop-card:hover,
.shop-card:focus-within {
  border-color: #9edbd9;
  box-shadow: 0 18px 44px rgba(21, 42, 54, 0.12);
  transform: translateY(-2px);
}

.card-hit {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 8px;
}

.shop-card h3 {
  margin-top: 4px;
  font-size: 25px;
}

.shop-logo-link,
.shop-card-main,
.subdomain-tile,
.contact-row a,
.shop-card h3 a {
  position: relative;
  z-index: 2;
}

.kicker,
.profile-category {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.score,
.pill {
  color: #fff;
  background: var(--teal);
  white-space: nowrap;
}

.badges,
.contact-row,
.delivery-row,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-row {
  margin: 12px 0;
}

.delivery-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #174a2d;
  background: #eef9f0;
  border: 1px solid #cfead4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 820;
}

.muted-chip {
  color: var(--muted);
  background: #f7faf9;
  border-color: var(--line);
}

.subdomain-tile {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  background: #f8fcff;
  border: 1px solid #dbeef8;
  border-radius: 8px;
}

.subdomain-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.subdomain-tile strong {
  color: var(--blue);
  word-break: break-word;
}

.radius-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--blue);
  background: #fff;
  border: 1px solid #dbeef8;
  border-radius: 8px;
  font-weight: 850;
}

.radius-control span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.lokal-map {
  position: relative;
  min-height: 390px;
  margin: 18px 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(19, 139, 210, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(19, 139, 210, 0.08) 1px, transparent 1px),
    #f2fbfd;
  background-size: 42px 42px;
  border: 1px solid #cfe5ed;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.lokal-map::before,
.lokal-map::after {
  content: "";
  position: absolute;
  background: rgba(21, 143, 139, 0.18);
  border-radius: 999px;
  transform: rotate(-16deg);
}

.lokal-map::before {
  width: 130%;
  height: 18px;
  left: -10%;
  top: 38%;
}

.lokal-map::after {
  width: 18px;
  height: 120%;
  left: 56%;
  top: -10%;
}

.radius-ring,
.user-location {
  position: absolute;
  pointer-events: none;
}

.radius-ring {
  z-index: 1;
  left: 50%;
  top: 53%;
  width: 210px;
  height: 210px;
  border: 2px solid rgba(236, 47, 132, 0.26);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  animation: radiusPulse 3s ease-in-out infinite;
}

.radius-two {
  width: 310px;
  height: 310px;
  border-color: rgba(21, 143, 139, 0.18);
  animation-delay: 900ms;
}

.user-location {
  z-index: 3;
  left: 50%;
  top: 53%;
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.user-location span {
  width: 17px;
  height: 17px;
  background: #1b82ee;
  border: 4px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(27, 130, 238, 0.16);
  animation: userPulse 2s ease-in-out infinite;
}

.map-pin {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  outline: none;
}

.map-pin span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 999px 999px 999px 0;
  box-shadow: 0 8px 18px rgba(21, 42, 54, 0.2);
  transform: rotate(-45deg);
  font-size: 12px;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease;
  animation: pinFloat 2.4s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

.map-pin:hover span,
.map-pin:focus-visible span {
  box-shadow: 0 14px 26px rgba(221, 29, 45, 0.28);
  transform: rotate(-45deg) scale(1.12);
}

.map-pin em {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  width: max-content;
  max-width: 170px;
  padding: 7px 10px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dbeef8;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(21, 42, 54, 0.12);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.map-pin:hover em,
.map-pin:focus-visible em {
  opacity: 1;
  transform: translate(-50%, 0);
}

.map-list {
  display: grid;
  gap: 8px;
}

.map-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fbfefe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section,
.admin-shell,
.checkout-shell,
.profile-page {
  padding: clamp(28px, 5vw, 60px);
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 28px;
  max-width: 1220px;
  margin: 0 auto;
}

.summary-card,
.panel {
  padding: 26px;
}

.summary-card {
  align-self: start;
}

.summary-card dl,
.detail-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  margin: 22px 0;
}

.summary-card dt,
.detail-list dt {
  color: var(--muted);
}

.summary-card dd,
.detail-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.price {
  color: var(--blue);
  font-size: 22px;
}

.clean-list {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wide {
  grid-column: 1 / -1;
}

.package-field {
  padding: 0;
  border: 0;
}

.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.package-card {
  position: relative;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.package-card.selected,
.package-card:has(input:checked) {
  border-color: var(--blue);
  background: #f2fbff;
}

.package-card input {
  position: absolute;
  opacity: 0;
}

.package-card strong {
  font-size: 23px;
}

.package-card span,
.package-card small {
  color: var(--muted);
  line-height: 1.45;
}

.package-card b {
  margin-top: auto;
  font-size: 30px;
}

.gcash-box {
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 20px 0;
  padding: 32px;
  background: #f3fbff;
  border: 1px solid #dbeff8;
  border-radius: 8px;
  text-align: center;
}

.gcash-box span {
  color: #87919b;
  font-weight: 800;
  text-transform: uppercase;
}

.gcash-box strong {
  font-size: 20px;
}

.gcash-box b {
  font-size: 38px;
}

.instructions,
.notice {
  padding: 17px;
  background: #fffdfa;
  border: 1px solid #ece3d9;
  border-radius: 8px;
}

.notice {
  background: #f5fbf5;
  border-color: #d9ecd9;
  color: var(--muted);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 26px;
  align-items: stretch;
}

.profile-copy,
.profile-card {
  padding: clamp(28px, 5vw, 52px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
}

.profile-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.profile-card {
  display: grid;
  align-content: center;
  gap: 16px;
  background: linear-gradient(145deg, #ffffff, #eefafa);
}

.profile-card strong {
  color: var(--blue);
  font-size: 25px;
  word-break: break-word;
}

.profile-score {
  display: inline-flex;
  width: max-content;
  padding: 8px 10px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.shop-logo,
.profile-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shop-logo-link,
.profile-logo-link {
  display: inline-flex;
  width: max-content;
  border-radius: 8px;
}

.shop-logo-link:focus-visible,
.profile-logo-link:focus-visible {
  outline: 3px solid rgba(19, 139, 210, 0.35);
  outline-offset: 3px;
}

.shop-logo-link:hover .shop-logo,
.profile-logo-link:hover .profile-logo {
  border-color: var(--blue);
  box-shadow: 0 10px 26px rgba(19, 139, 210, 0.14);
}

.shop-logo {
  align-self: start;
}

.profile-logo {
  width: 124px;
  height: 124px;
  margin-bottom: 18px;
}

.profile-card span {
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.admin-shell {
  display: grid;
  gap: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.metric strong {
  font-size: 36px;
}

.metric span,
.admin-head p {
  color: var(--muted);
}

.admin-item,
.inquiry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 18px;
  margin-top: 14px;
  background: #fbfefe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inquiry-item {
  grid-template-columns: 1fr;
}

.admin-actions {
  align-content: start;
  justify-content: end;
}

.admin-actions input {
  min-width: 180px;
}

.receipt-link,
td a {
  color: var(--blue);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 126px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.empty.success::before {
  content: "OK";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.error {
  color: var(--red);
  font-weight: 800;
}

.narrow {
  max-width: 580px;
  margin: 0 auto;
}

@keyframes pinFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

@keyframes radiusPulse {
  0%,
  100% {
    opacity: 0.46;
    transform: translate(-50%, -50%) scale(0.92);
  }

  50% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes userPulse {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(27, 130, 238, 0.16);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(27, 130, 238, 0.06);
  }
}

@media (max-width: 1180px) {
  .directory-app {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .map-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .directory-app,
  .checkout-shell,
  .profile-hero,
  .profile-grid,
  .packages,
  .form-grid,
  .admin-grid,
  .admin-item,
  .shop-card {
    grid-template-columns: 1fr;
  }

  .directory-app {
    padding: 14px;
  }

  .filter-rail,
  .directory-main,
  .map-panel {
    min-height: auto;
  }

  .site-header,
  .directory-heading,
  .admin-head,
  .shop-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .profile-copy h1 {
    font-size: 42px;
  }
}
