* {
    scroll-behavior: smooth;
}

iframe {
    width: 100% !important;
}

h1, p {
    transition: font-size 0.7s ease;
}

select {
    /*color: #a2a7ba !important;*/
}

h1.visible {
    opacity: 1; /* Fade in */
    transform: translateX(0);
}

.google-map iframe {
    border-radius: 20px;
}

a {
    text-decoration: none !important;
}

.clear-all-btn {
    background-color: #8b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    margin-top: 10px;
    display: none; /* Initially hidden */
}

.clear-all-btn:hover {
    background-color: #6a59e4;
}

.tag {
    background-color: #f1f1f1;
    border-radius: 16px;
    padding: 5px 10px;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #333;
}

.remove-tag {
    background-color: transparent;
    border: none;
    margin-left: 8px;
    font-size: 16px;
    cursor: pointer;
    color: #8b82f6;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    margin-top: 15px;
    max-width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
}

.tag {
    background-color: #f1f1f1;
    border-radius: 16px;
    padding: 5px 10px;
    font-size: 14px;
    color: #333;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: nowrap;
    box-sizing: border-box;
}

.remove-tag {
    background-color: transparent;
    border: none;
    margin-left: 8px;
    font-size: 16px;
    cursor: pointer;
    color: #8b82f6;
}

.remove-tag:hover {
    color: #6a59e4; /* Slightly darker on hover */
}

.clear-all-btn {
    background-color: #8b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    margin-top: 10px;
    display: none; /* Initially hidden */
}

.clear-all-btn:hover {
    background-color: #6a59e4;
}

.clear-all-btn.show {
    display: block; /* Only show when needed */
}

/* Adding some transition effects */
.tag, .remove-tag, .clear-all-btn {
    transition: all 0.3s ease;
}

.f-field-label {
    padding-top: 10px;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .tags-wrapper {
        flex-direction: column;
    }

    .tag {
        margin-bottom: 5px;
    }

    .clear-all-btn {
        width: 100%; /* Full width on small screens */
        padding: 10px 20px;
    }
}

.card-car-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 200px; /* or your preferred height */
}

.sold-sign {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    z-index: 10;
}
