/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0F6D80;
    --primary-dark: #0A4D5C;
    --secondary: #6BC04B;
    --secondary-dark: #5CA840;
    --text-dark: #161c2d;
    --text-muted: #8492a6;
    --light-bg: #f8f9fc;
    --white: #ffffff;
    --border-color: #e9ecef;
    --radius: 8px;
    --shadow: 0 0 3px rgba(60, 72, 88, 0.15);
    --shadow-hover: 0 5px 13px rgba(60, 72, 88, 0.20);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Typography & Utils */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-dark);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(15, 109, 128, 0.2);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: 0 0 3px rgba(60, 72, 88, 0.15);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark) !important;
}

.nav-link {
    font-weight: 500;
    color: #161c2d !important;
    font-size: 16px;
    padding: 0 20px !important;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    background-color: #f8f9fc;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 30px;
}

.search-form {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(8, 23, 43, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-group {
    flex: 1;
    position: relative;
    padding: 0 15px;
    border-right: 1px solid var(--border-color);
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
}

.search-input-group input {
    width: 100%;
    border: none;
    padding: 10px 10px 10px 30px;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.search-input-group input::placeholder {
    color: #adb5bd;
}

.search-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.3s;
}

.search-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Categories */
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.category-icon {
    width: 64px;
    height: 64px;
    background: rgba(15, 109, 128, 0.1);
    color: var(--primary);
    line-height: 64px;
    font-size: 28px;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: var(--white);
}

.category-title {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

/* Section Headers */
.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h4 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 15px auto 0;
}

/* Listings */
.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.listing-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.listing-card:hover .listing-img {
    transform: scale(1.1);
}

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.listing-like {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.listing-like:hover {
    color: #e43f52;
}

.listing-content {
    padding: 20px;
    flex-grow: 1;
}

.listing-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.listing-title:hover {
    color: var(--primary);
}

.listing-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.listing-rating {
    background: #f1f3f5;
    color: #f1b44c;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

.listing-category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.listing-category i {
    width: 28px;
    height: 28px;
    background: rgba(15, 109, 128, 0.1);
    color: var(--primary);
    text-align: center;
    line-height: 28px;
    border-radius: 50%;
    font-size: 12px;
}

/* News/Blog */
.news-card {
    border: none;
    transition: all 0.3s ease;
}

.news-card img {
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: block;
    color: var(--text-dark);
}

.news-title:hover {
    color: var(--primary);
}

.news-text {
    font-size: 15px;
    color: var(--text-muted);
}

/* Reviews */
.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.review-stars {
    color: #f1b44c;
    margin-bottom: 15px;
}

.review-text {
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.reviewer-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.reviewer-title {
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer Details */
.footer-cta {
    background: url('https://listinghub-shreethemes.netlify.app/images/bg/cta.png') center center;
    background-size: cover;
    padding: 80px 0;
    position: relative;
}

.footer-cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 109, 128, 0.9);
}

.footer-cta-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
}