/* Base Styles & Variables */
:root {
    --primary-color: #1a5632;
    --primary-hover: #134225;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f5f7f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mt-5 {
    margin-top: 50px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

/* Footer Styles */
.site-footer {
    background-color: #111827;
    color: var(--white);
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    color: #a0aec0;
}

.contact-info li i {
    margin-right: 15px;
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #1a202c;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    color: #a0aec0;
    font-size: 14px;
}

.btn-outline {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: #f9f9f9;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 15px;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 100;
    color: var(--white);
}

.navbar .logo {
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links i {
    font-size: 10px;
    margin-left: 5px;
}

.auth-buttons .btn-outline {
    margin-right: 10px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
}

.bg-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.bg-1 {
    background-image: url('https://images.unsplash.com/photo-1577717903315-1691ae25ab3f?auto=format&fit=crop&w=800&q=80');
}

.bg-2 {
    background-image: url('https://images.unsplash.com/photo-1588614959060-4d144f28b207?auto=format&fit=crop&w=800&q=80');
}

.bg-3 {
    background-image: url('https://images.unsplash.com/photo-1544735716-392fe2489ffa?auto=format&fit=crop&w=800&q=80');
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 0 auto;
}

.search-input,
.search-date {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-dark);
}

.search-input {
    flex: 2;
    border-right: 1px solid var(--border-color);
}

.search-date {
    flex: 1;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding-left: 10px;
    width: 100%;
    font-size: 14px;
}

.search-box i {
    color: var(--text-light);
}

.search-btn {
    border-radius: 40px;
    padding: 12px 30px;
    white-space: nowrap;
}

/* Listings Section */
.listings {
    padding: 40px 0;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Card Styling */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.like-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.like-btn:hover {
    background: var(--white);
    color: #e74c3c;
}

.card-content {
    padding: 20px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.card-title-row h3,
.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.rating {
    font-size: 14px;
    font-weight: 600;
}

.rating i {
    color: #f39c12;
}

.reviews,
.type {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.sub-price {
    font-size: 12px;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .search-box {
        flex-direction: column;
        border-radius: 20px;
    }

    .search-input {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .search-date {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        border-radius: 0 0 20px 20px;
    }

    .hero-bg {
        flex-direction: column;
    }
}

/* List Card Layout */
.list-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.list-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.list-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.list-card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
}

.list-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.list-card-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.list-card-header h3 a {
    color: inherit;
    transition: color 0.2s;
}

.list-card-header h3 a:hover {
    color: var(--primary-hover);
}

.list-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #003580;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.list-card-type {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.list-card-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.list-card-price-group {
    text-align: right;
    margin-bottom: 15px;
}

.list-card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.list-card-sub {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.list-card-btn {
    padding: 10px 30px;
    font-size: 16px;
}

@media (min-width: 768px) {
    .list-card {
        flex-direction: row;
        /*height: 250px;*/
    }

    .list-card-img {
        width: 300px;
        height: 100%;
        flex-shrink: 0;
    }

    .list-card-body {
        flex-direction: row;
    }

    .list-card-main {
        flex: 2;
        padding-right: 25px;
        border-right: 1px solid var(--border-color);
    }

    .list-card-action {
        flex: 1;
        padding-left: 25px;
        border-top: none;
        padding-top: 0;
        justify-content: space-between;
    }
}

/* Grid View Overrides */
.list-cards.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.list-cards.grid-view .list-card {
    flex-direction: column;
}

.list-cards.grid-view .list-card-img {
    width: 100%;
    height: 200px;
}

.list-cards.grid-view .list-card-body {
    flex-direction: column;
    padding: 15px;
}

.list-cards.grid-view .list-card-main {
    border-right: none;
    padding-right: 0;
    margin-bottom: 15px;
}

.list-cards.grid-view .list-card-action {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    padding-left: 0;
    flex-direction: row;
    align-items: center;
}

.list-cards.grid-view .list-card-price-group {
    margin-bottom: 0;
    text-align: left;
}
