/* 
=======================
GENERAL STYLES
======================= 
*/

:root {
    --primary-color: #FFD700; /* Yellow */
    --primary-light: #FFF6B9;
    --primary-dark: #E6C200;
    --secondary-color: #3C3C3C; /* Dark Grey */
    --secondary-light: #5A5A5A;
    --secondary-dark: #2A2A2A;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-sm: 4px;
}

/* Dark mode variables with improved contrast */
body.dark-mode {
    --primary-color: #FFE44D; /* Brighter yellow for better contrast */
    --primary-light: #706000;
    --primary-dark: #FFE44D;
    --secondary-color: #FFFFFF; /* White text for better contrast on dark background */
    --secondary-light: #CCCCCC;
    --secondary-dark: #FFFFFF;
    --white: #1A1A1A; /* Darker background for better contrast */
    --light-gray: #2A2A2A;
    --gray: #CCCCCC; /* Lighter gray for better contrast */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-dark);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary-color);
    }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
    }

        .section-header h2:after {
            content: '';
            position: absolute;
            width: 50%;
            height: 3px;
            background-color: var(--primary-color);
            bottom: -10px;
            left: 25%;
        }

    .section-header p {
        color: var(--gray);
        font-size: 1.1rem;
    }

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-dark);
}

    .btn-primary:hover, .btn-primary:focus {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        color: var(--secondary-dark);
    }

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--secondary-color);
    background-color: transparent;
}

    .btn-outline-primary:hover, .btn-outline-primary:focus {
        background-color: var(--primary-color);
        color: var(--secondary-dark);
    }

.btn-view-details {
    background-color: var(--primary-color);
    color: var(--secondary-dark);
    border-color: var(--primary-color);
}

    .btn-view-details:hover {
        background-color: var(--secondary-dark);
        color: var(--primary-color);
        border-color: var(--secondary-dark);
    }

.btn-light {
    background-color: var(--white);
    color: var(--secondary-color);
}

    .btn-light:hover, .btn-light:focus {
        background-color: var(--light-gray);
        color: var(--secondary-dark);
    }

.view-more {
    text-align: center;
    margin-top: 2rem;
}

/* 
=======================
DARK MODE TOGGLE
======================= 
*/

.dark-mode-toggle {
    position: relative;
    display: inline-block;
}

.dark-mode-switch {
    opacity: 0;
    width: 0;
    height: 0;
}

.dark-mode-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: var(--secondary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

    .dark-mode-label:after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        background-color: var(--white);
        border-radius: 50%;
        transition: var(--transition);
    }

.dark-mode-switch:checked + .dark-mode-label {
    background-color: var(--primary-color);
}

    .dark-mode-switch:checked + .dark-mode-label:after {
        transform: translateX(24px);
    }

.dark-mode-label .fa-sun {
    position: absolute;
    left: 6px;
    top: 5px;
    font-size: 14px;
    color: var(--primary-color);
    transition: var(--transition);
}

.dark-mode-label .fa-moon {
    position: absolute;
    right: 6px;
    top: 5px;
    font-size: 14px;
    color: var(--white);
    transition: var(--transition);
}

.dark-mode-switch:checked + .dark-mode-label .fa-sun {
    color: var(--white);
}

.dark-mode-switch:checked + .dark-mode-label .fa-moon {
    color: var(--secondary-dark);
}

/* 
=======================
HEADER
======================= 
*/

.header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    height: 40px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: var(--primary-color);
    }

/* 
=======================
HERO SECTION
======================= 
*/

.hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-dark);
    padding: 7rem 0 0;
    position: relative;
}

.hero-content {
    text-align: center;
    padding-bottom: 5rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #000000;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #000000;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

    .search-container .form-control {
        height: 60px;
        font-size: 1.1rem;
        border-radius: var(--border-radius) 0 0 var(--border-radius);
    }

    .search-container .btn {
        height: 60px;
        font-size: 1.1rem;
        padding-left: 2rem;
        padding-right: 2rem;
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
    }

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

    .hero-wave svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 70px;
    }

/* 
=======================
POPULAR CATEGORIES
======================= 
*/

.popular-categories {
    padding: 5rem 0;
    background-color: var(--white);
}

.category-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Make the boxes square */
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .category-card::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--primary-color);
        transition: height 0.4s ease;
        z-index: -1;
    }

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

        .category-card:hover::before {
            height: 100%;
        }

.category-icon {
    font-size: 2.5rem;
    /* Changed to entirely yellow by default */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    transition: transform 0.4s ease;
}

/* Flip icon on hover */
.category-card:hover .category-icon {
    transform: rotateY(180deg);
    color: var(--secondary-dark);
    background-color: var(--primary-color);
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* 
=======================
HOW IT WORKS
======================= 
*/

.how-it-works {
    padding: 5rem 0;
    background-color: var(--light-gray);
    position: relative;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    margin-bottom: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    /* Fixed height */
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .step-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    /* Add yellow bar on top when hovering */
    .step-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--primary-color);
        transition: height 0.3s ease;
    }

    .step-card:hover::before {
        height: 6px;
    }

.step-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--secondary-dark);
    font-weight: bold;
    font-size: 1rem;
    border-radius: 50%;
    line-height: 30px;
    z-index: 1;
}

.step-icon {
    font-size: 3.5rem;
    /* Changed to black by default */
    color: var(--secondary-dark);
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

/* Flip icon and make it yellow on hover */
.step-card:hover .step-icon {
    transform: rotateY(180deg);
    color: var(--primary-color);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--gray);
    /* Ensure text doesn't overflow */
    overflow: hidden;
    /* Added fixed height for text area */
    flex: 1;
}

.section-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

    .section-wave svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 70px;
    }

/* 
=======================
LISTINGS CARDS
======================= 
*/

.popular-listings {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

    .popular-listings::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 200px;
        background-color: #ffff00;
        opacity: 0.3;
        clip-path: ellipse(70% 60% at 50% 0%);
        z-index: 0;
    }

.recent-listings {
    padding: 5rem 0;
    background-color: #dceaf7;
    position: relative;
}

.popular-listings .listing-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--primary-color);
    overflow: hidden;
}

    .popular-listings .listing-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.recent-listings .listing-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
    /*height: 100%;*/
}

    .recent-listings .listing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* Modernized listing cards */
.all-listings .listing-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: var(--transition);
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

    .all-listings .listing-card::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 4px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .all-listings .listing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

        .all-listings .listing-card:hover::before {
            width: 100%;
        }

.listing-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

    .listing-img img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: var(--transition);
    }

.listing-card:hover .listing-img img {
    transform: scale(1.05);
}

.category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--secondary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.listing-body {
    padding: 1.5rem;
}

    .listing-body h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

        .listing-body h3 a {
            color: var(--secondary-dark);
        }

            .listing-body h3 a:hover {
                color: var(--primary-color);
            }

.listing-rating {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

    .listing-rating span {
        color: var(--gray);
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }

.listing-address, .listing-phone {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

    .listing-address i, .listing-phone i {
        color: var(--primary-color);
        margin-right: 0.5rem;
    }

.listing-card .btn {
    margin-top: 1rem;
}

/* 
=======================
TESTIMONIALS
======================= 
*/

.testimonials {
    padding: 5rem 0;
    background-color: var(--white);
}

.testimonial-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    position: relative;
    margin-bottom: 2rem;
    height: 100%;
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
}

    .testimonial-user img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 1rem;
    }

.testimonial-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* 
=======================
CALL TO ACTION
======================= 
*/

.cta {
    background-color: var(--secondary-color);
    background-image: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* 
=======================
FOOTER
======================= 
*/

.footer {
    background-color: var(--secondary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-about p {
    margin-bottom: 2rem;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links ul li {
        margin-bottom: 0.75rem;
    }

        .footer-links ul li a {
            color: rgba(255, 255, 255, 0.8);
        }

            .footer-links ul li a:hover {
                color: var(--primary-color);
            }

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact ul li {
        margin-bottom: 0.75rem;
        display: flex;
        align-items: flex-start;
    }

        .footer-contact ul li i {
            color: var(--primary-color);
            margin-right: 0.75rem;
            margin-top: 0.25rem;
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.copyright p {
    margin-bottom: 0;
}

.social-media a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-left: 1rem;
}

    .social-media a:hover {
        color: var(--primary-color);
    }

/* 
=======================
PAGE TITLE
======================= 
*/

.page-title {
    background-color: var(--secondary-color);
    background-image: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 7rem 0 0;
    position: relative;
}

    .page-title h1 {
        color: var(--white);
        margin-bottom: 0.5rem;
    }

.breadcrumb {
    background-color: transparent;
    padding: 0;
    padding-bottom: 1rem;
    position:relative;
    z-index:2;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.page-title-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index:0;
}

    .page-title-wave svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 70px;
    }

/* 
=======================
ALL LISTINGS PAGE
======================= 
*/

.search-filter {
    padding: 3rem 0;
    background-color: var(--white);
}

.search-filter-container {
    margin-bottom: 2rem;
}

.search-box {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.all-listings {
    padding: 0 0 5rem;
    background-color: var(--white);
}

.filter-sidebar {
    margin-bottom: 2rem;
}

.filter-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .filter-card h4 {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
    }

.category-filter, .rating-filter {
    margin-bottom: 1rem;
}

.form-check {
    margin-bottom: 0.5rem;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.listings-counter {
    color: var(--gray);
}

.listings-sorting span {
    min-width: 70px;
    float: left;
    line-height: 38px;
}

.listings-sorting .form-select {
    min-width: 200px;
    width: auto;
    float: right;
}

.pagination-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    padding: 0.75rem 2.5rem;
}

/* 
=======================
LISTING DETAIL PAGE
======================= 
*/

.listing-detail {
    padding: 1rem 0 1rem;
    background-color: var(--white);
}

.detail-main {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.detail-category span {
    background-color: var(--primary-color);
    color: var(--secondary-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.detail-rating {
    color: var(--primary-color);
    font-size: 1.1rem;
}

    .detail-rating span {
        color: var(--gray);
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }

/* New gallery layout */
.detail-gallery {
    margin-bottom: 2.5rem;
}

.main-image {
    margin-bottom: 1rem;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--border-radius);
    }

.gallery-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

    .thumbnail-item.active, .thumbnail-item:hover {
        border-color: var(--primary-color);
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.detail-features h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    background-color: var(--primary-light);
    color: var(--secondary-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .keyword-tag:hover {
        background-color: var(--primary-color);
        transform: translateY(-3px);
    }

        .keyword-tag:hover span {
            color: var(--secondary-dark);
        }

.detail-description {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

    .detail-description h3 {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

.detail-features {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-sidebar {
    margin-bottom: 2rem;
}

.sidebar-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .sidebar-card h3 {
        margin-bottom: 1.5rem;
        font-size: 1.25rem;
    }

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

    .contact-item i {
        color: var(--primary-color);
        margin-right: 1rem;
        margin-top: 0.25rem;
    }

.contact-social {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .contact-social a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--light-gray);
        color: var(--secondary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 0.5rem;
    }

        .contact-social a:hover {
            background-color: var(--primary-color);
            color: var(--secondary-dark);
        }

.contact-actions {
    display: flex;
    gap: 1rem;
}

    .contact-actions .btn {
        flex: 1;
    }

.map-container {
    margin-bottom: 1rem;
}

    .map-container img {
        border-radius: var(--border-radius);
    }

.btn-block {
    width: 100%;
}

.related-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .related-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .related-item img {
        width: 70px;
        height: 70px;
        border-radius: var(--border-radius);
        object-fit: cover;
        margin-right: 1rem;
    }

.related-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.related-rating {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.related-category {
    font-size: 0.85rem;
    color: var(--gray);
}

    .related-category i {
        margin-right: 0.25rem;
    }

/* 
=======================
CONTACT PAGE
======================= 
*/

.contact-info-section {
    padding: 5rem 0 3rem;
    background-color: var(--white);
}

.contact-info-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    height: 100%;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.contact-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-form-section {
    padding: 3rem 0 5rem;
    background-color: var(--white);
}

.contact-form-container, .contact-map-container {
    margin-bottom: 2rem;
}

.contact-form {
    background-color: var(--light-gray);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

.contact-map img {
    width: 100%;
    border-radius: var(--border-radius-lg);
}

.faq-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.accordion-item {
    margin-bottom: 1rem;
    border: none;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: none;
}

    .accordion-button:not(.collapsed) {
        color: var(--secondary-dark);
        background-color: var(--primary-light);
    }

    .accordion-button:focus {
        box-shadow: none;
        border-color: rgba(0, 0, 0, 0.125);
    }

    .accordion-button:not(.collapsed)::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

.accordion-body {
    background-color: var(--white);
    font-size: 0.95rem;
}

.newsletter-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.newsletter-container {
    background-color: var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
}

.newsletter-content {
    margin-bottom: 2rem;
}

    .newsletter-content h2 {
        color: var(--secondary-dark);
        margin-bottom: 1rem;
    }

    .newsletter-content p {
        color: var(--secondary-dark);
        font-size: 1.1rem;
        margin-bottom: 0;
    }

.newsletter-form .form-control {
    height: 60px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    height: 60px;
    padding-left: 2rem;
    padding-right: 2rem;
}

    .newsletter-form .btn:hover, .newsletter-form .btn:focus {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

/* 
=======================
BACK TO TOP BUTTON
======================= 
*/

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-dark);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background-color: var(--primary-dark);
        color: var(--white);
        transform: translateY(-5px);
    }

/* 
=======================
POLICY PAGES
======================= 
*/

.privacy-policy-section,
.terms-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.policy-content,
.terms-content {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.policy-header,
.terms-header {
    margin-bottom: 2rem;
}

.policy-section,
.terms-section {
    margin-bottom: 2rem;
}

    .policy-section h2,
    .terms-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--secondary-dark);
    }

    .policy-section ul,
    .terms-section ul {
        margin-bottom: 1rem;
        padding-left: 1.5rem;
    }

/* Lightbox */
.lightbox {
    cursor: pointer;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .lightbox-overlay.show {
        opacity: 1;
    }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.show .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 28px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

    .lightbox-close:hover {
        opacity: 1;
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease, background 0.3s ease;
}

    .lightbox-prev:hover,
    .lightbox-next:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
    }

.lightbox-prev {
    margin-left: 20px;
}

.lightbox-next {
    margin-right: 20px;
}

/* 
=======================
LAZY LOADING STYLES
======================= 
*/

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .lazy-image[src] {
        opacity: 1;
    }

/* 
=======================
RESPONSIVE STYLES
======================= 
*/

@media (max-width: 1199.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .step-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 991.98px) {
    .hero-content {
        padding-bottom: 4rem;
    }

    .reviews-summary {
        flex-direction: column;
    }

    .overall-rating {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .contact-actions {
        flex-direction: column;
    }

        .contact-actions .btn {
            margin-bottom: 1rem;
        }

    .category-card {
        aspect-ratio: auto;
        height: 220px;
    }

    .step-card {
        height: 380px;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .search-container .form-control, .search-container .btn {
        height: 50px;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-rating {
        margin-top: 1rem;
    }

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

    .copyright {
        margin-bottom: 1rem;
    }

    .social-media a {
        margin: 0 0.5rem;
    }

    .gallery-thumbnails {
        flex-wrap: wrap;
        justify-content: center;
    }

    .thumbnail-item {
        width: 80px;
        height: 80px;
    }

    .main-image {
        height: 300px;
    }

    .step-card {
        height: auto;
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 30px;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-content {
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .search-container .form-control {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }

    .search-container .btn {
        border-radius: var(--border-radius);
        width: 100%;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .newsletter-container {
        padding: 2rem 1rem;
    }

    .main-image {
        height: 250px;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
    }

    .contact-actions .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

#listingMap {
    height: 300px;
    border-radius: 8px;
}

#btnLoadMore.hide {
    display:none;
}