/* ==========================================================================
   Destinos (home con mapa, región y país)
   Valores tomados de destinos-preview.html. Todo anclado a .dd.
   ========================================================================== */
.dd { --dd-y: clamp(56px, 7vw, 100px); overflow-x: clip; line-height: 1.5; }
.dd .wrap { max-width: 1360px; padding-inline: 40px; }
@media (max-width: 720px) { .dd .wrap { padding-inline: 20px; } }
.dd-wrap { padding-top: 56px; }
:where(.dd) :where(h1, h2, h3, p) { margin: 0; }
.dd a { text-decoration: none; }
.dd .ph { display: block; position: relative; overflow: hidden; object-fit: cover; background: linear-gradient(135deg, #d8d4cb 0%, #c7c2b6 100%); }

/* ---- Encabezado del home ---------------------------------------------------- */
.dd-head { text-align: center; margin-bottom: 32px; }
.dd-head .eyebrow { margin-bottom: 14px; }
.dd-head h1 { margin-bottom: 6px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 300; color: var(--forest); }
.dd-head__lead { margin-top: 8px; font-family: var(--font-serif); font-size: 16px; color: var(--grey); }
.dd-head__hint { margin-top: 10px; font-size: 13.5px; color: var(--grey); }

/* ---- Toggle mapa / grilla ----------------------------------------------------- */
.dd-toggle { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.dd-toggle button {
	padding: 13px 26px; border: 1px solid #ddd; border-radius: 0; background: #fff; color: var(--grey);
	font-family: inherit; font-size: 13.5px; font-weight: 400; cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.dd-toggle button:active { transform: scale(0.97); }
.dd-toggle button.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.dd-panel { display: none; }
.dd-panel.is-active { display: block; }

/* ---- Mapa (Natural Earth, dominio público) ------------------------------------ */
.dd-map {
	position: relative; left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw;
	margin-bottom: var(--dd-y); padding: 0 24px; background: #0d1f1c;
}
.dd-map svg { display: block; width: 100%; max-width: 1600px; height: auto; margin: 0 auto; }
.dd-map .continent-real { fill: #cfd8d4; fill-opacity: 0.16; stroke: #0d1f1c; stroke-width: 0.6; transition: fill-opacity 0.25s; }
.dd-map .region-group { cursor: pointer; outline: none; }
.dd-map .region-group--label-only { cursor: default; }
.dd-map .region-label { font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; letter-spacing: 0.03em; fill: rgba(255, 255, 255, 0.88); transition: fill 0.25s; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
	.dd-map a.region-group:hover .continent-real { fill-opacity: 0.34; }
	.dd-map a.region-group:hover .region-label { fill: var(--gold); }
}
.dd-map a.region-group:focus-visible .continent-real { fill-opacity: 0.34; stroke: var(--gold); }
.dd-map a.region-group:focus-visible .region-label { fill: var(--gold); }

/* ---- Regiones (6 tiles) --------------------------------------------------------- */
.dd-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: var(--dd-y); }
.dd-tile { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2.6; overflow: hidden; color: #fff; }
.dd-tile .ph { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s ease; }
.dd-tile__scrim { position: absolute; inset: 0; background: rgba(17, 89, 89, 0.45); transition: background-color 0.3s; }
.dd-tile__name { position: relative; z-index: 2; padding: 0 8px; font-size: 15px; font-weight: 400; text-align: center; color: #fff; }
@media (hover: hover) and (pointer: fine) {
	a.dd-tile:hover .ph { transform: scale(1.05); }
	a.dd-tile:hover .dd-tile__scrim { background: rgba(17, 89, 89, 0.3); }
}
.dd-tile.is-active { box-shadow: inset 0 0 0 3px var(--gold); }
.dd-tile.is-active .dd-tile__scrim { background: rgba(0, 0, 0, 0.35); }
.dd-tile.is-active .dd-tile__name { display: inline-block; padding: 8px 18px; background: var(--gold); border-bottom: 3px solid rgba(255, 255, 255, 0.7); font-weight: 700; color: #fff; }
@media (max-width: 900px) { .dd-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .dd-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---- Etiquetas de países ------------------------------------------------------- */
.dd-paises { margin-bottom: var(--dd-y); }
.dd-paises__label { margin-bottom: 14px; font-family: var(--font-serif); font-size: 15px; color: var(--grey); }
.dd-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-pill {
	padding: 9px 18px; border: 1px solid #ddd; font-size: 13px; font-weight: 500; color: var(--forest);
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.16s var(--ease-out);
}
.dd-pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .dd-pill:hover { border-color: var(--forest); } }
.dd-pill.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ---- País: título, descripción y galería ---------------------------------------- */
.dd-pais { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start; margin-bottom: var(--dd-y); }
.dd-pais--solo { grid-template-columns: 1fr; }
.dd-pais__titulo { margin-bottom: 20px; font-size: clamp(36px, 4.4vw, 56px); font-weight: 300; color: var(--forest); }
.dd-pais__texto p { margin-bottom: 14px; font-family: var(--font-serif); font-size: 16px; line-height: 1.7; color: var(--grey); }
.dd-galeria { overflow: hidden; }
.dd-galeria__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dd-galeria__track::-webkit-scrollbar { display: none; }
.dd-galeria__track .ph { flex: 0 0 78%; width: 78%; height: auto; aspect-ratio: 4 / 3; scroll-snap-align: start; }
@media (min-width: 860px) { .dd-galeria__track .ph { flex-basis: 100%; width: 100%; } }
@media (max-width: 860px) { .dd-pais { grid-template-columns: 1fr; } }

/* ---- Bloques de resultados ------------------------------------------------------- */
.dd-bloque { margin-bottom: var(--dd-y); }
.dd-bloque__head { margin-bottom: 36px; text-align: center; }
.dd-bloque__head h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 400; color: var(--forest); }
.dd-carousel { position: relative; }
.dd-track { display: flex; gap: 24px; padding-bottom: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dd-track::-webkit-scrollbar { display: none; }

.dd-card { display: flex; flex-direction: column; flex: 0 0 clamp(260px, 23vw, 310px); width: clamp(260px, 23vw, 310px); min-width: 0; scroll-snap-align: start; }
.dd-card__img { display: block; position: relative; aspect-ratio: 4 / 5; margin-bottom: 16px; overflow: hidden; }
.dd-card__img .ph { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s ease; }
@media (hover: hover) and (pointer: fine) { .dd-card:hover .dd-card__img .ph:not(video) { transform: scale(1.05); } }
.dd-card h3 { margin-bottom: 4px; overflow-wrap: anywhere; line-height: 1.25; font-size: 17px; font-weight: 400; color: var(--forest); }
.dd-card__meta { margin-bottom: 12px; font-size: 12.5px; color: var(--grey); }
.dd-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #eee; }
.dd-card__ver {
	padding: 7px 15px; border: 1px solid var(--forest); font-size: 12px; font-weight: 500; color: var(--forest);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.16s var(--ease-out);
}
.dd-card__ver:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .dd-card__ver:hover { background: var(--forest); color: #fff; } }
.dd-card__price { text-align: right; font-size: 12px; color: var(--grey); }
.dd-card__price strong { display: block; font-size: 16px; font-weight: 600; color: var(--forest); }

.dd-arrow {
	position: absolute; top: 38%; z-index: 5; display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 1px solid #eee; border-radius: 50%; background: #fff; color: var(--forest);
	box-shadow: 0 10px 26px rgba(17, 89, 89, 0.1); font: inherit; font-size: 16px; line-height: 1; cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}
.dd-arrow--prev { left: -20px; opacity: 0; pointer-events: none; }
.dd-arrow--prev.is-visible { opacity: 1; pointer-events: auto; }
.dd-arrow--next { right: -20px; }
.dd-arrow--next.is-hidden { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .dd-arrow:hover { background: var(--forest); border-color: var(--forest); color: #fff; } }
@media (max-width: 720px) { .dd-arrow { display: none; } }

/* ---- Buscador (placeholder) ------------------------------------------------------- */
.dd-buscador {
	display: flex; align-items: center; justify-content: center; height: 130px; padding: 20px;
	background: repeating-linear-gradient(45deg, #f1efe9, #f1efe9 10px, #eae7df 10px, #eae7df 20px);
	border: 1px dashed #cfcabd; color: #9a927e; font-size: 13px; text-align: center;
}

/* ---- Encontrá todo lo de … (grilla final de región / país) ---- */
.dd-todo { padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line-soft, #e7e0d2); }
.dd-todo__count { margin-top: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--grey); }
.dd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 22vw, 280px), 1fr)); gap: 40px 24px; }
.dd-grid .dd-card { flex: none; width: auto; scroll-snap-align: none; }
.dd-grid .dd-card[hidden] { display: none; }
.dd-todo__more { margin-top: 44px; text-align: center; }
.dd-todo__btn { appearance: none; font: inherit; font-size: 14px; font-weight: 500; padding: 13px 30px; color: var(--forest); background: transparent; border: 1px solid var(--forest); cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, transform 0.16s ease; }
.dd-todo__btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .dd-todo__btn:hover { background: var(--forest); color: #fff; } }
@media (max-width: 600px) { .dd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; } .dd-grid .dd-card h3 { font-size: 15px; } }
@media print { .dd-todo__more { display: none; } }
