/*
 * Morsilla Travel — Google Travel / Google Flights Editorial Design Layer
 * Shared across all 4,808 static HTML pages under /travel/** and /viajes/**.
 * Pure visual refinement: zero DOM or JS mutations, zero layout shift (CLS),
 * and full responsive parity from 360px phones to widescreen desktops.
 */

:root {
  --m-gt-border: #dfe3e8;
  --m-gt-border-strong: #c8cfd8;
  --m-gt-surface-soft: #f6f8fb;
  --m-gt-shadow-card: 0 1px 3px rgba(60, 64, 67, 0.08), 0 10px 28px rgba(60, 64, 67, 0.08);
  --m-gt-shadow-sm: 0 1px 2px rgba(18, 20, 23, 0.05);
  --m-gt-shadow-hover: 0 8px 22px rgba(18, 20, 23, 0.09);
}

body {
  background:
    radial-gradient(ellipse 80% 340px at 50% -60px, rgba(226, 31, 47, 0.055), transparent 68%),
    linear-gradient(180deg, #f3f7fc 0%, #fafbfd 240px, #ffffff 520px);
}

/* 1. Google-style crisp top bar & active Travel indicator */
header {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e9ef;
}

.m-native-nav > a {
  border-radius: 999px;
  transition: color 140ms ease, background-color 140ms ease;
}

@media (min-width: 641px) {
  .m-native-menu {
    padding: 2px 8px;
    margin: 0 -4px;
    border-radius: 999px;
    background-color: rgba(226, 31, 47, 0.07);
  }

  .m-native-menu-label {
    color: var(--m-red-dark);
    font-weight: 700;
  }

  .m-native-menu-caret {
    color: var(--m-red-dark);
  }
}

.m-native-menu-panel {
  border-color: var(--m-gt-border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(18, 20, 23, 0.08), 0 16px 36px rgba(18, 20, 23, 0.12);
}

.m-native-menu-link {
  border-radius: 10px;
  transition: background-color 120ms ease, color 120ms ease;
}

/* 2. Breadcrumbs, display hero & verified date chip */
main {
  padding: 28px 0 72px;
}

.m-native-crumbs ol {
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
}

.m-native-crumbs a {
  padding: 2px 8px;
  margin: 0 -8px;
  border-radius: 999px;
  transition: background-color 120ms ease, color 120ms ease;
}

.m-native-crumbs a:hover {
  background-color: rgba(18, 20, 23, 0.05);
  text-decoration: none;
}

main h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--m-ink);
  text-wrap: balance;
}

.m-native-answer {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.62;
  color: #384048;
}

.m-native-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 34px;
  padding: 5px 12px;
  border: 1px solid #e1e6ed;
  border-radius: 999px;
  background-color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #4b5563;
}

.m-native-updated::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #16a34a;
  flex-shrink: 0;
}

/* 3. Google Travel vertical switcher pills */
.m-native-products {
  gap: 8px;
  margin: 0 0 18px;
}

.m-native-product {
  border-color: var(--m-gt-border-strong);
  box-shadow: var(--m-gt-shadow-sm);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.m-native-product:hover {
  background-color: var(--m-gt-surface-soft);
  border-color: var(--m-ink);
}

.m-native-product[aria-current="page"] {
  border-color: var(--m-ink);
  background-color: var(--m-ink);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(18, 20, 23, 0.16);
}

@media (max-width: 639px) {
  .m-native-product {
    border-radius: 12px;
  }
}

/* 4. Google Flights / Google Hotels floating search card */
.m-native-engine {
  margin: 0 0 28px;
}

.m-native-engine-fallback,
.m-native-search--hotels,
.m-native-search--pick > form:not([hidden]) {
  padding: 20px 22px;
  border: 1px solid var(--m-gt-border);
  border-radius: 20px;
  background-color: #ffffff;
  box-shadow: var(--m-gt-shadow-card);
}

@media (max-width: 600px) {
  .m-native-engine-fallback,
  .m-native-search--hotels,
  .m-native-search--pick > form:not([hidden]) {
    padding: 16px;
    border-radius: 16px;
  }
}

.m-native-flights-trip {
  padding: 4px;
  border-color: #e1e6ec;
  background-color: #f1f4f8;
}

.m-native-flights-trip span {
  padding: 6px 16px;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.m-native-field {
  border: 1px solid var(--m-gt-border-strong);
  border-radius: 12px;
  background-color: #ffffff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.m-native-field:hover {
  border-color: #8b95a1;
  background-color: #fcfdfe;
}

.m-native-field:focus-within {
  border-color: var(--m-ink);
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(18, 20, 23, 0.12);
}

.m-native-field span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #525c66;
}

.m-native-field input,
.m-native-field select {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--m-ink);
}

.m-native-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23525c66' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.m-native-flights-swap {
  border-color: var(--m-gt-border-strong);
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(18, 20, 23, 0.08);
  transition: transform 180ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.m-native-flights-swap:hover {
  border-color: var(--m-ink);
  box-shadow: 0 4px 10px rgba(18, 20, 23, 0.12);
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .m-native-flights-swap {
    transition: none;
  }
  .m-native-flights-swap:hover {
    transform: none;
  }
}

.m-native-search-button,
.m-native-engine-open,
.m-native-button,
.m-native-cta-button,
.m-native-panel-button {
  border-radius: 999px;
  background: linear-gradient(180deg, #e92434 0%, #d81b2b 100%);
  box-shadow: 0 2px 8px rgba(226, 31, 47, 0.25);
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.m-native-search-button:hover,
.m-native-engine-open:hover,
.m-native-button:hover,
.m-native-cta-button:hover,
.m-native-panel-button:hover {
  background: var(--m-red-dark);
  box-shadow: 0 4px 14px rgba(185, 22, 36, 0.32);
}

.m-native-ac-pop {
  border-color: var(--m-gt-border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(18, 20, 23, 0.16);
}

.m-native-ac-option {
  padding: 9px 14px;
  transition: background-color 100ms ease;
}

.m-native-panel {
  border-radius: 16px;
  border-color: var(--m-gt-border);
  background-color: #f8fafc;
}

/* 5. Content sections & Google Flights route specification tables */
.m-native-section {
  margin: 0 0 44px;
}

.m-native-section h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.5vw, 25px);
  line-height: 1.24;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.m-native-section table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--m-gt-border);
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: var(--m-gt-shadow-sm);
}

.m-native-section caption {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--m-muted);
}

.m-native-section th {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #e3e7ed;
  background-color: var(--m-gt-surface-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #525c66;
}

.m-native-section td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  color: var(--m-body);
  font-variant-numeric: tabular-nums;
}

.m-native-section tbody tr:last-child td {
  border-bottom: 0;
}

.m-native-section tbody td:first-child {
  font-weight: 600;
  color: var(--m-ink);
}

.m-native-section tbody tr:hover td {
  background-color: #fafbfd;
}

/* 6. "Plan your trip" cards & Things-to-Do attraction cards */
.m-native-section ul.m-native-cards {
  gap: 14px;
}

.m-native-card {
  padding: 18px;
  border: 1px solid var(--m-gt-border);
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: var(--m-gt-shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.m-native-card:hover {
  border-color: #b7c0cc;
  box-shadow: var(--m-gt-shadow-hover);
  transform: translateY(-2px);
}

.m-native-card:hover .m-native-card-title {
  text-decoration: none;
  color: var(--m-red-dark);
}

.m-native-card-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(226, 31, 47, 0.09);
}

.m-native-section ul.m-native-places {
  gap: 14px;
}

.m-native-section ul.m-native-places li.m-native-place {
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--m-gt-border);
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: var(--m-gt-shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.m-native-section ul.m-native-places li.m-native-place:hover {
  border-color: #b7c0cc;
  box-shadow: var(--m-gt-shadow-hover);
}

.m-native-place p {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.m-native-place a {
  padding: 4px 12px;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background-color: var(--m-gt-surface-soft);
  color: var(--m-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.m-native-place a:hover {
  border-color: var(--m-red);
  background-color: #fff6f7;
  color: var(--m-red-dark);
}

/* 7. Interactive route & city directory cards, filter bar & country groups */
.m-native-filter label {
  border-color: var(--m-gt-border-strong);
  border-radius: 14px;
  box-shadow: var(--m-gt-shadow-sm);
}

.m-native-section > ul.m-native-links {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px 14px;
}

.m-native-section > ul.m-native-links li {
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  background-color: #ffffff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.m-native-section > ul.m-native-links li:hover {
  border-color: #bcc5d1;
  background-color: #fafcfe;
  box-shadow: var(--m-gt-shadow-sm);
}

.m-native-section > ul.m-native-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--m-ink);
}

.m-native-section > ul.m-native-links a::after {
  content: "→";
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #7c8694;
  transition: transform 140ms ease, color 140ms ease;
}

.m-native-section > ul.m-native-links a:hover {
  color: var(--m-red-dark);
  text-decoration: none;
}

.m-native-section > ul.m-native-links a:hover::after {
  color: var(--m-red);
  transform: translateX(2px);
}

@media (min-width: 768px) {
  .m-native-groups {
    columns: 3 260px;
    column-gap: 20px;
  }

  .m-native-group {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(18, 20, 23, 0.03);
  }

  .m-native-section .m-native-group h3 {
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eef1f5;
    font-size: 15px;
  }

  .m-native-section .m-native-group ul.m-native-links a {
    padding: 5px 4px;
    border-radius: 6px;
    font-weight: 500;
  }

  .m-native-section .m-native-group ul.m-native-links a:hover {
    background-color: var(--m-gt-surface-soft);
    text-decoration: none;
  }
}

/* 8. FAQ accordion card & cookie bar */
.m-native-faq {
  max-width: 780px;
  margin-top: 52px;
  padding: 22px 24px;
  border: 1px solid var(--m-gt-border);
  border-radius: 18px;
  background-color: #fafbfd;
}

@media (max-width: 600px) {
  .m-native-faq {
    padding: 18px 16px;
    border-radius: 14px;
  }
}

.m-native-faq details:first-of-type {
  border-top: 1px solid #e4e8ef;
}

.m-native-faq details:last-child {
  border-bottom: 0;
}

.m-native-faq summary {
  align-items: center;
  padding: 15px 0;
}

.m-native-faq summary::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #dfe4ec;
  border-radius: 50%;
  background-color: #ffffff;
  font-size: 17px;
  line-height: 1;
}

.m-native-cookie-inner {
  border-radius: 16px;
}

footer {
  border-top: 1px solid #e4e8ef;
}
