/*
=========================================================
10-cards.css — Listing cards, layout, selected styles
=========================================================
*/

/* =========================
   Custom Alternate Listing Card
   ========================= */
/* CARD WRAPPER - Listings Cards*/
/* CARD WRAPPER */
.ml-custom-card {
    border: none;
    border-radius: 16px;
    /* reduced spacing between cards */
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow .28s ease, transform .28s ease;
}

.promo-card {
 margin-top: 6px;
 margin-bottom: 12px;
}

/* FLEX LAYOUT: 1/4 | 1/2 | 1/4 */
.ml-card-row {
    display: flex;
    width: 100%;
    align-items: stretch;
    flex-wrap: nowrap;
}

/* BASE COLUMN STYLE */
.ml-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* COLUMNS */
.ml-col-image {
    width: 25%;
    position: relative;
    overflow: hidden;
}

.ml-col-info {
    width: 50%;
    padding: 12px 16px;
    /* reduced padding */
}

.ml-col-expand {
    width: 25%;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    /* reduced padding */
}

/* IMAGE */
.ml-col-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ml-col-image img {
    width: 100%;
    height: 120px;
    /* reduced height */
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.ml-custom-card:hover .ml-col-image img {
    transform: scale(1.06);
}

/* TITLE */
.ml-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #222;
}

/* TAGLINE */
.ml-tagline {
    font-size: 14px;
    margin: 0;
    color: #777;
}

/* DESCRIPTION */
.ml-description {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    line-height: 1.45;
}

/* EXPAND BUTTON */
.ml-expand-btn {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: none;
    background: #ff7100;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ml-expand-btn:hover {
    background: #e96900;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* EXPANDED STATE */
.ml-custom-card.open .ml-expand-btn {
    background: #222;
    transform: rotate(45deg);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .ml-col-image img {
        height: 100px;
    }
}

/* ===== Selected listings styling (FULL) ===== */
.ml-selected-listing {
	position: relative;
	border: 4px solid #f4c542 !important;
	box-shadow: 0 10px 26px rgba(244, 197, 66, 0.25) !important;
	border-radius: 14px;
}

/* Badge (TOP CENTER) - stable even when expanded */
.ml-selected-badge {
	position: absolute;
	top: 14px;              /* FIXED instead of % so it won't move */
	left: 35%;
	transform: translateX(-50%);
	z-index: 30;

	display: inline-flex;
	align-items: center;
	gap: 8px;

	padding: 8px 12px;
	border-radius: 999px;

	background: linear-gradient(180deg, #ffd66b, #f4c542);
	border: 2px solid rgba(255,255,255,0.6);

	color: #111827;
	font-weight: 900;
	font-size: 13px;
	letter-spacing: 0.2px;

	box-shadow: 0 12px 24px rgba(0,0,0,0.18);

	pointer-events: none;
}

/* Crown */
.ml-selected-badge .ml-crown {
	font-size: 16px;
	line-height: 1;
	position: relative;
	top: -1px; /* a bit higher */
	filter: drop-shadow(0 2px 0 rgba(0,0,0,0.15));
}

/* Smaller badge on mobile */
@media (max-width: 768px) {
	.ml-selected-badge {
		top: 10px;
		padding: 6px 10px;
		gap: 6px;
		font-size: 12px;
	}

	.ml-selected-badge .ml-crown {
		font-size: 14px;
		top: -1px;
	}
}

@media (max-width: 420px) {
	.ml-selected-badge {
		top: 8px;
		padding: 5px 9px;
		font-size: 11px;
	}
}
