/* ============================================
   Related Travel Guides Section
   File: assets/css/related-guides.css

   Compact blog-post cards shown on route pages, rendered by
   includes/related-guides.php. Deliberately small: a thumbnail and a
   title, no excerpt, so six cards cost roughly the height that three
   full-size cards used to.

   Follows the existing route page conventions - #667eea/#764ba2 brand
   accents, white cards, 12px radius.
   ============================================ */

.related-guides-section {
    padding: 64px 20px;
    background: #f7fafc;
}

.related-guides-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   Header
   ============================================ */

.related-guides-header {
    text-align: center;
    margin-bottom: 28px;
}

.related-guides-header h2 {
    font-size: 1.75rem;
    color: #1f2937;
    margin: 0 0 8px;
}

.related-guides-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
    max-width: 620px;
    margin: 0 auto;
}

/* ============================================
   Grid - three compact cards per row on desktop,
   two on tablet, one on phones.
   ============================================ */

.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

/* ============================================
   Card

   The whole card is one <a>: a single clean link per post, and a large
   tap target. Laid out as a row so the card stays short.
   ============================================ */

.related-guide-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.related-guide-card:hover {
    border-color: #667eea;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.related-guide-thumb {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    background: #edf2f7;
    display: block;
}

.related-guide-thumb-empty {
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.15;
}

.related-guide-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;   /* lets long titles wrap instead of stretching the card */
}

.related-guide-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667eea;
}

/* Clamped to two lines so every card in a row is the same height
   regardless of title length. */
.related-guide-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.related-guide-card:hover .related-guide-title {
    color: #667eea;
}

.related-guide-time {
    font-size: 0.78rem;
    color: #6b7280;
}

/* ============================================
   Responsive

   The grid collapses on its own via auto-fit, so this only tightens
   spacing and shrinks the thumbnail on phones.
   ============================================ */

@media (max-width: 600px) {
    .related-guides-section {
        padding: 48px 16px;
    }

    .related-guides-header {
        margin-bottom: 22px;
    }

    .related-guides-header h2 {
        font-size: 1.45rem;
    }

    .related-guides-intro {
        font-size: 0.95rem;
    }

    .related-guides-grid {
        gap: 12px;
    }

    .related-guide-thumb {
        width: 72px;
        height: 72px;
    }
}
