:root {
    --primary-color: #007efa;
    --primary-dark: #003d73;
    --secondary-color: #ff811a;
    --success-color: #0fca98;
    --danger-color: #f53d2d;
    --info-color: #6e54fb;
    --bg-light: #f5f7fb;
    --white: #ffffff;
    --border-color: #edf0f5;
    --text-main: #05264e;
    --text-muted: #64748b;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

.admin-shell {
    background: var(--bg-light);
    min-height: 100vh;
    padding: 32px 0;
}
.admin-login-shell {
    min-height: 100vh;
    padding: 12px 0;
    display: flex;
    align-items: center;
}
.admin-login-row {
    align-items: center;
}
.admin-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.admin-login-panel {
    margin: 0 auto;
    padding: 24px;
}
.admin-login-logo {
    text-align: center;
    margin-bottom: 16px;
}
.admin-login-logo img {
    width: min(190px, 100%);
    height: auto;
}
.admin-header-logo {
    width: 50%;
    max-width: 220px;
    height: auto;
}
.bot-check {
    margin-bottom: 12px;
}
.bot-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.admin-login-home {
    text-align: center;
    margin-top: 12px;
}
.admin-login-home a {
    color: var(--primary-dark);
    font-weight: 600;
}
.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.property-hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.empty-state {
    background: var(--white);
    border: 1px dashed #cfd8e3;
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
}
.table-image {
    width: 92px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
}
.lios-vrst ul {
    gap: 18px;
}
.lios-vrst ul li {
    min-width: 0;
}
.lios-parts h2 {
    white-space: nowrap;
}
.count-up {
    display: inline-block;
    min-width: 2.2ch;
}
.footer-newsletter {
    padding: 80px 0;
    min-height: 370px;
}
.footer-newsletter .call-action-wrap {
    transform: none;
}
.footer-newsletter .call-action-form {
    margin-top: 36px;
    width: 100%;
}
.footer-newsletter .newsltr-form {
    max-width: 580px;
    min-height: 58px;
    margin: 0 auto;
    padding: 6px;
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(0, 35, 68, 0.18);
}
.footer-newsletter .newsltr-form .form-control {
    height: 46px;
    padding: 0 20px;
}
.footer-newsletter .newsltr-form .btn.btn-subscribe {
    height: 46px;
    min-width: 122px;
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 700;
}
.skin-light-footer .footer-add,
.skin-light-footer .app-wrap,
.skin-light-footer .footer-menu li a {
    color: #002b55;
}
.skin-light-footer .footer-widget .ftp-info {
    color: var(--primary-dark);
    font-weight: 700;
}
.skin-light-footer .footer-widget .ftp-info i {
    color: var(--primary-dark);
}
.skin-light-footer .app-wrap p {
    margin-bottom: 26px;
    line-height: 1.85;
}
.skin-light-footer .widget-title {
    color: var(--primary-dark);
}
.skin-light-footer .footer-bottom {
    padding-top: 22px;
}
@media (max-width: 767px) {
    .lios-vrst ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .lios-vrst ul li {
        width: auto;
        flex: none;
        text-align: center;
    }
    .lios-parts h2 {
        font-size: 1.75rem;
    }
    .lios-parts h6 {
        font-size: 11px;
        line-height: 1.25;
    }
}
@media (max-width: 420px) {
    .lios-vrst ul {
        grid-template-columns: 1fr;
    }
    .lios-parts h2 {
        font-size: 2rem;
    }
}

.password-toggle-container {
    position: relative;
}
.password-toggle-container .form-control {
    padding-right: 45px;
    font-size: 1.15rem;
}
.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 5;
}
.password-toggle-btn:hover {
    color: var(--primary-dark);
}

/* Stats Cards */
.admin-stats-row {
    margin-bottom: 30px;
}
.stats-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}
.stats-card:hover {
    transform: translateY(-3px);
}
.stats-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.stats-card.total .icon { background: rgba(0, 126, 250, 0.1); color: var(--primary-color); }
.stats-card.published .icon { background: rgba(15, 202, 152, 0.1); color: var(--success-color); }
.stats-card.featured .icon { background: rgba(255, 129, 26, 0.1); color: var(--secondary-color); }
.stats-card.cities .icon { background: rgba(110, 84, 251, 0.1); color: var(--info-color); }
.stats-card .info h3 { margin: 0; font-size: 1.6rem; color: var(--text-main); }
.stats-card .info p { margin: 0; color: var(--text-muted); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.admin-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

/* Chatbot Styles */
#tac-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: inherit;
}
#tac-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 8px 24px rgba(0, 126, 250, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#tac-chatbot-toggle:hover {
    transform: scale(1.1);
}
#tac-chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transform-origin: bottom right;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.chatbot-header {
    background: var(--primary-dark);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bot-avatar {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
#tac-chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    opacity: 0.6;
    cursor: pointer;
}
#tac-chatbot-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bot-msg, .user-msg {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}
.bot-msg {
    background: var(--white);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.user-msg {
    background: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.chatbot-input-area {
    padding: 15px 20px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}
.quick-replies {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.quick-reply-btn {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
}
/* Premium Header & Nav Overhaul */
.header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 9999 !important;
    position: relative;
}

.header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-brand img {
    max-width: 175px !important;
    height: auto;
    transition: all 0.4s ease;
}

/* Nav Menu Layout Fix */
@media (min-width: 992px) {
    .navigation {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .nav-menus-wrapper {
        display: flex !important;
        align-items: center;
        flex-grow: 1;
        justify-content: flex-end;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-menu > li > a {
        font-weight: 600 !important;
        color: var(--text-main) !important;
        font-size: 16px !important;
        padding: 15px 12px !important;
        white-space: nowrap;
    }

    /* Desktop alignment for consolidated menu */
    .nav-menu > li.ms-lg-auto {
        margin-left: auto !important;
    }

    .nav-menu > li.list-buttons {
        margin-left: 10px !important;
    }

    .nav-menu > li.list-buttons a {
        border-radius: 50px !important;
        padding: 10px 22px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 12px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 4px 10px rgba(0, 126, 250, 0.15) !important;
        display: inline-block !important;
        line-height: 1 !important;
    }

    .nav-menu > li.list-buttons:nth-last-child(2) a {
        background: var(--primary-color) !important;
        color: #fff !important;
    }

    .nav-menu > li.list-buttons:nth-last-child(1) a {
        background: var(--text-main) !important;
        color: #fff !important;
    }

    .nav-menu > li.list-buttons a:hover {
        transform: translateY(-2px);
        filter: brightness(1.1);
        box-shadow: 0 8px 20px rgba(0, 126, 250, 0.25) !important;
    }
}

/* Mobile Responsiveness & Fixes */
@media (max-width: 991px) {
    .header {
        padding: 10px 0 !important;
    }
    
    .nav-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 5px 0 !important;
    }

    /* Force Hide problematic elements */
    .mobile_nav, .nav-menus-wrapper-close-button, .btn-avalability {
        display: none !important;
    }
    
    /* Clean Hamburger Toggle */
    .nav-toggle {
        display: block !important;
        width: 45px !important;
        height: 45px !important;
        background: #FF811A !important;
        border-radius: 8px !important;
        position: relative !important;
        cursor: pointer !important;
        z-index: 10000 !important;
    }

    .nav-toggle::before {
        content: "" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 24px !important;
        height: 2px !important;
        background: #fff !important;
        transform: translate(-50%, -50%) !important;
        box-shadow: 0 -8px 0 #fff, 0 8px 0 #fff !important;
        display: block !important;
    }

    .nav-menus-wrapper {
        display: block !important;
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background: #fff !important;
        padding: 80px 20px 40px !important;
        box-shadow: 0 0 50px rgba(0,0,0,0.15) !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 9999 !important;
    }

    .nav-menus-wrapper.nav-menus-wrapper-open {
        left: 0 !important;
    }

    .nav-menu > li {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin: 0 !important;
    }

    .nav-menu > li > a {
        padding: 18px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        display: block !important;
        width: 100% !important;
    }

    /* Button specific overrides for mobile list */
    .nav-menu > li.list-buttons {
        padding: 0 !important;
        margin-top: 10px !important;
    }
    
    .nav-menu > li.list-buttons a {
        background: transparent !important;
        color: var(--text-main) !important;
        border-radius: 0 !important;
        padding: 18px 20px !important;
        text-transform: capitalize !important;
        font-size: 16px !important;
        letter-spacing: 0 !important;
        box-shadow: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        line-height: normal !important;
        display: block !important;
        width: 100% !important;
    }

    .nav-menu > li.list-buttons a:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Hide Category Section on Mobile */
    #property-categories-section {
        display: none !important;
    }
}

/* Hero & General Mobile Responsiveness */
@media (max-width: 991px) {
    .hero-header {
        height: auto !important;
        min-height: 0 !important;
        padding: 60px 0 !important;
        display: block !important;
        text-align: center;
    }
    .hero-header .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .hero-header h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px;
    }
    .hero-header p {
        font-size: 1rem !important;
    }
    .lios-vrst ul {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 767px) {
    .hero-header h1 {
        font-size: 1.8rem !important;
    }
    .admin-stats-row .col-md-3 {
        margin-bottom: 15px;
    }
}

/* Global Professional Narrative Styling (30% Font Increase) */
.professional-narrative, .story-text {
    font-size: 1.3rem !important;
    line-height: 1.7 !important;
    color: var(--text-paragraph) !important;
    margin-bottom: 25px;
}

@media (max-width: 767px) {
    .professional-narrative, .story-text {
        font-size: 1.1rem !important;
    }
}
