/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* GLOBAL LAYOUT (CRM STYLE) - DESKTOP */
@media (min-width: 850px) {
    /* Adjust breakpoint as needed, usually 850px or 1000px */

    .crm-layout-container {
        display: flex;
        flex-direction: row;
        min-height: 100vh;
        background-color: #f6f7f9;
        /* Light gray background for CRM feel */
    }

    /* Left Sidebar Wrapper */
    .dashboard-sidebar {
        width: 260px;
        flex-shrink: 0;
        z-index: 100;
        background: #fff;
        border-right: 1px solid #e0e0e0;
    }

    /* Ensure the inner fixed sidebar fits */
    .dashboard-sidebar .sidebar-inner {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px !important;
        overflow-y: auto;
    }

    /* Main Content Wrapper */
    .crm-content-wrapper {
        flex-grow: 1;
        width: calc(100% - 260px);
        min-width: 0;
        /* Prevents flex items from overflowing */
        display: flex;
        flex-direction: column;
        padding-left: 20px;
        /* Optional spacing if sidebar is fixed vs flow */
    }

    /* Hide Standard Header on Desktop */
    #header.header {
        display: none !important;
    }

    /* Adjust Main Content Area specific to Flatsome */
    #main.is-page,
    #main.is-archive {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    /* Ensure Footer is contained properly */
    .footer-wrapper {
        margin-top: auto;
        /* Pushes footer to bottom if content is short */
        width: 100%;
    }
}

/* Sidebar Styling Details */
.dashboard-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 6px;
    margin-bottom: 5px;
}

.dashboard-nav li a:hover,
.dashboard-nav li.current-menu-item>a {
    background-color: #ebf5ff;
    color: #446084;
}

.dashboard-nav li a i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1em;
}

/* GLOBAL LAYOUT - MOBILE */
@media (max-width: 849px) {
    .crm-layout-container {
        display: block;
    }

    /* Hide Custom Sidebar */
    .dashboard-sidebar {
        display: none !important;
    }

    /* Default Header Visible by default in Flatsome */
    #header.header {
        display: block !important;
    }

    .crm-content-wrapper {
        width: 100%;
    }
}


/* Hide Absolute Footer */
.absolute-footer {
    display: none !important;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* Remove all .is-divider elements */
.is-divider {
    display: none !important;
}

.user-status-dot {
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #fff;
    bottom: 0;
    right: 0;
}

/* Remove default entry content padding */
.entry-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Custom Header Row Styling (Matches Tailwind Reference) */
.new-place h3 {
    font-size: 1.5rem;
    /* ~24px */
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.new-place p {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 0;
}

/* Transform 'View All' Button to Red Link */
.btn-view-all {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: #ef4444 !important;
    /* Red 500 */
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    text-transform: none !important;
    display: inline-flex !important;
    align-items: center;
}

.btn-view-all:hover {
    color: #dc2626 !important;
    /* Red 600 */
    background-color: transparent !important;
    box-shadow: none !important;
}

.btn-view-all span {
    display: flex;
    align-items: center;
}

/* Add Arrow Icon */
.btn-view-all span::after {
    content: "\f061";
    /* FontAwesome Arrow Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.85em;
}

/* Layout Alignment for Specific Row IDs */
#col-1527128500 .col-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

#col-327996833 .col-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}





/* --- XC DIA DIEM CUSTOM STYLING --- */
/* Target the specific class added by user to the row */

.xc-dia-diem .col-inner {
    height: 100%;
}

.xc-dia-diem .box {
    background-color: #fff;
    border-radius: 0.75rem;
    /* rounded-xl */
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    transition: all 0.3s ease;
}

.xc-dia-diem .box:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* hover:shadow-xl */
}

/* Image Area */
.xc-dia-diem .box-image {
    position: relative;
    height: 12rem;
    /* h-48 */
    overflow: hidden;
    margin-bottom: 0;
    /* Remove default margin */
}

.xc-dia-diem .box-image .image-cover {
    padding-top: 0 !important;
    /* Override Flatsome aspect ratio */
    height: 100%;
}

.xc-dia-diem .box-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.xc-dia-diem .box:hover .box-image img {
    transform: scale(1.1);
}

/* Content Area */
.xc-dia-diem .box-text {
    padding: 1rem !important;
    /* p-4 */
    text-align: left !important;
    /* Override center alignment */
}

.xc-dia-diem .box-text-inner {
    padding: 0 !important;
}

/* Title */
.xc-dia-diem .post-title {
    font-size: 1.125rem !important;
    /* text-lg */
    line-height: 1.75rem !important;
    font-weight: 600 !important;
    /* font-semibold */
    margin-bottom: 0.5rem !important;
    /* mb-2 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xc-dia-diem .post-title a {
    color: #111827;
    transition: color 0.15s ease;
}

.xc-dia-diem .post-title a:hover {
    color: #ef4444;
    /* text-red-500 */
}

/* Hide Divider */
.xc-dia-diem .is-divider {
    display: none !important;
}

/* Excerpt/Description */
.xc-dia-diem .from_the_blog_excerpt {
    font-size: 0.875rem;
    /* text-sm */
    color: #6b7280;
    /* text-gray-500 */
    margin-bottom: 0;
    line-height: 1.25rem;
    display: block;
}

/* LABEL/BADGE STYLING (Prepared for when HTML is added) */
.xc-dia-diem .label-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background-color: #22c55e;
    border-radius: 9999px;
    z-index: 10;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Global Breadcrumb Styles */
.global-breadcrumb-section .rank-math-breadcrumb,
.global-breadcrumb-section .rank-math-breadcrumb p {
    margin-bottom: 0;
    line-height: normal;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Add Home Icon */
.global-breadcrumb-section .rank-math-breadcrumb>a:first-of-type::before {
    content: '\f015';
    /* FontAwesome Home Icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    opacity: 0.7;
}


/* Spacing between breadcrumb items */
.global-breadcrumb-section .rank-math-breadcrumb a,
.global-breadcrumb-section .rank-math-breadcrumb span {
    padding: 0 4px;
}

.global-breadcrumb-section .rank-math-breadcrumb>a:first-of-type {
    padding-left: 0;
}

@media (max-width: 768px) {

    .global-breadcrumb-section .rank-math-breadcrumb,
    .global-breadcrumb-section .rank-math-breadcrumb p {
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
    }

    /* Ensure items are inline for ellipsis to work on container text content */
    .global-breadcrumb-section .rank-math-breadcrumb a,
    .global-breadcrumb-section .rank-math-breadcrumb span {
        display: inline;
        float: none;
    }
}


/* Single Place (Dia Diem) Custom Styles */

/* Single Place (Dia Diem) Custom Styles */

/* Hero Action Buttons */
.xc-hero-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #333;
    margin-bottom: 0;
    transition: all 0.3s;
}

.xc-hero-action-btn:hover {
    transform: scale(1.05);
}

.xc-hero-action-btn.wide {
    width: auto;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 0.9rem;
}

/* Placeholders */
.xc-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eee;
}

.xc-review-placeholder {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
}


/* Hero Section */
.place-hero-image-container {
    background-color: #eee;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.circle-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.circle-button:hover {
    transform: scale(1.05);
}

.pill-button,
.badge-pill {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.badge-pill.bg-success {
    background-color: #22c55e;
    color: white;
}

.badge-pill.bg-warning {
    background-color: #f97316;
    color: white;
}

.pill-button.bg-dark-transparent {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.pill-button.bg-dark-transparent:hover {
    background-color: rgba(0, 0, 0, 0.8);
}



/* Author Widget */
.author-widget .avatar {
    border: 3px solid white;
    object-fit: cover;
}

.author-stats {
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.author-stats .stat-col {
    padding: 0 15px;
    text-align: center;
}

.author-stats .stat-col:first-child {
    border-right: 1px solid #f3f4f6;
}

/* Reviews */
.review-item {
    margin-bottom: 10px;
}

.google-reviews {
    margin-bottom: 20px;
}

.review-form-wrapper {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
}


/* =========================================
   Single Dia Diem Refactor (Semantic CSS)
   ========================================= */

.xc-box-style,
.xc-info-card,
.xc-author-box,
.xc-map-box,
.xc-contact-box,
.xc-rating-summary,
.xc-dia-diem-khac {
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Info Card */
.xc-info-card .card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.xc-info-card .entry-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.xc-info-card .check-icon {
    font-size: 1.125rem;
    color: #3b82f6;
}

.xc-info-card .address {
    color: #4b5563;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.xc-info-card .like-button {
    padding: 6px 20px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.xc-info-card .like-button.liked {
    background: #ef4444;
}

.xc-info-card .like-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.xc-info-card .rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.xc-info-card .stars {
    color: #facc15;
    font-size: 1.25rem;
    display: flex;
    gap: 0.1rem;
}

.xc-info-card .score {
    font-weight: 600;
    margin-left: 0.5rem;
}



/* Author Box */
.xc-author-box {
    text-align: center;
}

.xc-author-box .avatar-wrapper {
    position: relative;
    margin-bottom: 1rem;
    display: inline-block;
}

.xc-author-box img.avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
}

.xc-author-box .author-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.xc-author-box .author-meta {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    display: block;
}

.xc-author-box .badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.xc-author-box .badges span {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #4ade80, #16a34a);
}

.xc-author-box .follow-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(to right, #ef4444, #ec4899);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
}

.xc-author-box .follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.xc-author-box .stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.xc-author-box .stats-grid>div {
    flex: 1;
}

.xc-author-box .stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.xc-author-box .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
}

/* Map Box */
.xc-map-box h3,
.xc-contact-box h3,
.xc-rating-summary h3,
.xc-dia-diem-khac h3 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.xc-map-box .map-container {
    height: 12rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 0.75rem;
}

.xc-map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.xc-map-box .directions-btn {
    width: 100%;
    padding: 0.5rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 999px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
    border: none;
}

.xc-map-box .directions-btn:hover {
    background-color: #2563eb;
}

/* Contact Box */
.xc-contact-box .contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.xc-contact-box .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
    text-decoration: none;
}

.xc-contact-box .contact-item.phone {
    background-color: #f0fdf4;
    color: #15803d;
}

.xc-contact-box .contact-item.phone:hover {
    background-color: #dcfce7;
}

.xc-contact-box .contact-item.web {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.xc-contact-box .contact-item.web:hover {
    background-color: #dbeafe;
}

.xc-contact-box .font-medium {
    font-weight: 500;
}

/* Rating Summary */
.xc-rating-summary .text-center {
    text-align: center;
}

.xc-rating-summary .big-score {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #eab308;
    margin-bottom: 0.5rem;
}

.xc-rating-summary .stars-row {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    color: #facc15;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.xc-rating-summary .review-count {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Related Places */
.xc-dia-diem-khac .place-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.xc-dia-diem-khac .place-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.xc-dia-diem-khac .place-item:hover {
    background-color: #f9fafb;
}

.xc-dia-diem-khac .thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

.xc-dia-diem-khac .info {
    flex: 1;
}

.xc-dia-diem-khac .title {
    font-weight: 500;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.2;
}

.xc-dia-diem-khac .rating {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}


/* Gallery Indicator */
.xc-gallery-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 20;
}

.xc-gallery-count:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Embedded Contact (Overview Tab) */
.xc-embedded-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.xc-embedded-contact .title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.xc-embedded-contact .contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xc-embedded-contact .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: #555;
    margin-left: 0;
    line-height: 1.5;
}

.xc-embedded-contact .contact-list li .icon {
    width: 1.25rem;
    text-align: center;
    color: #999;
    margin-top: 0.2rem;
}

.xc-embedded-contact .contact-list li a {
    color: inherit;
}

.xc-embedded-contact .contact-list li a:hover {
    color: #000;
    text-decoration: underline;
}

/* Custom Tabs - Clean Implementation */
.xc-custom-tabs {
    display: flex !important;
    border-bottom: 1px solid #e5e7eb;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.xc-custom-tabs li.tab {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    list-style: none;
}

.xc-custom-tabs li.tab a {
    display: block;
    padding: 1rem 0.75rem !important;
    /* py-4 px-3 */
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.xc-custom-tabs li.tab a:hover {
    color: #111827 !important;
}

.xc-custom-tabs li.tab.active a,
.xc-custom-tabs li.tab:focus a {
    color: #ef4444 !important;
    border-bottom-color: #ef4444 !important;
}

.xc-custom-tabs li.tab a span {
    font-weight: inherit !important;
}

/* Fixes after removing utilities */
.xc-info-card .rating-row .count {
    color: #6b7280;
    margin-left: 0.25rem;
}

.review-placeholder {
    background-color: #f9fafb;
    /* bg-light */
    padding: 0.75rem;
    /* p-3 */
    border-radius: 0.25rem;
    /* rounded-small */
    text-align: center;
    color: #6b7280;
}

/* Custom Auth Page */
.xc-auth-box {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 2rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: #3b82f6;
    background-color: #fff;
    border-bottom-color: #3b82f6;
}

.auth-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 0;
}

.input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.remember-me {
    font-size: 0.875rem;
    color: #4b5563;
}

.btn-submit {
    padding: 0.75rem 2rem;
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.terms {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    text-align: center;
}

.xc-alert {
    padding: 1rem;
    background-color: #fee2e2;
    color: #b91c1c;
    margin: 1rem 2rem 0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}


/* XC Places Grid Item (Semantic Replacement for Tailwind) */
.xc-place-grid-item {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.xc-place-grid-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.xc-place-image {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    overflow: hidden;
}

.xc-place-image .image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.xc-place-image .place-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.xc-place-grid-item:hover .place-thumb {
    transform: scale(1.1);
}

/* Badges Overlay */
.xc-place-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.xc-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background-color: #dc2626;
    /* Red */
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Wishlist Btn */
.xc-wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    border-radius: 999px;
    border: none;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.2s;
}

.xc-wishlist-btn:hover {
    transform: scale(1.05);
}

.xc-wishlist-btn.liked {
    background: #ef4444;
}

/* Review Overlay */
.xc-review-overlay {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 10;
}

.xc-review-overlay .icon-star {
    color: #facc15;
    margin-right: 0.25rem;
}

/* Content */
.xc-place-content {
    padding: 1rem;
}

.xc-place-content .header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.xc-place-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    padding-right: 0.5rem;
}

.xc-place-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.xc-place-title a:hover {
    color: #ef4444;
}

.xc-mini-rating {
    background: #f3f4f6;
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.xc-mini-rating .icon-star {
    color: #facc15;
    font-size: 0.75rem;
}

.xc-place-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.75rem;
}

.xc-place-footer .contact-info {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.xc-place-footer .detail-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ef4444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.xc-place-footer .detail-link:hover {
    text-decoration: underline;
}

/* Semantic Helper replacements */
.xc-section-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.xc-text-muted {
    color: #6b7280;
}

.xc-gallery-item-wrapper {
    border-radius: 8px;
}

/* Ensure links in titles don't act weird */
h3.xc-section-title a {
    text-decoration: none;
    color: inherit;
}

h3.xc-section-title a:hover {
    color: #ef4444;
}

/* Header Right Global (Semantic) */
.xc-header-right {
    margin-bottom: 2rem;
}

.xc-header-sticky {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin: 0 0 30px 0 !important;
    /* Increased margin bottom */
    border-radius: 0 0 24px 24px;
    /* padding: 10px 20px; */
    /* Reduced padding */
}

/* Search Row */
.xc-header-search-row {
    display: flex;
    align-items: center;
    padding: 0 !important;
    /* Removed padding */
    margin: 0 !important;
    /* Removed margin */
    gap: 1.5rem;
    width: 100%;
}

.xc-search-wrapper {
    flex: 1;
    position: relative;
    max-width: 500px;
    margin-right: auto;
}

.xc-header-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.xc-search-input-group {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    /* Flatsome fix */
}

.xc-search-input {
    width: 100%;
    height: 42px !important;
    /* Fixed height */
    padding: 0 1rem 0 3rem !important;
    /* Space for icon */
    border-radius: 99px !important;
    border: 1px solid #e1e1e1 !important;
    background-color: #f6f7f8 !important;
    box-shadow: none !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #333 !important;
    line-height: normal !important;
}

.xc-search-input:focus {
    background-color: #fff !important;
    border-color: #ec4899 !important;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1) !important;
}

.xc-search-input-group .search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 1rem;
    z-index: 5;
    line-height: 1;
}

.xc-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ec4899;
    /* Pink */
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
    z-index: 5;
    padding: 0;
}

.xc-search-btn:hover {
    background-color: #7f1d1d;
    /* darker red */
    transform: translateY(-50%) scale(1.1);
    /* Keep vertical align */
}

.xc-search-btn i {
    font-size: 0.9rem;
}

/* Search Results Dropdown */
.xc-search-results,
.xc-search-loading {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    z-index: 50;
    max-height: 24rem;
    overflow-y: auto;
    padding: 1rem;
}

/* Actions */
.xc-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.xc-theme-toggle {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1.25rem;
    color: #4b5563;
}

.xc-theme-toggle:hover {
    background-color: #f3f4f6;
}

/* Menu Row */
.xc-header-menu-row {
    margin-top: 20px;
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    padding-top: 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.xc-header-menu-row::-webkit-scrollbar {
    display: none;
}

/* Chrome */

.xc-top-menu {
    display: flex;
    gap: 0.75rem;
    white-space: nowrap;
}

.xc-top-menu.demo {
    /* Flex already implied by row check */
}

/* Wordpress Menu UL compatibility */
ul.xc-top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.xc-menu-pill,
ul.xc-top-menu li a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #374151;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.xc-menu-pill:hover,
ul.xc-top-menu li a:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.xc-menu-pill.active,
ul.xc-top-menu li.current-menu-item a {
    background: linear-gradient(to right, #ef4444, #ec4899);
    color: white;
}

/* Icon Helpers for Demo */
.mr-2 {
    margin-right: 0.5rem;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-green-500 {
    color: #22c55e;
}

.text-purple-500 {
    color: #a855f7;
}

.text-brown-500 {
    color: #a52a2a;
}

.text-indigo-500 {
    color: #6366f1;
}

/* Mobile Logo & Loading Utils */
.mobile-logo-img {
    display: block;
    height: 2.5rem;
    margin-right: 1rem;
}

@media (min-width: 640px) {
    .mobile-logo-img {
        display: none;
    }
}

.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 0.75rem;
}


/* Sticky Header Layout Fixes */
.xc-header-right {
    display: contents !important;
}

.xc-header-sticky {
    margin: 0 !important;
}


/* Sidebar Semantic Styles */
.xc-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    background: #fff;
    /* Fixed Positioning */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    /* Match sidebar spacer width */
    z-index: 99;
    border-right: 1px solid #f0f0f0;
}

.xc-sidebar-menu {
    flex: 1;
    overflow-y: auto;
    margin: 1rem 0;
    /* Custom Scrollbar hidden usually preferred */
    scrollbar-width: thin;
}

/* User Profile Gradient Box */
.xc-sidebar-user {
    margin-top: auto;
    background: linear-gradient(135deg, #ef4444, #ec4899);
    padding: 20px;
    border-radius: 16px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 20px -5px rgba(236, 72, 153, 0.4);
}

.xc-sidebar-user p.welcome-text {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Auth Buttons */
.xc-auth-buttons {
    display: flex;
    gap: 10px;
}

.xc-btn-auth {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.xc-btn-auth.login {
    background: white;
    color: #ef4444;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.xc-btn-auth.login:hover {
    background: #fff0f0;
    transform: translateY(-1px);
}

.xc-btn-auth.register {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.xc-btn-auth.register:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

/* Logged In Styling */
.user-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-name {
    font-size: 1.1rem;
}

.user-role {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    display: block;
}

.xc-btn-logout {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s;
}

.xc-btn-logout:hover {
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

/* Dashboard Nav Basic */
.xc-dashboard-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xc-dashboard-nav li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.2s;
}

.xc-dashboard-nav li a:hover,
.xc-dashboard-nav li.current-menu-item a {
    background-color: #fef2f2;
    /* red-50 */
    color: #ef4444;
}

/* Auth Pages Shortcode Styles */
.xc-auth-wrapper {
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.xc-auth-form .form-group {
    margin-bottom: 1.25rem !important;
}

.xc-auth-form label {
    font-size: 0.95rem;
    color: #4b5563;
}

.xc-auth-form input.input-field {
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 12px !important;
    /* Slightly rounded, not full pill */
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
    height: auto !important;
}

.xc-auth-form input.input-field:focus {
    background: #fff;
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

/* Gradient Submit Button */
.xc-auth-form button[type='submit'] {
    background: linear-gradient(135deg, #ef4444, #ec4899) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px !important;
    height: auto !important;
    border-radius: 99px !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.xc-auth-form button[type='submit']:hover {
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
    opacity: 1 !important;
}

/* Single Place Custom Tabs */
.xc-single-place-tab {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0 !important;
    padding: 0;
}

.xc-single-place-tab>li {
    flex: 1;
    margin: 0 !important;
    text-align: center;
    list-style: none;
}

.xc-single-place-tab>li>a {
    display: block;
    padding: 1rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    text-transform: none !important;
    border-radius: 0 !important;
    width: 100%;
}

.xc-single-place-tab>li.active>a,
.xc-single-place-tab>li:hover>a {
    color: #ef4444 !important;
    border-bottom: 2px solid #ef4444 !important;
}

/* Luu Tru Archive CSS */
/* *,*::before,*::after{box-sizing:border-box;} */
/* *:not(p){margin:0;} DANGEROUS RESET REMOVED */
/* img{display:block;max-width:100%;} */
/* input,button{font:inherit;} */

/*! CSS Used from: https://toplistnghean.com/css/nouislider/nouislider.css */
/* Minimal NoUiSlider Styles */
.noUi-target,
.noUi-target * {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-user-select: none;
    -ms-touch-action: none;
    touch-action: none;
    -ms-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.noUi-target {
    position: relative;
}

.noUi-base,
.noUi-connects {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.noUi-connects {
    overflow: hidden;
    z-index: 0;
}

.noUi-connect,
.noUi-origin {
    will-change: transform;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    -ms-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    -webkit-transform-style: preserve-3d;
    transform-origin: 0 0;
    transform-style: flat;
}

.noUi-horizontal .noUi-origin {
    height: 0;
}

.noUi-handle {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
}

.noUi-touch-area {
    height: 100%;
    width: 100%;
}

.noUi-horizontal {
    height: 18px;
}

.noUi-horizontal .noUi-handle {
    width: 34px;
    height: 28px;
    right: -17px;
    top: -6px;
}

.noUi-target {
    background: #FAFAFA;
    border-radius: 4px;
    border: 1px solid #D3D3D3;
    box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}

.noUi-connects {
    border-radius: 3px;
}

.noUi-connect {
    background: #3FB8AF;
}

.noUi-handle {
    border: 1px solid #D9D9D9;
    border-radius: 3px;
    background: #FFF;
    cursor: default;
    box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}

.noUi-handle:before,
.noUi-handle:after {
    content: "";
    display: block;
    position: absolute;
    height: 14px;
    width: 1px;
    background: #E8E7E6;
    left: 14px;
    top: 6px;
}

.noUi-handle:after {
    left: 17px;
}

/* Custom Styles */
.filters-category {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filters-category__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filters-category__group {
    z-index: 1;
    border-radius: 8px;
    display: flex;
    background: #f6f8fa;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.filters-category__group--search {
    flex-direction: row;
    gap: 0;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px #b924200d;
}

.filters-category__group--search input {
    border: none;
    outline: none;
    flex: 1;
    padding: 11px 18px;
    background: transparent;
}

.filters-category__group--search button {
    background: #b92420;
    border: none;
    padding: 12px 18px;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filters-category__group--search button img {
    width: 20px;
    height: 20px;
}

.filters-category__group--actions {
    flex-direction: row;
    gap: 8px;
}

.filters-category__group--actions button {
    flex: 1;
}

.filters-category__label {
    font-weight: 600;
    color: #b92420;
    display: flex;
    height: 44px;
    align-items: center;
    gap: 8px;
    padding: 12px;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
    background: #b924201a;
}

.filters-category__chevron {
    display: flex;
    align-items: center;
}

.filters-category__chevron img {
    width: 20px;
    height: 20px;
}

.filters-category__options {
    display: flex;
    flex-direction: column;
}

.filters-category__option {
    padding: 10px;
    display: flex;
    align-items: center;
    /* Vertically center items */
    gap: 8px;
    color: #6f6f6f;
    line-height: 1.2;
    /* Prevent large line height offsets */
    margin-bottom: 0;
    /* Important */
}

.filters-category__option input[type=checkbox] {
    accent-color: #b92420;
    margin: 0;
    /* Remove default margins */
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

.filters-category__price-range {
    display: flex;
    flex-direction: column;
    padding: 24px 10px;
    gap: 16px;
}

.filters-category__price-range .filters-category__price-values {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 14px;
    color: #0d0d12;
}

.filters-category__btn {
    padding: 10px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.filters-category__btn--secondary {
    background: #b924201a;
    color: #b92420;
}

@media (max-width: 900px) {
    .filters-category {
        max-width: 100%;
        padding: 16px 8px;
    }
}

.noUi-connect {
    background: #b92420;
}

.noUi-horizontal {
    height: 5px;
}

.noUi-horizontal .noUi-handle {
    width: 12px;
    height: 12px;
    right: -6px;
    top: -5px;
    border-radius: 6px;
    box-shadow: none;
    filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, .36));
}

.noUi-handle:after,
.noUi-handle:before {
    display: none;
}

.noUi-target {
    border: none;
    box-shadow: none;
    background: #eceff3;
}

.has_responsive {
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 900px) {
    .filters-responsive__sidebar {
        display: none !important;
    }
}

@media (min-width: 901px) {
    .filters-responsive__sidebar {
        display: block !important;
    }
}

/* Loop Item Styles */
.item__card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 50px #0000000d;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
    transition: transform 0.3s;
}

.item__card:hover {
    transform: translateY(-5px);
}

@media (max-width: 700px) {
    .item__card {
        min-width: 250px;
    }
}

.item__card-img {
    width: 100%;
    height: 186px;
    -o-object-fit: cover;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 4px 23.7px #b3b3b340;
}

.item__card-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    justify-content: space-between;
}

.item__card-location {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6f6f6f;
    font-size: 15px;
    line-height: 22px;
    overflow: hidden;
    justify-content: space-between;
}

.item__card-location span {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
}

.item__card-location img {
    width: 24px;
    height: 24px;
}

.item__card-price {
    font-size: 14px;
    color: #b92420;
    font-weight: 700;
}

.item__card-title {
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0d0d12;
    line-height: 28px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item__card-title:hover {
    color: #b92420;
}

.item__card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item__card-btn {
    font-weight: 600;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    cursor: pointer;
    padding: 1rem 2rem;
}

.item__card-btn.button-primary {
    transition: background .2s;
    background: #b924201a;
    color: #b92420;
}

.item__card-btn.button-primary:hover {
    background: #e3605c1a;
}



/* Single Luu Tru CSS */
/* *,*::before,*::after{box-sizing:border-box;} */
/* *:not(p){margin:0;} DANGEROUS RESET REMOVED */
/* img{display:block;max-width:100%;} */
/* input,button,textarea,select{font:inherit;} */
p,
h1,
h2,
h3,
h4 {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    text-wrap: auto;
}

.d-flex {
    display: flex;
}

.gap-4 {
    gap: 4px;
}

.grid-sm-3 {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
}

.text-auth {
    color: #B92420;
    cursor: pointer;
}

.text-auth:hover {
    color: #B92420;
    text-decoration: underline;
}

.div {
    width: 100%;
    overflow: hidden;
}

/* Font Awesome & Fonts - Commented out to avoid duplication if already present, or uncomment as needed */
/* .fas{font-family:"Font Awesome 6 Free";} ... */

.wrap {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    padding-bottom: 5rem;
}

.detail-section__content {
    font-family: serif !important;
    font-size: 19px !important;
    line-height: 1.6;
}

.detail-section__utilities-item {
    padding-bottom: 10px;
}

.detail-section__utilities-item i {
    width: 40px;
    flex-shrink: 0;
    font-size: 22px;
    color: #dd3d39;
}

/* Responsive Layout */
@media (min-width: 240px) {
    .wrap {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 2rem;
    }
}

@media (max-width: 639px) {

    .detail-section__gallery-main,
    .detail-section__gallery-main img {
        border-radius: 0 !important;
    }
}

@media (min-width: 640px) {
    .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 768px) {
    .wrap {
        padding-left: 35px;
        padding-right: 35px;
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    .wrap {
        padding-left: 28px;
        padding-right: 28px;
        max-width: 960px;
    }
}

@media (min-width: 1280px) {
    .wrap {
        max-width: 1116px;
    }
}

@media (min-width: 1536px) {
    .wrap {
        max-width: 1280px;
    }
}

@media (min-width: 1920px) {
    .wrap {
        max-width: 1400px;
    }
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.detail-section__phone,
.detail-section__address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.detail-section__phone span,
.detail-section__address span {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.detail-section__phone img,
.detail-section__address img {
    width: 20px;
    height: 20px;
    -o-object-fit: contain;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 768px) {

    .detail-section__phone,
    .detail-section__address,
    .detail-section__phone span,
    .detail-section__address span {
        font-size: 15px;
    }

    .detail-section__phone img,
    .detail-section__address img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 420px) {

    .detail-section__phone,
    .detail-section__address {
        font-size: 14px;
        gap: 6px;
    }

    .detail-section__phone span,
    .detail-section__address span {
        font-size: 14px;
    }

    .detail-section__phone img,
    .detail-section__address img {
        width: 16px;
        height: 16px;
    }
}

.detail-section__phone,
.detail-section__address {
    margin-bottom: 16px;
}

.status__verified-color {
    font-weight: 600;
    margin-left: -5px;
    display: flex;
    align-items: center;
    color: #b92420;
}

.breadcrumb-link {
    color: #0d0d12;
    text-decoration: none;
}

.breadcrumb-current {
    color: #b92420;
}

.breadcrumb-sep {
    color: #828282;
}

.star {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url(https://toplistnghean.com/assets/vendor/blade-heroicons/c-star.svg) no-repeat center/contain;
    opacity: .3;
}

.rating-summary {
    width: 100%;
    display: grid;
    gap: 22px;
    grid-template-columns: 70% 30%;
}

.text-sub-gray {
    color: #ababab;
    font-size: 11px;
}

.rating-value {
    min-width: 120px;
    text-align: right;
    font-size: 16px;
    color: #0d0d12;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-star {
    color: #ffd600;
    font-size: 20px;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px #3c3a460d;
    padding: 24px;
    transition: box-shadow .2s;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header-info {
    display: flex;
    flex-direction: column;
}

.card-header-action {
    display: flex;
    gap: 12px;
}

.card-header-action .detail-section__carousel-btn {
    width: 48px;
    cursor: pointer;
    height: 48px;
    border-radius: 50%;
    background-color: #131217;
    border: 1px solid rgba(60, 58, 70, .05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.similar-items {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* ... Similar Items Styles ... */
.similar-items__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
}

.similar-items__info {
    flex: 1;
}

.similar-items__title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    font-family: Inter, sans-serif;
    letter-spacing: -.025em;
}

.similar-items__description {
    color: #0d0d12;
    line-height: 1.6;
    font-size: 16px;
    font-family: Inter, sans-serif;
    margin: 0;
}

.similar-items__navigation {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.similar-items__nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #000;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.similar-items__nav-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #dc262626;
}

.similar-items__container {
    display: flex;
    gap: 24px;
    transition: transform .3s ease;
    padding: 4px;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.similar-items__item {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
    width: calc(33.333% - 16px);
}

.similar-items__card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px #00000014;
    transition: all .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.similar-items__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.similar-items__image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform .3s ease;
}

.similar-items__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.similar-items__name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.3;
    font-family: Inter, sans-serif;
}

.similar-items__btn {
    background: #f8e9e9;
    color: #b92420;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .similar-items__item {
        flex: 0 0 calc(50% - 12px);
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .similar-items__item {
        flex: 0 0 calc(100% - 12px);
        width: calc(100% - 12px);
    }
}

.review-section {
    margin-top: 24px;
}

.review-section .review-breakdown {
    margin-bottom: 18px;
}

.review-section .breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.detail-section__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .detail-section__gallery {
        grid-template-columns: 1fr;
    }
}

.detail-section__gallery-main {
    aspect-ratio: 2/1;
    border-radius: 20px;
    overflow: hidden;
}

.detail-section__gallery-main>img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.detail-section__gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-section__gallery-thumbs .detail-section__gallery-thumb {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.detail-section__info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
}

@media (max-width: 768px) {
    .detail-section__info {
        grid-template-columns: 1fr;
    }
}

.detail-section__info-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    overflow: hidden;
}

.detail-section__info-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section__tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
    overflow-x: auto;
}

.detail-section__tab {
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
}

.detail-section__tab--active {
    color: #b92420;
    border-bottom: 2px solid #b92420;
}

/* Order Form */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.order-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 16px;
}

.order-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-form__field--full {
    grid-column: 1 / -1;
}

.order-form__submit {
    width: 100%;
    background: #B92420;
    color: #fff;
    border: 2px solid #fdc672;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Booking External */
.booking-external {
    padding: 20px 0;
}

.booking-external__horizontal {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.booking-btn--horizontal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid transparent;
}

.booking-btn--booking {
    background: linear-gradient(135deg, #003580 0%, #0071c2 100%);
    color: white;
}

.booking-btn--agoda {
    background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
    color: white;
}

.booking-btn--traveloka {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
}

.wrapper-container {
    background-color: #f6f8fa;
}

.swiper {
    overflow: hidden;
}

/* Gallery Layout */
.detail-section__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .detail-section__gallery {
        grid-template-columns: 1fr;
    }
}

.detail-section__gallery-main {
    aspect-ratio: 2/1;
    border-radius: 20px;
    overflow: hidden;
}



.detail-section__gallery-main>a {
    display: block;
    width: 100%;
    height: 100%;
}

.detail-section__gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-section__gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .detail-section__gallery-thumbs {
        display: grid;
    }
}

.detail-section__gallery-thumb {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.detail-section__gallery-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.detail-section__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-section__gallery-thumb_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.detail-section__gallery-thumb_overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

/* Custom single-luu-tru slider and card stylings */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header-info {
    display: flex;
    flex-direction: column;
}

.card-header-action {
    display: flex;
    gap: 12px;
}

.card-header-action .detail-section__carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #131217;
    border: 1px solid rgba(60, 58, 70, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.card-header-action .detail-section__carousel-btn:hover {
    background-color: #333;
}

/* Detail Section Features Grid */
.detail-section__feature {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status__verified-color {
    color: #22c55e;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

/* Slider Room Item */
.detail-section__activities-content-item-img {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.detail-section__activities-content-item-img img {
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 5 / 3;
}

.detail-section__activities-content-item-img:hover img {
    transform: scale(1.05);
}

.detail-section__activities-content-item-info {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
}

.detail-section__activities-content-item-info-title {
    font-size: 18px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #rooms-section .card-header {
        margin-bottom: 12px;
    }

    #rooms-section .card-header-info {
        margin-bottom: 0;
        gap: 4px;
    }
}

/* Booking Form Layout */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.order-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

@media (max-width: 860px) {
    .order-form__grid {
        grid-template-columns: 1fr;
    }
}

.order-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-form__field--full {
    grid-column: 1 / -1;
}

.order-form__field label {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.order-form__field input,
.order-form__field select,
.order-form__field textarea {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    background: #fff;
    width: 100%;
}

.order-form__field input[type="text"],
.order-form__field input[type="email"],
.order-form__field input[type="tel"],
.order-form__field input[type="date"],
.order-form__field input[type="time"],
.order-form__field select {
    height: 42px;
}

.order-form__field textarea {
    min-height: 84px;
    resize: vertical;
}

.order-form__submit {
    width: 100%;
    background: #B92420;
    color: #fff;
    border: 2px solid #fdc672;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.order-form__submit:hover {
    background: #a01d1a;
}

.order-form__submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.order-form__summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 12px;
    margin-top: 8px;
}

.order-form__summary-row,
.order-form__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-form__summary-total {
    padding-top: 4px;
    font-weight: 700;
    font-size: 18px;
}

/* External Booking Buttons */
.booking-external__horizontal {
    display: flex;
    gap: 12px;
}

.booking-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.booking-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.booking-btn--horizontal {
    flex: 1;
    text-align: center;
}

.booking-btn--booking {
    background-color: #003580;
    /* Booking.com Blue */
}

.booking-btn--agoda {
    background: linear-gradient(90deg, #e6524b 0%, #e22b5e 100%);
    /* Agoda Gradients */
}

/* Mobile adjustments for Similar Items Title */
@media (max-width: 768px) {
    .similar-items__title {
        font-size: 18px !important;
        margin-bottom: 10px;
    }
}

/* Mobile Breadcrumbs */
@media (max-width: 768px) {
    .detail-section__info-breadcrumbs {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
    }
}

/* XC Place Footer - Vertical Stack */
.xc-place-grid-item .xc-place-footer,
.xc-place-footer {
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column !important;
    /* Force column */
    gap: 0.5rem;
}

.xc-place-footer .contact-info {
    font-size: 0.875rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    width: 100%;
}

.xc-place-footer .contact-info .icon {
    width: 1rem;
    text-align: center;
    margin-right: 0.5rem;
    color: #ef4444;
}

.xc-place-footer .detail-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ef4444;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: stretch;
    /* Stretch to fill width or center if width set */
    width: 100%;

    /* Button Style */
    background-color: #fef2f2;
    /* Light red bg */
    border: 1px solid #ef4444;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    margin-top: 0.25rem;
}

/* Post Item Card - Tailwind Replica */
.post-item-card {
    background-color: #fff;
    border-radius: 1rem;
    /* rounded-2xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    /* shadow-xl */
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-item-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* shadow-2xl */
}

.post-item-card .relative {
    position: relative;
}

.post-item-card .h-48 {
    height: 12rem;
}

.post-item-card .overflow-hidden {
    overflow: hidden;
}

.post-item-card .object-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.post-item-card:hover .object-cover {
    transform: scale(1.1);
}

.post-item-card .absolute {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.post-item-card .text-blue-500 {
    color: #3b82f6;
}

.post-item-card .px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.post-item-card .py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.post-item-card .text-sm {
    font-size: 0.875rem;
}

.post-item-card .font-medium {
    font-weight: 500;
}

.post-item-card .rounded-full {
    border-radius: 9999px;
}

.post-item-card .bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.post-item-card .p-2 {
    padding: 0.75rem;
    /* slightly increased from 0.5rem for better spacing */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-item-card h3 {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem;
    /* Force height for always 2 lines */
}

.post-item-card .h-48 {
    height: 16rem;
    /* Increased from 12rem */
}

/* Utilities for icon spacing */
.post-item-card .mr-1,
.mr-1 {
    margin-right: 0.5rem;
    /* 8px */
}

.ml-1 {
    margin-left: 0.5rem;
    /* 8px */
}


/* AJAX Search Styles */
.xc-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    /* Light border */
    border-top: none;
    border-radius: 0 0 8px 8px;
    /* Rounded bottom */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
}

.search-section-title {
    padding: 10px 15px;
    background: #f9f9f9;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #fef2f2;
    /* Light red hover */
}

.result-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}

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

/* Mobile Breakpoint - Hide xc-header-right */
@media (max-width: 768px) {
    .xc-header-right {
        display: none !important;
    }
}

/* Mobile Toolbar */
.xc-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .xc-mobile-bar {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }

    .large-full {
        padding: 10px;
    }
}

/* Tailwind-ish Utilities for Mobile Bar */
.grid {
    display: grid;
}

.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flex-col {
    flex-direction: column;
}

.gap-1 {
    gap: 0.25rem;
}

@media (max-width: 768px) {

    /* Reset sidebar styles inside lightbox */
    #xc-mobile-menu-lightbox .dashboard-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 0;
        background: transparent;
        border-right: none;
        box-shadow: none;
    }

    #xc-mobile-menu-lightbox .xc-sidebar-inner {
        position: static;
        height: auto;
        width: 100%;
        padding: 0;
    }
}

/* Custom Mobile Menu Overlay & Animation */
.xc-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.xc-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.xc-custom-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 10101;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.xc-custom-mobile-menu.active {
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    padding: 5px;
    z-index: 2;
}

/* Reset Sidebar inside custom menu */
#xc-custom-mobile-menu .dashboard-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    display: block !important;
    /* Force display */
    visibility: visible !important;
}

#xc-custom-mobile-menu .xc-sidebar-inner {
    position: static;
    height: auto;
    width: 100%;
    padding: 0;
    display: block !important;
    /* Force display */
}

/* Ensure text visibility */
#xc-custom-mobile-menu .xc-dashboard-nav li a {
    color: #333;
    display: block;
    padding: 10px 0;
    font-weight: 600;
}

#xc-custom-mobile-menu .sidebar-logo img {
    max-height: 40px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Adjust User Profile in mobile menu */
#xc-custom-mobile-menu .xc-sidebar-user {
    position: static;
    bottom: auto;
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: block !important;
}

@media (max-width: 768px) {

    /* Header Layout Adjustment */
    #masthead .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    /* Logo 20% */
    #masthead .header-inner>#logo {
        width: 20% !important;
        flex-basis: 20% !important;
        max-width: 20% !important;
        padding-right: 5px;
        order: 1;
    }

    #masthead .header-inner>#logo img {
        max-height: 35px;
        /* Smaller logo */
        width: auto;
    }

    /* Hide Mobile Left Elements if empty or conflicting */
    #masthead .header-inner>.flex-left.show-for-medium {
        display: none;
    }

    /* Search/Right 80% */
    #masthead .header-inner>.flex-right.show-for-medium {
        width: 80% !important;
        flex-basis: 80% !important;
        max-width: 80% !important;
        flex-grow: 1;
        order: 2;
        justify-content: flex-end;
    }

    #masthead .header-inner>.flex-right.show-for-medium .mobile-nav {
        width: 100%;
    }

    #masthead .header-inner>.flex-right.show-for-medium .html_topbar_right {
        width: 100%;
    }

    /* Ensure search input fills space */
    #masthead .xc-search-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

/* XC Hot Grid CSS (Design Match) */
.xc-hot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .xc-hot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .xc-hot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.xc-hot-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.xc-hot-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.xc-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.xc-img-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.xc-hot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.xc-hot-item:hover img {
    transform: scale(1.1);
}

/* Responsive Grid Spans */
/* Mobile (<768px): 2-column grid base */
.xc-col-1 {
    grid-column: span 1;
}

.xc-col-2 {
    grid-column: span 2;
}

.xc-row-2 {
    grid-row: span 1;
}

/* Item 6 (Index 5) spans full width on mobile */
@media (max-width: 767px) {
    .xc-hot-item:nth-child(6) {
        grid-column: span 2;
    }
}

@media (min-width: 768px) {
    .xc-col-1 {
        grid-column: span 1;
    }

    .xc-col-2 {
        grid-column: span 2;
    }

    .xc-row-2 {
        grid-row: span 2;
    }
}

/* Specific Mobile Styling for Glass Card items (Item 0) to look 'Simple' */
@media (max-width: 767px) {

    /* Always show overlay */
    .xc-hot-item .xc-overlay.xc-opacity-0 {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    }

    /* Always show content */
    .xc-hot-item .xc-content-box.xc-translate-y-full {
        transform: translateY(0);
    }

    /* Remove Glass Card visual box completely (display: contents removes the wrapper box) */
    .xc-glass-card {
        display: contents;
    }

    /* Hide Author/Meta Row on Mobile to match Simple Items */
    .xc-glass-card .xc-meta-row {
        display: none !important;
    }

    /* Force White Text on Mobile for Glass Card title */
    .xc-glass-card .xc-title-lg a {
        color: #fff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .xc-glass-card .xc-title-lg a:hover {
        color: #fff;
    }

    /* Description White */
    .xc-glass-card .xc-desc-sm {
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Meta White (if visible, but we hid row) */
    .xc-glass-card .xc-author,
    .xc-glass-card .xc-stats {
        color: rgba(255, 255, 255, 0.9);
    }

    .xc-title-xl {
        font-size: 1.2rem;
    }
}

/* Heights explicitly set for 1-row items if needed, or rely on grid auto-row */
.xc-hot-grid {
    grid-auto-rows: 16rem;
    /* 64 * 0.25rem = 16rem from user h-64 */
}

.xc-hot-item.xc-row-2 {
    /* spanned 2 rows + gap */
    /* no specific height needed if grid handles it, but let's be safe */
    height: auto;
}

/* Overlays & Gradients */
.xc-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.xc-gradient-t-80 {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.xc-gradient-t-80-via {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%, transparent);
}

.xc-gradient-t-60 {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.xc-gradient-r-60 {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
}

.xc-opacity-0 {
    opacity: 0;
}

.xc-group-hover-opacity-100 {
    transition: opacity 0.3s;
}

.xc-hot-item:hover .xc-group-hover-opacity-100 {
    opacity: 1;
}

/* Content Boxes */
.xc-content-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.xc-translate-y-full {
    transform: translateY(100%);
}

.xc-group-hover-translate-0 {
    transition: transform 0.3s;
}

.xc-hot-item:hover .xc-group-hover-translate-0 {
    transform: translateY(0);
}

.xc-glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 1rem;
    color: #333;
}

.xc-content-simple {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
}

.xc-content-simple.p-6 {
    padding: 1.5rem;
}

/* Typography */
.xc-title-lg {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.xc-title-xl {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.xc-title-white {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.xc-title-lg a,
.xc-title-xl a,
.xc-title-white a {
    text-decoration: none;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.xc-title-lg a:hover,
.xc-title-xl a:hover,
.xc-title-white a:hover {
    color: #fff;
    opacity: 1;
}

.text-white {
    color: #fff !important;
}

/* Specific override for Glass Card (White background) */
.xc-glass-card .xc-title-lg a {
    color: #333;
    text-shadow: none;
}

.xc-glass-card .xc-title-lg a:hover {
    color: #000;
}

.xc-desc-sm {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xc-desc-white {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Badges */
.xc-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #fff;
    border-radius: 9999px;
    font-weight: 600;
}

.xc-badge.red {
    background-color: #ef4444;
}

.xc-badge.yellow {
    background-color: #eab308;
}

/* Meta */
.xc-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.xc-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #333;
    min-width: 0;
}

.xc-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    margin: 0;
}

.xc-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    flex-shrink: 0;
}

.xc-meta-simple {
    display: flex;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-gray-600 {
    color: #4b5563;
}

.text-red-500 {
    color: #ef4444;
}

.result-content {
    flex-grow: 1;
}

.result-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
}

.result-meta,
.result-excerpt {
    font-size: 12px;
    color: #888;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

.xc-search-loading {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    text-align: center;
    z-index: 1000;
    border: 1px solid #eee;
}

/* Pagination Styling */
.page-numbers.current,
.page-numbers:hover {
    background: linear-gradient(to right, #ef4444, #ec4899);
    color: #fff !important;
    border: none;
    border-radius: 50%;
    /* Circle style */
}

.page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}


.post-item-card:hover h3 a {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, #ef4444, #ec4899);
}

.post-item-card p,
.post-item-card .line-clamp-3 {
    margin-bottom: 1rem;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Flex utilities used inline but ensured here */
.post-item-card .flex {
    display: flex;
}

.post-item-card .items-center {
    align-items: center;
}

.post-item-card .justify-between {
    justify-content: space-between;
}

.post-item-card .gap-2 {
    gap: 0.5rem;
}