/* ============================================
   Terrain Card Component Styles
   ============================================ */

/* Base terrain card */
.terrain-card {
    position: relative;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

/* Clickable terrain card */
.terrain-card-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.terrain-card-clickable:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px) scale(1.02);
}

.terrain-card-clickable:active {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px) scale(1.01);
}

/* Card body with flex layout */
.terrain-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Description takes available space */
.terrain-card .card-text {
    flex: 1;
}

/* Title container with consistent height */
.terrain-card .card-body > div:first-child {
    min-height: 60px;
}

/* Card title - limit to 2 lines with truncation */
.terrain-card .card-title {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

/* Price badge */
.price-badge {
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
}

/* Auction stage price badges */
.price-badge.first-auction {
    background: linear-gradient(45deg, #27ae60, #229954);
}

.price-badge.second-auction {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.price-badge.third-auction {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.discount-indicator {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
    opacity: 0.9;
}

/* Location badge */
.location-badge {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Date link */
.date-link {
    color: #2980b9;
    transition: all 0.3s ease;
    text-decoration: none;
}

.date-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Auction stage badge */
.auction-stage-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    margin-right: 6px;
    display: inline-block;
}

.auction-stage-badge.first {
    background: #27ae60;
}

.auction-stage-badge.second {
    background: #f39c12;
}

.auction-stage-badge.third {
    background: #e74c3c;
}

/* Collection indicators */
.collection-indicators {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.collection-indicator {
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.collection-indicator:hover {
    transform: scale(1.1);
}

/* Terrain map */
.terrain-map {
    height: 150px;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Smaller map attributions */
.terrain-map .leaflet-control-attribution {
    font-size: 0.65rem;
    padding: 2px 4px;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Bottom info (area and date) */
.terrain-card .card-body > div:last-child {
    font-size: 1.1rem;
}
