:root {
    --primary-color: #2196F3;
    --gradient: linear-gradient(#B9E2FF, #ffffff);
    --hero: #B9E2FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #051525;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.bg {
    background: var(--gradient);
    /* padding-top: 10px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* nav */
#open {
    display: none;
}


.logo img {
    width: 35px;
    height: 35px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.788);
    display: flex;
    align-items: center;
    gap: .3rem;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo .span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.nav-links .active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    margin-top: 1px;

}






/* Responsive Navbar Styles */
@media (max-width: 900px) {
    .navbar {
        padding: 10px 15px;
    }

    .responsive-head {
        display: flex;
        justify-content: space-between;
    }

    .main.profile-picture {
        display: none;
    }

    .auth-buttons {
        display: flex;
    }

    #open {
        display: flex;
    }

    .navbar #big {
        display: none;
    }

    #open {
        display: block;
        background: white;
        padding: 6px;
        border: 1px solid #CFDCE6;
        border-radius: 6px;
        box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.04);
        outline: none;
        font-size: 20px;
        cursor: pointer;
        color: #4F5D69;
    }

    .responsive {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        padding: 16px 20px;
        animation: slideDown 0.3s;
        overflow-y: hidden;
    }

    .responsive .links1 .active::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: var(--primary-color);
        margin-top: 1px;
    }

    .responsive .links1 li {
        width: 100%;
        text-align: center;
    }

    .responsive.show {
        display: flex;
    }

    .responsive-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .auth-buttons {
        display: flex;
        justify-content: center;
        gap: 30px;

    }

    .auth-buttons .btn {
        padding: 12px 10px;
        border-radius: 8px;
        text-decoration: none;

    }

    .sign-in {
        color: #000;
        background-color: #fff;
        box-shadow: rgb(190, 188, 188) 1px 1px 1px;
        font-size: 15px;
        text-align: center;
        width: 100%;
    }

    .sign-up {
        background: var(--primary-color);
        color: #fff;
        box-shadow: #007bff 1px 1px 1px;
        font-size: 15px;
        text-align: center;
        width: 100%;
    }

    .logo a span {
        font-size: 20px;
    }

    .responsive ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .responsive ul li a {
        color: #333;
        text-decoration: none;
        font-size: 15px;

    }

    .responsive #close {
        background: none;
        padding: 5px;
        border: none;
        font-size: 25px;
        cursor: pointer;
        color: #524f4f;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Hero ======================================== */
.hero {
    display: flex;
    justify-content: space-between;
    padding: 60px 50px;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 46px;
    padding-top: 20px;
    /* line-height: 60px; */
}

.hero-text h1 span {
    color: #007bff;
}

.overline {
    background-color: #e9f5fe;
    border-radius: 30px;
    color: #2196f3;
    padding: 10px 20px 10px 20px;
    width: 193px;
    font-size: 12px;
    height: 16px;
    box-shadow: 0 0.5px;
}

.overline-dot {
    font-size: 50px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #2196f3;
    display: inline-block;
    margin-right: 5px;
}

.hero-buttons {
    margin-top: 20px;
}

.hero-buttons .btn {
    margin-right: 15px;
}





/* Business Details*/
.details {
    padding: 30px;
    background: #f6fafd;
}

.search-box {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.search-box input {
    padding: 10px 40px 10px 35px;
    width: 400px;
    max-width: 420px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-box .search-lens {
    border: 1px solid #A1ACB4;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 6px;
    height: 35px;
}

.search-box .search-lens input {
    outline: none;
    border: none;
    margin: 0;
    padding: 0;
    height: 33px;
    padding-left: 7px;
}

.detail-container {
    display: flex;
    gap: 20px;
}


.big-container {
    background-color: #ffff;
    padding: 20px;
    min-height: 200px;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    border: 1px solid #CFDCE6;
}

.small-container {
    background-color: #f6fafd;
    min-height: 200px;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
}

.both {
    display: flex;
}

.main-check {
    display: none;
}

.business-card-section {
    display: flex;
    width: 100%;
    padding: 10px;
    background-color: #E9F5FE;
    border-radius: 12px;
}

.business-card-section>img {
    width: auto;
    height: 150px;
    border-radius: 10px;
}

.business-card {
    display: flex;
    flex: 1;
    padding: 20px 10px;
}

.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.one {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.head1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about {
    margin-top: 30px;
}

.about h3 {
    margin-bottom: 10px;
}

.bus-info {
    margin-top: 20px;
}

.bus-info h3 {
    margin-bottom: 20px;
}

.main-info-content .info-content div {
    display: flex;
    align-items: center;
    gap: 5%;
}

.main-info-content .info-content div p:first-child {
    width: 20%;
    font-weight: 700;
    font-size: 17px;
    margin-top: 10px;
}

.main-info-content .info-content div p:last-child {
    width: 30%;
}

.social-links img {
    margin-top: 10px;
}

.main-info-content .info-content .social-links {
    display: flex;
    gap: 15px;
}

.gallery {
    margin-top: 20px;
}

.gallery h3 {
    margin-bottom: 20px;
}

.gallery-img {
    display: flex;
}

.gallery-img img {
    width: 180px;
    height: 100px;
    object-fit: cover;
    transition: .5s;
}

.content1 {
    background-color: #ffff;
    padding: 20px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #CFDCE6;
}

.content1 h4 {
    margin-bottom: 10px;
}

.stars {
    color: #f59e0b;
    font-size: 14px
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.rating-bar .bar {
    height: 8px;
    flex: 1;
    background: #eef2ff;
    border-radius: 999px;
    overflow: hidden;
}

.rating-bar .bar .fill {
    height: 100%;
    background: #007bff;
    width: 40%;
    /* default visible width until JS updates from data-val */
    transition: width .9s cubic-bezier(.2, .9, .3, 1)
}

.rating-bar .num {
    width: 42px;
    text-align: right;
    color: var(--muted);
    font-size: 12px
}

.customer-reviews {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.review {
    display: flex;
    align-items: center;
    position: relative;
}

.review img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
}

.review img:nth-child(2) {
    position: absolute;
    left: 30px;
}

.review .more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #B9E2FF;
    position: absolute;
    left: 60px;
    display: flex;
    align-items: center;
    text-align: center;
    padding-left: 3px;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.view-all a {
    text-decoration: none;
    color: #2196F3;
    font-size: 15px;
    font-weight: 500;
}

.review-btn {
    margin-top: 10px;
    padding: 10px 16px 10px 16px;
    background: #2196F3;
    border-radius: 8px;
    border: 1px;
    color: #ffff;
    text-decoration: none;
    display: inline-block;
}

.map-view {
    padding: 10px 10px;
    width: 100%;
    border-radius: 8px;
    background: #ffff;
    margin-top: 20px;
    border: 1px solid #CFDCE6;
    text-wrap: nowrap;
}

.map-icon {
    display: flex;
    gap: 10px;
    align-items: center;
}

.map-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.icon-jacket {
    padding: 5px;
    border-radius: 50%;
}

.icon-jacket.first {
    background-color: #FFEEE9;
}

.icon-jacket.second {
    background-color: #E9F5FE;
}

.icon-jacket.third {
    background-color: #FFF5E6;
}

.similar-bus h4 {
    margin: 20px 0px 10px 0px;
}

.similar-card {
    background-color: #ffff;
    border-radius: 12px;
    padding: 10px;
    height: 136px;
    width: 100%;
    margin-bottom: 10px;
}

.similar-content p {
    margin: 0 0 7px;

}


.image-content {
    display: flex;
    gap: 10px;
}

.similar-content {
    width: 100%;
}

.heart-view {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.heart-view a {
    text-decoration: none;
    color: #2196F3;
    font-size: 15px;
    font-weight: 500;
}



/* Footer ====================================== */
footer {
    background: #f3f4f6;
    /* padding: 2.5rem 80px; */
    padding: 40px 80px;
    margin-top: 3rem;
    text-align: start;
}

.footer-logo img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

footer .hubb {
    font-size: 19px;

}

.footer-logo .hub {
    color: #2196F3;
}

.footer-logo a {
    color: #000;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center !important;
    text-align: start;
    gap: 2rem;
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.links a {
    text-decoration: none;
    color: gray;
    font-size: 0.9rem;
}

.newsletter {
    max-width: 390px;
    text-align: start;
}

.newsletter p {
    color: gray;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter form {
    display: flex;
    gap: 0.5rem;
}

.newsletter input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    /* border-radius: 6px; */
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

.newsletter button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

hr {
    font-weight: 500;
    margin-top: 50px;
    border: 1px solid #d1d5db;
}

.footer-icons {
    margin: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
    color: gray;
}

.social-icons a:hover {
    color: #2196f3;
}

.social-icons a {
    color: gray;
}

.copyright {
    font-size: 0.85rem;
    color: gray;
}


@media (max-width: 992px) {

    .hero {
        flex-direction: column;
        text-align: left;
        padding: 30px 20px 10px 20px;
    }

    .hero-text {
        /* max-width: 100%; */
        width: 100%;
    }

    .hero-text h1 {
        font-size: 30px;
        line-height: 40px;
    }

    .hero-text p {
        font-size: 14px;
        line-height: 20px;
    }

    .hero-image img {
        margin-top: 20px;
        width: 100%;
        display: none;
    }

    .details {
        padding: 20px 15px;
        margin-top: 10px;
    }

    .bsn-img img {
        height: 100px !important
    }

    .business-card-section {
        flex-direction: column;
        padding: 5px;
    }

    .business-card-section>img {
        width: 100%;
        height: 170px;
    }

    .business-card {
        padding: 10px;
    }

    .header {
        gap: 10px;
    }

    .one {
        gap: 5px;
    }

    .content1 {
        padding: 10px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        max-width: 100%;
        background: #f3f4f6;
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 2rem;
        text-align: start;
    }

    .links {
        flex-direction: column;
    }

    .newsletter p {
        color: gray;
        font-size: 14px;
        margin-bottom: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-container .footer-main {
        display: flex;
        flex-direction: column;
        text-align: left;
        width: 100%;
    }

    .footer-container .footer-main .footer-logo a {
        margin: 0 0 10px;
    }

    footer form {
        flex-direction: column;
    }

    .newsletter input {
        flex: 1;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    .newsletter button {
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 0.9rem;
        cursor: pointer;
    }

    #open {
        display: block;
    }

    #big {
        display: none;
    }
}

/* Small Screens (Mobile Phones) */
@media (max-width: 600px) {

    /* Navbar */
    .navbar {
        padding: 10px 15px;
    }

    .nav-links {
        /* flex-direction: column; */
        gap: 10px;
    }

    #open {
        display: block;
    }

    #big {
        display: none;
    }



    /* Search */
    .search-box {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }




    /* Footer */
    .subscribe input,
    .subscribe button {
        width: 100%;
        margin: 5px 0;
    }

    .gallery-img {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .gallery-img img {
        flex-shrink: 1;
    }

    .gallery-img img:hover {
        transform: scale(1.2);
    }


}

/* Additional responsive breakpoints for details page */
@media (max-width: 1200px) {

    /* Navbar */
    .navbar {
        padding: 10px 15px;
    }

    .nav-links {
        margin: 15px 0;
    }

    .auth-buttons {
        margin-top: 10px;
    }

    .bsn-img img {
        height: 100px !important
    }

    .detail-container {
        gap: 16px;
        align-items: flex-start;
    }

    .big-container {
        max-width: 65%;
    }

    .small-container {
        max-width: 35%;
    }

    .gallery-img img {
        width: 160px;
        height: 90px;
    }

    .main-info-content .info-content div {
        flex-direction: column;
        align-items: start;
    }

    .main-info-content .info-content .social-links {
        flex-direction: row;
    }

    .main-info-content .info-content div p:first-child,
    .main-info-content .info-content div p:last-child {
        width: 100%;
    }

    .business-card .image-rating img {
        width: 100%;
        height: 120px;
    }

    .bottom {
        flex-direction: column;
        text-align: left;
    }

    .bottom p {
        text-align: left;
        margin: 30px 0px 10px 0px;
    }

    .footer {
        padding: 40px 20px;
    }

    .footer-links {
        display: block;
        text-align: left;
    }
}

@media (max-width: 992px) {
    .detail-container {
        flex-direction: column;
        gap: 18px;
    }

    .big-container,
    .small-container {
        max-width: 100%;
        width: 100%;
    }

    .big-container {
        padding: 7px;
    }

    .small-container {
        padding: 0;
    }

    .bsn-img img {
        height: 100px !important
    }

    .business-card img {
        width: 120px;
        height: 90px;
    }

    .bus-container {
        flex-direction: column;
        gap: 12px;
    }

    .bus-content-head,
    .bus-content {
        width: 100%;
    }

    .gallery-img img {
        width: 45%;
        height: auto;
    }
}




@media (max-width: 768px) {
    body {
        line-height: 1.3;
    }

    /* .hero {
        padding: 20px;
    } */

    .image-rating {
        gap: 0;
    }

    /* .hero-image img {
        width: 70%;
        margin: 0 auto;
    } */
    .bsn-img img {
        height: 100px !important
    }

    .business-card {
        flex-direction: column;
        padding: 5px;
        /* gap: 0; */
        /* align-items: flex-start; */
    }

    .business-name h2 {
        font-size: 16px;
    }

    .image-rating {
        align-items: center;
    }

    .business-card img {
        /* width: 100%; */
        /* max-width: 220px; */
        height: 100px !important;
    }

    .business-card .image-rating img {
        width: 100%;
        height: 120px;
    }

    .rate-box .rating {
        font-size: 14px;
    }
}



@media (max-width: 480px) {
    /* .hero-text h1 {
        font-size: 20px;
    } */

    .search-box input {
        width: 100%;
        /* max-width: none; */
    }

    .search {
        width: 100%;
    }

    .gallery-img img {
        width: 100%;
        height: auto;
    }

    .bsn-img img {
        height: 100px !important
    }

    .heart-view {
        gap: 8px;
        margin-top: 15px;
        justify-content: space-between;
        width: 100%;
    }



    .social-links img {
        width: 28px;
        height: 28px;
    }

    .rating-bar .num {
        width: 36px;
        font-size: 11px;
    }
}