/* 
 * Main CSS for Hotel Centro Cavour
 */

.\!rounded-button,
.rounded-button {
    border-radius: 8px !important;
}

/* Fix for fixed header overlapping with WordPress admin bar */
.admin-bar header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
    #mobile-menu-drawer {
        top: 46px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: #2C2C2C;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Base custom styles to ensure elementor renders correctly */
.bg-secondary {
    background-color: #F8F5F2;
}

.bg-primary {
    background-color: #8B2332;
}

.text-primary {
    color: #8B2332;
}

.text-darkgrey {
    color: #1A1A1A;
}

.hover\:text-primary:hover {
    color: #8B2332;
}

/* Link overrides to bypass parent theme styling in custom header & footer */
header a,
#mobile-menu-drawer a,
footer a {
    text-decoration: none !important;
}

/* Header link colors and hovers */
header nav a,
#mobile-menu-drawer nav a {
    color: #1A1A1A !important;
    transition: color 0.2s ease;
}

header nav a:hover,
#mobile-menu-drawer nav a:hover {
    color: #8B2332 !important;
}

/* Footer Quick links */
footer ul a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.2s ease;
}

footer ul a:hover {
    color: #8B2332 !important;
}

/* Footer Social icons */
footer .flex.gap-4 a {
    color: #ffffff !important;
    transition: all 0.2s ease;
}

footer .flex.gap-4 a:hover {
    background-color: #8B2332 !important;
    color: #ffffff !important;
}

/* 
 * Beddy Bar Component Custom Styles & Theming
 */
beddy-bar {
    --mainColor: #8B2332 !important;
    --mainColorCustomize: #8B2332 !important;
    --buttonCustomize: #8B2332 !important;
    --buttonColorHoverCustomize: #731C29 !important;
    --buttonFontColorCustomize: #ffffff !important;
    --borderColor: #E5E7EB !important;
    --borderCustomize: #E5E7EB !important;
    --fontFamilyCustomize: 'Inter', system-ui, -apple-system, sans-serif !important;
    --darkMain: #8B2332 !important;
    --darkestMain: #731C29 !important;
    --bgHover: rgba(139, 35, 50, 0.05) !important;
    --tw-ring-color: #8B2332 !important;
    --bestRateColorCustomize: #ffffff !important;
    display: block;
    width: 100%;
}



/* Smooth sticky bar transition shadow adjustment */
#sticky-booking-bar {
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

/* Standard scroll padding for anchor links when the sticky bar is active on mobile */
@media (max-width: 1024px) {
    html {
        scroll-padding-bottom: 80px;
    }
}

/* 
 * Custom Gallery Lightbox Styles (Plain CSS to bypass Tailwind JIT CDN constraints)
 */
#custom-gallery-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
    pointer-events: none !important;
}

#custom-gallery-lightbox.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#custom-gallery-lightbox.hidden {
    display: none !important;
}

/* Close button */
#lightbox-close {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 36px !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    z-index: 100000 !important;
}
#lightbox-close:hover {
    color: #d1d5db !important;
}

/* Nav buttons - Centered vertically on left and right */
.lightbox-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: none !important;
    color: #ffffff !important;
    width: 50px !important;
    height: 56px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 28px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    z-index: 100000 !important;
}
.lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #d1d5db !important;
}
#lightbox-prev {
    left: 24px !important;
}
#lightbox-next {
    right: 24px !important;
}

/* Image container & Image */
.lightbox-content-container {
    max-width: 85vw !important;
    max-height: 80vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#lightbox-image {
    max-width: 100% !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    transform: scale(0.95) !important;
    transition: transform 0.3s ease-in-out !important;
}
#custom-gallery-lightbox.active #lightbox-image {
    transform: scale(1) !important;
}

/* Counter */
#lightbox-counter {
    position: absolute !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    z-index: 100000 !important;
}

/* 
 * Force Google Map Iframe to fill container fully and responsively (overriding Google inline sizes)
 */
.location-iframe-wrapper iframe {
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
}


