/* =============================================================
   RollingFizz — Centres Page
   File : rfz-assets/css/rfz-centres.css
   ============================================================= */

/* ── HERO ──────────────────────────────────────────────────── */
.centres-hero {
  padding: 140px 60px 80px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.centres-hero-blob {
  position: absolute; top: -100px; right: -60px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,216,50,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.centres-hero-blob2 {
  position: absolute; bottom: -80px; left: -40px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,224,240,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.centres-hero-inner {
  position: relative; z-index: 2;
  max-width: 680px;
}
.centres-hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.centres-hero-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--color-primary); flex-shrink: 0;
}
.centres-hero-title {
  font-family: var(--font-disp);
  font-size: clamp(38px, 5vw, 68px); font-weight: 800; line-height: 1.05;
  color: var(--color-surface-dark);
}
.centres-hero-title em { font-style: italic; color: var(--color-primary); }
.centres-hero-sub {
  margin-top: 18px; font-size: 15px; color: var(--color-text-muted); line-height: 1.8;
  opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}
.centres-hero-stats {
  display: flex; gap: 40px; margin-top: 36px;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.centres-hero-stat { display: flex; flex-direction: column; }
.centres-hero-stat span:first-child {
  font-size: 32px; font-weight: 800; color: var(--color-surface-dark); line-height: 1;
}
.centres-hero-stat span:last-child {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--color-text-muted); margin-top: 4px;
}

/* ── CONTROLS BAR ───────────────────────────────────────────── */
.centres-controls {
  padding: 0 60px 40px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.centres-search-wrap {
  flex: 1; min-width: 240px; max-width: 480px;
  position: relative;
}
.centres-search-wrap svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--color-text-muted); pointer-events: none;
}
#centreSearch {
  width: 100%; padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--color-border-strong); border-radius: 4px;
  font-family: var(--font-body); font-size: 14px; color: var(--color-text);
  background: var(--color-bg); outline: none; transition: border-color 0.25s;
}
#centreSearch:focus { border-color: var(--color-primary); }
#centreSearch::placeholder { color: var(--color-text-muted); }

.centres-sort-wrap { display: flex; align-items: center; gap: 10px; }
.centres-sort-wrap label {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--color-text-muted); white-space: nowrap;
}
#centreSort {
  padding: 13px 36px 13px 16px;
  border: 1.5px solid var(--color-border-strong); border-radius: 4px;
  font-family: var(--font-body); font-size: 14px; color: var(--color-text);
  background: var(--color-bg); outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8678' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.25s;
}
#centreSort:focus { border-color: var(--color-primary); }

/* ── RESULTS COUNT ──────────────────────────────────────────── */
.centres-count-bar {
  padding: 0 60px 24px;
  font-size: 13px; color: var(--color-text-muted); letter-spacing: 0.5px;
}
.centres-count-bar strong { color: var(--color-text); }

/* ── GRID ───────────────────────────────────────────────────── */
.centres-grid {
  padding: 0 60px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── CARD ───────────────────────────────────────────────────── */
.rfz-centre-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 0;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.rfz-centre-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--clr-brand), var(--clr-lemon));
  opacity: 0; transition: opacity 0.25s; z-index: 3;
}
.rfz-centre-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.rfz-centre-card:hover::before { opacity: 1; }

/* ── CARD IMAGE ──────────────────────────────────────────────── */
.rfz-cc-image {
  width: 100%; height: 200px; overflow: hidden; flex-shrink: 0;
  position: relative; background: var(--color-bg-paper);
}
.rfz-cc-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.rfz-centre-card:hover .rfz-cc-image img { transform: scale(1.05); }
.rfz-cc-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,40,24,0.45) 0%, transparent 55%);
  pointer-events: none;
}

/* ── CARD BODY (wraps everything below image) ────────────────── */
.rfz-cc-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; flex: 1;
}

.rfz-cc-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
}
.rfz-cc-name {
  font-size: 17px; font-weight: 700; color: var(--color-surface-dark); line-height: 1.3;
  flex: 1; padding-right: 12px;
}
.rfz-cc-city {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: var(--color-accent1); color: var(--color-surface-dark); white-space: nowrap;
  flex-shrink: 0;
}

.rfz-cc-divider {
  height: 1px; background: var(--color-border); margin-bottom: 18px;
}

.rfz-cc-details {
  display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.rfz-cc-row {
  display: flex; align-items: flex-start; gap: 12px;
}
.rfz-cc-icon {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  color: var(--color-primary);
}
.rfz-cc-row-text {
  font-size: 13.5px; color: var(--color-text); line-height: 1.55;
}
.rfz-cc-row-text a {
  color: inherit; text-decoration: none;
  transition: color 0.2s;
}
.rfz-cc-row-text a:hover { color: var(--color-primary); }

.rfz-cc-footer {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.rfz-cc-directions {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: var(--color-primary); color: #fff;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  border-radius: 3px; transition: background 0.25s, transform 0.2s;
  border: none; cursor: pointer;
}
.rfz-cc-directions:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.rfz-cc-directions svg { width: 14px; height: 14px; }

/* ── Spinning gallery button ─────────────────────────────────── */
/* Wrapper carries the spinning ring so no overflow:hidden clips it */
.rfz-cc-gallery-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* spinning arc ring — lives on the wrapper, never clipped */
.rfz-cc-gallery-wrap::before {
  content: '';
  position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-primary);
  border-right-color: var(--color-primary);
  animation: rfzGallSpin 2.2s linear infinite;
  pointer-events: none;
}
@keyframes rfzGallSpin {
  to { transform: rotate(360deg); }
}
.rfz-cc-gallery-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.rfz-cc-gallery-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(30,122,42,0.12);
}
.rfz-cc-gallery-btn svg {
  width: 16px; height: 16px;
  color: var(--color-primary);
  transition: color 0.25s, transform 0.3s;
}
.rfz-cc-gallery-btn:hover svg { color: #fff; transform: scale(1.1); }

/* badge — count dot on wrapper corner */
.rfz-cc-gallery-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--clr-gold);
  color: var(--color-surface-dark); font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}

/* ── Centre media modal ──────────────────────────────────────── */
.rfz-cmedia-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(5,20,10,0.88); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.rfz-cmedia-overlay.open { display: flex; }

.rfz-cmedia-box {
  background: var(--color-surface);
  border-radius: 10px; overflow: hidden;
  width: 100%; max-width: 820px;
  max-height: 90vh; display: flex; flex-direction: column;
  animation: cmediaIn 0.28s cubic-bezier(0.34,1.26,0.64,1);
}
@keyframes cmediaIn {
  from { opacity: 0; transform: scale(0.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.rfz-cmedia-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.rfz-cmedia-title {
  font-size: 15px; font-weight: 700; color: var(--color-surface-dark);
}
.rfz-cmedia-city {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--color-primary); margin-left: 10px;
}
.rfz-cmedia-close {
  background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); line-height: 1;
  transition: color 0.2s;
}
.rfz-cmedia-close:hover { color: var(--color-surface-dark); }
.rfz-cmedia-close svg { width: 22px; height: 22px; }

/* big featured image */
.rfz-cmedia-featured {
  position: relative; width: 100%; height: 340px; flex-shrink: 0;
  overflow: hidden; background: var(--color-bg-alt);
}
.rfz-cmedia-featured img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s;
}
.rfz-cmedia-featured-label {
  position: absolute; bottom: 12px; left: 14px;
  background: rgba(5,20,10,0.65); color: rgba(255,255,255,0.9);
  font-size: 11px; letter-spacing: 1px; padding: 4px 10px; border-radius: 3px;
}

/* thumbnail strip */
.rfz-cmedia-strip {
  display: flex; gap: 8px; padding: 14px 22px;
  overflow-x: auto; flex-shrink: 0;
  scrollbar-width: thin;
}
.rfz-cmedia-thumb {
  width: 72px; height: 52px; border-radius: 4px; overflow: hidden;
  flex-shrink: 0; cursor: pointer; position: relative;
  border: 2px solid transparent; transition: border-color 0.2s;
}
.rfz-cmedia-thumb.active { border-color: var(--color-primary); }
.rfz-cmedia-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.rfz-cmedia-thumb-play {
  position: absolute; inset: 0; background: rgba(5,20,10,0.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.rfz-cmedia-thumb-play svg { width: 18px; height: 18px; }

/* ── GALLERY SECTION ─────────────────────────────────────────── */
.centres-gallery {
  padding: 80px 60px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

/* ── Header entrance (initial hidden state set by JS to avoid FOUC) ── */
.centres-gallery-header {
  margin-bottom: 40px;
}
.centres-gallery-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 12px;
}
.centres-gallery-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--color-primary); flex-shrink: 0;
}
.centres-gallery-title {
  font-size: clamp(26px, 3.5vw, 42px); font-weight: 800;
  color: var(--color-surface-dark); line-height: 1.1;
}
.centres-gallery-title em { font-style: italic; color: var(--color-primary); }
.centres-gallery-sub {
  margin-top: 10px; font-size: 14px; color: var(--color-text-muted); line-height: 1.7;
}

/* ── Underline wipe on title ── */
.centres-gallery-title-wrap {
  position: relative; display: inline-block;
}
.centres-gallery-title-wrap::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  height: 3px; width: 0;
  background: var(--color-primary);
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1) 0.55s;
  border-radius: 2px;
}
.centres-gallery.rfz-gallery-visible .centres-gallery-title-wrap::after {
  width: 100%;
}

/* 4-col, 2-row grid. Items 1 & 6 span 2 cols. */
.centres-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 10px;
}
.cg-item {
  overflow: hidden; border-radius: 6px; cursor: pointer;
  position: relative; background: var(--color-bg-paper);
  /* entrance state */
  opacity: 0; transform: translateY(30px) scale(0.97);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.34, 1.26, 0.64, 1);
}
.cg-item.rfz-cg-in {
  opacity: 1; transform: translateY(0) scale(1);
}
.cg-item:nth-child(1) { grid-column: span 2; }
.cg-item:nth-child(6) { grid-column: span 2; }

.cg-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cg-item:hover img { transform: scale(1.08); }

.cg-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,40,24,0.5) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.cg-item:hover::after { opacity: 1; }

/* shimmer skeleton while image loads */
.cg-item::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    90deg,
    var(--color-bg-paper) 0%,
    rgba(255,255,255,0.18) 40%,
    var(--color-bg-paper) 80%
  );
  background-size: 200% 100%;
  animation: cgShimmer 1.4s infinite;
  pointer-events: none;
  transition: opacity 0.4s;
}
.cg-item.img-loaded::before { opacity: 0; }
@keyframes cgShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.cg-zoom {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.75); transition: all 0.25s;
  color: var(--color-surface-dark); cursor: pointer;
}
.cg-item:hover .cg-zoom { opacity: 1; transform: scale(1); }
.cg-zoom svg { width: 15px; height: 15px; }

/* ── LIGHTBOX ─────────────────────────────────────────────────── */
.rfz-lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.93);
  align-items: center; justify-content: center;
}
.rfz-lightbox.open { display: flex; }

.rfz-lb-img {
  max-width: 88vw; max-height: 82vh;
  object-fit: contain; border-radius: 4px;
  animation: lbIn 0.22s ease;
  display: block;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.rfz-lb-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.65); transition: color 0.2s; line-height: 1;
}
.rfz-lb-close:hover { color: #fff; }
.rfz-lb-close svg { width: 28px; height: 28px; }

.rfz-lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.rfz-lb-btn:hover { background: rgba(255,255,255,0.22); }
.rfz-lb-btn svg { width: 18px; height: 18px; }
#rfzLbPrev { left: 18px; }
#rfzLbNext { right: 18px; }

.rfz-lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 2px;
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.centres-empty {
  display: none;
  padding: 80px 60px;
  text-align: center;
}
.centres-empty.visible { display: block; }
.centres-empty-icon {
  font-size: 48px; margin-bottom: 16px; opacity: 0.4;
}
.centres-empty h3 {
  font-size: 20px; font-weight: 700; color: var(--color-surface-dark); margin-bottom: 8px;
}
.centres-empty p {
  font-size: 14px; color: var(--color-text-muted);
}

/* ── FOOTER STRIP ────────────────────────────────────────────── */
.centres-footer-strip {
  background: var(--color-surface-dark);
  padding: 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cfs-left h2 {
  font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 8px;
}
.cfs-left p {
  font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7;
}
.cfs-cta {
  display: inline-block; padding: 15px 36px;
  background: var(--color-accent1); color: var(--color-surface-dark);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; transition: all 0.3s; white-space: nowrap;
}
.cfs-cta:hover { background: var(--color-accent1-bright); transform: translateY(-1px); }

/* ── SIMPLE FOOTER ───────────────────────────────────────────── */
.centres-page-footer {
  background: #0d1a0f;
  padding: 28px 60px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.centres-page-footer p {
  font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.5px;
}
.centres-page-footer a {
  color: rgba(255,255,255,0.4); text-decoration: none; font-size: 12px;
  transition: color 0.2s;
}
.centres-page-footer a:hover { color: rgba(255,255,255,0.7); }

/* ── FADE-UP ANIMATION (shared utility) ─────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .centres-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .centres-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 200px);
  }
  .cg-item:nth-child(1),
  .cg-item:nth-child(6) { grid-column: span 1; }
}

@media (max-width: 768px) {
  .centres-hero { padding: 120px 24px 60px; }
  .centres-hero-stats { gap: 28px; }
  .centres-controls { padding: 0 24px 32px; }
  .centres-search-wrap { max-width: 100%; }
  .centres-count-bar { padding: 0 24px 20px; }
  .centres-grid { grid-template-columns: 1fr; padding: 0 24px 60px; gap: 16px; }
  .centres-gallery { padding: 60px 24px; }
  .centres-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
  }
  .centres-footer-strip { padding: 40px 24px; }
  .centres-page-footer { padding: 24px; }
  .rfz-lb-btn { display: none; }
}

@media (max-width: 480px) {
  .centres-controls { flex-direction: column; align-items: stretch; }
  .centres-sort-wrap { justify-content: space-between; }
  #centreSort { flex: 1; }
  .centres-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 200px);
  }
}

@media (max-width: 480px) {
  .centres-controls { flex-direction: column; align-items: stretch; }
  .centres-sort-wrap { justify-content: space-between; }
  #centreSort { flex: 1; }
}
