/* ==========================================================================
   BunnyBasicsHQ - 25 Content Blocks & Scoped .tbg- Stylesheet
   ========================================================================== */

.article-content, .tbg-article {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1D2525;
}

/* Headings */
.tbg-heading, .article-content h1, .article-content h2, .article-content h3, .article-content h4 {
    color: #0B3D3A;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    scroll-margin-top: 90px;
}
.article-content h2, .tbg-article h2 {
    font-size: 1.85rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #D9A441;
}
.article-content h3, .tbg-article h3 {
    font-size: 1.45rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.article-content h4 { font-size: 1.2rem; margin-top: 1.5rem; }

/* Paragraph & Lead */
.tbg-paragraph, .article-content p { margin-bottom: 1.5rem; }
.tbg-lead, .tbg-intro {
    font-size: 1.3rem;
    line-height: 1.65;
    color: #314443;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Table of Contents */
.tbg-toc {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0B3D3A;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 12px rgba(11, 61, 58, 0.04);
}
.tbg-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #0B3D3A;
    margin-bottom: 12px;
}
.tbg-toc-toggle {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: #627070;
    cursor: pointer;
}
.tbg-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tbg-toc-list li a {
    color: #1D2525;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}
.tbg-toc-list li a:hover { color: #D9A441; text-decoration: underline; }

/* Images & Captions */
.tbg-image-block { margin: 2rem 0; text-align: center; }
.tbg-image-block img { border-radius: 8px; width: 100%; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.tbg-figcaption {
    font-size: 0.875rem;
    color: #627070;
    margin-top: 8px;
    font-style: italic;
}
.tbg-img-wide { margin-left: -50px; margin-right: -50px; }
.tbg-img-full { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; border-radius: 0; }

/* Image + Text Block */
.tbg-image-text-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    margin: 2.5rem 0;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eef0ee;
}
.tbg-image-text-block.tbg-img-right { grid-template-columns: 1fr 1fr; }
.tbg-image-text-block.tbg-img-right .tbg-it-image { order: 2; }
.tbg-it-image img { border-radius: 8px; width: 100%; height: 100%; object-fit: cover; }

/* Multi-Columns */
.tbg-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 2rem 0; }
.tbg-three-columns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin: 2rem 0; }

/* Quotes */
.tbg-quote {
    border-left: 4px solid #D9A441;
    background: #fdfbf7;
    margin: 2.5rem 0;
    padding: 24px 30px;
    border-radius: 0 10px 10px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
    color: #0B3D3A;
}
.tbg-quote p { margin: 0 0 10px; }
.tbg-quote-author { font-size: 0.95rem; font-style: normal; font-family: -apple-system, sans-serif; font-weight: 600; color: #627070; }

/* Callout Boxes (Info, Warning, Travel Tip) */
.tbg-box {
    padding: 20px 24px;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 5px solid;
}
.tbg-info-box { background: #f0f7f7; border-color: #0B3D3A; color: #1D2525; }
.tbg-warning-box { background: #fef7ec; border-color: #D9A441; color: #664d03; }
.tbg-box-header { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 8px; }

.tbg-travel-tip {
    background: #eef6f4;
    border: 1px solid #c2ded8;
    border-radius: 12px;
    padding: 24px;
    margin: 2.5rem 0;
    position: relative;
}
.tbg-tip-badge {
    display: inline-block;
    background: #0B3D3A;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.tbg-travel-tip h4 { color: #0B3D3A; margin: 0 0 8px; font-size: 1.25rem; }

/* Destination & Country Cards */
.tbg-card {
    background: #ffffff;
    border: 1px solid #e3e6e4;
    border-radius: 12px;
    overflow: hidden;
    margin: 2.5rem 0;
    box-shadow: 0 6px 18px rgba(11, 61, 58, 0.05);
}
.tbg-dest-card { display: grid; grid-template-columns: 1fr 1.3fr; }
.tbg-card-media { position: relative; min-height: 240px; }
.tbg-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tbg-card-score { position: absolute; bottom: 12px; left: 12px; background: rgba(11,61,58,0.9); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: bold; }
.tbg-card-content { padding: 24px; }
.tbg-dest-country { font-size: 0.95rem; color: #627070; font-weight: normal; }
.tbg-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tbg-tag { background: #f0f2f0; color: #0B3D3A; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 15px; }

.tbg-country-card {
    display: flex;
    background: #ffffff;
    border: 1px solid #e3e6e4;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}
.tbg-cc-img { width: 35%; }
.tbg-cc-img img { width: 100%; height: 100%; object-fit: cover; }
.tbg-cc-info { width: 65%; padding: 20px 24px; }
.tbg-cc-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 0.95rem; }

/* Hotel & Restaurant Cards */
.tbg-hotel-card { display: grid; grid-template-columns: 1fr 1.5fr; }
.tbg-hotel-header { display: flex; justify-content: space-between; align-items: center; }
.tbg-hotel-loc { font-size: 0.9rem; color: #627070; margin: 4px 0 10px; }
.tbg-amenities { font-size: 0.9rem; color: #314443; margin-bottom: 16px; }
.tbg-btn-book {
    display: inline-block;
    padding: 8px 18px;
    background: #0B3D3A;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.tbg-btn-book:hover { background: #D9A441; color: #ffffff; }

.tbg-dining-card { display: flex; gap: 20px; padding: 20px; align-items: center; }
.tbg-dining-card .tbg-card-media { width: 140px; height: 140px; min-height: auto; border-radius: 8px; flex-shrink: 0; overflow: hidden; }

/* FAQ Section & Accordions */
.tbg-faq-section, .tbg-faq { margin: 3rem 0; }
.tbg-faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.tbg-faq-item {
    background: #ffffff;
    border: 1px solid #e3e6e4;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.tbg-faq-item[open] { border-color: #0B3D3A; box-shadow: 0 4px 12px rgba(11,61,58,0.06); }
.tbg-faq-question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #0B3D3A;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}
.tbg-faq-question::-webkit-details-marker { display: none; }
.tbg-faq-icon { font-size: 1.25rem; font-weight: bold; color: #D9A441; transition: transform 0.2s; }
.tbg-faq-item[open] .tbg-faq-icon { transform: rotate(45deg); }
.tbg-faq-answer { padding: 0 20px 20px; color: #314443; font-size: 1rem; border-top: 1px solid #f0f2f0; padding-top: 14px; }

/* Comparison Tables */
.tbg-table-wrapper { overflow-x: auto; margin: 2rem 0; }
.tbg-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e3e6e4;
    font-size: 0.95rem;
}
.tbg-table th { background: #0B3D3A; color: #ffffff; padding: 12px 16px; text-align: left; font-weight: 600; }
.tbg-table td { padding: 12px 16px; border-top: 1px solid #eef0ee; }
.tbg-table tr:nth-child(even) { background: #fafbfa; }

/* Gallery Grids */
.tbg-gallery { display: grid; gap: 14px; margin: 2.5rem 0; }
.tbg-grid-cols-2 { grid-template-columns: 1fr 1fr; }
.tbg-grid-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.tbg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.tbg-gal-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.tbg-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tbg-gal-item:hover img { transform: scale(1.06); }
.tbg-gal-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.75rem; padding: 4px 8px; }

/* Video & Map Embeds */
.tbg-video-wrapper, .tbg-map-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.tbg-video-wrapper iframe, .tbg-map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Related Articles inside Body */
.tbg-related-section {
    background: #ffffff;
    border: 1px solid #e3e6e4;
    border-radius: 10px;
    padding: 24px;
    margin: 3rem 0;
}
.tbg-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 14px; }
.tbg-rel-card { text-decoration: none; border-radius: 6px; overflow: hidden; }
.tbg-rel-card img { height: 120px; width: 100%; object-fit: cover; border-radius: 6px; }
.tbg-rel-card h4 { font-size: 0.95rem; margin: 8px 0 0; color: #0B3D3A; line-height: 1.35; }
.tbg-rel-card:hover h4 { color: #D9A441; }

/* Mobile Adjustments for Blocks */
@media (max-width: 768px) {
    .tbg-image-text-block, .tbg-two-columns, .tbg-three-columns, .tbg-dest-card, .tbg-hotel-card, .tbg-country-card, .tbg-dining-card {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .tbg-cc-img, .tbg-cc-info { width: 100%; }
    .tbg-grid-cols-3, .tbg-grid-cols-4 { grid-template-columns: 1fr 1fr; }
    .tbg-cc-list { grid-template-columns: 1fr; }
    .tbg-img-wide { margin-left: 0; margin-right: 0; }
}

