/* ------- Global styles & typography ------- */
body{
    font-family: "Plus Jakarta Sans", sans-serif !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(254, 66, 77, 0.08), transparent 28rem),
        linear-gradient(180deg, #fffdfd 0%, #f8fafb 100%);
    color: #222222;
}

.container{
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ------- Feedback and errors ------- */
.app-flash{
    width: min(42rem, 100%);
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(34, 34, 34, 0.08) !important;
    border-radius: 1rem !important;
    padding: 0.9rem 3rem 0.9rem 1rem !important;
    box-shadow: 0 12px 28px rgba(34, 34, 34, 0.08);
    font-weight: 650;
}

.app-flash i{
    font-size: 1.25rem;
}

.app-flash-success{
    background: #f0fbf5 !important;
    color: #17623a !important;
}

.app-flash-error{
    background: #fff4f4 !important;
    color: #9f1d2a !important;
}

.error-shell{
    min-height: 58vh;
    display: grid;
    place-items: center;
    padding: 1rem 0 3rem;
}

.error-card{
    width: min(42rem, 100%);
    padding: 2.25rem;
    text-align: center;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
    box-shadow: 0 22px 50px rgba(34, 34, 34, 0.1);
}

.error-icon-wrap{
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff0f1, #eef7ff);
    color: #fe424d;
    font-size: 2.1rem;
    box-shadow: inset 0 0 0 1px rgba(254, 66, 77, 0.12);
}

.error-kicker{
    margin: 0 0 0.45rem;
    color: #fe424d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.error-card h1{
    margin: 0;
    color: #222222;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-weight: 800;
}

.error-message{
    max-width: 32rem;
    margin: 0.9rem auto 0;
    color: #5d646b;
    line-height: 1.7;
    font-weight: 600;
}

.error-actions{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.error-actions .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px !important;
    padding: 0.7rem 1.05rem !important;
    font-weight: 750;
}

.error-primary-action{
    min-width: 10.5rem;
}

.error-secondary-action{
    min-width: 8.5rem;
}

/* ------- Navigation bar ------- */
.navbar{
    height: 5rem;
    background-color: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(34, 34, 34, 0.08) !important;
    box-shadow: 0 8px 24px rgba(34, 34, 34, 0.05);
    backdrop-filter: blur(12px);
}

@media (max-width: 767.98px){
    .navbar{
        height: auto;
        min-height: 5rem;
        padding: 0.75rem 0;
    }

    .navbar-collapse{
        margin-top: 0.75rem;
        padding: 0.75rem 1rem 0.25rem;
        background-color: #ffffff;
        border-top: 1px solid #dee2e6;
    }

    .navbar-nav{
        gap: 0.25rem;
    }

    .nav-link{
        margin-right: 0;
        padding: 0.6rem 0;
    }
}

/* Icon used in header/brand */
.fa-compass{
    font-size: 2rem;
    color:#fe424d;
}

/* Primary nav links styling */
.nav-link{
    color: #222222 !important;
    font-size: 1.2rem;
    margin-right: 1rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover{
    color: #fe424d !important;
    transform: translateY(-1px);
}

.nav-profile-link{
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
}

.nav-search-form{
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.search-input{
    min-width: 16rem;
    border: 1px solid rgba(34, 34, 34, 0.14);
    border-radius: 999px !important;
    padding: 0.65rem 1.1rem !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus{
    border-color: #fe424d;
    box-shadow: 0 0 0 0.2rem rgba(254, 66, 77, 0.14) !important;
}

.btn-search{
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    background-color: #fe424d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.65rem 1rem !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(254, 66, 77, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-search:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(254, 66, 77, 0.26);
}

@media (max-width: 767.98px){
    .navbar-toggler-dark{
        border: 1px solid #222222 !important;
        background-color: #ffffff;
        padding: 0.45rem 0.65rem;
        box-shadow: 0 2px 8px rgba(34, 34, 34, 0.12);
    }

    .navbar-toggler-dark .navbar-toggler-icon{
        width: 1.15em;
        height: 1.15em;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34, 34, 34, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .nav-search-form{
        width: 100%;
        margin: 0.5rem 0;
    }

    .search-input{
        min-width: 0;
        width: 100%;
    }
}

/* ------- Footer / info blocks ------- */
.f-info-links a{
    text-decoration: none;
    color: #222222;
}

.f-info-links a:hover{
    color: #fe424d;
    text-decoration: underline;
}

/* Footer layout helpers — center groups horizontally */
.f-info-links , .f-info-socials, .f-info-brand{
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
}

.f-info-socials i{
    margin-right: 2rem;
    font-size: 1.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.f-info-socials i:hover{
    color: #fe424d;
    transform: translateY(-2px);
}

.f-info{
    /* Footer container: centers content, light background */
    text-align: center;
    height : 8rem;
    display: flex;
    background: #ffffff;
    border-top: 1px solid rgba(34, 34, 34, 0.08);
    flex-wrap: wrap;
    justify-content: center;
    align-items: space-evenly;
    box-shadow: 0 -10px 28px rgba(34, 34, 34, 0.04);
}


/* ------- Card / Listing styles ------- */
.card{
    /* Remove default border from bootstrap cards and add spacing */
    border: none !important;
    margin-bottom: 2rem;
    background-color: transparent !important;
}

.card-img-top{
    /* Make images fit neatly and have rounded corners */
    border-radius: 1rem !important;
    width: 100% !important;
    object-fit: cover !important;
}

.card-body{
    /* Remove inner padding to align custom layout */
    padding: 0 !important;
}

.card-text p{
    /* Ensure body text weight is consistent */
    font-weight: 400 !important;
}

/* Image overlay used for hover effects */
.card-img-overlay{
    opacity: 0;
}

.card-img-overlay:hover{
    opacity: 0.2;
    background-color:white
}

/* ------- Profile page ------- */
.profile-shell{
    padding: 1rem 0 3rem;
}

.profile-hero{
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
    box-shadow: 0 18px 45px rgba(34, 34, 34, 0.08);
}

.profile-avatar{
    width: 5rem;
    height: 5rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fe424d, #ff8a65);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(254, 66, 77, 0.22);
}

.profile-identity{
    flex: 1;
    min-width: 0;
}

.profile-kicker{
    margin: 0 0 0.35rem;
    color: #fe424d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-identity h1{
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-identity p{
    margin: 0.45rem 0 0;
    color: #5d646b;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.profile-create-btn{
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px !important;
    white-space: nowrap;
}

.profile-stats{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.75rem;
}

.profile-stat{
    padding: 1.1rem;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(34, 34, 34, 0.06);
}

.profile-stat i{
    color: #fe424d;
    font-size: 1.2rem;
}

.profile-stat span{
    display: block;
    margin-top: 0.6rem;
    color: #222222;
    font-size: 1.45rem;
    font-weight: 800;
}

.profile-stat p{
    margin: 0.15rem 0 0;
    color: #6b7278;
    font-weight: 650;
}

.profile-section-head{
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-section-head h2{
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.profile-empty{
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(34, 34, 34, 0.06);
}

.profile-empty i{
    color: #fe424d;
    font-size: 2.4rem;
}

.profile-empty h3{
    margin: 0.75rem 0 0.35rem;
    font-weight: 800;
}

.profile-empty p{
    color: #6b7278;
    font-weight: 650;
}

.profile-listings-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.profile-listing-card{
    overflow: hidden;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(34, 34, 34, 0.06);
}

.profile-listing-card img{
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.profile-listing-placeholder{
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff0f1, #eef7ff);
    color: #fe424d;
    font-size: 2rem;
}

.profile-listing-body{
    padding: 1rem;
}

.profile-listing-category{
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: #fe424d;
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-listing-body h3{
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-listing-body p{
    margin: 0.45rem 0;
    color: #666d73;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.profile-listing-body strong{
    display: block;
    color: #222222;
}

.profile-listing-actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.profile-listing-actions .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px !important;
    font-weight: 750;
    min-width: 0;
}

@media (max-width: 991.98px){
    .profile-listings-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px){
    .profile-hero{
        align-items: flex-start;
        flex-direction: column;
        padding: 1.25rem;
    }

    .profile-create-btn{
        width: 100%;
        justify-content: center;
    }

    .profile-stats{
        grid-template-columns: 1fr;
    }

    .profile-listings-grid{
        grid-template-columns: 1fr;
    }
}

/* Listing card lift animation and rounded corners */
.listing-card{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    padding: 0.35rem;
    background: #ffffff !important;
    border: 1px solid rgba(34, 34, 34, 0.08) !important;
}

.listing-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* ------- Card typography helpers ------- */
.card-title{
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-description{
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.card-location{
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.card-price{
    font-size: 1.05rem;
    color: #3c433b;   
}

.listing-index-image{
    height: 20rem;
}

/* ------- Listing index filters ------- */
.listing-toolbar{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.listing-page-title{
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    color: #1f1f1f;
}

.listing-results-copy{
    color: #6c757d;
    font-weight: 600;
    margin: 0.45rem 0 0;
}

.listing-clear-filter-btn{
    border-radius: 999px !important;
    padding: 0.7rem 1.1rem !important;
    font-weight: 700 !important;
}

#filters{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(34, 34, 34, 0.05);
}

.filter{
    min-width: 5.2rem;
    text-align: center;
    text-decoration: none;
    color: #555b62;
    cursor: pointer;
    opacity: 0.78;
    padding: 0.7rem 0.65rem;
    border-radius: 1rem;
    transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter:hover,
.filter.active{
    opacity: 1;
    color: #fe424d;
    background: rgba(254, 66, 77, 0.08);
    transform: translateY(-2px);
}

.filter i{
    font-size: 1.2rem;
}

.filter p{
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0.35rem 0 0;
}

.tax-info{
    display: none;
    color: #6c757d;
    font-style: normal;
    font-weight: 700;
}

.tax-switch{
    margin-left: auto;
    border: 1px solid rgba(34, 34, 34, 0.14);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #333333;
    font-size: 0.92rem;
    font-weight: 650;
}

.tax-switch .form-check{
    min-height: 0;
    margin: 0;
}

.tax-switch .form-check-input:checked{
    background-color: #fe424d;
    border-color: #fe424d;
}

.listing-empty-results{
    display: grid;
    place-items: center;
    text-align: center;
    gap: 0.65rem;
    margin-top: 2rem;
    padding: 3rem 1.5rem;
    border: 1px dashed rgba(34, 34, 34, 0.18);
    border-radius: 1.25rem;
    background: #ffffff;
}

.listing-empty-results i{
    color: #fe424d;
    font-size: 2rem;
}

.listing-empty-results h2{
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.listing-empty-results p{
    color: #6c757d;
    margin: 0;
}

.add-btn{
    background-color: #fe424d !important;
    border: none !important;
    color: white !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.add-btn:hover{
    filter: brightness(0.98);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(254, 66, 77, 0.25);
}

/* ------- New listing form ------- */
.listing-form-shell{
    padding: 1rem 0 2rem;
}

.listing-form-card{
    background: linear-gradient(180deg, #ffffff 0%, #fff9f9 100%);
    border: 1px solid rgba(254, 66, 77, 0.12);
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(34, 34, 34, 0.08);
    padding: 2rem;
}

.listing-form-header{
    margin-bottom: 1.5rem;
}

.listing-form-kicker{
    color: #fe424d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.listing-form-header h1{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.listing-form-subtitle{
    color: #6c757d;
    margin-bottom: 0;
}

.listing-form .form-label{
    font-weight: 600;
    color: #222222;
    margin-bottom: 0.4rem;
}

.listing-form .form-control{
    border-radius: 0.9rem;
    border: 1px solid #d9d9d9;
    padding: 0.85rem 1rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.listing-form .form-control:focus{
    border-color: #fe424d;
    box-shadow: 0 0 0 0.2rem rgba(254, 66, 77, 0.14);
}

.listing-description{
    min-height: 140px;
    resize: vertical;
}

.listing-form-actions{
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.listing-submit-btn{
    min-width: 180px;
    padding: 0.8rem 1.4rem;
    border-radius: 999px !important;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(254, 66, 77, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-submit-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(254, 66, 77, 0.3);
}

@media (max-width: 767.98px){
    .listing-form-card{
        padding: 1.25rem;
        border-radius: 1.1rem;
    }

    .listing-form-header h1{
        font-size: 1.6rem;
    }

    .listing-form-actions{
        justify-content: stretch;
    }

    .listing-submit-btn{
        width: 100%;
    }

    .listing-toolbar{
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-clear-filter-btn{
        width: 100%;
    }

    #filters{
        gap: 0.5rem;
        padding: 0.65rem;
    }

    .filter{
        min-width: calc(33.333% - 0.5rem);
        padding: 0.65rem 0.35rem;
    }

    .tax-switch{
        width: 100%;
        margin-left: 0;
        border-radius: 1rem;
    }
}

/* ------- Listing show page ------- */
.listing-show-shell{
    padding: 1rem 0 2.5rem;
}

.listing-show-card{
    background: #ffffff;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(34, 34, 34, 0.08);
}

.listing-show-media{
    background: linear-gradient(135deg, #fff3f4 0%, #ffffff 100%);
}

.listing-show-image{
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.listing-show-placeholder{
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 1rem;
}

.listing-show-placeholder i{
    font-size: 3rem;
    color: #fe424d;
}

.listing-show-content{
    padding: 1.75rem;
}

.listing-show-header{
    margin-bottom: 1.25rem;
}

.listing-show-kicker{
    color: #fe424d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.listing-show-header h1{
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.listing-show-badges{
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.listing-show-badge{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: #f8f9fa;
    color: #444;
    font-size: 0.95rem;
    font-weight: 600;
}

.listing-show-badge i{
    color: #fe424d;
}

.listing-show-price-wrap{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(254, 66, 77, 0.08), rgba(254, 66, 77, 0.02));
    margin-bottom: 1.5rem;
}

.listing-show-price-label{
    color: #6c757d;
    font-weight: 600;
}

.listing-show-price{
    font-size: 1.8rem;
    font-weight: 800;
    color: #222222;
}

.listing-show-description h2{
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.listing-show-description p{
    color: #4b4f56;
    line-height: 1.75;
    margin-bottom: 0;
}

.listing-show-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.listing-action-btn{
    min-width: 160px;
    border-radius: 999px !important;
    padding: 0.8rem 1.35rem;
    font-weight: 600;
}

.listing-delete-form{
    margin: 0;
}

.listing-delete-btn{
    box-shadow: 0 10px 24px rgba(254, 66, 77, 0.18);
}

.listing-show-divider{
    height: 1px;
    margin: 2rem 0;
    background: linear-gradient(90deg, transparent, rgba(34, 34, 34, 0.16), transparent);
}

.listing-reviews-section{
    display: grid;
    gap: 1.75rem;
}

.listing-section-header{
    margin-bottom: 1rem;
}

.listing-section-header h2{
    font-size: 1.35rem;
    font-weight: 750;
    margin: 0;
    color: #222222;
}

.listing-review-form-card{
    padding: 1.35rem;
    border: 1px solid rgba(254, 66, 77, 0.14);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
    box-shadow: 0 12px 30px rgba(34, 34, 34, 0.06);
}

.listing-review-form .form-label{
    color: #222222;
    font-weight: 650;
    margin-bottom: 0.45rem;
}

.listing-review-form .form-control{
    border: 1px solid #d9d9d9;
    border-radius: 0.9rem;
    box-shadow: none;
    padding: 0.85rem 1rem;
    resize: vertical;
}

.listing-review-form .form-control:focus,
.listing-review-form .form-range:focus{
    border-color: #fe424d;
    box-shadow: 0 0 0 0.2rem rgba(254, 66, 77, 0.14);
}

.listing-rating-control{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: #f8f9fa;
}

.listing-rating-control span{
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 700;
}

.listing-rating-control .form-range{
    margin: 0;
    accent-color: #fe424d;
}

.listing-review-submit{
    min-width: 180px;
}

.listing-reviews-heading{
    margin-bottom: -0.75rem;
}

.listing-empty-reviews{
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(34, 34, 34, 0.2);
    border-radius: 1rem;
    color: #6c757d;
    background: #ffffff;
}

.listing-empty-reviews i{
    color: #fe424d;
    font-size: 1.3rem;
}

.listing-empty-reviews p{
    margin: 0;
}

.listing-review-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.listing-review-card{
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem;
    border: 1px solid rgba(34, 34, 34, 0.1);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(34, 34, 34, 0.06);
}

.listing-review-card-head{
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.listing-review-avatar{
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(254, 66, 77, 0.12);
    color: #fe424d;
    font-size: 0.85rem;
    font-weight: 800;
}

.listing-review-card h3{
    font-size: 1rem;
    font-weight: 750;
    margin: 0 0 0.1rem;
}

.listing-review-card-head p{
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 650;
    margin: 0;
}

.listing-review-card-head i{
    color: #fe424d;
}

.listing-review-comment{
    color: #4b4f56;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.listing-review-delete-form{
    margin: auto 0 0;
}

.listing-review-delete-btn{
    border-radius: 999px !important;
    padding: 0.45rem 1rem;
    font-weight: 650;
}

/* ------- Listing map ------- */
.listing-map-section{
    margin-top: 1.75rem;
}

.listing-map-container{
    padding: 1.25rem;
    border: 1px solid rgba(34, 34, 34, 0.1);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 12px 30px rgba(34, 34, 34, 0.06);
}

.listing-map-heading{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.listing-map-heading h3{
    margin: 0;
    font-size: 1.35rem;
    font-weight: 750;
}

.listing-map-address{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 20rem;
    color: #555b62;
    font-weight: 650;
    line-height: 1.4;
    text-align: right;
}

.listing-map-address i{
    color: #fe424d;
}

.listing-route-controls{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.listing-route-controls .btn{
    min-width: 6rem;
    border-radius: 999px !important;
    font-weight: 700;
}

#map{
    width: 100%;
    height: 22rem;
    overflow: hidden;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 1rem;
    background: #eef2f3;
}

.kitten-map-marker{
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe1e4, #fff8d8);
    box-shadow: 0 10px 22px rgba(34, 34, 34, 0.22);
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1;
    transform-origin: center bottom;
    transition: transform 0.2s ease;
}

.kitten-map-marker:hover{
    transform: translateY(-3px) scale(1.05);
}

@media (max-width: 767.98px){
    .listing-show-content{
        padding: 1.25rem;
    }

    .listing-show-header h1{
        font-size: 1.7rem;
    }

    .listing-show-price-wrap{
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-action-btn{
        width: 100%;
    }

    .listing-show-actions{
        flex-direction: column;
    }

    .listing-review-grid{
        grid-template-columns: 1fr;
    }

    .listing-review-form-card{
        padding: 1rem;
    }

    .listing-review-submit{
        width: 100%;
    }

    .listing-empty-reviews{
        align-items: flex-start;
    }

    .listing-map-container{
        padding: 1rem;
    }

    .listing-map-heading{
        flex-direction: column;
    }

    .listing-map-address{
        max-width: 100%;
        text-align: left;
    }

    #map{
        height: 18rem;
    }
}

/* ------- Listing delete confirmation ------- */
.listing-delete-shell{
    padding: 1rem 0 2.5rem;
}

.listing-delete-card{
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
    border: 1px solid rgba(254, 66, 77, 0.14);
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(34, 34, 34, 0.08);
    padding: 2rem;
    text-align: center;
}

.listing-delete-icon-wrap{
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 66, 77, 0.12);
}

.listing-delete-icon-wrap i{
    color: #fe424d;
    font-size: 1.9rem;
}

.listing-delete-header{
    margin-bottom: 1.25rem;
}

.listing-delete-kicker{
    color: #fe424d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.listing-delete-header h1{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.listing-delete-copy{
    color: #6c757d;
    margin-bottom: 0;
}

.listing-delete-title{
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1rem;
    background: #f8f9fa;
    margin-bottom: 1.5rem;
}

.listing-delete-title span{
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.listing-delete-title strong{
    color: #222222;
    font-size: 1.15rem;
}

.listing-delete-actions{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.listing-delete-form{
    margin: 0;
}

.listing-delete-confirm-btn,
.listing-delete-cancel-btn{
    min-width: 180px;
    border-radius: 999px !important;
    padding: 0.8rem 1.35rem;
    font-weight: 600;
}

.listing-delete-confirm-btn{
    box-shadow: 0 10px 24px rgba(254, 66, 77, 0.2);
}

@media (max-width: 767.98px){
    .listing-delete-card{
        padding: 1.25rem;
        border-radius: 1.1rem;
    }

    .listing-delete-header h1{
        font-size: 1.65rem;
    }

    .listing-delete-confirm-btn,
    .listing-delete-cancel-btn{
        width: 100%;
    }

    .listing-delete-actions{
        flex-direction: column;
    }
}

/* ------- Home page ------- */
.home-hero{
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0 3rem;
}

.home-hero-glow{
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.55;
    pointer-events: none;
}

.home-hero-glow-left{
    width: 16rem;
    height: 16rem;
    background: rgba(254, 66, 77, 0.12);
    top: -4rem;
    left: -5rem;
}

.home-hero-glow-right{
    width: 14rem;
    height: 14rem;
    background: rgba(34, 34, 34, 0.08);
    right: -4rem;
    bottom: 2rem;
}

.home-kicker{
    color: #fe424d;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.home-title{
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.02;
    color: #1f1f1f;
    max-width: 11ch;
    margin-bottom: 1rem;
}

.home-copy{
    max-width: 36rem;
    color: #555b62;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.home-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.home-primary-btn,
.home-secondary-btn{
    min-width: 170px;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 600;
}

.home-secondary-btn{
    border-width: 1.5px;
}

.home-stats{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 34rem;
}

.home-stat-card{
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(34, 34, 34, 0.06);
}

.home-stat-number{
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f1f1f;
}

.home-stat-label{
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
}

.home-feature-panel{
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
    border: 1px solid rgba(254, 66, 77, 0.12);
    border-radius: 1.75rem;
    padding: 1rem;
    box-shadow: 0 18px 45px rgba(34, 34, 34, 0.08);
}

.home-feature-image-wrap{
    overflow: hidden;
    border-radius: 1.25rem;
}

.home-feature-image{
    min-height: 20rem;
    background:
        linear-gradient(135deg, rgba(254, 66, 77, 0.15), rgba(255, 255, 255, 0.05)),
        url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.home-feature-content{
    padding: 1rem 0.25rem 0.25rem;
}

.home-feature-label{
    color: #fe424d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.home-feature-content h2{
    font-size: 1.6rem;
    font-weight: 750;
    margin-bottom: 0.65rem;
}

.home-feature-content p{
    color: #555b62;
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 991.98px){
    .home-title{
        max-width: 100%;
    }

    .home-feature-panel{
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px){
    .home-hero{
        padding: 0.75rem 0 2rem;
    }

    .home-title{
        font-size: 2.2rem;
    }

    .home-copy{
        font-size: 1rem;
    }

    .home-stats{
        grid-template-columns: 1fr;
    }

    .home-primary-btn,
    .home-secondary-btn{
        width: 100%;
    }

    .home-feature-image{
        min-height: 16rem;
    }
}
