/*
 * ScubaHankNYC — Additional CSS (Consolidated)
 * Last cleaned: 2026-03
 * Sections:
 *   1. Global Resets & CLS
 *   2. Full-Width Layout (sidebar hide + content expand)
 *   3. Review Cards
 *   4. Review Row Layout (column alignment)
 *   5. Review Media & Related Posts
 *   6. NYUPS Page
 *   7. Country Pages
 *   8. Block Editor UI Fixes
 */


/* ============================================================
   1. GLOBAL RESETS & CLS
   ============================================================ */

img,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-footer,
.site-info,
footer.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
  float: none !important;
}


/* ============================================================
   2. FULL-WIDTH LAYOUT
   Covers: Homepage (35982), Marine Life (31946),
           NYUPS (30129), Sea Turtle (33842),
           Single Reviews CPT
   ============================================================ */

/* — Shared mixin via multi-selector — */
.page-id-35982 #secondary,
.page-id-31946 #secondary,
.page-id-30129 #secondary,
.page-id-33842 #secondary,
.single-reviews #secondary,
.page-id-35982 #sidebar,
.page-id-31946 #sidebar,
.page-id-30129 #sidebar,
.page-id-33842 #sidebar,
.single-reviews #sidebar,
.page-id-35982 .widget-area,
.page-id-31946 .widget-area,
.page-id-30129 .widget-area,
.page-id-33842 .widget-area,
.single-reviews .widget-area {
  display: none !important;
}

@media screen and (min-width: 59em) {
  .page-id-35982 .content-area,
  .page-id-35982 #primary,
  .page-id-35982 .site-main,
  .page-id-31946 .content-area,
  .page-id-31946 #primary,
  .page-id-31946 .site-main,
  .page-id-30129 .content-area,
  .page-id-30129 #primary,
  .page-id-30129 .site-main,
  .page-id-33842 .content-area,
  .page-id-33842 #primary,
  .page-id-33842 .site-main,
  .single-reviews .content-area,
  .single-reviews #primary,
  .single-reviews .site-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding-right: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .page-id-35982 .content-area::after,
  .page-id-35982 #primary::after,
  .page-id-31946 .content-area::after,
  .page-id-31946 #primary::after,
  .page-id-30129 .content-area::after,
  .page-id-30129 #primary::after,
  .page-id-33842 .content-area::after,
  .page-id-33842 #primary::after,
  .single-reviews .content-area::after,
  .single-reviews #primary::after {
    display: none !important;
    content: none !important;
    border: none !important;
  }
}

/* Undo Gazette's header-left / content-right split on single reviews */
.single-reviews .entry-header,
.single-reviews .entry-content,
.single-reviews .entry-summary,
.single-reviews .entry-footer {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ============================================================
   3. REVIEW CARDS
   ============================================================ */

.review-card {
  position: relative;
  padding: 16px 16px 16px 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Red left accent bar */
.review-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e10600;
  border-radius: 10px 0 0 10px;
}

/* Hover */
.review-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
}

/* Card titles — all heading levels + label class */
.review-card h1,
.review-card h2,
.review-card h3,
.review-card h4,
.review-card h5,
.review-card h6,
.review-card .wp-block-heading,
.review-card .review-card__label {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin: 0 0 12px 0 !important;
}

/* Body text */
.review-card p,
.review-card li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d0d0d0;
  margin-bottom: 4px;
}

.review-card a {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d0d0d0;
}

.review-card > *:last-child {
  margin-bottom: 0;
}

/* Shortcode spacing */
.review-card .wp-block-shortcode {
  margin: 0;
}

/* Location card */
.review-card--location a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 400;
}
.review-card--location a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Route card */
.review-card--route .route-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.review-card--route .route-icon {
  font-size: 0.85rem;
}
.review-card--route .route-text {
  font-size: 0.95rem;
  color: #d0d0d0;
}

/* Visit Summary — verdict glow */
.review-card--visit-summary h4 + p,
.review-card--visit-summary h4 + .wp-block-shortcode,
.review-card--visit-summary h4 + div p,
.review-card--visit-summary .wp-block-shortcode p:first-child,
.review-card--visit-summary p strong:first-child {
  font-size: 1.6rem !important;
  line-height: 1.1;
  font-weight: 900;
  color: #ffffff;
  margin-top: 2px;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 4px rgba(225, 6, 0, 0.55),
    0 0 10px rgba(225, 6, 0, 0.25);
}

/* Quick Facts card */
.review-card--quick-facts h4,
.review-card--quick-facts .wp-block-heading,
.review-card--quick-facts .review-card__label {
  margin-bottom: 18px !important;
}
.review-card--quick-facts ul {
  margin-top: 6px;
  padding-left: 18px;
}
.review-card--quick-facts li {
  margin-bottom: 8px;
}

/* Ad card — no red bar, darker background */
.review-card.review-card--ad::before {
  display: none;
}
.review-card.review-card--ad {
  background: #0f0f0f;
  border-color: #1a1a1a;
}
.review-card.review-card--ad > * {
  margin-left: auto;
  margin-right: auto;
}

/* Share card buttons */
.review-card--share .sh-share-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.review-card--share .sh-share-wrapper a,
.review-card--share .sh-share-wrapper button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #e10600;
  background: transparent;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  min-height: 36px;
  text-transform: none;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  margin: 0;
}
.review-card--share .sh-share-wrapper a:hover,
.review-card--share .sh-share-wrapper button:hover {
  background: rgba(225, 6, 0, 0.12);
}

@media (max-width: 968px) {
  .review-card {
    margin-bottom: 14px;
  }
}


/* ============================================================
   4. REVIEW ROW LAYOUT
   ============================================================ */

/* Section headers in left column */
.review-row h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 48px 0 18px 0;
  color: #ffffff;
  position: relative;
}
.review-row h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 8px;
  background: #e10600;
}

/* Stretch columns to equal height */
.wp-block-group.review-row .wp-block-columns,
.wp-block-group.review-row > .wp-block-group__inner-container > .wp-block-columns {
  align-items: stretch !important;
}

/* Right column: flex + vertically centered + gap */
.wp-block-group.review-row .wp-block-columns > .wp-block-column:nth-child(2),
.wp-block-group.review-row > .wp-block-group__inner-container > .wp-block-columns > .wp-block-column:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  gap: 16px;
}

/* Cards fill full width, no bottom margin (gap handles spacing) */
.wp-block-group.review-row .wp-block-column:nth-child(2) .review-card {
  width: 100%;
  margin-bottom: 0;
}

/* Mobile: revert to block */
@media (max-width: 900px) {
  .wp-block-group.review-row .wp-block-columns {
    align-items: initial !important;
  }
  .wp-block-group.review-row .wp-block-columns > .wp-block-column:nth-child(2) {
    display: block;
  }
}


/* ============================================================
   5. REVIEW MEDIA & RELATED POSTS
   ============================================================ */

.review-media,
.review-related {
  margin-top: 34px;
}

.review-media > .wp-block-heading,
.review-related > .wp-block-heading {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 16px 0;
  color: #fff;
}

/* Media columns */
.review-media .wp-block-columns {
  gap: 18px;
  align-items: stretch;
}
.review-media .wp-block-column {
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-media .wp-block-image,
.review-media .wp-block-embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-media .wp-block-image:hover,
.review-media .wp-block-embed:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}
.review-media img,
.review-media iframe {
  width: 100%;
  height: auto;
  display: block;
}
.review-media figcaption {
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #cfcfcf;
  background: rgba(0,0,0,0.6);
}

/* Related posts */
.review-related .wp-block-post-template {
  gap: 18px;
}
.review-related .wp-block-post {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 0;
}
.review-related .wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}
.review-related .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.review-related .wp-block-post-title {
  padding: 14px;
  margin: 0 !important;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 500;
}
.review-related .wp-block-post-title a {
  text-decoration: none;
  color: #fff;
}
.review-related .wp-block-post-title a:hover {
  text-decoration: underline;
}

/* Hide comments on Country single pages */
.single-countries #comments,
.single-countries .comments-area,
.single-countries #respond {
  display: none !important;
}


/* ============================================================
   6. NYUPS PAGE
   ============================================================ */

.nyups-page-wrapper {
  padding: 40px 20px;
  background-color: #000;
  color: #fff;
}

.nyups-intro-text {
  max-width: 900px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  padding: 30px;
  border-left: 4px solid #dc143c;
  background: #111;
}
.nyups-intro-text a {
  color: #dc143c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.nyups-intro-text a:hover {
  color: #ff2f54;
}

.nyups-featured-query {
  margin-bottom: 80px;
}
.nyups-featured-post {
  border: 2px solid #dc143c;
  background: #111;
  overflow: hidden;
}
.nyups-featured-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0 !important;
  min-height: 500px;
  align-items: center;
}
.nyups-featured-image {
  position: relative;
  overflow: hidden;
  background: #000;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}
.nyups-featured-image img {
  width: 100%;
  height: auto !important;
  max-height: 500px;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.nyups-featured-post:hover .nyups-featured-image img {
  transform: scale(1.05);
}
.nyups-featured-content {
  padding: 60px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}
.nyups-featured-label {
  color: #dc143c !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px !important;
}
.nyups-featured-title {
  font-size: 2.5rem !important;
  margin-bottom: 25px !important;
  line-height: 1.2 !important;
}
.nyups-featured-title a {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nyups-featured-title a:hover {
  color: #dc143c !important;
}
.nyups-featured-excerpt {
  font-size: 1.15rem !important;
  color: #bbb !important;
  line-height: 1.8 !important;
  margin-bottom: 0 !important;
}

.nyups-archive-header {
  text-align: center;
  margin: 60px 0 50px !important;
  font-size: 2rem !important;
  display: inline-block;
  border-bottom: 3px solid #dc143c;
  padding-bottom: 10px;
  color: #fff !important;
}

.nyups-archive-query {
  margin-bottom: 60px;
}
.nyups-posts-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
}
.nyups-post-card {
  background: #111 !important;
  border: 1px solid #333 !important;
  overflow: hidden;
  transition: all 0.3s ease;
  margin: 0 !important;
  padding: 0 !important;
}
.nyups-post-card:hover {
  border-color: #dc143c !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}
.nyups-post-thumbnail {
  position: relative;
  overflow: hidden;
  background: #000;
  margin: 0 !important;
}
.nyups-post-thumbnail img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.nyups-post-card:hover .nyups-post-thumbnail img {
  transform: scale(1.1);
}
.nyups-post-content {
  padding: 25px !important;
}
.nyups-post-title {
  font-size: 1.3rem !important;
  margin-bottom: 15px !important;
  line-height: 1.3 !important;
}
.nyups-post-title a {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nyups-post-title a:hover {
  color: #dc143c !important;
}
.nyups-post-excerpt {
  color: #999 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.nyups-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.nyups-pagination a,
.nyups-pagination .page-numbers {
  color: #fff;
  background: #111;
  border: 1px solid #333;
  padding: 10px 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nyups-pagination a:hover,
.nyups-pagination .page-numbers.current {
  background: #dc143c;
  border-color: #dc143c;
  color: #fff;
}

@media (max-width: 1024px) {
  .nyups-featured-wrapper { grid-template-columns: 1fr !important; }
  .nyups-featured-content { padding: 40px !important; }
  .nyups-posts-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 25px !important; }
}
@media (max-width: 768px) {
  .nyups-intro-text { font-size: 1rem; padding: 20px; margin-bottom: 40px; }
  .nyups-featured-title { font-size: 1.8rem !important; }
  .nyups-featured-content { padding: 30px !important; }
  .nyups-posts-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .nyups-archive-header { font-size: 1.5rem !important; margin: 40px 0 30px !important; }
}
@media (max-width: 480px) {
  .nyups-page-wrapper { padding: 20px 15px; }
  .nyups-intro-text { padding: 15px; }
  .nyups-featured-query { margin-bottom: 50px; }
  .nyups-featured-content { padding: 20px !important; }
  .nyups-featured-title { font-size: 1.5rem !important; }
  .nyups-featured-excerpt { font-size: 1rem !important; }
}


/* ============================================================
   7. COUNTRY PAGES
   ============================================================ */

/* Scoped typography — Playfair only inside country query wrap */
.country-query-wrap h2,
.country-query-wrap .ct-section-title,
.country-query-wrap h3.wp-block-heading {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  font-style: italic !important;
  color: #f5f0e8 !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
}

/* Hide pagination on live country pages */
.country-query-wrap .wp-block-query-pagination {
  display: none !important;
}

/* Hide comments on country singles */
.single-countries #comments,
.single-countries .comments-area,
.single-countries #respond {
  display: none !important;
}


/* ============================================================
   8. BLOCK EDITOR UI FIXES
   ============================================================ */

.block-editor-page .wp-block-post {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 380px !important;
  margin-bottom: 30px !important;
}
.block-editor-page .wp-block-post-title {
  position: static !important;
  margin-top: 15px !important;
  font-size: 1.1rem !important;
  line-height: 1.3 !important;
  color: #000 !important;
  display: block !important;
}
.block-editor-page .wp-block-query-pagination {
  display: none !important;
}