
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;

}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overscroll-behavior: none;

}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
main {
    flex: 1;
}

 /* Navbar */

.navbar-expand-md {
    min-height: 5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white !important;
    box-shadow: 0 2.5px 8px rgba(0,0,0,0.08);
}
.navbar-brand, .navbar-brand:hover {
    color: #fe424d;
    font-size: 1.5rem;
    font-weight: 500 !important;
}
.fa-compass {
    font-size: 1.75rem;
}
.nav-link {
    color: #222;
}
.nav-link:hover {
    color: black;
}
.navbar-toggler {
    padding: 0.35rem 0.55rem;
    border-radius: 0.55rem;
    transition: 0.2s ease;
    box-shadow: none !important;
}
.navbar-toggler:hover {
    background-color: #f2f2f2;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.search-btn, .login-btn {
    background-color: #fe424d;
}
.search-btn {
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-radius: 2rem;
}
.search-btn:hover, .login-btn:hover {
    background-color: #df2f3b;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.search-inp {
    flex: 1;
    border-radius: 2rem;
    padding: 0.5rem 2rem 0.5rem 4rem;
}
.signup {
    font-size: 1.1rem;
    font-weight: 500;
}


   /* Home Listings */

.list-card {
    text-decoration: none;
    display: block;
    color: inherit;
}
.listing-card {
    border: none;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.25s ease;
    background-color: white;
}
.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-img-top {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    border-radius: 1rem;
}
.card-body {
    padding: 0.2rem !important;
}
.card-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(0,0,0,0.78);
    margin-bottom: 0;
}
.card-text strong {
    color: #222;
    font-weight: 600;
}
.all-list {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}


   /* Show Section */

.show-image {
    height: 35vh;
    border-radius: 1rem;
    width: 100%;
}
.btn-container {
    display: flex;
    flex-direction: row;
    width: 11.5rem;
    justify-content: space-between;
    align-items: center;
    row-gap: 1rem;
    padding: 0 0.75rem;
}
.show-details p{
    color: rgba(0,0,0,0.78);
    font-size: clamp(1rem, 1.1vw, 1.2rem) !important;
    line-height: 1.8;
    font-weight: 400;
}
.host-info{
    font-size: var(--fs-sm);
    font-weight: 600;
}
.star-rating {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.9rem;
    font-size: 2.25rem;
}
.star-rating input {
    display: none;
}
.star-rating label {
    color: #ccc;
    cursor: pointer;
    transition: 0.2s;
}
.rating {
    font-size: 1.2rem;
}
.dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    vertical-align: middle;
}
.date {
    color: gray;
}
.info {
    display: inline;
    font-size: 0.9rem;
}
.read-more-btn{
    display: block;
    text-decoration: 1px underline;
    margin-top: 0.5rem;
    color: #222;
    transition: all 0.2s ease-in;
}
.read-more-btn:hover{
    text-decoration: 1.5px underline black ;
}

.show-all-reviews{
    background-color:#ebebeb68;
    height: 3rem;
    width: 13rem;
    border-radius: 1rem;
    border: none;
    font-size: 1.1rem;
    color: #222;
    font-weight: 500;
    transition: all 0.25s ease-in;
}
.show-all-reviews:hover{
    background-color: #ebebeb;
    color: black;
    
}

/* forrm */

textarea{
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
    height: 10rem;
    scroll-behavior: smooth;
}

   /* Footer */

.footer {
    background-color: #ebebeb;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}
.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.social-media a {
    font-size: 1.4rem;
    color: #fe424d;
    transition: 0.2s ease;
}
.social-media a:hover {
    color: red;
    transform: scale(1.08);
}
.brand-name {
    color: #555;
    font-size: 0.95rem;
}
.info-link {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.info-link a {
    text-decoration: none;
    color: #fe424d;
    transition: 0.2s ease;
}
.info-link a:hover {
    color: red;
    text-decoration: underline;
}


   /* Error Page */

.error-container {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.error-box {
    text-align: center;
    background-color: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 25rem;
    width: 100%;
}
.error-box h1 {
    font-size: 6rem;
    color: #fe424d;
    margin-bottom: 0.5rem;
}
.error-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #222;
}
.error-box p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.home-btn {
    text-decoration: none;
    background-color: #fe424d;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}
.home-btn:hover {
    background-color: #df2f3b;
    color: white;
}


   /* Map */

.map-par{
    font-size: 1.2rem !important;
}
#map {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}


   /* Filters */

#filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    scrollbar-width: none;
    margin-top: 1rem;
}
.filter {
    text-decoration: none;
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    opacity: 0.8;
    scroll-snap-align: start;
    transition: color 0.2s ease;
}
.filter:hover {
    opacity: 1;
    color: black;
    cursor: pointer;
}

.filter p {
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tax-toggle {
    display: flex;
    border: 1.5px solid #222;
    border-radius: 1.25rem;
    padding: 0.5rem 1rem;
    text-align: center;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 1rem;
}
.tax-info{
    display: none;
}
.active-filter{
    opacity: 1;
    border-bottom: 2px solid #fe424d;
    
}


   /* Media Queries */

@media (min-width: 1200px) {
    #map { 
        height: 30rem; 
    }
}

@media (max-width: 1200px) {
    .card-img-top { 
        height: 12rem; 
    }
    #map { 
        height: 25rem; 
    }
    .add-to-home { 
        display: none; 
    }
}
@media (max-width: 991px) {
    .card-img-top { 
        height: 10rem; 
    }
    .card-text { 
        font-size: 0.85rem; 
    }
    #map { 
        height: 20rem; 
    }
    .search-inp { 
        padding: 0.5rem 0 0.5rem 1rem; 
    }
    .search-btn {
        display: flex;
        justify-content: center;
        font-size: 0.9rem;
        height: 2.5rem;
        margin-left: 0.5rem;
        padding: 0 0.75rem 0 0.5rem;
        border-radius: 2rem;
        order: 1;
    }
    .navbar-collapse { 
        font-size: 1rem; 
    }
    .signup { 
        display: none; 
    }
}
@media (max-width: 768px) {
    .add-to-home {
        display: inline;       
        width: 100%; 
        order: 0;     
    }
    .search-btn {
        display: flex;
        justify-content: center;
        font-size: 0.9rem;
        height: 2.5rem;
        margin-left: 0.5rem;
        padding: 0 0.75rem 0 0.5rem;
        border-radius: 2rem;
    }
    .signup {
        display: block;
        text-align: center;
        font-size: 1rem;
    }
    .search-inp { 
        padding: 0.5rem 2rem 0.5rem 1rem; 
    }
    .review-card{
        padding: 0.8rem;
    }

    .review-card h5{
        font-size: 0.95rem;
    }

    .review-text{
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .rating{
        font-size: 1rem;
    }

    .date{
        font-size: 0.78rem;
    }

    .show-all-reviews{
        width: 100%;
        font-size: 0.88rem;
        padding: 0.65rem 1rem;
    }

    .review-card .btn-outline-dark{
        width: 100%;
        font-size: 0.82rem;
        padding: 0.45rem 0.8rem;
    }

    .read-more-btn{
        font-size: 1.05rem !important;
    }
    .show-details p{
        font-size: 1.1rem !important;
    }
    #map{
        height: 20rem;
    }
    .form-check-reverse{
        font-size: 1rem;
    }
}
@media (max-width: 576px) {
    
    .card-img-top { 
        height: 10rem;
    }
    .card-body { 
        padding-top: 0.5rem; 
    }
    .card-text { 
        font-size: 0.85rem !important; 
        line-height: 1.3; 
    }
    #map { 
        height: 22rem; 
    }
    .navbar-brand, .fa-regular { 
        font-size: 1.4rem; 
    }
    #filters { 
        margin-top: 0.5rem; 
    }
    .filter, .filter p { 
        font-size: 0.75rem; 
    }
    .tax-toggle { 
        font-size: 0.75rem; 
    }
    .add-to-home { 
        display: inline; 
    }
    .navbar-toggler { 
        padding: 0.25rem 0.35rem; 
        border-radius: 0.45rem; 
    }
    .review-card{
        border-radius: 1rem;
    }

    .review-card h5{
        font-size: 0.9rem;
    }

    .review-text{
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .info{
        font-size: 0.75rem;
    }

    .rating{
        font-size: 0.9rem;
    }

    .show-all-reviews{
        font-size: 0.95rem;
        padding: 0.6rem 0.9rem;
        font-weight: bold;
    }

    .review-card .btn-outline-dark{
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }

    .read-more-btn{
        font-size: 0.9rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;

    }
    .show-details p{
        font-size: 1rem !important;
    }
    .show-title{
        font-size: 1.5rem;
    }
    .map-par{
        font-size: 1rem !important;
    }
    .form-check-reverse{
        font-size: 0.9rem;
    }
}



/* Privacy Page */
.container p, 
.container li {
    font-size: 0.925rem;
    line-height: 1.6;
    color: #333;
}

.container h1, 
.container h3 {
    color: #222;
}

.container ul {
    padding-left: 1.5rem;
}