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

body {
    background: #F5F6ED;
    min-height: 100vh;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sign-in-btn {
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.sign-in-btn:hover {
    opacity: 0.7;
}

.add-listing-btn {
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 400;
    color: white;
    text-decoration: none;
    background: #1a1a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-listing-btn:hover {
    background: #404040;
}

.add-icon {
    font-size: 18px;
    font-weight: 300;
}

/* Main content */
.main-content {
    padding: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    border-radius: 16px;
    border: 1px solid #000000;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(8px);
    opacity: 0.9;
}

.pill-yellow {
    background: #EFFF9D;
    color: #6e8400;
    border: 1px solid rgb(0 0 0);
}

.pill-blue {
    background: #C3E4FF;
    color: #1e40af;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.pill-pink {
    background: #FFC5F7;
    color: #d12dbb;
    border: 1px solid rgba(249, 168, 212, 0.3);
}

.pill-cyan {
    background: #C5FFEC;
    color: #155e75;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image {
    transform: scale(1.02);
}

.card-content {
    padding: 20px;
}

.card-category {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-location {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.location-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.card-posted {
    font-size: 10px;
    color: #9ca3af;
    margin-top: auto;
    padding-top: 8px;
}
/* .card-category,
.location-item,
.location-icon,
.size-icon {
    display: none;
} */

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}


.card-price {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.card-size {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.size-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.footer-section {
    background: #fff;
    padding: 60px 0;
    border-top: 1px solid #000000;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 80px;
}

.footer-column {
    max-width: 400px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.5;
}

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

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

.footer-link {
    font-size: 16px;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-actions {
        gap: 20px;
    }

    .sign-in-btn,
    .add-listing-btn {
        font-size: 14px;
    }

    .main-content {
        padding: 24px 16px;
    }

    .cards-grid {
        grid-template-columns: 1fr; 
        gap: 16px; /* Slightly smaller gap for mobile */
    }

    .footer-section {
        padding: 40px 0;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .card-title {
        font-size: 16px; /* Slightly smaller title on mobile */
    }

    .card-location {
        font-size: 13px; /* Slightly smaller location text */
    }

    .card-price {
        font-size: 16px; /* Slightly smaller price */
    }

    .card-size {
        font-size: 13px; /* Slightly smaller size */
    }

    .card-posted {
        font-size: 11px; /* Slightly smaller date */
    }

    .card-content {
        padding: 16px; /* Reduce padding on mobile */
    }
}

/* For very small screens (iPhone SE, etc.) */
@media (max-width: 400px) {
    .cards-grid {
        gap: 12px; /* Even smaller gap for tiny screens */
    }

    .card-content {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 16px;
    }

    .add-listing-btn {
        font-size: 13px;
    }

    .sign-in-btn {
        font-size: 13px;
    }
}

/* Navigation containers */
.nav-signed-out,
.nav-signed-in {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-signed-in {
    display: none;
}

.nav-signed-out.hidden {
    display: none;
}

/* Navigation links (Sign In, My Listings) */
.sign-in-btn,
.nav-link {
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.sign-in-btn:hover,
.nav-link:hover {
    opacity: 0.7;
}

/* Navigation buttons (Add listing, Submit Listing) */
.add-listing-btn,
.submit-listing-btn {
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 400;
    color: white;
    text-decoration: none;
    background: #1a1a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.add-listing-btn:hover,
.submit-listing-btn:hover {
    background: #404040;
}

/* User menu */
.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-button:hover {
    background: #f8f9fa;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1a1a1a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    display: none;
    z-index: 1000;
    margin-top: 4px;
    pointer-events: none; /* Add this */
    opacity: 0; /* Add this */
    transform: translateY(-10px); /* Add this for smooth animation */
    transition: opacity 0.2s ease, transform 0.2s ease; /* Add this */
}

.dropdown-menu.active {
    display: block;
    pointer-events: auto; /* Add this */
    opacity: 1; /* Add this */
    transform: translateY(0); /* Add this */
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #1a1a1a;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.card-location,
.card-available-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0;
}

.location-icon,
.date-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .card-location,
    .card-available-date {
        font-size: 12px;
    }
    
    .location-icon,
    .date-icon {
        width: 12px;
        height: 12px;
    }
}
.card-info-group {
    display: flex;
    flex-direction: column;
    gap: 0px; /* Tight gap between location and date */
    margin: 4px 0 8px 0;
}

/* Save/Favorite button on cards */
.card {
    position: relative; /* Make sure card is positioned for absolute children */
}

.card-save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.card-save-btn:hover {
    transform: scale(1.15);
}
.card-save-btn:active {
    transform: scale(0.95);
}

.card-save-btn svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2.5;
    fill: rgb(56 56 56 / 66%);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.2s ease;
}

.card-save-btn.saved svg {
    fill: #FF385C;
    stroke: #FF385C;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
