/*
Theme Name:   Hotel411 Child
Theme URI:    https://hotel411.com/
Description:  Twenty Twenty-Five Child Theme for Hotel411 Directory Network
Author:       Hotel411.com, Inc.
Author URI:   https://hotel411.com/
Template:     twentytwentyfive
Version:      2.0.0
Text Domain:  hotel411-child
*/

/* ==========================================================================
   Sticky Reservation Bar
   ========================================================================== */
.h411-sticky-reservation-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}

.h411-sticky-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h411-sticky-info {
    display: flex;
    flex-direction: column;
}

.h411-hotel-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.h411-hotel-price {
    font-size: 0.9rem;
    color: #ffd166;
}

.h411-sticky-btn {
    background-color: #0077b6;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.h411-sticky-btn:hover {
    background-color: #023e8a;
}

@media (max-width: 600px) {
    .h411-sticky-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ==========================================================================
   Image Hover Meta (Bulletproof Gutenberg Caption Overlay)
   ========================================================================== */

/* 1. Force the figure container into a strict relative bounding box */
figure.wp-block-image,
.wp-block-image figure,
.wp-block-image {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    margin-bottom: 1.5rem !important;
}

/* 2. Image transition & scale */
figure.wp-block-image img,
.wp-block-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

figure.wp-block-image:hover img,
.wp-block-image:hover img {
    transform: scale(1.04) !important;
}

/* 3. The Figcaption Overlay: Force absolute dock at the bottom */
figure.wp-block-image figcaption,
.wp-block-image figcaption,
.wp-block-image .wp-element-caption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    text-align: left !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
    z-index: 20 !important;
}

/* 4. Smoothly reveal caption when figure or image container is hovered */
figure.wp-block-image:hover figcaption,
.wp-block-image:hover figcaption,
figure.wp-block-image:hover .wp-element-caption,
.wp-block-image:hover .wp-element-caption {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* ==========================================================================
   Two-Column Table of Contents
   ========================================================================== */
.h411-toc-container {
    background: #fdfbf7;
    border: 1px solid #e2ddd3;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.h411-toc-header {
    border-bottom: 2px solid #0077b6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.h411-toc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.h411-toc-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.h411-toc-col {
    flex: 1 1 calc(50% - 1.5rem);
    list-style: none;
    padding: 0;
    margin: 0;
}

.h411-toc-item {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.h411-toc-item.level-3 {
    padding-left: 1rem;
    font-size: 0.88rem;
}

.h411-toc-item a {
    color: #0077b6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.h411-toc-item a:hover {
    color: #023e8a;
    text-decoration: underline;
}

@media (max-width: 680px) {
    .h411-toc-col {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   Back to Top Floating Button
   ========================================================================== */
#h411-back-to-top {
    position: fixed;
    bottom: 75px; /* Floats above the sticky booking bar */
    right: 20px;
    width: 44px;
    height: 44px;
    background: #0077b6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 9998;
    transition: background 0.2s ease, transform 0.2s ease;
}

#h411-back-to-top:hover {
    background: #023e8a;
    transform: translateY(-2px);
}

/* ==========================================================================
   Single Hotel Map Wrapper
   ========================================================================== */
.h411-map-wrapper {
    margin: 1.5rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.h411-map-address {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #555555;
}

/* ==========================================================================
   All-In-One Map Directory Styling
   ========================================================================== */
.h411-all-map-wrapper {
    margin: 2rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.h411-map-popup {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    max-width: 200px;
}

.h411-map-popup strong {
    font-size: 14px;
    color: #1a1a1a;
}

/* ==========================================================================
   Header & Dropdown Navigation Enhancements
   ========================================================================== */
.h411-main-header {
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.wp-block-navigation .wp-block-navigation-submenu {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wp-block-navigation-submenu .wp-block-navigation-item {
    font-size: 0.92rem;
    padding: 4px 0;
}

.h411-nav-map-btn a {
    background-color: #0077b6 !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-weight: 600;
    transition: background 0.2s ease;
}

.h411-nav-map-btn a:hover {
    background-color: #023e8a !important;
}

.wp-block-navigation__responsive-container.is-menu-open {
    padding: 2rem 1.5rem !important;
    background-color: #ffffff !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

/* ==========================================================================
   Global Footer Styling
   ========================================================================== */
.h411-global-footer a {
    color: #e5e7eb !important;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.h411-global-footer a:hover {
    color: #0096FF !important; /* Brand Bright Blue */
    text-decoration: underline;
}

.h411-global-footer ul.is-style-bare-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.h411-global-footer hr.wp-block-separator {
    border-color: #374151 !important;
    opacity: 0.5;
}

/* ==========================================================================
   Directory Archive Grid Equal-Height Cards
   ========================================================================== */
.wp-block-query .wp-block-post-template.is-layout-grid {
    align-items: stretch;
}

.wp-block-query .wp-block-post-template.is-layout-grid > li {
    display: flex;
    flex-direction: column;
}

.wp-block-query .wp-block-post-template.is-layout-grid > li > .wp-block-group {
    flex: 1 1 auto;
}
/* ==========================================================================
   Directory Archive Grid Button Dynamic Linking
   ========================================================================== */
.wp-block-query .wp-block-post-template .wp-block-button__link {
    pointer-events: none; /* Passes the click to parent or keeps standard style */
}

/* Ensure equal height flex cards across grid rows */
.wp-block-query .wp-block-post-template.is-layout-grid {
    align-items: stretch;
}

.wp-block-query .wp-block-post-template.is-layout-grid > li {
    display: flex;
    flex-direction: column;
}

.wp-block-query .wp-block-post-template.is-layout-grid > li > .wp-block-group {
    flex: 1 1 auto;
}