/* ============================================================
   BLOG DETAIL PAGES — Shared Stylesheet
   Uses color variables from chloe-family site root
   ============================================================ */
@import url('../css/style.css');

:root {
    --teal: #4a9b8c;
    --teal-dark: #357a6d;
    --teal-light: #6bbdae;
    --white: #ffffff;
    --off-white: #f8f5f0;
    --cream: #f2ede6;
    --cream-dk: #e8e0d4;
    --brown: #3d2b1a;
    --brown-mid: #6b4c30;
    --gold: #c9a058;
    --text-dark: #2c2016;
    --text-mid: #5a4535;
    --text-light: rgba(255, 255, 255, 0.85);
    --nav-h: 70px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
    --font-accent: 'Raleway', sans-serif;

    --shadow-sm: 0 2px 8px rgba(61, 43, 26, 0.08);
    --shadow-md: 0 6px 24px rgba(61, 43, 26, 0.13);
    --shadow-lg: 0 16px 48px rgba(61, 43, 26, 0.18);
    --radius: 10px;
    --transition: 0.3s ease;
}

/* ---- Google Fonts import ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&family=Raleway:wght@400;500;600;700&display=swap');

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.75;
    font-size: 16px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--teal-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

/* ============================================================
   BLOG BANNER / HERO
   ============================================================ */
.blog-banner {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--brown) 0%, var(--teal-dark) 60%, var(--teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(201, 160, 88, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(74, 155, 140, 0.20) 0%, transparent 50%);
}

.blog-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(160deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.55) 100%),
        var(--banner-bg, url("https://www.puravidacasas.com/uploads/2/8/7/1/28712979/background-images/1526295871.jpg"));
    background-size: cover;
    background-position: center;
}

.blog-banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.blog-banner-eyebrow {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeSlideDown 0.7s 0.2s forwards;
}

.blog-banner-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    max-width: 780px;
    opacity: 0;
    animation: fadeSlideDown 0.7s 0.4s forwards;
}

.blog-banner-title em {
    font-style: italic;
    color: var(--gold);
}

.blog-banner-meta {
    margin-top: 18px;
    font-family: var(--font-accent);
    font-size: 0.82rem;
    color: var(--text-light);
    letter-spacing: 0.06em;
    opacity: 0;
    animation: fadeSlideDown 0.7s 0.6s forwards;
}

.blog-banner-meta span {
    display: inline-block;
    margin: 0 10px;
}

.blog-banner-meta .sep {
    color: var(--gold);
    margin: 0 4px;
}

.blog-banner-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 4;
}

.blog-banner-wave svg {
    width: 100%;
    height: 56px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-wrap {
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dk);
    padding: 0;
}

.breadcrumb-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-inner a,
.breadcrumb-inner span {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-mid);
}

.breadcrumb-inner a {
    color: var(--teal-dark);
}

.breadcrumb-inner a:hover {
    color: var(--gold);
}

.breadcrumb-inner .bc-sep {
    color: var(--gold);
    font-size: 0.7rem;
    opacity: 0.7;
}

.breadcrumb-inner .bc-current {
    color: var(--text-mid);
    font-weight: 600;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.blog-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 52px;
    align-items: start;
}

/* ============================================================
   MAIN ARTICLE
   ============================================================ */
.blog-article {
    min-width: 0;
}

/* Article Header */
.article-header {
    margin-bottom: 36px;
}

.article-category-tag {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--teal);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--brown);
    line-height: 1.25;
    margin-bottom: 16px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--text-mid);
    padding-bottom: 22px;
    border-bottom: 2px solid var(--cream-dk);
}

.article-meta-row .meta-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-row .meta-date svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.article-meta-row .meta-comments a {
    color: var(--teal-dark);
    font-weight: 600;
}

.article-meta-row .meta-comments a:hover {
    color: var(--gold);
}

/* Image Gallery */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 38px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-gallery .gallery-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}

.article-gallery .gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.article-gallery .gallery-img:hover img {
    transform: scale(1.07);
}

.article-gallery .gallery-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(61, 43, 26, 0.4) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.article-gallery .gallery-img:hover::after {
    opacity: 1;
}

/* Gallery caption tooltip */
.article-gallery .gallery-img[data-caption]:hover::before {
    content: attr(data-caption);
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
    font-family: var(--font-accent);
    font-size: 0.72rem;
    color: var(--white);
    text-align: center;
}

/* Article Body */
.article-body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.85;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body strong {
    color: var(--brown);
    font-weight: 700;
}

.article-body a {
    color: var(--teal-dark);
    font-weight: 600;
    border-bottom: 1px dotted var(--teal-light);
    padding-bottom: 1px;
    transition: color var(--transition), border-color var(--transition);
}

.article-body a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* Restaurant / Item Cards */
.restaurant-card {
    background: var(--white);
    border: 1px solid var(--cream-dk);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.restaurant-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.restaurant-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.restaurant-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brown);
}

.restaurant-price {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal-dark);
    background: var(--cream);
    border: 1px solid var(--cream-dk);
    border-radius: 5px;
    padding: 3px 10px;
    white-space: nowrap;
}

.restaurant-distance {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    color: var(--text-mid);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurant-distance svg {
    width: 12px;
    height: 12px;
    color: var(--gold);
}

.restaurant-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 10px;
}

.restaurant-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.restaurant-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal-dark);
    border: none;
    padding: 0;
    letter-spacing: 0.03em;
}

.restaurant-links a:hover {
    color: var(--gold);
}

/* Intro paragraph highlight */
.article-intro {
    font-size: 1.08rem;
    color: var(--text-mid);
    background: var(--cream);
    border-left: 4px solid var(--gold);
    padding: 18px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 36px;
    line-height: 1.8;
}

/* Bullet list style (Esterillos & Free Things) */
.styled-list {
    list-style: none;
    margin: 0 0 28px 0;
    padding: 0;
}

.styled-list li {
    position: relative;
    padding: 18px 18px 18px 48px;
    margin-bottom: 10px;
    background: var(--white);
    border: 1px solid var(--cream-dk);
    border-radius: var(--radius);
    font-size: 0.97rem;
    color: var(--text-dark);
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.styled-list li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
}

.styled-list li::before {
    content: counter(list-counter);
    counter-increment: list-counter;
    position: absolute;
    left: 14px;
    top: 18px;
    width: 24px;
    height: 24px;
    background: var(--teal);
    color: var(--white);
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.styled-list {
    counter-reset: list-counter;
}

/* Bullet-only list (no numbers) */
.bullet-list {
    list-style: none;
    margin: 0 0 28px 0;
    padding: 0;
}

.bullet-list li {
    position: relative;
    padding: 16px 18px 16px 42px;
    margin-bottom: 10px;
    background: var(--white);
    border: 1px solid var(--cream-dk);
    border-radius: var(--radius);
    font-size: 0.97rem;
    color: var(--text-dark);
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.bullet-list li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
}

.bullet-list li::before {
    content: '→';
    position: absolute;
    left: 16px;
    top: 17px;
    color: var(--teal);
    font-size: 1rem;
    font-weight: 700;
}

.bullet-list li strong {
    color: var(--brown);
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.bullet-list li a {
    color: var(--teal-dark);
    font-weight: 600;
    border-bottom: 1px dotted var(--teal-light);
}

.bullet-list li a:hover {
    color: var(--gold);
}

/* Comment count */
.article-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 2px solid var(--cream-dk);
    flex-wrap: wrap;
    gap: 16px;
}

.comments-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal-dark);
    background: var(--cream);
    border: 1px solid var(--cream-dk);
    border-radius: 6px;
    padding: 8px 18px;
    transition: background var(--transition), color var(--transition);
}

.comments-link:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
    transition: color var(--transition);
}

.back-to-blog:hover {
    color: var(--teal-dark);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.blog-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--cream-dk);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    position: relative;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--teal);
}

/* About widget */
.sidebar-about-text {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* Archives widget */
.sidebar-archives {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-archives li {
    padding: 8px 0;
    border-bottom: 1px solid var(--cream-dk);
}

.sidebar-archives li:last-child {
    border-bottom: none;
}

.sidebar-archives li a {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--teal-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.sidebar-archives li a:hover {
    color: var(--gold);
}

.sidebar-archives li a::before {
    content: '›';
    color: var(--gold);
    font-size: 1.1rem;
}

/* Categories */
.sidebar-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.sidebar-cats li a {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--teal-dark);
    background: var(--cream);
    border: 1px solid var(--cream-dk);
    border-radius: 20px;
    padding: 5px 14px;
    transition: background var(--transition), color var(--transition);
}

.sidebar-cats li a:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

/* Related posts */
.related-post-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--cream-dk);
    transition: transform var(--transition);
}

.related-post-item:last-child {
    border-bottom: none;
}

.related-post-item:hover {
    transform: translateX(3px);
}

.related-post-thumb {
    width: 64px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-info {
    flex: 1;
    min-width: 0;
}

.related-post-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brown);
    line-height: 1.35;
    margin-bottom: 4px;
}

.related-post-title a {
    color: var(--brown);
}

.related-post-title a:hover {
    color: var(--teal-dark);
}

.related-post-date {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    color: var(--text-mid);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 8, 0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.25s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 900px;
    width: 100%;
    text-align: center;
    margin-top: 7rem;
}

.lightbox-inner img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.lightbox-caption {
    margin-top: 14px;
    font-family: var(--font-accent);
    font-size: 0.82rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    background: var(--gold);
    color: var(--brown);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: var(--white);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 100;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: -50px;
}

.lightbox-next {
    right: -50px;
}

@media (max-width: 1000px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .blog-page-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .article-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-banner {
        height: 280px;
    }
}

@media (max-width: 560px) {
    .article-gallery {
        grid-template-columns: 1fr;
    }

    .blog-page-wrapper {
        padding: 36px 16px 60px;
    }

    .blog-banner-title {
        font-size: 1.5rem;
    }

    .restaurant-card-header {
        flex-direction: column;
        gap: 6px;
    }
}