/* ============================================
   LastManBoarding — Pages (Lounges + Review)
   Shared styles for subpages
   ============================================ */

/* --- Active nav indicator --- */
.nav-active {
  color: var(--color-text) !important;
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* --- Page Hero (Lounges overview) --- */
.page-hero {
  position: relative;
  padding-top: calc(80px + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 24, 0.88) 0%,
    rgba(26, 26, 24, 0.5) 50%,
    rgba(26, 26, 24, 0.3) 100%
  );
}

/* --- Rotating hero slides --- */
.page-hero-slides {
  position: absolute;
  inset: 0;
}

.page-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.page-hero-slide.is-active {
  opacity: 1;
}

.page-hero-slide a.page-hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide article info — bottom-right label */
.page-hero-slide-label {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5em 1em;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s,
              background 0.2s ease;
  z-index: 2;
}

.page-hero-slide.is-active .page-hero-slide-label {
  opacity: 1;
  transform: translateY(0);
}

.page-hero-slide-label:hover {
  background: rgba(0, 0, 0, 0.65);
}

.page-hero-slide-label svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Slide indicators */
.page-hero-indicators {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.page-hero-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.page-hero-dot.is-active {
  width: 20px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.page-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  line-height: 1.6;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span[aria-hidden] {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
}

/* --- Filter Bar --- */
.filter-bar {
  padding: var(--space-xl) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 56px;
  z-index: calc(var(--z-header) - 2);
}

.filter-tabs {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 0.55em 1.2em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-tab:hover {
  color: var(--color-text);
  border-color: var(--color-text-tertiary);
}

.filter-tab.active {
  color: #fff;
  background: var(--color-dark);
  border-color: var(--color-dark);
}

/* --- Lounge Featured --- */
.lounge-featured {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
}

.lounge-featured .featured-review {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

@media (min-width: 768px) {
  .lounge-featured .featured-review {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* --- Review grid variants --- */
.review-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .review-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .review-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .review-grid--4 .review-card-image img {
    min-height: 100%;
    object-fit: cover;
  }
}

.review-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .review-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .review-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Result count --- */
.result-count {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
}

/* --- Lounge grid section --- */
.lounge-grid-section {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: var(--color-surface);
}

/* --- Load more --- */
.load-more {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* --- Review region tag --- */
.review-region {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
}

/* ============================================
   Review Article Page
   ============================================ */

/* --- Review Hero --- */
.review-hero {
  position: relative;
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.review-hero-bg {
  position: absolute;
  inset: 0;
}

.review-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.review-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 24, 0.9) 0%,
    rgba(26, 26, 24, 0.4) 50%,
    rgba(26, 26, 24, 0.15) 100%
  );
}

.review-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.review-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.review-hero-meta .review-category {
  background: var(--color-accent);
  color: #fff;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-hero-meta time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.review-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.review-hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

/* --- Review Article Layout --- */
.review-article {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: var(--color-surface);
}

.review-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .review-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-3xl);
  }
}

/* --- Sidebar --- */
.review-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .review-sidebar {
    position: sticky;
    top: calc(56px + var(--space-xl));
    align-self: start;
  }
}

.quick-facts {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.quick-facts-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.facts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.fact dd {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* Author card */
.author-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
}

.author-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.author-card-role {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

/* --- Review Content --- */
.review-content {
  max-width: 800px;
}

.review-section {
  margin-bottom: var(--space-lg);
}

.review-section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.review-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.review-section p:last-child {
  margin-bottom: 0;
}

/* --- Review Figures --- */
.review-figure {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.review-figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.review-figure:hover img {
  transform: scale(1.02);
}

.review-figure figcaption {
  padding: var(--space-sm) 0;
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  text-align: center;
}

.review-figure--full {
  margin-left: 0;
  margin-right: 0;
}

.review-figure--hero {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* --- Review Galleries --- */
.review-gallery {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.review-gallery .review-figure {
  margin: 0;
}

.review-gallery--pair {
  grid-template-columns: 1fr 1fr;
}

.review-gallery--trio {
  grid-template-columns: 1fr 1fr 1fr;
}

.review-gallery--quad {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 640px) {
  .review-gallery--trio {
    grid-template-columns: 1fr 1fr;
  }

  .review-gallery--trio .review-figure:last-child {
    grid-column: 1 / -1;
  }

  .review-gallery--quad {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .review-gallery--pair {
    grid-template-columns: 1fr;
  }
}

/* --- Review Conclusion --- */
.review-conclusion {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.review-verdict {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-accent-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.verdict-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.verdict-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
}

/* --- Tags --- */
.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-2xl) 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.tag {
  display: inline-block;
  padding: 0.35em 0.9em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border-radius: 100px;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.tag:hover {
  color: var(--color-text);
  background: var(--color-bg-deep);
}

/* --- Author Bio --- */
.review-author-bio {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  margin-top: var(--space-xl);
}

.author-bio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.author-bio-content p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Related Reviews --- */
.related-reviews {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}

/* ============================================
   Rating System
   ============================================ */

/* --- Star rating (card-level, compact) --- */
.review-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.rating-stars {
  --star-size: 14px;
  --star-color: var(--color-accent);
  --star-bg: var(--color-border);
  position: relative;
  display: inline-block;
  width: calc(var(--star-size) * 5 + 4px * 4);
  height: var(--star-size);
  background: linear-gradient(90deg,
    var(--star-bg) var(--star-size), transparent var(--star-size),
    transparent calc(var(--star-size) + 4px)
  );
  background-size: calc(var(--star-size) + 4px) var(--star-size);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  -webkit-mask-size: var(--star-size) var(--star-size);
  mask-size: var(--star-size) var(--star-size);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.rating-stars::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--star-color);
  width: calc(var(--rating, 0) / 5 * 100%);
}

.rating-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* --- Rating breakdown (review page, detailed) --- */
.rating-breakdown {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
}

.rating-breakdown-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.rating-row {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

@media (max-width: 480px) {
  .rating-row {
    grid-template-columns: 100px 1fr 40px;
    gap: var(--space-sm);
  }
}

.rating-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.rating-bar {
  height: 6px;
  background: var(--color-border-light);
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 3px;
  transition: width 0.8s var(--ease-out);
}

.rating-score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text);
  text-align: right;
}

.rating-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.rating-total-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.rating-total-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

/* --- Links/Partners page --- */
.page-top {
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: var(--color-surface);
}

.page-top .breadcrumb {
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-lg);
}

.page-top .breadcrumb a {
  color: var(--color-text-secondary);
}

.page-top .breadcrumb span[aria-hidden] {
  color: var(--color-border);
}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.partner-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.partner-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-card-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.partner-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.partner-card-content p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  flex: 1;
}

.partner-cta {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
}

.partner-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.partner-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  transition: background var(--duration-fast) var(--ease-out);
}

.partner-list-item:not(:last-child) {
  border-bottom: 1px solid var(--color-border-light);
}

.partner-list-item:hover {
  background: var(--color-accent-subtle);
}

.partner-list-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.partner-list-info p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.partner-arrow {
  font-size: 1.1rem;
  color: var(--color-text-tertiary);
  transition: transform var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.partner-list-item:hover .partner-arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}

.transparency-note {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--color-bg-deep);
  border-left: 3px solid var(--color-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Print styles --- */
@media print {
  .site-header,
  .mobile-menu,
  .noise-overlay,
  .filter-bar,
  .load-more,
  .footer-socials {
    display: none;
  }

  .review-hero {
    min-height: auto;
    padding-top: var(--space-xl);
  }
}
