/* Mis Links PR — /descubre. Loaded after the directory's stylesheet (same brand tokens and cards). */

/* Three items in the top bar: a slightly smaller button on phones. */
@media (max-width: 520px) {
	.mlds .mld-nav > a.mld-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
}

/* "Cerca de mí" */
.mlds-near { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 640px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.mlds-near__me { grid-column: 1 / -1; gap: 8px; min-height: 48px; font-size: 16px; }
.mlds-near__me[hidden] { display: none; }
.mlds-near__me:disabled { opacity: .7; cursor: progress; }
.mlds-near select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.mlds-near .mld-btn--purple { min-height: 48px; font-size: 16px; }
@media (min-width: 760px) {
	.mlds-near { grid-template-columns: auto minmax(0, 1fr) auto; border-radius: 999px; }
	.mlds-near__me { grid-column: auto; }
	.mlds-near select { border-color: transparent; border-radius: 999px; background: var(--bg); }
}
.mlds-near__msg:empty { display: none; }
.mlds-near__msg, .mlds-near__saved { margin: 10px 0 0; color: #ece6ff; font-size: 15px; }
.mlds-near__saved a { color: var(--lime); font-weight: 700; }

/* Collection hero with cover */
.mlds-hero__in { display: grid; gap: 18px; align-items: center; }
@media (min-width: 820px) { .mlds-hero__in { grid-template-columns: minmax(0, 1fr) 380px; } }
.mlds-cover { width: 100%; max-height: 260px; border-radius: 18px; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* Sections */
.mlds-section__head { margin: 0 0 12px; }
.mlds-section__head h2 { margin: 0 0 2px; }
.mlds-section__head p { margin: 0; color: var(--muted); font-size: 15px; }

/* Rails: sideways on phones, grid on bigger screens. Top padding leaves room for the "Destacado" badge. */
@media (max-width: 699px) {
	.mld-grid.mlds-rail { display: flex; gap: 12px; margin: 0 -16px; padding: 12px 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
	.mld-grid.mlds-rail::-webkit-scrollbar { display: none; }
	.mld-grid.mlds-rail > li { flex: 0 0 84%; scroll-snap-align: start; }
}
@media (min-width: 700px) { .mld-grid.mlds-rail { padding-top: 10px; } }

/* Collection cards */
.mlds-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .mlds-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .mlds-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mlds-col { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none; transition: border-color .12s ease, box-shadow .12s ease; }
.mlds-col:hover { border-color: var(--indigo); box-shadow: 0 6px 20px rgba(7, 7, 7, .08); }
.mlds-col__cover { display: block; aspect-ratio: 16 / 10; background: #070707; }
.mlds-col__cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mlds-col__faces { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 8px; }
.mlds-col__faces > * { display: grid; place-items: center; width: 30%; max-width: 64px; aspect-ratio: 1; margin-left: -8%; border: 3px solid #fff; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--f-head, "Bricolage Grotesque SC", "Arial Narrow", system-ui, sans-serif); font-weight: 700; object-fit: cover; }
.mlds-col__faces > :first-child { margin-left: 0; }
.mlds-col__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.mlds-col__title { font-family: var(--f-head, "Bricolage Grotesque SC", "Arial Narrow", system-ui, sans-serif); font-size: 15px; font-weight: var(--f-head-w, 800); font-synthesis: none; line-height: 1.25; }
.mlds-col__count { color: var(--muted); font-size: 13px; }

.mld-chips small { color: var(--muted); font-weight: 500; }
.mlds-all { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 4px 0 28px; }
.mlds-privacy { color: var(--muted); font-size: 14px; }

/* "Descubre" strip on the directory home (printed by this plugin into the directory page). */
.mlds-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 28px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.mlds-strip__text h2 { margin: 0 0 2px; font-size: 20px; }
.mlds-strip__text p { margin: 0; color: var(--muted); font-size: 15px; }
.mlds-strip__links { display: flex; flex-wrap: wrap; gap: 8px; }
.mlds-strip__links .mld-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { .mlds-col { transition: none; } }
