/* PRRC Group – static QR location selector */
:root {
  --primary: #1e3a5f; --primary-deep: #152a45; --primary-fg: #f7fafc;
  --bg: #f0f4f8; --fg: #1a2332; --muted: #6b7280; --card: #ffffff;
  --radius: 12px; --shadow: 0 12px 32px rgba(30, 58, 95, 0.12);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Lato", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--fg); min-height: 100vh;
  display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.lang-wrap { position: fixed; top: 1rem; right: 1rem; z-index: 50; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border: none; border-radius: 999px; padding: 0.5rem 0.85rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); font: inherit; font-size: 0.9rem;
  color: var(--fg); cursor: pointer;
}
.lang-btn svg.globe { width: 1rem; height: 1rem; color: var(--muted); flex-shrink: 0; }
.lang-btn svg.chev { width: 1rem; height: 1rem; color: var(--muted); transition: transform 0.15s ease; }
.lang-wrap.open .lang-btn svg.chev { transform: rotate(180deg); }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 0.4rem); right: 0;
  min-width: 11.5rem; background: #fff; border-radius: 0.75rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.16); padding: 0.35rem; list-style: none; margin: 0;
}
.lang-wrap.open .lang-menu { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  border: none; background: transparent; padding: 0.55rem 0.7rem;
  border-radius: 0.5rem; font: inherit; font-size: 0.9rem; color: var(--fg);
  cursor: pointer; text-align: left;
}
.lang-menu button:hover, .lang-menu button[aria-selected="true"] {
  background: rgba(30, 58, 95, 0.08); color: var(--primary);
}

.hero {
  position: relative; min-height: 38vh; display: flex; align-items: center;
  justify-content: center; text-align: center; color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.42) 40%, rgba(0,0,0,0.28) 70%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 4.5rem 1.25rem 3rem; max-width: 40rem; }
.hero h1 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.5rem); margin: 0 0 0.65rem; letter-spacing: 0.01em; color: #fff;
}
.hero p { margin: 0; font-size: 1.05rem; line-height: 1.55; opacity: 0.95; font-weight: 300; }

.main { width: min(1120px, 100%); margin: -0.5rem auto 0; padding: 0 1.25rem 2.5rem; position: relative; z-index: 2; flex: 1; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .lang-btn .lang-label { display: none; }
}

.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease; animation: rise 0.5s ease both;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(30, 58, 95, 0.16); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e5e7eb; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 50%); pointer-events: none;
}
.card-icon {
  position: absolute; top: 0.85rem; right: 0.85rem; width: 2.15rem; height: 2.15rem;
  border-radius: 999px; background: rgba(255,255,255,0.95); color: var(--muted);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.card-icon svg { width: 1.05rem; height: 1.05rem; }
.card-badge {
  position: absolute; left: 0.85rem; bottom: 0.85rem; display: inline-block;
  padding: 0.28rem 0.75rem; border-radius: 999px; background: var(--primary);
  color: var(--primary-fg); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
}
.card-body { padding: 1.05rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.card-title {
  margin: 0; font-family: "Playfair Display", Georgia, serif; color: var(--primary);
  font-size: 1.28rem; line-height: 1.3; font-weight: 700;
}
.meta { display: grid; gap: 0.55rem; flex: 1; }
.meta-row {
  display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: #4b5563; line-height: 1.45;
}
.meta-row svg { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: 0.15rem; color: var(--muted); }
.meta-row a { color: inherit; text-decoration: none; }
.meta-row a:hover { color: var(--primary); text-decoration: underline; }
.hours { white-space: pre-line; }
.card-actions { display: grid; gap: 0.55rem; margin-top: 0.15rem; }
.btn-maps {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%;
  padding: 0.78rem 1rem; border: none; border-radius: 0.6rem; background: var(--primary);
  color: var(--primary-fg); font: inherit; font-weight: 700; font-size: 0.92rem; text-decoration: none;
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.22); transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-maps:hover { filter: brightness(1.08); }
.btn-maps:active { transform: scale(0.99); }
.btn-maps svg { width: 0.95rem; height: 0.95rem; opacity: 0.9; }
.btn-amap {
  display: none; align-items: center; justify-content: center; gap: 0.45rem; width: 100%;
  padding: 0.72rem 1rem; border-radius: 0.6rem; border: 1px solid rgba(30, 58, 95, 0.2);
  background: #fff; color: var(--primary); font: inherit; font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.btn-amap:hover { background: rgba(30, 58, 95, 0.05); }
.btn-amap svg { width: 0.95rem; height: 0.95rem; }
html.lang-zh .btn-amap, html.lang-zh-TW .btn-amap { display: inline-flex; }

.footer {
  position: relative; margin-top: auto; text-align: center; color: #fff;
  padding: 2.75rem 1.25rem 2.25rem; overflow: hidden; background: var(--primary-deep);
}
.footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("https://d2xsxph8kpxj0f.cloudfront.net/310419663028780187/3xoedfdYHy9gZkJrniGHwA/azulejo_pattern_5600281c.jpg"); background-size: 220px; background-repeat: repeat;
  opacity: 0.18; pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; max-width: 36rem; margin: 0 auto; }
.footer h2 {
  font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; font-weight: 700;
  margin: 0 0 0.55rem; color: #fff;
}
.footer .tagline { margin: 0 0 1.35rem; font-size: 0.95rem; line-height: 1.55; opacity: 0.92; font-weight: 300; }
.footer .copy { margin: 0; font-size: 0.8rem; opacity: 0.75; }

.hub { max-width: 640px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.hub h1 { font-family: "Playfair Display", Georgia, serif; color: var(--primary); margin: 0 0 0.4rem; font-size: 2rem; }
.hub > p { color: var(--muted); margin: 0 0 1.5rem; }
.hub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.hub-list a {
  display: block; padding: 1.05rem 1.15rem; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--primary); text-decoration: none; font-weight: 700;
  transition: transform 0.2s ease;
}
.hub-list a:hover { transform: translateY(-2px); }
.hub-list a span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }
