/* ---------------------------
   Modern Slide Sidebar
---------------------------- */

#left-slide-sidebar {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-right: 1px solid rgba(0,0,0,0.05);
    box-shadow: 4px 0 25px rgba(0,0,0,0.12);
    z-index: 9998;
    transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Active slide */
#left-slide-sidebar.active {
    left: 0;
}

/* --------------------------------
   Overlay
----------------------------------- */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    opacity: 0;
    z-index: 9997;
    transition: opacity 0.4s ease;
}

#sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ------------------------------
   Sidebar Header + Close Button
------------------------------- */
.sidebar-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.5px;
}

/* Close Icon (modern ×) */
#sidebar-close {
    width: 22px;
    height: 22px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="4" x2="18" y2="18"/><line x1="18" y1="4" x2="4" y2="18"/></svg>') 
        center/20px no-repeat;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.25s ease;
}

#sidebar-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ------------------------------
   Sidebar Content
------------------------------- */
.sidebar-inner {
    padding: 30px 35px;
    overflow-y: auto;
}

/* Widget spacing */
.slide-widget {
    margin-bottom: 40px;
}

/* ------------------------------
   Menu Items – Modern Style
------------------------------- */
ul#menu-sidebar-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

ul#menu-sidebar-menu li {
    margin-bottom: 18px;
}

ul#menu-sidebar-menu li a {
    color: #222 !important;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    transition: 0.25s ease;
}

/* Hover effect: subtle gradient glow */
ul#menu-sidebar-menu li a:hover {
    background: linear-gradient(to right, #f0ece9, #e8e2de);
    color: #000 !important;
    transform: translateX(4px);
}

#burger-menu {
  cursor: pointer;
}

/* ============================================================
   TOP SEARCH PANEL — FULL MODERN COMBINED STYLE
   ============================================================ */

/* -----------------------------------------
   SEARCH ICON IN HEADER
------------------------------------------ */
#top-search-icon {
    cursor: pointer;
    width: 26px;
    height: 26px;
    position: relative;
    margin-left: 25px;
}

#top-search-icon .search-icon {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="17" y1="17" x2="23" y2="23"/></svg>')
        center/contain no-repeat;
    opacity: 0.7;
    transition: 0.3s ease;
}

#top-search-icon:hover .search-icon {
    opacity: 1;
    transform: scale(1.1);
}


/* -----------------------------------------
   TOP SEARCH PANEL
------------------------------------------ */
#top-search-panel {
    position: fixed;
    top: -220px;
    left: 0;
    width: 100%;
    padding-bottom: 25px;
    padding-top: 25px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
    z-index: 9999;
    transition: top 0.45s ease;
    display: flex;
    justify-content: center;
    align-items: center;      /* <<< keeps items vertically centered */
}

.search-panel-inner {
    width: 100%;
    max-width: 900px;
    padding: 30px;
    box-sizing: border-box;
}

#top-search-panel.active {
    top: 0;
}

/* ------------------------
   CLOSE ICON — OUTSIDE INNER
-------------------------- */
#search-panel-close {
    position: absolute;
    top: 50%;       /* vertical center of panel */
    right: 25px;    /* distance from screen edge */
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    cursor: pointer;

    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="5" x2="21" y2="21"/><line x1="21" y1="5" x2="5" y2="21"/></svg>')
        center/24px no-repeat;

    opacity: 0.65;
    transition: 0.25s ease;
}

#search-panel-close:hover {
    opacity: 1;
    transform: translateY(-50%) rotate(90deg);
}

/* ------------------------
   SEARCH FORM
-------------------------- */
#top-search-panel form {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative; /* Important for results dropdown */
}

#top-search-panel input[type="search"] {
    flex: 1;
    padding: 16px 22px;
    font-size: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.15);
    outline: none;
    background: rgba(255,255,255,0.65);
    transition: 0.25s ease;
}

#top-search-panel input[type="search"]:focus {
    border-color: #C6B4A6;
    background: rgba(255,255,255,0.9);
}

/* Submit Button */
.search-btn {
    background: #000;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.search-btn:hover {
    background: #C6B4A6;
}

/* Search icon inside button */
.submit-icon {
    width: 20px;
    height: 20px;
    display: block;

    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" stroke="white" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="9" r="6"/><line x1="14" y1="14" x2="19" y2="19"/></svg>')
        center/20px no-repeat;
}

/* -----------------------------------------
   OVERLAY
------------------------------------------ */
#search-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    opacity: 0;
    z-index: 9998;
    transition: opacity 0.35s ease;
}

#search-overlay.active {
    display: block;
    opacity: 1;
}


#ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    /* Removed max-height and overflow to allow full content display */
}

/* Loader animation */
#ajax-search-results.loading {
    padding: 15px;
    text-align: center;
}

#ajax-search-results.loading .loader {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#ajax-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#ajax-search-results ul li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

#ajax-search-results ul li:last-child {
    border-bottom: none;
}

#ajax-search-results ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 100%;
}

#ajax-search-results ul li a:hover {
    color: #C6B4A6;
}

.search-input-wrapper {
    position: relative; /* Now dropdown positions relative to INPUT */
    flex: 1;
}

.result-thumb {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: fill;
}

.result-meta {
    display: flex;
    flex-direction: column;
}

.result-title {
    font-weight: 500;
}

.result-type {
    font-size: 12px;
    color: #999;
}

#ajax-search-results ul li.highlighted {
    background-color: #f0f0f0;
}

.view-all-results {
    text-align: center;
    padding: 12px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.view-all-results a {
    display: inline-block;
    padding: 6px 12px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.view-all-results a:hover {
    background: #555;
}

.post-grid .pxl-grid__item {
    display: flex;
}

.post-grid .pxl-grid__item > .pxl-grid__item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-grid .pxl-posts__item-cnt {
    flex: 1;
}

.post-grid .pxl-post__item-gts {
    margin-top: auto;
}

.whole-box-link {
    position: relative;
}

.whole-box-link a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* =========================================
   CF7 – MODERN, RELIABLE CHECKBOX STYLING
   ========================================= */

.wpcf7 input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;

    box-sizing: border-box;
    flex: 0 0 22px;
    flex-shrink: 0;

    border: 2px solid #74685f;
    border-radius: 0 !important;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 12px;

    display: inline-block;
    position: relative;
    vertical-align: middle;

    margin: 6px 0px 6px 0;
    padding: 0;
    line-height: 1;

    cursor: pointer;
}

/* CHECKED STATE – SVG CHECKMARK */
.wpcf7 input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5L4 8L11 1' fill='none' stroke='%23C6B4A6' stroke-width='2'/%3E%3C/svg%3E");
}

/* Focus state */
.wpcf7 input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(198, 180, 166, 0.4);
}

/* CF7 layout fixes */
.wpcf7 .wpcf7-list-item {
    display: block;
    margin-bottom: 6px;
}

.wpcf7 .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
