:root {
    --primary-black: #121212;
    --secondary-black: #1e1e1e;
    --primary-gold: #D4AF37;
    --secondary-gold: #FFD700;
    --text-light: #e0e0e0;
    --text-gray: #b0b0b0;
    --card-bg: #1e1e1e;
    --border-color: #3a3a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--primary-black);
    color: var(--text-light);
    padding: 40px 0;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    position: relative;
}

.tagline {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.tagline h2 {
    font-size: 2.2rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.tagline h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-gold);
    bottom: -10px;
    left: 25%;
}

.tagline p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.card-slider {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.card-slider:hover {
    animation-play-state: paused;
}

.card {
    width: 280px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
}

.card-img {
    height: 180px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-location i {
    color: var(--primary-gold);
}

.card-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.card-detail {
    text-align: center;
}

.card-detail i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card-detail span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.card-btn {
    display: block;
    text-align: center;
    background-color: var(--primary-gold);
    color: var(--primary-black);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: var(--secondary-gold);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 6 - 25px * 5));
    }
}

.slider-container::before,
.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-black) 0%, transparent 100%);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-black) 0%, transparent 100%);
}

@media (max-width: 768px) {
    .tagline h2 {
        font-size: 1.8rem;
    }
    
    .tagline p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .card {
        width: 260px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-260px * 6 - 25px * 5));
        }
    }
}
