/* supplier.css — Martlet Travel supplier catalog styles */

/* ============================================================
   CSS custom properties
   ============================================================ */
:root {
  --brand-teal: #006E6D;
  --brand-teal-dark: #005554;
  --text-primary: #1a1a1a;
  --text-muted: #6b7280;
  --bg-light: #f5f5f5;
  --border-color: #e5e7eb;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.16);
  --radius: 8px;
}

/* ============================================================
   A. CSS copy prevention (global)
   ============================================================ */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media print {
  body { display: none !important; }
}

/* ============================================================
   B. Catalog grid styles
   ============================================================ */

/* Mobile-first: single column */
.rc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Desktop: two columns */
@media (min-width: 641px) {
  .rc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* Route card */
.rc {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Cover image — 16:9 ratio via padding-top trick */
.rc-cover {
  width: 100%;
  padding-top: 56.25%; /* 9/16 = 56.25% */
  background-size: cover;
  background-position: center;
  background-color: #d1d5db; /* fallback */
  display: block;
}

/* Card body */
.rc-body {
  padding: 0.875rem 1rem 1rem;
}

/* Card title */
.rc-title,
.rc-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}

/* Sub-text: days, type */
.rc-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

/* Blurb (optional short description) */
.rc-blurb {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* CTA button */
.rc-link {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  background: var(--brand-teal);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
  pointer-events: auto;
}

.rc-link:hover {
  background: var(--brand-teal-dark);
}

/* ============================================================
   C. Contact card styles
   ============================================================ */
.contact-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-light);
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.cc-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.cc-qr {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem;
}

.cc-name {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Add WeChat button */
.cc-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: var(--brand-teal);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
  /* Must override global user-select:none but pointer-events must remain active */
  pointer-events: auto;
}

.cc-btn:hover {
  background: var(--brand-teal-dark);
}

/* ============================================================
   Catalog page layout helpers
   ============================================================ */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans CJK SC',
               'Microsoft YaHei', sans-serif;
  background: #fafafa;
  color: var(--text-primary);
}

.cat-hd {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.cat-hd h1 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.cat-hd p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cat-ft {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}
