:root {
    --primary-color: #6B8E23; /* Olive Green */
    --primary-hover: #556B2F;
    --text-dark: #222222;
    --text-light: #717171;
    --bg-light: #F7F7F7;
    --white: #FFFFFF;
    --border-color: #DDDDDD;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.12);
    --transition: all 0.2s ease-in-out;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.search-bar {
    flex: 0 1 auto;
}

.search-btn {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-btn:hover {
    box-shadow: var(--shadow-md);
}

.search-text {
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0 1rem;
}

.search-text.light {
    color: var(--text-light);
    font-weight: 400;
}

.search-divider {
    height: 24px;
    width: 1px;
    background-color: var(--border-color);
}

.search-icon-wrapper {
    background-color: var(--primary-color);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.host-link {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
}

.host-link:hover {
    background-color: var(--bg-light);
}

.globe-btn {
    padding: 0.75rem;
    border-radius: 50%;
    transition: var(--transition);
}

.globe-btn:hover {
    background-color: var(--bg-light);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 21px;
    padding: 0.3rem 0.3rem 0.3rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu:hover {
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    background-color: var(--text-light);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Categories Bar */
.categories {
    display: flex;
    gap: 2rem;
    padding: 1rem 5%;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 1440px;
    margin: 0 auto;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    min-width: max-content;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.category-item i {
    font-size: 1.5rem;
}

.category-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

.category-item:hover {
    color: var(--text-dark);
    border-bottom-color: var(--border-color);
}

.category-item.active {
    color: var(--text-dark);
    border-bottom-color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: var(--bg-light);
}

/* Main Content */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 5%;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 95%; /* Aspect ratio */
    border-radius: 12px;
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.heart-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--white);
    font-size: 1.5rem;
    z-index: 2;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.heart-btn:hover {
    transform: scale(1.1);
}

.heart-btn.liked i {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: none;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.distance, .dates {
    color: var(--text-light);
    font-size: 0.875rem;
}

.price {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.load-more-btn {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.load-more-btn:hover {
    background-color: #000000;
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 3rem 5% 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-column a {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 1.5rem auto 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    flex-wrap: wrap;
}

.footer-bottom-left a:hover {
    text-decoration: underline;
}

.dot {
    color: var(--text-light);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-btn {
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-btn i {
    margin-right: 0.25rem;
}

.footer-btn:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 900px) {
    .search-text:nth-child(3), .search-divider:nth-child(2), .search-divider:nth-child(4), .search-text.light {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}
