html {
  font-size: 80% !important;
}

body {
    font-family: 'Vazirmatn-Medium', sans-serif;
    background-color: #f3f4f6;
    color: #333;
}

.navbar-container-wrapper {
    top: 20px;
    z-index: 1020;
}

.floating-navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.search-box {
    background-color: #f0f2f5;
    border-radius: 50px;
    /* گرد کردن کامل باکس جستجو */
    padding: 8px 20px;
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background-color: #fff;
    box-shadow: 0 0 0 2px #b91c1c;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    padding: 0 10px;
    font-size: 0.9rem;
}

.btn-add-ad {
    background-color: #dd0791;
    color: white;
    border-radius: 50px;
    /* دکمه هم کپسولی شد */
    padding: 8px 24px;
    font-weight: 500;
    border: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-add-ad:hover {
    background-color: #9b0466;
    transform: translateY(-1px);
}

.ad-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #222;
}

.ad-price {
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.ad-location {
    font-size: 0.8rem;
    color: #888;
}

.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
}

.location {
    color: #0f93df;
}

.nav-tabs-custom, .nav-link {
    border: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.nav-tabs-custom .nav-link.active {
    border-bottom-color: #0f93df;
    background: transparent;
}

.ad-image {
    height: 130px;
}

.ad-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.ad-tabs-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-card {
    width: 700px;
    height: 500px;
    left: 25%;
    top: 25%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    padding: 10px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
}

.chat-header .h2 {
    font-size: 16px;
    color: #333;
}

.chat-body {
    padding: 20px;
}

.message {
    padding: 10px;
    border-radius: 5px;
}

.message p {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.chat-footer {
    width: 700px;
    background-color: #f2f2f2;
    display: flex;
    bottom: 20%;
}

.mBtn {
    background-color: #dd0791 !important;
}

.cIcon {
    color: #dd0791;
}

.unLine {
    border-bottom: 3px solid #0f93df;
}

.chat-footer button:hover {
    background-color: #0f9d58;
}

@keyframes chatAnimation {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-card .message {
    animation: chatAnimation 0.3s ease-in-out;
    animation-fill-mode: both;
    animation-delay: 0.1s;
}

.chat-card .message:nth-child(even) {
    animation-delay: 0.2s;
}

.chat-card .message:nth-child(odd) {
    animation-delay: 0.3s;
}

.facilities {
    width: 15%;
}

@font-face {
  font-family: Vazirmatn-Light;
  font-weight: lighter;
  src: url("../fonts/Vazirmatn-Light.woff2") format("woff2");
} 

@font-face {
  font-family: Vazirmatn-Thin;
  font-weight: 300;
  src: url("../fonts/Vazirmatn-Thin.woff2") format("woff2");
}

@font-face {
  font-family: Vazirmatn-Medium;
  font-weight: 500;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
}

@font-face {
  font-family: Vazirmatn-Bold;
  font-weight: 700;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
}


@font-face {
  font-family: Vazirmatn-Black;
  font-weight: bolder;
  src: url("../fonts/Vazirmatn-Black.woff2") format("woff2");
}

@media (max-width: 1024px) {
    .chat-card {
        width: 500px;
        height: 400px;
        left: 25%;
        top: 40%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    .chat-footer {
    width: 500px;
    background-color: #f2f2f2;
    display: flex;
    bottom: 10%;
}
}
@media (max-width: 768px) {
    .chat-card {
        width: 400px;
        height: 300px;
        left: 20%;
        top: 65%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    .chat-footer {
    width: 400px;
    background-color: #f2f2f2;
    display: flex;
    bottom: 15%;
}
}

@media (max-width: 425px) {
    .navbar-container-wrapper {
        top: 0;
        padding: 0;
    }

    .active-text {
        color: #0f93df !important;
    }

    .nav-tabs-custom .nav-lin {
        color: #0f93df;
        width: 25%;
        margin: 0 auto;
        border-radius: 10px 10px 0 0;
    }

    .ad-image {
        height: 100px;
    }

    .chat-card {
        width: 300px;
        height: 350px;
        left: 10%;
        top: 55%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    .chat-footer {
    width: 300px;
    background-color: #f2f2f2;
    display: flex;
    bottom: 15%;
}
}