/*
Theme Name: 	Kingplace Child Theme
Theme Uri:  	http://demo.wpthemego.com/themes/sw_kingplace/
Description:    A child theme of SW Kingplace
Author:     	Magentech
Author Uri: 	https://themeforest.net/user/magentech/
Template:   	kingplace
Version:    	1.0.0
License:    	GNU General Public License v2 or later
*/

/* ==========================================================================
   Sinbad The Sailor Hotel - Custom Styling & Logo Fit
   ========================================================================== */

/* Header Logo Styling: fit smoothly in top navigation */
.kingplace-logo {
    display: flex;
    align-items: center;
    min-height: 60px;
}
.kingplace-logo a {
    display: inline-block;
    line-height: 1;
}
.kingplace-logo img,
.header-mid .kingplace-logo img,
.header-style2 .kingplace-logo img {
    max-height: 54px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}
.header-style2 .header-mid {
    padding: 10px 0;
}
.header-style2 .mid-header {
    padding-top: 5px;
    padding-bottom: 5px;
}
.header-style2 #main-menu {
    padding-top: 10px;
}

/* Footer Logo Styling */
.footer-sinbad-logo {
    max-height: 52px;
    width: auto;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Responsive lightbox gallery styles */
.sinbad-lightbox-gallery {
    margin: 20px 0 40px;
}
.sinbad-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.sinbad-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sinbad-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.sinbad-gallery-item a {
    display: block;
    position: relative;
    overflow: hidden;
}
.sinbad-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.sinbad-gallery-item:hover img {
    transform: scale(1.05);
}
.sinbad-gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 54, 93, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sinbad-gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.sinbad-gallery-item .gallery-overlay i {
    color: #ffffff;
    font-size: 28px;
    background: rgba(208, 77, 62, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sinbad-gallery-caption {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
    color: #1B365D;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

/* ==========================================================================
   Fix Gallery Page Scrolling Issue (Theme .gallery overflow:hidden bug)
   ========================================================================== */
html,
body,
body.gallery,
body.page-id-4259 {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
}

body.gallery .body-wrapper,
body.page-id-4259 .body-wrapper {
    overflow: visible !important;
    height: auto !important;
}

/* ==========================================================================
   Navigation Menu Single-Row Flex Alignment (No wrap / No gap)
   ========================================================================== */
.header .primary-menu .navbar-inner {
    width: 100% !important;
}
.header .primary-menu .nav-pills,
.header .primary-menu .nav-mega,
.header .primary-menu ul.kingplace-menures {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    float: none !important;
    margin: 0 !important;
}
.header .primary-menu .nav-pills > li,
.header .primary-menu .nav-mega > li,
.header .primary-menu ul.kingplace-menures > li {
    display: inline-block !important;
    float: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.header .primary-menu .nav-pills > li > a,
.header .primary-menu .nav-mega > li > a,
.header .primary-menu ul.kingplace-menures > li > a {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
}

@media (min-width: 992px) and (max-width: 1200px) {
    .header .primary-menu .nav-pills > li > a,
    .header .primary-menu .nav-mega > li > a,
    .header .primary-menu ul.kingplace-menures > li > a {
        padding-left: 7px !important;
        padding-right: 7px !important;
        font-size: 12px !important;
    }
}

@media (min-width: 992px) {
    .header-mid .container > .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .header-mid .mid-header {
        width: auto !important;
        flex: 0 0 auto !important;
    }
    .header-mid #main-menu {
        width: auto !important;
        flex: 1 1 auto !important;
        max-width: none !important;
    }
}