/* 威利停車場 Value Parking — layout from booking.parkingbees.com.hk,
   colour scheme from valueparkinghk.com (white base, navy #060026,
   blue-grey #455A64 buttons, purple #3400A4 hover accent, #CBCAD5 lines) */
:root {
  --bg: #ffffff;
  --panel: #f1f0f5;
  --panel-soft: #f9f9f9;
  --navy: #060026;
  --bluegrey: #455a64;
  --bluegrey-hover: #4f6672;
  --purple: #3400a4;
  --line: #cbcad5;
  --text: #060026;
  --body: #303033;
  --muted: #5e5e5e;
  --chip-bg: rgba(6, 0, 38, 0.65);
  --radius-card: 8px;
  --radius-pill: 9999px;
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.05);
  --font-stack: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
    "Helvetica Neue", "PingFang HK", "PingFang TC", "Microsoft JhengHei",
    "Noto Sans TC", sans-serif;
  --font-heading: "Quicksand", var(--font-stack);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.5;
}

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

img {
  max-width: 100%;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}

.header-inner {
  max-width: 25rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name strong {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text);
  white-space: nowrap;
}

.brand-name span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--navy);
  border-radius: 24px;
  background: var(--navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn-pill:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-1px);
}

.header-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 16px 12px;
  max-width: 25rem;
  margin: 0 auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav a {
  flex: 1 0 auto;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}

.header-nav a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

/* ---------- layout ---------- */
.container {
  max-width: 25rem;
  margin: 0 auto;
  padding: 16px;
}

.section {
  margin: 40px 0;
}

.eyebrow {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.section-title {
  margin: 4px 0 6px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text);
}

.section-sub {
  margin: 0 auto;
  max-width: 22rem;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* ---------- hero ---------- */
.hero {
  margin-top: 8px;
}

.hero .section-title {
  font-size: 26px;
}

.hero-img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  margin-top: 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.hero-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.hero-strip img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  justify-content: space-evenly;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  margin: 16px 0 12px;
}

.tab {
  flex: 1 1 auto;
  min-width: 60px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.tab:hover {
  opacity: 1;
}

.tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  opacity: 1;
}

/* ---------- carpark cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.carpark-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.carpark-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.carpark-card.is-hidden {
  display: none;
}

.card-media {
  position: relative;
}

.card-media img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--chip-bg);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.card-name {
  margin: 8px 2px 0;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.35;
}

.card-en {
  margin: 2px 2px 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 8px 2px 4px;
  margin-top: auto;
  padding-top: 8px;
}

.pill-district {
  min-width: 32px;
  padding: 1px 8px;
  border-radius: 16px;
  background: var(--bluegrey);
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  transition: background 0.15s ease;
}

.carpark-card:hover .btn-arrow {
  background: var(--purple);
  color: #ffffff;
}

.btn-arrow svg {
  width: 12px;
  height: 12px;
}

/* ---------- map ---------- */
.map-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 12px;
}

.map-pill {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.map-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  font-weight: 700;
}

.map-frame {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.map-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- contact ---------- */
.contact-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 8px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-row + .contact-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
}

.contact-icon svg {
  width: 17px;
  height: 17px;
}

.contact-label {
  font-size: 12px;
  color: var(--muted);
}

.contact-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.contact-value a:hover {
  color: var(--purple);
}

.hours-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--body);
}

.hours-list li + li {
  margin-top: 2px;
}

.hours-list .muted {
  color: var(--muted);
}

.email-form {
  margin-top: 4px;
}

.form-field {
  margin-bottom: 10px;
}

.form-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.form-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--body);
  font-family: inherit;
  font-size: 14px;
}

.form-field input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 24px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
  background: var(--navy);
  color: #ffffff;
}

.form-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-link:hover {
  border-color: var(--navy);
  color: var(--purple);
}

.contact-link svg {
  width: 15px;
  height: 15px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 2px solid var(--line);
  margin-top: 48px;
}

.footer-inner {
  max-width: 25rem;
  margin: 0 auto;
  padding: 24px 16px 32px;
  text-align: center;
}

.footer-logo {
  width: 220px;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  border: 1px solid var(--line);
}

.footer-name {
  margin: 12px 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.footer-meta {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 14px 0;
  font-size: 12px;
}

.footer-links a {
  color: var(--text);
}

.footer-links a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.copyright {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- emergency page ---------- */
.emergency-box {
  margin-top: 32px;
  text-align: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 16px;
}

.emergency-tel {
  display: inline-block;
  margin: 12px 0;
  font-size: 34px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  color: var(--text);
}

.emergency-tel:hover {
  color: var(--purple);
}

/* ---------- responsive ---------- */
@media (max-width: 360px) {
  .header-inner {
    padding: 12px;
  }

  .container {
    padding: 12px;
  }

  .card-media img {
    height: 96px;
  }

  .brand-name span {
    display: none;
  }
}

@media (min-width: 768px) {
  .hero-img {
    height: 200px;
  }

  .card-media img {
    height: 128px;
  }
}
