/*
 Theme Name:   Hotel411 Child
 Theme URI:    https://hotel411.com/
 Description:  Custom Hotel411 Child Theme for Twenty Twenty-Five
 Author:       Hotel411
 Author URI:   https://hotel411.com/
 Template:     twentytwentyfive
 Version:      1.0.0
 Text Domain:  hotel411-child
*/

/* =========================================================================
   Table of Contents: Multi-Column Layout & Design (1340px Max Width)
   ========================================================================= */
.tgb-toc-container {
    max-width: 1340px;
    width: 100%;
    margin: 30px auto;
    box-sizing: border-box;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px 30px;
}

.tgb-toc-title {
    font-weight: 700;
    font-size: 1.25em;
    margin-bottom: 16px;
    color: #111;
}

.tgb-toc-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: decimal;
    
    /* 2 Columns on desktop with a clean gap */
    columns: 2;
    column-gap: 50px;
}

.tgb-toc-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    /* Prevents list items/subheadings from awkwardly splitting across column breaks */
    break-inside: avoid;
    page-break-inside: avoid;
}

.tgb-toc-list li a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tgb-toc-list li a:hover {
    color: #005177;
    text-decoration: underline;
}

.tgb-toc-list .toc-level-3 {
    margin-left: 18px;
    list-style-type: circle;
}

/* Mobile Fallback: Automatically collapse to 1 column on smaller screens */
@media (max-width: 768px) {
    .tgb-toc-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .tgb-toc-list {
        columns: 1;
    }
}

/* =========================================================================
   Floating "Back to TOC" Button
   ========================================================================= */
#tgb-back-to-toc {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #111;
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#tgb-back-to-toc:hover {
    background-color: #0073aa;
    color: #fff;
}