@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,700;0,900;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:  #111111;
  --white:  #FFFFFF;
  --paper:  #F2F2F0;
  --red:    #E63329;
  --mid:    #666666;
  --light:  #CCCCCC;
  --border: 1px solid #111111;
}

body {
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

nav {
  background: var(--paper);
  border-bottom: var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-logo .dot { color: var(--red); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s;
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); border-bottom: 2px solid var(--red); }

.hero {
  background: var(--black);
  padding: 3rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  border-bottom: 3px solid var(--red);
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--paper);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  max-width: 340px;
}

.hero-stats { text-align: right; display: flex; flex-direction: column; gap: 1rem; }

.hero-stat-num {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  margin-top: 2px;
}

.btn {
  display: inline-block;
  padding: 9px 20px;
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}

.btn-red     { background: var(--red);   color: var(--white); }
.btn-red:hover   { background: #c42b22; }
.btn-black   { background: var(--black); color: var(--paper); }
.btn-black:hover { background: #333; }
.btn-outline { background: transparent; color: var(--paper); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--paper); background: rgba(255,255,255,0.08); }
.btn-full  { width: 100%; text-align: center; padding: 12px; }

.btn-danger {
  background: var(--red);
  color: var(--white);
  padding: 4px 10px;
  font-size: 9px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; flex: 1; }

.sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 0 1rem;
  border-bottom: var(--border);
}

.sort-bar label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

.sort-bar select {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  padding: 4px 8px;
  border: var(--border);
  background: var(--paper);
  color: var(--black);
  border-radius: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* desktop default: 4 columns */
  grid-auto-rows: auto;
  gap: 0;
  border-top: var(--border);
  border-right: var(--border);
}

/* Smaller desktop / large tablet */
@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet */
@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Each card gets left + bottom border — creates even grid with no double borders */
.reviews-grid .review-card {
  border-left: var(--border);
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  transition: background 0.15s;
  height: 100%;
}

.review-card:hover { background: var(--white); }

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: var(--border);
  flex-shrink: 0;
  image-orientation: from-image; /* respect EXIF rotation from phone cameras */
}

.card-image-placeholder {
  width: 100%;
  height: 200px;
  min-height: 200px;
  background: #e8e8e6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--border);
  flex-shrink: 0;
  box-sizing: border-box;
}

.card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.card-footer { margin-top: auto; }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.card-venue {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.score-badge {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.score-badge.high { color: var(--black); }
.score-badge.mid  { color: var(--red);   }
.score-badge.low  { color: var(--light); }

.card-address { font-size: 10px; color: var(--mid); margin-bottom: 6px; }

.card-excerpt {
  font-size: 11px;
  color: #444;
  line-height: 1.5;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--light);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
}

.reviewer-name { font-weight: 700; color: var(--black); }
.verified-tick { color: var(--red); }

.detail-hero { width: 100%; max-height: 360px; object-fit: cover; display: block; border-bottom: var(--border); }

.detail-hero-placeholder {
  width: 100%;
  height: 240px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border-bottom: var(--border);
}

.detail-container { max-width: 860px; margin: 0 auto; padding: 2rem 2rem 4rem; }

.back-link {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.back-link:hover { opacity: 0.7; }

.detail-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  border-bottom: var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.detail-venue {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.detail-address { font-size: 11px; color: var(--mid); margin-top: 6px; }

.detail-score-block { text-align: right; }

.detail-score {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.05em;
  line-height: 1;
}

.detail-score-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border);
  margin-bottom: 1.5rem;
}

.detail-grid-item {
  padding: 10px 14px;
  border-right: var(--border);
}

.detail-grid-item:last-child { border-right: none; }

.detail-grid-item label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 4px;
}

.detail-grid-item span { font-size: 13px; font-weight: 700; color: var(--black); }

.offer-box {
  border-left: 4px solid var(--red);
  border-top: var(--border);
  border-right: var(--border);
  border-bottom: var(--border);
  padding: 0.75rem 1rem;
  background: var(--white);
  margin-bottom: 1.5rem;
  font-size: 12px;
}

.offer-box strong {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 3px;
}

.detail-comments h2 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border-top: 2px solid var(--red);
  padding-top: 10px;
  margin-bottom: 12px;
}

.detail-comments p {
  font-size: 13px;
  line-height: 1.8;
  color: #333;
  white-space: pre-line;
}

.form-container { max-width: 680px; margin: 0 auto; padding: 2rem 2rem 4rem; }

.form-title-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.form-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.form-subtitle { font-size: 11px; color: var(--mid); margin-top: 6px; line-height: 1.6; }

.form-arrow { font-size: clamp(3rem, 8vw, 5rem); font-weight: 900; color: var(--red); letter-spacing: -0.05em; line-height: 1; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 4px;
}

.form-group label .required { color: var(--red); }
.form-group label .optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 9px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 10px;
  border: var(--border);
  background: var(--white);
  color: var(--black);
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.radio-group { display: flex; gap: 1.5rem; }

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--black);
  text-transform: none;
  letter-spacing: 0;
}

.form-group input[type="radio"] { width: auto; }

.form-hint { font-size: 10px; color: var(--mid); margin-top: 4px; }

.form-divider { border: none; border-top: var(--border); margin: 1.5rem 0; }

.alert {
  padding: 10px 14px;
  margin-bottom: 1.25rem;
  font-size: 12px;
  border-left: 4px solid;
}

.alert-success { background: #f0faf4; border-color: #2D6A4F; color: #2D6A4F; }
.alert-error   { background: #fdf0ef; border-color: var(--red); color: var(--red); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }

.admin-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--black);
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--light); vertical-align: middle; }
.admin-table tr:hover td { background: var(--white); }

.admin-login { max-width: 380px; margin: 5rem auto; padding: 2rem; border: var(--border); background: var(--white); }

.admin-login h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: var(--border);
}

.pagination { display: flex; justify-content: center; padding: 2rem 0; border-top: var(--border); }

.pagination a,
.pagination span {
  display: inline-block;
  padding: 6px 14px;
  border: var(--border);
  margin-left: -1px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  color: var(--black);
  letter-spacing: 0.05em;
}

.pagination a:hover { background: var(--black); color: var(--paper); }
.pagination .current { background: var(--red); color: var(--white); border-color: var(--red); }

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  border-right: var(--border);
  border-bottom: var(--border);
}

.empty-state h3 { font-size: 1.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.empty-state p  { font-size: 12px; color: var(--mid); margin-bottom: 1.5rem; }

footer {
  background: var(--black);
  color: #555;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: auto;
}

footer a { color: var(--red); text-decoration: none; }
footer a:hover { color: var(--paper); }

/* ── Portrait phone (iOS/Android) ── */
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stats { text-align: left; flex-direction: row; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .detail-header { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  footer { flex-direction: column; gap: 4px; text-align: center; }
}

/* ── Portrait-only: 2-column grid, full bleed, wrap sort buttons ── */
@media (max-width: 767px) and (orientation: portrait) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Pull grid to full width, removing container side padding */
    margin-left: -2rem;
    margin-right: -2rem;
    border-left: none;
    border-right: none;
  }

  /* Restore left border on cards as the grid outer edge */
  .reviews-grid .review-card:nth-child(odd) {
    border-left: none;
  }

  .reviews-grid .review-card:nth-child(even) {
    border-right: none;
  }
}

/* ── Landscape phone: keep 3 columns ── */
/* Landscape PHONE only (short viewport height) - 3 cols */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Image slider on review detail page ── */
.review-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  border-bottom: var(--border);
  max-height: 520px;
}

.slider-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.slider-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  cursor: zoom-in;
}

.slider-slide img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  image-orientation: from-image;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17,17,17,0.7);
  color: #F2F2F0;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
  font-family: 'Archivo', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover { background: rgba(230,51,41,0.9); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}

.slider-dot.active { background: #E63329; }

.slider-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(17,17,17,0.7);
  color: #F2F2F0;
  font-family: 'Archivo', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  z-index: 10;
}

/* Enhance button on slider */
.slider-enhance {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #E63329;
  color: #F2F2F0;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s, transform 0.1s;
}

.slider-enhance:hover { background: #111; transform: scale(1.04); }

/* Lightbox for multiple photos */
dialog.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  inset: 0;
  background: #000;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  display: none;
  flex-direction: column;
  box-sizing: border-box;
}

dialog.lightbox[open] { display: flex; }
dialog.lightbox::backdrop { background: #000; }

/* Top bar: ENHANCE! left, CLOSE right */
.lightbox-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  flex-shrink: 0;
  height: 44px;
  border-bottom: 1px solid #333;
}

.lightbox-enhance-btn {
  flex: 1;
  background: #E63329;
  color: #fff;
  border: none;
  font-family: 'Archivo', Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s;
  text-align: left;
  padding: 0 18px;
}

.lightbox-enhance-btn:hover { background: #c42a21; }
.lightbox-enhance-btn.active { background: #E63329; }

.lightbox-close {
  background: #111;
  color: #F2F2F0;
  border: none;
  border-left: 1px solid #333;
  font-family: 'Archivo', Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}

.lightbox-close:hover { background: #222; color: #fff; }

/* Scrollable image area */
.lightbox-inner {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

/* Fit mode (default) */
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-orientation: from-image;
  display: block;
  transition: none;
  width: 100%;
  height: auto;
}

/* Enhance / zoom mode */
.lightbox-inner.zoomed {
  align-items: flex-start;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  overflow: scroll;
  cursor: grab;
}

.lightbox-inner.zoomed:active { cursor: grabbing; }

.lightbox-inner.zoomed img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  cursor: grab;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 5;
}

.lightbox-nav:hover { background: rgba(230,51,41,0.8); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

