/*
Theme Name: Arenberghoeve-2025
Theme URI: https://arenberghoeve.be
Author: Gerry Uytdenhouwen
Author URI: https://twistedminds.be
Description: Custom theme for Arenberghoeve B&B with Tailwind CSS
Version: 1.2.39
License: GPL v2 or later
Text Domain: arenberghoeve
*/

/* Body and page structure styles */
body {
    font-family: inherit;
}

/* Main site layout */
.site-main {
    /* padding-bottom removed per client request */
}

/* Add margin-top only for specific pages that need it (blog-related pages without banners) */
.archive .site-main:not(.single-apartment .site-main),
.blog .site-main {
    margin-top: 5rem; /* 80px for header on mobile */
}

/* Ensure single-apartment and single blog posts with hero never get margin-top */
.single-apartment .site-main,
.single-post .site-main {
    margin-top: 0 !important;
}

/* Single blog posts: witte achtergrond (body heeft bg-gray-50 globaal) */
body.single-post {
    background-color: #ffffff !important;
}

/* WordPress WYSIWYG image alignment */
.prose img.alignleft {
    float: left;
    margin: 0.25rem 1.5rem 1rem 0;
    display: inline;
}
.prose img.alignright {
    float: right;
    margin: 0.25rem 0 1rem 1.5rem;
    display: inline;
}
.prose img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.prose img.alignnone {
    display: inline-block !important;
    width: auto !important;
    margin: 0.25rem 0.25rem 0.5rem 0 !important;
    vertical-align: top;
}
.prose .wp-caption {
    display: inline-block;
    margin: 0.25rem 0.25rem 0.5rem 0;
    vertical-align: top;
}
.prose .wp-caption img {
    display: block;
    margin: 0;
}

/* Blog post: scroll offset voor fixed navigatie */
.single-post .prose h2,
.single-post .prose h3 {
    scroll-margin-top: 180px;
}

@media (min-width: 1024px) {
    .archive .site-main:not(.single-apartment .site-main),
    .blog .site-main {
        margin-top: 7rem; /* 112px for header on desktop */
    }
}


.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Apartment single page styles */
.single-apartment-container {
    /* Basic container for apartment content */
}

/* Gallery styles */
.apartment-gallery-layout {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.apartment-gallery-column {
    /* Column for gallery */
}

.apartment-info-column {
    /* Column for info */
}

.apartment-gallery-main {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-image.active {
    display: block;
    opacity: 1;
}

.gallery-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apartment-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    overflow: hidden;
    border: 2px solid transparent;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #007cba;
}

.gallery-thumb img,
.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom styles that can't be done with Tailwind */
.banner-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
}

.logo-shadow {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Modal styles */
#post-modal {
    backdrop-filter: blur(4px);
}

#post-modal .prose img {
    margin: 1.5rem auto;
    border-radius: 0.5rem;
}

#post-modal .prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

#post-modal .prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

#post-modal .prose p {
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

#post-modal .prose ul,
#post-modal .prose ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

#post-modal .prose li {
    margin-bottom: 0.5rem;
}

/* Loading spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Language dropdown styles */
.language-dropdown-menu ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

.language-dropdown-menu li {
    margin: 0;
    padding: 0;
    list-style: none !important;
    list-style-type: none !important;
}

.language-dropdown-menu li::before {
    display: none !important;
    content: none !important;
}

.language-dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    font-size: 14px;
}

.language-dropdown-menu li a:hover {
    background-color: #f7f7f7;
}

.language-dropdown-menu li.current-lang a {
    background-color: #f0f0f0;
    font-weight: 600;
}

.language-dropdown-menu img {
    width: 20px;
    height: auto;
    margin-right: 10px;
    display: inline-block;
}

/* =============================================
   Google Reviews Widget — Custom Styling
   ============================================= */

/* Left header panel: larger image, centered layout */
.wp-gr .grw-header {
    --img-size: 80px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1.5rem 1rem !important;
    background: #f9f6f1 !important;
    border-radius: 0.75rem !important;
}

/* Bigger business photo */
.wp-gr .grw-header .grw-img-wrap {
    margin-bottom: 0.75rem !important;
}

.wp-gr .grw-header .grw-img {
    border: 3px solid #d4a96a !important;
    object-fit: cover !important;
}

/* Business name: use theme font, not Google blue */
.wp-gr .grw-header a.wp-google-name {
    color: #3d2e1e !important;
    font-family: 'Baskerville', Georgia, serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Stars: slightly larger */
.wp-gr .grw-header .rpi-stars {
    font-size: 1rem !important;
}

/* "powered by Google" - keep subtle */
.wp-gr .grw-header .wp-google-powered {
    font-size: 0.75rem !important;
    color: #888 !important;
    margin-top: 0.25rem !important;
}

/* =============================================
   Blog single — UL/OL naast floating TOC
   Bullets verdwijnen achter float zonder dit
   ============================================= */
.single-post .prose ul,
.single-post .prose ol {
    padding-left: 1.75rem !important;
}

.single-post .prose ul > li,
.single-post .prose ol > li {
    list-style-position: inside !important;
    line-height: 1.5 !important;
}
