/*
 * Templates without an approved design (owner decision: GeneratePress' basic template with
 * the colours and fonts of the site): basic pages (Destinos, Sobre nosotros, Contacto,
 * legal pages), the trip listings /viajes/ and /destino/{país}/, and the 404.
 * Loaded on everything but the front page and the trip pages (inc/enqueue.php).
 *
 * - Titles: GP's Typography gives H1 the 88px of the home hero; here they take the
 *   section-title scale (--fs-h2), and the text headings a reading scale.
 * - Reading measure: text pages are a centred 800px column instead of 1240px lines.
 * - Trip listings: GP Premium Blog columns (Personalizar → Diseño → Blog) with the
 *   «Tarjeta de viaje (listados)» Element; the gaps of the home grid (32px) replace GP's
 *   20px separator, and the 2-column tablet range follows the design (768–1100px).
 * - Contact Form 7: fields and submit button with the site's form colours (Customizer)
 *   and the .btn shape.
 */

/* ==========================================================================
   Titles
   ========================================================================== */
h1.entry-title,
h1.page-title{font-size:var(--fs-h2);line-height:1.1;margin-bottom:var(--space-lg)}
.entry-header{margin-bottom:var(--space-lg)}
.page-header .taxonomy-description{font-size:var(--fs-lead);line-height:1.5;color:var(--color-ink-muted);max-width:640px}
.page-header .taxonomy-description p:last-child{margin-bottom:0}

/* ==========================================================================
   Basic pages and 404: a centred reading column
   ========================================================================== */
:is(.page, .error404) .site-main > :is(article, .no-results) > .inside-article{max-width:800px;margin-inline:auto}
:is(.page, .error404) .entry-content :is(h2, h3, h4){margin:var(--space-xl) 0 var(--space-sm)}
:is(.page, .error404) .entry-content h2{font-size:clamp(1.5rem, 1.25rem + .9vw, 2rem);line-height:1.2}
:is(.page, .error404) .entry-content h3{font-size:1.25rem;line-height:1.3}
:is(.page, .error404) .entry-content > :first-child{margin-top:0}
:is(.page, .error404) .entry-content :is(ul, ol){margin:0 0 var(--space-lg) 1.25em}
:is(.page, .error404) .entry-content li{margin-bottom:var(--space-2xs)}

/* Destinos page: the list of countries (core/categories) */
.page .entry-content .wp-block-categories{list-style:none;margin-left:0;display:flex;flex-wrap:wrap;gap:var(--space-sm)}
.page .entry-content .wp-block-categories li{margin:0}
.page .entry-content .wp-block-categories a{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--space-lg);border:1px solid var(--color-line);border-radius:var(--radius-pill);background:var(--color-sand-light);font-weight:500;text-decoration:none}
.page .entry-content .wp-block-categories a:is(:hover,:focus){border-color:var(--color-terracotta-dark);color:var(--color-terracotta-dark)}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */
.wpcf7 .form-row p{margin-bottom:var(--space-md)}
.wpcf7 label{font-weight:500;font-size:var(--fs-small)}
.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea){width:100%;margin-top:var(--space-2xs);padding:12px var(--space-md);border-width:1px;border-radius:var(--radius-xs);font-size:var(--fs-body);line-height:1.5}
.wpcf7 input:not([type="checkbox"], [type="submit"]){min-height:48px}
.wpcf7 textarea{min-height:180px;resize:vertical}
.wpcf7 .wpcf7-acceptance label{font-weight:400;display:inline-flex;gap:var(--space-xs);align-items:flex-start}
.wpcf7 input[type="checkbox"]{width:20px;height:20px;margin-top:3px;flex:none;accent-color:var(--color-terracotta-dark)}
.wpcf7 input[type="submit"]{min-height:56px;padding:0 var(--space-xl);border:0;border-radius:var(--radius-pill);font-size:var(--fs-btn);letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.wpcf7 .wpcf7-not-valid-tip{font-size:var(--fs-small);color:var(--color-rust);margin-top:var(--space-2xs)}
.wpcf7 form .wpcf7-response-output{margin:var(--space-lg) 0 0;padding:var(--space-sm) var(--space-md);border-radius:var(--radius-xs)}

/* ==========================================================================
   Trip listings (/viajes/, /destino/{país}/)
   ========================================================================== */
.generate-columns-activated .page-header{margin-bottom:var(--space-2xl)}
.generate-columns-activated .dynamic-content-template > .trip-card{height:100%}
@media (min-width:768px){
  .generate-columns-activated .generate-columns-container{margin-left:calc(-1 * var(--space-xl))}
  .generate-columns-activated .generate-columns{padding-left:var(--space-xl);margin-bottom:var(--space-xl)}
  .generate-columns-activated .generate-columns-container > :is(.page-header, .paging-navigation){margin-left:var(--space-xl)}
}
@media (min-width:768px) and (max-width:1100px){
  .generate-columns-activated .generate-columns.tablet-grid-50{width:50%}
}
@media (max-width:767px){
  .generate-columns-activated .generate-columns{margin-bottom:var(--space-lg)}
  .generate-columns-activated .page-header{margin-bottom:var(--space-xl)}
}

/* Destination without trips (inc/archives.php) */
.vac-empty-destination{max-width:800px}
.vac-empty-destination__text{font-size:var(--fs-lead);line-height:1.5}
.vac-empty-destination__actions{display:flex;flex-wrap:wrap;gap:var(--space-sm);margin-top:var(--space-xl)}
@media (max-width:767px){
  .vac-empty-destination__actions .btn{width:100%}
}
