/* assets/css/style.css */

html, body {
	height: 100%;
	margin: 0;
}

/* Custom CSS for Modern Touches */
:root {
    --bs-primary-rgb: 0, 123, 255; /* Default Bootstrap primary */
    --bs-primary: #007bff;
    --bs-dark-rgb: 33, 37, 41;
    --bs-gray-200: #e9ecef;
}

body {
   font-family: 'Inter', sans-serif;
   background-color: var(--bs-gray-200); /* Slightly darker background than default light */
   color: #333;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}


a {
	text-decoration: none;
}

a:link {
	text-decoration: none;
}

a:visited {
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

a:active {
	text-decoration: none;
}

h1, h2 {
    margin-bottom: 1rem;
}

main {
    flex: 1 0 auto;
}

/* Navbar Enhancements */
        .navbar {
            background-color: #ffffff !important; /* White nav */
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            padding-top: 1rem;
            padding-bottom: 1rem;
        }
        .navbar-brand {
            font-weight: 700;
            color: var(--bs-primary) !important;
        }
        .navbar-nav .nav-link {
            color: #555 !important;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: .375rem;
            transition: all 0.3s ease;
        }
        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: var(--bs-primary) !important;
            background-color: rgba(var(--bs-primary-rgb), 0.08); /* Light tint on hover/active */
        }
        .navbar-dark .navbar-toggler-icon {
            filter: invert(1); /* Keep icon visible on dark background */
        }


        /* Hero Section */
        .hero-section {
            background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.9), rgba(6, 172, 254, 0.9)), url('https://source.unsplash.com/random/1600x600/?office,city,network') center center/cover no-repeat;
            color: white;
            padding: 6rem 0;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
            position: relative;
            overflow: hidden;
            border-radius: 0 0 15px 15px; /* Slightly rounded bottom corners */
            margin-bottom: 3rem;
        }
        .hero-section h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }
        .hero-section .lead {
            font-size: 1.25rem;
            font-weight: 400;
            opacity: 0.9;
        }
        .hero-section .btn {
            background-color: white;
            color: var(--bs-primary);
            border: none;
            font-weight: 600;
            padding: 0.8rem 2.2rem;
            border-radius: 50px; /* Pill-shaped button */
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        }
        .hero-section .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        }

        /* Search Bar Section */
        .search-bar-section {
            margin-top: -5rem; /* Overlap with hero for modern feel */
            position: relative;
            z-index: 10;
        }
        .search-bar-section .input-group {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        .search-bar-section .form-control {
            border: none;
            padding: 1.2rem 1.5rem;
            font-size: 1.1rem;
        }
        .search-bar-section .btn-primary {
            background-color: var(--bs-primary);
            border: none;
            padding: 1.2rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
            transition: background-color 0.3s ease;
        }
        .search-bar-section .btn-primary:hover {
            background-color: #0056b3; /* Darker primary on hover */
        }

        /* Section Headings */
        h2.section-heading {
            font-weight: 700;
            font-size: 2.5rem;
            color: #333;
            margin-bottom: 3rem;
            position: relative;
        }
        h2.section-heading::after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background-color: var(--bs-primary);
            margin: 10px auto 0;
            border-radius: 2px;
        }
		
/* Card Styles (Categories & Listings) */
        .card {
            border: none;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            overflow: hidden;
            min-height: 180px; /* Ensure consistent height for category cards */
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        }
		.card-title {
            font-weight: 600;
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
            color: var(--bs-primary);
        }
        .category-card .card-body {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-start;
            padding: 1.5rem;
        }
        .category-card .card-title {
            font-weight: 600;
            font-size: 1.25rem;
            margin-bottom: 0.75rem;
            color: var(--bs-primary);
        }
        .category-card .card-text {
            font-size: 0.95rem;
            color: #666;
        }
        .category-card .btn-outline-primary {
            border-radius: 50px;
            font-weight: 500;
            margin-top: 1rem;
        }

        .link-listing-card {
            min-height: 200px; /* Ensure consistent height for link cards */
            display: flex;
            flex-direction: column;
        }
        .link-listing-card .card-body {
            flex-grow: 1;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .link-listing-card .card-title {
            font-weight: 600;
            color: var(--bs-primary);
            font-size: 1.35rem;
        }
        .link-listing-card .card-subtitle {
            font-size: 0.9rem;
            color: #777;
            margin-bottom: 0.75rem;
        }
        .link-listing-card .card-text {
            font-size: 0.95rem;
            color: #555;
            flex-grow: 1; /* Allow text to take available space */
            margin-bottom: 1rem;
        }
        .link-listing-card .card-link {
            font-weight: 500;
            text-decoration: none;
            color: var(--bs-primary);
            transition: all 0.2s ease;
        }
        .link-listing-card .card-link:hover {
            color: #0056b3;
            transform: translateX(3px);
        }
        .link-listing-card .card-link i {
            transition: transform 0.2s ease-in-out;
        }

        .link-listing-card .badge {
            font-size: 0.8em;
            padding: 0.4em 0.7em;
            border-radius: 50px;
            font-weight: 600;
        }

        /* View All Categories Card */
        .view-all-card {
            background-color: transparent;
            box-shadow: none;
            border: 2px dashed rgba(var(--bs-primary-rgb), 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            min-height: 180px; /* Match other category cards */
        }
        .view-all-card:hover {
            transform: none; /* No vertical lift */
            box-shadow: none;
            border-color: var(--bs-primary); /* Solid color on hover */
        }
        .view-all-card .btn-outline-secondary {
            border: 2px solid var(--bs-primary);
            color: var(--bs-primary);
            font-weight: 600;
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            transition: all 0.3s ease;
        }
        .view-all-card .btn-outline-secondary:hover {
            background-color: var(--bs-primary);
            color: white;
        }

        /* Call to Action Section */
        .cta-section {
            background: var(--bs-dark);
            padding: 5rem 0;
            border-radius: 15px; /* Rounded corners */
            margin-top: 5rem;
            margin-bottom: 5rem;
        }
        .cta-section h2 {
            font-size: 2.8rem;
            font-weight: 700;
        }
        .cta-section .lead {
            font-size: 1.25rem;
            opacity: 0.9;
        }
        .cta-section .btn-primary {
            background-color: #28a745; /* A vibrant green for CTA */
            border-color: #28a745;
            font-weight: 600;
            padding: 0.9rem 2.5rem;
            border-radius: 50px;
            transition: all 0.3s ease;
        }
        .cta-section .btn-primary:hover {
            background-color: #218838;
            border-color: #1e7e34;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        }		

.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

.card-text.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-text.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.toggle-description {
  cursor: pointer;
  font-size: 0.85rem;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background-color: #e9f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #007bff;
}


.icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-soft {
    background-color: rgba(13,110,253,0.1);
}
.bg-secondary-subtle {
    background-color: rgba(108,117,125,0.1);
}

.featured-section {
    position: relative;
    padding: 2rem 0;
    background: linear-gradient(15deg, #fff8f0 0%, #ffffff 100%);
    border-radius: 1rem;
}

.card-featured {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.card-featured:hover {
    transform: translateY(-5px);
}

.featured-ribbon {
    position: absolute;
    top: 20px;
    left: -40px;
    background: #ff6b6b;
    color: white;
    padding: 8px 30px;
    transform: rotate(-45deg);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rating-badge {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.gradient-text {
            background: linear-gradient(45deg, #2c3e50, #3498db);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 14px;
}

.btn-circle:hover {
   transform: translateY(-2px);
}

.map-loader {
   background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
   background-size: 200% 100%;
   animation: 1.5s shine linear infinite;
}
@keyframes shine {
     to { background-position-x: -200% }
}
.cta-card {
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.breadcrumb {
   padding: 0.3rem 0.5rem;
}

.placeholder-image {
    min-height: 250px;
}

.testimonial-card {
    border-left: 3px solid #ffc107;
}


/* === Sidebar Styling === */
.account-sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
.account-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}
.account-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.account-menu li {
    margin-bottom: 10px;
}
.account-menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}
.account-menu a i {
    margin-right: 10px;
}
.account-menu a:hover, .account-menu a.active {
    background-color: #6f42c1;
    color: white;
}
.logout a {
    color: red;
}

/* === Dashboard Styling === */
.dashboard-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
.dashboard-content h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.badge.bg-success {
    font-size: 0.75rem;
    padding: 0.35em 0.6em;
}

/* Override badge text color if the background is too light */
.badge-success,
.badge-secondary {
    color: #000 !important;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460 !important;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24 !important;
}


.blog-featured-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}




@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .btn-sidebar-toggle {
        display: inline-block;
    }
    
    .main-content {
        width: 100%!important;
    }
}

/* ===== Imported from homepage ===== */
.jumbotron {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://source.unsplash.com/random/1920x1080/?business') center/cover;
    color: white;
}

.category-card {
    transition: transform 0.3s;
}
.category-card:hover {
    transform: translateY(-5px);
}

.listing-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}
.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.listing-card .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.75em;
    border-radius: 0.5rem;
    font-weight: 500;
}
.listing-card i {
    margin-top: 10px;
    margin-bottom: 10px;
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, #007bff, #00a8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    box-shadow: 0 10px 20px rgba(0,123,255,0.2);
}
.icon-wrapper i {
    color: white;
    font-size: 2rem;
}

.card h5 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3436;
}

.card-text {
    color: #636e72;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5em;
}

.featured-listings {
    position: relative;
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -15px;
    padding: 8px 30px;
    background: #007bff;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 150px;
    text-align: center;
}

.listing-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}
.listing-meta .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #e3f2fd;
    color: #007bff;
    font-weight: 500;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cta-link:hover {
    color: #0056b3;
    transform: translateX(5px);
}

.blog-featured-image img,
.card-img-top {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.listing-ad {
	margin: 0px auto;
	display: block;
}

/*.footer .list-inline-item:not(:first-child)::before {
    content: "|";
    color: rgba(255, 255, 255, 0.4);
}



.list-inline-item:not(:last-child) {
  margin-right: 0rem;
}*/




/* Footer */
footer {
	background-color: #343a40; /* Darker footer */
	color: #f8f9fa;
	margin-top: 3rem;
	padding-top: 3rem;
	font-size: 0.95rem;
}
footer h5 {
   color: var(--bs-primary);
   font-weight: 600;
   margin-bottom: 1.5rem;
}
footer a {
   color: #ced4da;
            text-decoration: none;
            transition: color 0.2s ease;
            margin-bottom: 0.5rem;
            display: block;
}
footer a:hover {
   color: var(--bs-primary);
}
footer .list-unstyled li {
    margin-bottom: 0.5rem;
}
footer .text-center {
            background-color: rgba(0, 0, 0, 0.1);
            padding: 1rem 0;
            margin-top: 2rem;
            font-size: 0.85rem;
            color: #adb5bd;
}




@media (max-width: 768px) {
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .listing-card {
        margin-bottom: 2rem;
    }
}