/* ==========================================================================
   1. CORE / GLOBAL / BODY
   ========================================================================== */
:root {
    --background-color: #ebf0fa;
    --secondary-color: #1db2ff;
    --primary-color: rgb(121, 60, 251);
    --primary-text-color: rgb(121, 60, 251);
    --primary-accent-color:#f58220;
    --secondary-accent-color: rgb(191, 92, 8);
    --primary-fill-color: #793DF9;
    --primary-darken-fill-color: #6A1B9A;
    --white-offset-color: #e7f6fd;
    --dark-text-color: #222;
    --deamed-text-color: #54595F;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #333;
    background: #f3f7fb!important;
    opacity: 0;
    animation: fadeInPage 0.3s ease-in forwards;
    -ms-overflow-style: none!important;  /* IE and Edge */
    scrollbar-width: none!important;  /* Firefox */
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* hide scrollbars on ALL elements */
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.prevent-reload {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
}

.main {
    margin-top: 80px!important;
}

.body-background {
    background: #f3f7fb;
}

.bg-none {
    background: none!important;
}

.bg-transparent {
    background: transparent!important;
}

.bg-colored {
    background-color: #3730b6!important;
}

.bg-light-gray {
    background: rgb(247, 247, 247);
}

.light-bg {
    background: #fcfcfc;
}

.border-colored {
    border: #3730b6!important;
}

.border-thin {
    border: 1px solid #f8f2f9 !important;
}

.border-bottom-thin {
    border-bottom: 1px solid #eee !important;;
}

.shadow-none {
    -webkit-box-shadow: none!important;
    box-shadow: none!important;
}

.box-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.08)!important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* ==========================================================================
   1.b SWEET ALERT 2
   ========================================================================== */

.swal2-container {
    z-index: 99999 !important;
}

.swal2-modal {
    margin: 0px 20px!important;
    border-radius: 20px!important;
}

.swal-confirm-btn {
    border: none !important;
}

.swal-confirm-btn:focus, .swal-confirm-btn:hover {
    border: none !important;
}

/* ==========================================================================
   2. TYPOGRAPHY & TEXT UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .nav-item, .btn-primary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.toastify {
    font-family: 'Roboto', sans-serif!important;
}

.left-padded {
    padding-left: 2rem;
}

.clearfix {
    clear: both!important;
}

.scroll-vertical {
    overflow-y: scroll!important;
}

.title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-text-color);
}

.sub-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text-color);
}

.sub-title-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1;
    color: #4e6882;
}

.description {
    color: #4c5b6a;
    font-family: 'Roboto', sans-serif;
    font-weight:400;
    font-size:13px;
}

.primary-text-color {
    color: var(--primary-text-color)!important;
}

.text {
    color: #4c5b6a;
    font-size: 13px;
}

.med-text {
    font-size: 13px!important;
}

.colored-text {
    color: #5e35b1!important;
}

.text-success {
    color: #2e7d32!important;
}

.error-warning {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 2px;
    font-size: 11px;
    color: rgb(211, 48, 7);
}

.small {
    font-size: 12px;
}

.xs-small {
    font-size: 10px;
}

.fw-500 {
    font-weight: 500!important;
}

.roboto {
    font-family: 'Roboto', sans-serif!important;
}

.standard-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.font-worksans {
    font-family: 'Work Sans';
    font-weight: 600;
}

.underline {
    color: inherit;
    border-bottom: 1px dashed currentColor;
    transition: all ease .2s;
}

.underline:hover {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid currentColor;
}

/* ==========================================================================
   3. NAVIGATION (Top, Bottom & Tabs)
   ========================================================================== */
nav ul a {
    font-family: 'Poppins', sans-serif;
    font-size: 16;
    font-weight: 500;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    background: #f3f7fb!important;
    backdrop-filter: blur(12px);
}

.bottom-nav a {
    color: #3a3a3a!important;
}

/* Flutter M3 Pill Effect */
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bottom-nav .nav-item.active i {
    color: #5e35b1; /* Your primary purple */
    font-variation-settings: 'FILL' 1; /* If using Material Symbols */
}

.bottom-nav .nav-item.active span {
    color: #5e35b1;
    font-weight: 700;
}

.bottom-nav .nav-item i {
    font-size: 24px;
    color: #5f6368;
    transition: color 0.3s;
}

.bottom-nav .nav-item span {
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-weight: 700;
    font-size: 13px;
    color: #777;
    cursor: pointer;
}

.auth-tab.active {
    color: #3730b6;
}

/* ==========================================================================
   4. BUTTONS & ACTIONS
   ========================================================================== */
.app-button {
    padding: 6px 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f4bd0e, #3730b6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.app-button:active {
    transform: scale(0.96);
}

.app-btn .icon {
    margin-right: 6px;
    font-size: 16px;
}

.material-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.25px;
    padding: 12px 24px;
    border-radius: 100px;
    border: none;
    transition: all 0.2s ease-in-out;
    box-shadow: none
}

.custom-btn {
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--primary-text-color);
    background-color: #FFFFFF;
    display: inline-block;
    padding: 4px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-btn > * {
    position: relative;
    z-index: 2;
}

/* Custom Button Wave Effect */
.custom-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: var(--primary-accent-color);
    transform: skewX(-25deg);
    z-index: 1;
    transition: none;
}

.custom-btn:active::after {
    animation: wave-sweep 0.6s ease-out forwards;
}

@keyframes wave-sweep {
    from { left: -100%; }
    to { left: 100%; }
}

.blinking-text {
  animation: blinker 2s linear infinite;
}

.bleep-text {
  animation: blinker 2s step-end infinite;
}

@keyframes blinker {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* ==========================================================================
   5. FEATURE: PROPERTY REQUESTS & FILTERS
   ========================================================================== */
.request-card {
    background: #fbfbfc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.request-card:active {
    transform: scale(0.98);
}

.request-main {
    max-width: calc(100% - 90px);
}

.request-title {
    font-weight: 600;
    font-size: 12px;
    color: #27237d;
}

.request-description {
    color: #4c5b6a;
    font-family: 'Roboto', sans-serif;
    font-weight:500;
    font-size:13px;
}

.request-time {
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    color: #f4bd0e;
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

.material-icon {
    overflow: hidden;
    text-indent: -9999px;
}

.material-icons:after {
    text-indent: 0;
}

.request-time .material-icons {
    font-size: 14px;
}

.request-meta {
    color: #666;
    font-size: 10px;
    font-weight: 600;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 2px;
}

.meta-item .material-icons {
    font-size: 18px;
    color: #f4bd0e;
}

.request-budget {
    font-weight: 700;
    font-size: 14px;
    color: #3730b6;
    white-space: nowrap;
}

.request-badge {
    font-size: 9px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
}

.request-badge.rent {
    background: rgba(55, 48, 182, 0.12);
    color: #b88600;
}

.request-badge.sale {
    background: rgba(244, 189, 14, 0.15);
    /* color: #3730b6; */
}

.spec-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 14px;
    color: #27237d;
    font-weight: 600;
}

.details-box {
    background: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid #3730b6;
}

/* Filters & Sticky Bars */
.sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #f3f7fb!important;
    backdrop-filter: blur(12px);
    box-shadow: none !important;
}

.filter-input-bg {
    background: #f8f9fa!important;
}

/* Filter Pill Choices (Rent/Sale) */
.filter-pill-choice {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-pill-choice.active {
    background: #3730b6;
    color: white;
    border-color: #3730b6;
    box-shadow: 0 4px 10px rgba(55, 48, 182, 0.2);
}

/* Material Input Style */
.custom-input-material {
    background: #f8f9fa !important;
    border: none !important;
    border-bottom: 2px solid #eee !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 12px !important;
}
.custom-input-material:focus {
    border-bottom-color: #3730b6 !important;
}

/* Selection Chips (Bedrooms/Move-in) */
.chip-choice {
    background: white;
    border: 1px solid #ddd;
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}
.chip-choice.active {
    background: #eef2ff;
    color: #3730b6;
    border-color: #3730b6;
    font-weight: 500;
}

/* Utility to hide scrollbar but allow scrolling */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.no-focus:focus { outline: none; }

.my-area-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.my-area-toggle input {
    display: none;
}

.my-area-toggle .checkmark {
    width: 14px;
    height: 14px;
    border: 1.5px solid #bbb;
    border-radius: 3px;
    position: relative;
    background: #fff;
}

.my-area-toggle input:checked+.checkmark {
    background: #3730b6;
    border-color: #3730b6;
}

.my-area-toggle input:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ==========================================================================
   6. FEATURE: AGENTS / PROFILE
   ========================================================================= */
.profile-card {
    background: #fcfcfc;
    border-radius: 6px;
    border: 1px solid #f0efef;
    backdrop-filter: blur(12px);
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4bd0e, #3730b6);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn {
    background: #f3f7fb;
    color: #3730b6;
    border-color: #3730b6;
}

.profile-info .profile-item {
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed #eee;
}

.profile-info .profile-item:last-child {
    border-bottom: none;
}

.agent-cta-card {
    background: linear-gradient(135deg, #f9f9ff, #fff);
    border-radius: 6px;
}

.agent-policy-note {
    background: #fff8e6;
    border: 1px dashed #f4bd0e;
    padding: 10px;
    border-radius: 10px;
    color: #6b5500;
}

.policy-link {
    display: inline-block;
    margin-top: 4px;
    color: #3730b6;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.agent-policy-list {
    font-weight: 500;
}

.agent-policy-list li {
    margin-bottom: 14px;
    line-height: 1.5;
}

.profile-policy-note {
    background: #f3f7fb;
    border-left: 3px solid #3730b6;
    padding: 8px 10px;
    border-radius: 6px;
    color: #444;
}

.safety-tips {
    background: #f8f9ff;
    border-radius: 12px;
    color: #444;
}

.safety-tips li {
    margin-bottom: 10px;
    line-height: 1.4;
}

.guest-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.blur-content {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
    opacity: 0.9;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(243, 247, 251, 0.4);
}

.lock-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 320px;
    border: 1px solid #e0e0e0;
}

.lock-icon-wrap {
    width: 60px;
    height: 60px;
    background: #fff8e6;
    color: #f4bd0e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.lock-icon-wrap i {
    font-size: 30px;
}

/* ==========================================================================
   7. FEATURE: OVERLAYS / MODALS / AUTH
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: scroll;
}

/* Make the overlay look like a Drawer on mobile */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end; /* Push to bottom */
        background: rgba(0,0,0,0.4) !important;
        backdrop-filter: blur(4px);
    }

    .overlay-card {
        width: 100%;
        height: 85vh !important; /* Standard "Sheet" height */
        border-radius: 24px 24px 0 0 !important;
        /* animation: slide-up-drawer 0.5s cubic-bezier(0.16, 1, 0.3, 1); */
        animation: slide-up-drawer 0.4s ease-out;
        will-change: transform;
    }
}

@keyframes slide-up-drawer {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Rounded top for the card */
.rounded-top-5 {
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
}

/* Hide scrollbar for the grid but allow scroll */
#overlayOptions {
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: none;
}
#overlayOptions::-webkit-scrollbar { display: none; }

.sticky-top {
    position: sticky!important;
    top: 0!important;
    z-index: 9999px!important;
    backdrop-filter: blur(12px);
}

#overlayOptions {
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Ensure the search input is actually visible and clickable */
.search-wrap .input-group {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

#overlaySearchInput {
    outline: none !important;
    box-shadow: none !important;
}

.sticky-bottom {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 10px;
    padding: 10px;
    /* background: #fff; */
    border-top: 1px solid #eee;
}

.action-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.call-btn {
    background: #f58220;
    color: #fff;
}

.whatsapp-btn {
    background: #3730b6;
    color: #fff;
}

.action-btn:hover {
    opacity: 0.9;
}

/* Original Close Button Version 2 (The red circular one) */
.close-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f7;
    color: rgb(171, 9, 9);
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    animation:
        aura-breath 2.5s infinite ease-in-out,
        breathing-scale 2.5s infinite ease-in-out,
        attention-shake 5s infinite ease-in-out;
}

.close-btn:hover {
    background: #3730b6;
    color: #fff;
    transform: scale(1.05);
}

.close-btn:active {
    transform: scale(0.95);
}

/* The Pulse Animation */
@keyframes close-pulse {
    0% { box-shadow: 0 0 0 0 rgba(55, 48, 182, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(55, 48, 182, 0); }
    100% { box-shadow: 0 0 0 0 rgba(55, 48, 182, 0); }
}

/* The Slide-In/Scale Animation */
@keyframes close-appear {
    from { transform: scale(0) rotate(-90deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes attention-shake {
    0% { transform: scale(1); }
    10% { transform: scale(1.2) rotate(15deg); }
    20% { transform: scale(1.2) rotate(-15deg); }
    30% { transform: scale(1.2) rotate(15deg); }
    40% { transform: scale(1); }
}

/* The "Running Border" Keyframes */
@keyframes border-orbit {
    0% { border-color: #f5f5f7; box-shadow: 0 0 0 2px #f5f5f7; }
    50% { border-color: #3730b6; box-shadow: 0 0 0 4px rgba(55, 48, 182, 0.2); }
    100% { border-color: #f5f5f7; box-shadow: 0 0 0 2px #f5f5f7; }
}

/* Enhanced Scale Nudge (Professional & Subtle) */
@keyframes breathing-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Updated Keyframes: Pure Shadow, No Border Line */
@keyframes aura-breath {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    50% {
        /* The deep purple "aura" that expands without a line */
        box-shadow: 0 0 0 6px rgba(55, 48, 182, 0.25), 0 4px 12px rgba(55, 48, 182, 0.15);
    }
}

@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.live-pulse {
    animation: pulse-green 2s infinite;
}

.overlay-card {
    position: relative;
    background: #fff;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Desktop Adjustment */
@media (min-width: 768px) {
    .modal-overlay {
        background: rgba(0, 0, 0, 0.5); /* Dim the background on desktop */
    }

    .overlay-card {
        width: 450px;      /* Sizable width */
        height: auto;      /* Only as tall as the content */
        max-height: 90vh;  /* Don't let it hit the top/bottom edges */
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    }
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    background: #fff;
}

.google-btn img {
    width: 18px;
}

.facebook-btn {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.auth-divider span {
    white-space: nowrap;
}

.auth-panel {
    display: none;
    margin-top: 16px;
}

.auth-panel.active {
    display: block;
}

/* ==========================================================================
   8. MISC COMPONENTS (Forms, Search, Ad Banners)
   ========================================================================== */

.custom-input {
    border: none !important;
    outline: none !important;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.08);
    font-size: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
}

/* Subtle "lift" effect when the user clicks to type */
.custom-input:focus {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.form-control:hover,
.form-control:focus,
.form-select:focus {
    outline: none!important;
    box-shadow: none!important;
}

.select-wrapper input.select-dropdown {
    border-bottom: none!important;
    padding: 1px 6px;
}

select {
    color: #666!important;
}

.inline-field {
    padding: 0 8px;
}

.search-wrapper {
    position: relative;
    z-index: 1000001;
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #f2f3f7;
    color: #fff;
    height: calc(100% - 8px);
    padding: 0 12px;
    border-radius: 4px;
    cursor: pointer;
}

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

.category-header {
    grid-column: 1 / -1;
    width: 100%;
}

.category-grid {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-item {
    background: #f5f5f5;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.category-item span {
    display: block;
    font-size: 12px;
    color: #444;
}

/* --- Material Underline Refinements --- */
.material-textfield {
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Subtle highlight when the "row" is tapped */
.material-textfield:active {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

/* Make the border-bottom animate on focus-like state */
.material-textfield .border-bottom {
    border-bottom: 1px solid #e0e0e0 !important;
    transition: border-color 0.3s ease;
}

.material-textfield:hover .border-bottom {
    border-bottom-color: #999 !important;
}

/* --- The "Flutter" Overlay Selection --- */
.category-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    border-radius: 16px;
    padding: 12px 8px;
}

/* When an item is selected in the overlay */
.category-item.selected {
    background-color: rgba(var(--primary-rgb, 0, 123, 255), 0.08) !important;
    border: 0px solid var(--primary-darken-fill-color);
    color: var(--primary-darken-fill-color);
    transform: scale(0.96);
}

.category-item.selected .icon-wrap {
    background: var(--primary-color, #6A1B9A) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb, 0, 123, 255), 0.3);
}

.category-item.selected span {
    color: var(--primary-color, #6A1B9A);
    font-weight: 700 !important;
}

.icon-wrap {
    background-color: #f3e5f5;
    color: #6A1B9A;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 24px;
}

.home-ad-banner-container {
    margin-top: 5%;
    height: 500px!important;
}

.home-ad-banner-container img {
    width: 100%!important;
    height: 100%!important;
    border-radius: 20px;
    /* object-fit: cover; */
}

.introjs-tooltip, .introjs-tooltip-inner {
    font-size: 14px!important;
    font-weight: 500;
}

.introjs-button {
    border-radius: 5px!important;
    padding: 4px 20px!important;
}

.introjs-nextbutton {
    background-color: #6A1B9A!important;
    color: white!important;
    border: #6a2694!important;
}

.introjs-prevbutton {
    background-color: white!important;
    color: #6A1B9A!important;
    border: 1px solid #6A1B9A!important;
}

/* PWA INSTALL PROMPT (iOS) */
.ios-pwa-banner {
    animation: slideUp 0.5s ease-out;
    border-left: 5px solid #3730b6; /* Your theme color */
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.ios-pwa-banner .material-icons {
    color: #3730b6;
    background: #eeedfd;
    padding: 4px;
    border-radius: 6px;
}

/* ==========================================================================
   9. MEDIA QUERIES & RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .brand-logo {
        /* margin-left: -85px; */
    }
}

@media (min-width: 900px) {
    .category-item:hover {
        border: 1px solid #6A1B9A;
    }
}

@media (min-width: 1425px) {
    .title {
        font-size: 40px;
    }
    .sub-title {
        font-size: 22px;
        line-height: 1;
    }
}

/* ==========================================================================
   10. SKELETON LOADERS (Flutter Style)
   ========================================================================== */
.skeleton-card {
    background: #fff;
    border-radius: 16px;
    height: 90px;
    position: relative;
    overflow: hidden;
}

.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%);
    animation: shimmer-swipe 1.5s infinite;
}

@keyframes shimmer-swipe {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-line {
    background: #eceff1;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ==========================================================================
   11. FLOATING ACTION BUTTON (Flutter Style)
   ========================================================================== */

.fab-apply {
    position: fixed;
    bottom: 85px;
    /* Sits right above your bottom-nav (60px) + some spacing */
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #3730b6;
    /* Your primary purple */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(55, 48, 182, 0.4);
    border: none;
    z-index: 1000;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-apply:active {
    transform: scale(0.85);
}

.fab-apply i {
    font-size: 24px;
}

/* Subtle entrance animation */
@keyframes fab-pop {
    from {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.animate-fab {
    animation: fab-pop 0.3s forwards;
}

/* ==========================================================================
   12. MATERIAL 3 SEGMENTED TABS (UNIFIED)
   ========================================================================== */

/* Main Container Row */
.tab-action-row {
    display: flex;
    align-items: center;
    gap: 8px; /* Material 3 standard spacing */
    background: #ffffff;
    width: 100%;
}

/* The Tab Track */
.nav-material {
    background: #f7f8fc;
    padding: 4px;
    border-radius: 12px; /* Consistent with your card radius */
    display: flex;
    flex: 1;
    border: none;
    margin-bottom: 0;
    list-style: none; /* Removes bullet points if any */
}

.nav-material .nav-item {
    flex: 1;
}

/* Tab Buttons */
.nav-material .nav-link {
    width: 100%;
    border: none !important;
    border-radius: 10px !important; /* Slightly smaller than track to fit inside */
    color: #5f6368;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Flutter-style Floating Active State */
.nav-material .nav-link.active {
    background: #ffffff !important;
    color: #3730b6 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* My Areas Toggle Button */
.area-toggle-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fc;
    padding: 0 12px;
    border-radius: 12px;
    height: 40px; /* Aligns perfectly with .nav-material height (padding + link) */
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    color: #5f6368;
    white-space: nowrap;
}

.area-toggle-pill.active {
    background: #eeedfd;
    color: #3730b6;
    /* Subtle glow for active state */
    box-shadow: inset 0 0 0 1px rgba(55, 48, 182, 0.1);
}

.area-toggle-pill i {
    font-size: 16px;
}

/* ==========================================================================
   WF-M3 CUSTOM ACTION BUTTON (Flutter/M3 Style)
   ========================================================================== */
.wf-m3-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px; /* Standard Flutter Button Height */
    padding: 0 24px;
    background: linear-gradient(135deg, #f4bd0e, #3730b6); /* Your Primary Purple */
    color: #ffffff !important;
    border: none;
    border-radius: 12px; /* M3 rounded-corner style */
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-decoration: none !important;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Unique elevation shadow (not bootstrap) */
    box-shadow: 0 4px 6px -1px rgba(55, 48, 182, 0.15),
                0 2px 4px -1px rgba(55, 48, 182, 0.1);
}

/* The Flutter "Hover Lift" */
.wf-m3-action:hover {
    background-color: #433bc7; /* Slightly lighter version of your purple */
    box-shadow: 0 10px 15px -3px rgba(55, 48, 182, 0.25),
                0 4px 6px -2px rgba(55, 48, 182, 0.1);
    transform: translateY(-1px);
}

/* The Flutter "Press Down" Effect */
.wf-m3-action:active {
    transform: scale(0.96); /* Instant feedback on tap */
    box-shadow: 0 2px 4px rgba(55, 48, 182, 0.1);
}

/* Icon scaling to match your material-icons */
.wf-m3-action i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

/* Subtle loading/disabled state */
.wf-m3-action:disabled {
    background: #e0e0e0;
    color: #9e9e9e !important;
    cursor: not-allowed;
    box-shadow: none;
}

/**
* Misc
*/
/* Logo Hover Effect */
.brand-logo {
    transition: transform 0.2s ease;
}

.brand-logo:active {
    transform: scale(0.97); /* Physical "click" feel */
}

/* Header Elevation */
.nk-header-fixed {
    height: 65px;
    display: flex;
    align-items: center;
    background: #f3f7fb!important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important; /* Extremely subtle */
    z-index: 1;
}


/* ==========================================================================
   Toll-tip
   ========================================================================== */

/* TOOLTIP STYLES */
.custom-tooltip-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.custom-tooltip-wrapper .info-icon {
    font-size: 16px;
    color: #adb5bd; /* Subtle gray */
    transition: color 0.3s ease;
}

.custom-tooltip-wrapper:hover .info-icon {
    color: #007bff; /* Primary color on hover */
}

/* The actual tooltip box */
.custom-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1050; /* Above modals */
    bottom: 125%; /* Position above the icon */
    right: 0;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 11px;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

/* Tooltip Arrow */
.custom-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Trigger Visibility */
.custom-tooltip-wrapper:hover .custom-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Mobile: Ensure tap triggers it if hover doesn't */
@media (max-width: 768px) {
    .custom-tooltip-text {
        width: 160px;
    }
}

/* Remove default Bootstrap focus glow */
.form-control:focus,
.form-check-input:focus,
.btn:focus,
button:focus,
a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Custom focus style for inputs */
.form-control:focus {
    border-color: #cbd5e0; /* A soft grey instead of blue */
    /* Optional: add a tiny transition for a smoother feel */
    transition: border-color 0.2s ease-in-out;
}

/* Custom focus style for checkboxes/radios */
.form-check-input:focus {
    border-color: #a0aec0;
    box-shadow: none !important;
}
