/**
 * Single Vista Spot Template Styles
 * Follows the same pattern as the events plugin's single-event.css:
 *  - CSS custom properties pulled from Elementor global colors/fonts
 *  - body.single-vista_spot scoping to avoid polluting other pages
 *  - Light-mode overrides to prevent dark-mode bleed-in
 */

/* ============================================================
   Elementor CSS Variables (fall-backs for non-Elementor pages)
   ============================================================ */
:root {
    --vista-primary-color:   var(--e-global-color-primary,   #2563eb);
    --vista-secondary-color: var(--e-global-color-secondary, #64748b);
    --vista-text-color:      var(--e-global-color-text,      #1e293b);
    --vista-accent-color:    var(--e-global-color-accent,    #f59e0b);
    --vista-heading-font:    var(--e-global-typography-primary-font-family,
                                 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    --vista-body-font:       var(--e-global-typography-text-font-family,
                                 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    --vista-spot-max-width:  1140px;
}

/* ============================================================
   Base page wrapper
   ============================================================ */
body.single-vista_spot .vista-spot-page {
    font-family: var(--vista-body-font);
    color: var(--vista-text-color, #1e293b);
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
    background: #fff;
}

/* Ensure readable colors — scoped tightly so no box-within-box */
body.single-vista_spot .vista-spot-article {
    color: var(--vista-text-color, #1e293b);
}

/* ============================================================
   Breadcrumbs
   ============================================================ */
body.single-vista_spot .vista-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.85rem var(--vista-spot-max-width, 1140px);
    padding-left: clamp(1rem, 5vw, 2rem);
    padding-right: clamp(1rem, 5vw, 2rem);
    max-width: var(--vista-spot-max-width, 1140px);
    margin: 0 auto;
    font-size: 0.92rem;
    color: var(--vista-secondary-color, #64748b);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
}

body.single-vista_spot .vista-breadcrumbs a {
    color: var(--vista-secondary-color, #64748b);
    text-decoration: none;
    transition: color 0.2s;
}

body.single-vista_spot .vista-breadcrumbs a:hover {
    color: var(--vista-primary-color, #2563eb);
}

body.single-vista_spot .vista-breadcrumbs .separator {
    opacity: 0.5;
}

body.single-vista_spot .vista-breadcrumbs .current {
    color: var(--vista-text-color, #1e293b);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 28ch;
}

/* ============================================================
   Hero
   ============================================================ */
body.single-vista_spot .vista-spot-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
}

body.single-vista_spot .vista-spot-hero-overlay {
    width: 100%;
    padding: 4rem clamp(1rem, 5vw, 3rem) 2.5rem;
    background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.72));
    color: #fff;
}

body.single-vista_spot .vista-spot-hero-content {
    max-width: var(--vista-spot-max-width, 1140px);
    margin: 0 auto;
}

/* Category badges in hero */
body.single-vista_spot .vista-spot-hero-cats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

body.single-vista_spot .vista-spot-hero-cats .vista-spot-category-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}

body.single-vista_spot .vista-spot-hero-cats .vista-spot-category-badge:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* Spot title in hero */
body.single-vista_spot .vista-spot-hero-title {
    font-family: var(--vista-heading-font);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.6rem;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Location row in hero */
body.single-vista_spot .vista-spot-hero-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

body.single-vista_spot .vista-spot-hero-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Clickable hero (lightbox trigger) */
body.single-vista_spot .vista-spot-hero--clickable {
    cursor: zoom-in;
}

/* ── Breadcrumbs inside hero (white text) ────────────────── */
body.single-vista_spot .vista-spot-hero-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.85rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 3px 12px rgba(0, 0, 0, 0.35);
}

body.single-vista_spot .vista-spot-hero-breadcrumbs a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s;
}

body.single-vista_spot .vista-spot-hero-breadcrumbs a:hover {
    color: #fff;
}

body.single-vista_spot .vista-spot-hero-breadcrumbs .current {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 28ch;
}

body.single-vista_spot .vista-spot-hero-breadcrumbs span[aria-hidden] {
    opacity: 0.5;
}

/* ── Title + Share row (flex; share is right-aligned) ───── */
body.single-vista_spot .vista-spot-hero-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

body.single-vista_spot .vista-spot-hero-title-row .vista-spot-hero-title {
    margin: 0;
    flex: 1;
}

/* ── Share trigger button ────────────────────────────────── */
body.single-vista_spot .vista-spot-share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.35rem; /* optical alignment with first line of title */
}

body.single-vista_spot .vista-spot-share-trigger:hover {
    opacity: 0.85;
}

body.single-vista_spot .vista-spot-share-trigger .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 1.2;
    color: #1e293b;
}

/* Dark variant — plain header (no image) */
body.single-vista_spot .vista-spot-share-trigger--dark {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--vista-text-color, #1e293b);
}

body.single-vista_spot .vista-spot-share-trigger--dark:hover {
    background: rgba(0, 0, 0, 0.11);
}

body.single-vista_spot .vista-spot-share-trigger--dark .dashicons {
    color: var(--vista-text-color, #1e293b);
}

/* Plain header (no image) */
body.single-vista_spot .vista-spot-header-plain {
    max-width: var(--vista-spot-max-width, 1140px);
    margin: 2rem auto 0;
    padding: 2rem clamp(1rem, 5vw, 2rem);
}

body.single-vista_spot .vista-spot-header-plain .vista-spot-hero-title {
    color: var(--vista-text-color, #1e293b) !important;
    text-shadow: none;
}

body.single-vista_spot .vista-spot-header-plain .vista-spot-hero-location {
    color: var(--vista-secondary-color, #64748b);
}

body.single-vista_spot .vista-spot-header-plain .vista-spot-hero-cats .vista-spot-category-badge {
    background: rgba(37, 99, 235, 0.08);
    color: var(--vista-primary-color, #2563eb);
    border-color: rgba(37, 99, 235, 0.2);
}

/* ============================================================
   Two-column layout: main content + sidebar
   ============================================================ */
body.single-vista_spot .vista-spot-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: var(--vista-spot-max-width, 1140px);
    margin: 0 auto;
    padding: 3rem 0;
    align-items: start;
}

@media (max-width: 1200px) {
    body.single-vista_spot .vista-spot-content {
        padding-left: clamp(1rem, 5vw, 2rem);
        padding-right: clamp(1rem, 5vw, 2rem);
    }
}

@media (max-width: 768px) {
    body.single-vista_spot .vista-spot-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── Main column ─────────────────────────────────────────── */
body.single-vista_spot .vista-spot-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--vista-text-color, #1e293b);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

body.single-vista_spot .vista-spot-body {
    color: var(--vista-text-color, #1e293b);
    line-height: 1.8;
    margin-bottom: 2rem;
}

body.single-vista_spot .vista-spot-body p {
    margin-bottom: 1.25rem;
}

body.single-vista_spot .vista-spot-accessibility-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0f7ff !important;
    border-left: 4px solid var(--vista-primary-color, #2563eb);
    border-radius: 4px;
}

body.single-vista_spot .vista-spot-accessibility-section h2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vista-primary-color, #2563eb) !important;
    margin: 0 0 0.75rem;
}

/* ── Sidebar ─────────────────────────────────────────────── */
body.single-vista_spot .sidebar-widget {
    margin-bottom: 1.75rem;
    padding: 1.5rem 0;
}

body.single-vista_spot .sidebar-widget h3 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--vista-secondary-color, #64748b) !important;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
}

/* Visit info box rows */
body.single-vista_spot .vista-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--vista-text-color, #1e293b) !important;
}

body.single-vista_spot .vista-info-row:last-child {
    border-bottom: none;
}

body.single-vista_spot .vista-info-label {
    font-weight: 600;
    color: var(--vista-secondary-color, #64748b);
    font-size: 0.82rem;
}

/* ── All Spots sidebar list ──────────────────────────────── */
body.single-vista_spot .vista-spots-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.single-vista_spot .vista-spots-list-item {
}

body.single-vista_spot .vista-spots-list-item:last-child {
    border-bottom: none;
}

/* The row — works as both <a> and <span> */
body.single-vista_spot .vista-spots-list-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    text-decoration: none;
    color: var(--vista-text-color, #1e293b) !important;
}

body.single-vista_spot a.vista-spots-list-row:hover .vista-spots-list-title {
    color: var(--vista-primary-color, #1e40af) !important;
}

/* Photo thumbnails strip */
body.single-vista_spot .vista-spots-list-photos {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

body.single-vista_spot .vista-spots-list-photos img {
    width: 18px !important;
    height: 18px !important;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
}

body.single-vista_spot .vista-spots-list-more {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--vista-secondary-color, #64748b);
    white-space: nowrap;
    line-height: 1;
}

/* Spot title */
body.single-vista_spot .vista-spots-list-title {
    font-size: 0.82rem;
    line-height: 1.3;
    color: inherit;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Current spot — bold title */
body.single-vista_spot .vista-spots-list-current .vista-spots-list-title {
    font-weight: 700;
    color: var(--vista-primary-color, #1e40af) !important;
}

/* Contributors row (inside gallery section, between header and grid) */
body.single-vista_spot .vista-spot-contributors-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

body.single-vista_spot .vista-contributors-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--vista-secondary-color, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

body.single-vista_spot .vista-spot-contributors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

body.single-vista_spot .vista-contributor-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

body.single-vista_spot .vista-contributor-link:hover {
    opacity: 0.75;
}

body.single-vista_spot .vista-contributor-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    flex-shrink: 0;
}

body.single-vista_spot .vista-contributor-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vista-primary-color, #2563eb);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

body.single-vista_spot .vista-contributor-name {
    font-size: 0.82rem;
    color: var(--vista-text-color, #1e293b);
    font-weight: 500;
}

/* Gallery count + link */
body.single-vista_spot .vista-gallery-count {
    font-size: 0.9rem;
    color: var(--vista-secondary-color, #64748b);
    margin-bottom: 0.75rem;
}

body.single-vista_spot .vista-spot-gallery-link-btn {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--vista-primary-color, #2563eb);
    text-decoration: none;
    transition: opacity 0.2s;
}

body.single-vista_spot .vista-spot-gallery-link-btn:hover {
    opacity: 0.75;
}

/* Category tags */
body.single-vista_spot .vista-spot-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.single-vista_spot .taxonomy-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--vista-text-color, #1e293b);
    text-decoration: none;
    transition: background 0.2s;
}

body.single-vista_spot .taxonomy-tag:hover {
    background: #e2e8f0;
}

/* ============================================================
   Share Modal
   ============================================================ */
body.single-vista_spot .vista-spot-share-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000001;
    align-items: center;
    justify-content: center;
}

body.single-vista_spot .vista-spot-share-modal.active {
    display: flex;
}

body.single-vista_spot .vista-spot-share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

body.single-vista_spot .vista-spot-share-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    width: min(360px, calc(100vw - 2rem));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body.single-vista_spot .vista-spot-share-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

body.single-vista_spot .vista-spot-share-modal-close:hover {
    color: rgba(0, 0, 0, 0.8);
}

body.single-vista_spot .vista-spot-share-modal-title {
    font-family: var(--vista-heading-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--vista-text-color, #1e293b);
    margin: 0 0 1.25rem;
    padding-right: 1.5rem;
}

body.single-vista_spot .vista-spot-share-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

body.single-vista_spot .vista-spot-share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--vista-text-color, #1e293b);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

body.single-vista_spot .vista-spot-share-option:hover {
    background: #f1f5f9;
}

body.single-vista_spot .vista-spot-share-option .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--vista-secondary-color, #64748b);
}

body.single-vista_spot .vista-x-icon {
    font-size: 16px;
    font-weight: 700;
    color: var(--vista-secondary-color, #64748b);
    width: 18px;
    display: inline-block;
    text-align: center;
}

body.single-vista_spot .vista-spot-share-copy {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
}

body.single-vista_spot .vista-spot-share-url {
    flex: 1;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--vista-secondary-color, #64748b);
    background: #f8fafc;
    outline: none;
    min-width: 0;
}

body.single-vista_spot .vista-spot-copy-btn {
    padding: 7px 14px;
    background: var(--vista-primary-color, #2563eb);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

body.single-vista_spot .vista-spot-copy-btn:hover {
    opacity: 0.85;
}

/* ============================================================
   Gallery section (full width within container)
   ============================================================ */
body.single-vista_spot .vista-spot-gallery-section {
    max-width: var(--vista-spot-max-width, 1140px);
    margin: 0 auto;
    padding: 0 0 4rem;
}

@media (max-width: 1200px) {
    body.single-vista_spot .vista-spot-gallery-section {
        padding-left: clamp(1rem, 5vw, 2rem);
        padding-right: clamp(1rem, 5vw, 2rem);
    }
}

body.single-vista_spot .vista-spot-gallery-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
}

body.single-vista_spot .vista-spot-gallery-header h2 {
    font-family: var(--vista-heading-font);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vista-text-color, #1e293b) !important;
    margin: 0;
}

body.single-vista_spot .vista-spot-gallery-see-all {
    font-size: 0.85rem;
    color: var(--vista-primary-color, #2563eb);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

body.single-vista_spot .vista-spot-gallery-see-all:hover {
    opacity: 0.75;
}

/* Gallery grid — masonry columns */
body.single-vista_spot .vista-spot-gallery {
    columns: 3;
    column-gap: 12px;
}

/* Desktop column counts */
body.single-vista_spot .vista-spot-gallery.vista-cols-2 { columns: 2; }
body.single-vista_spot .vista-spot-gallery.vista-cols-3 { columns: 3; }
body.single-vista_spot .vista-spot-gallery.vista-cols-4 { columns: 4; }

body.single-vista_spot .vista-spot-gallery .vista-gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    margin-bottom: 12px;
    background: #e2e8f0;
}

body.single-vista_spot .vista-spot-gallery .vista-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

body.single-vista_spot .vista-spot-gallery .vista-gallery-item:hover img {
    transform: scale(1.03);
}

/* Owner credit overlay — slides up from bottom on hover */
body.single-vista_spot .vista-spot-gallery .vista-gallery-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.75rem 0.6rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

body.single-vista_spot .vista-spot-gallery .vista-gallery-item:hover .vista-gallery-credit {
    transform: translateY(0);
}

body.single-vista_spot .vista-spot-gallery .vista-gallery-credit .vista-owner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
}

body.single-vista_spot .vista-spot-gallery .vista-gallery-credit .vista-owner-credit-link {
    color: #fff;
    text-decoration: none;
}

body.single-vista_spot .vista-spot-gallery .vista-gallery-credit .vista-owner-credit-link:hover {
    text-decoration: underline;
}

/* Responsive — masonry columns */
@media (max-width: 768px) {
    body.single-vista_spot .vista-spot-gallery.vista-cols-4 { columns: 3; }
    body.single-vista_spot .vista-spot-gallery { column-gap: 8px; }
    body.single-vista_spot .vista-spot-gallery .vista-gallery-item { margin-bottom: 8px; }
}

@media (max-width: 480px) {
    body.single-vista_spot .vista-spot-gallery.vista-cols-3,
    body.single-vista_spot .vista-spot-gallery.vista-cols-4 { columns: 2; }
    body.single-vista_spot .vista-spot-gallery.vista-cols-2 { columns: 2; }
    body.single-vista_spot .vista-spot-gallery { column-gap: 6px; }
    body.single-vista_spot .vista-spot-gallery .vista-gallery-item { margin-bottom: 6px; }
}

/* ============================================================
   Difficulty badges (reuse existing colours)
   ============================================================ */
body.single-vista_spot .vista-spot-difficulty {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff !important;
}

/* ============================================================
   Post Content (the_content — Elementor or classic editor)
   ============================================================ */
body.single-vista_spot .vista-spot-post-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem clamp(1rem, 5vw, 2rem);
}

/* ============================================================
   Recommended Readings
   ============================================================ */
body.single-vista_spot .vista-spot-recommended {
    background: #f8fafc;
    padding: 3.5rem 0;
    margin-top: 1rem;
}

body.single-vista_spot .vista-spot-recommended-inner {
    max-width: var(--vista-spot-max-width, 1140px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

body.single-vista_spot .vista-spot-recommended-title {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--vista-text-color, #1e293b);
    margin: 0 0 1.75rem;
    font-family: var(--vista-heading-font);
}

body.single-vista_spot .vista-spot-recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

body.single-vista_spot .vista-rec-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

body.single-vista_spot .vista-rec-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

body.single-vista_spot .vista-rec-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

body.single-vista_spot .vista-rec-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

body.single-vista_spot .vista-rec-card:hover .vista-rec-card-thumb img {
    transform: scale(1.04);
}

body.single-vista_spot .vista-rec-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.single-vista_spot .vista-rec-card-meta {
    font-size: 0.75rem;
    color: var(--vista-secondary-color, #64748b);
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.single-vista_spot .vista-rec-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.6rem;
    font-family: var(--vista-heading-font);
}

body.single-vista_spot .vista-rec-card-title a {
    color: var(--vista-text-color, #1e293b);
    text-decoration: none;
}

body.single-vista_spot .vista-rec-card-title a:hover {
    color: var(--vista-primary-color, #2563eb);
}

body.single-vista_spot .vista-rec-card-excerpt {
    font-size: 0.875rem;
    color: var(--vista-secondary-color, #64748b);
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
}

body.single-vista_spot .vista-rec-card-read-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vista-primary-color, #2563eb);
    text-decoration: none;
    margin-top: auto;
}

body.single-vista_spot .vista-rec-card-read-more:hover {
    text-decoration: underline;
}

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 768px) {
    body.single-vista_spot .vista-spot-hero {
        min-height: 300px;
    }

    body.single-vista_spot .vista-spot-gallery-section {
        padding-bottom: 2.5rem;
    }

    body.single-vista_spot .vista-spot-recommended-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body.single-vista_spot .vista-spot-recommended-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Photographer & Collection pages — refined gallery grid
   (matches single-vista_spot gallery quality)
   ============================================================ */

/* Photographer page: no credit needed — we're already on the owner's page */
body.vista-photographer-page .vista-spot-gallery .vista-gallery-credit {
    display: none;
}

/* Collection page: hide credit by default, slide up on hover */
body.vista-collection-gallery-page .vista-spot-gallery .vista-gallery-credit {
    transform: translateY(100%);
}

body.vista-collection-gallery-page .vista-spot-gallery .vista-gallery-item:hover .vista-gallery-credit {
    transform: translateY(0);
}

/* Image zoom on hover */
body.vista-photographer-page .vista-spot-gallery .vista-gallery-item img,
body.vista-collection-gallery-page .vista-spot-gallery .vista-gallery-item img {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Square cells */
body.vista-photographer-page .vista-spot-gallery .vista-gallery-item,
body.vista-collection-gallery-page .vista-spot-gallery .vista-gallery-item {
    background: #e2e8f0;
}

/* Column counts — masonry */
body.vista-photographer-page .vista-spot-gallery.vista-cols-2,
body.vista-collection-gallery-page .vista-spot-gallery.vista-cols-2 { columns: 2; }

body.vista-photographer-page .vista-spot-gallery.vista-cols-3,
body.vista-collection-gallery-page .vista-spot-gallery.vista-cols-3 { columns: 3; }

body.vista-photographer-page .vista-spot-gallery.vista-cols-4,
body.vista-collection-gallery-page .vista-spot-gallery.vista-cols-4 { columns: 4; }

/* ── Natural image proportions — masonry ── */
body.vista-photographer-page .vista-spot-gallery .vista-gallery-item,
body.vista-collection-gallery-page .vista-spot-gallery .vista-gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    background: #e2e8f0;
}

body.vista-photographer-page .vista-spot-gallery .vista-gallery-item img,
body.vista-collection-gallery-page .vista-spot-gallery .vista-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

body.vista-photographer-page .vista-spot-gallery .vista-gallery-item:hover img,
body.vista-collection-gallery-page .vista-spot-gallery .vista-gallery-item:hover img {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
    body.vista-photographer-page .vista-spot-gallery.vista-cols-4,
    body.vista-collection-gallery-page .vista-spot-gallery.vista-cols-4 { columns: 3; }

    body.vista-photographer-page .vista-spot-gallery,
    body.vista-collection-gallery-page .vista-spot-gallery { column-gap: 8px; }

    body.vista-photographer-page .vista-spot-gallery .vista-gallery-item,
    body.vista-collection-gallery-page .vista-spot-gallery .vista-gallery-item { margin-bottom: 8px; }
}

@media (max-width: 480px) {
    body.vista-photographer-page .vista-spot-gallery.vista-cols-3,
    body.vista-photographer-page .vista-spot-gallery.vista-cols-4,
    body.vista-collection-gallery-page .vista-spot-gallery.vista-cols-3,
    body.vista-collection-gallery-page .vista-spot-gallery.vista-cols-4 { columns: 2; }

    body.vista-photographer-page .vista-spot-gallery.vista-cols-2,
    body.vista-collection-gallery-page .vista-spot-gallery.vista-cols-2 { columns: 2; }

    body.vista-photographer-page .vista-spot-gallery,
    body.vista-collection-gallery-page .vista-spot-gallery { column-gap: 6px; }

    body.vista-photographer-page .vista-spot-gallery .vista-gallery-item,
    body.vista-collection-gallery-page .vista-spot-gallery .vista-gallery-item { margin-bottom: 6px; }
}

/* ── Contributor row shared styles (collection page, photographer page) ── */
body.vista-photographer-page .vista-owner-spot-heading,
body.vista-collection-gallery-page .vista-collection-contributors {
    margin-bottom: 1rem;
}
