:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --text: #1a1d29;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 80px;
  }

  header {
    text-align: center;
    padding: 32px 0 28px;
  }

  .logo {
    display: block;
    height: 64px;
    width: auto;
    margin: 0 auto 8px;
  }

  h1 {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }

  .subtitle {
    color: var(--muted);
    font-size: 17px;
  }

  .search-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
  }

  .region-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    align-items: center;
  }

  .region-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
  }

  .region-buttons {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
  }

  .region-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 500;
    transition: all 0.15s;
  }

  .region-btn:hover { border-color: var(--primary); color: var(--primary); }
  .region-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .input-wrap {
    position: relative;
  }

  #search {
    width: 100%;
    padding: 16px 18px;
    font-size: 17px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s;
    font-family: inherit;
  }

  #search:focus {
    outline: none;
    border-color: var(--primary);
  }

  .suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 280px;
    overflow-y: auto;
    z-index: 10;
    display: none;
  }

  .suggestions.active { display: block; }

  .suggestion {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .suggestion:last-child { border-bottom: none; }
  .suggestion:hover, .suggestion.highlighted { background: #f3f4f6; }

  .quick-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
  }

  .quick-item {
    padding: 6px 12px;
    background: #f3f4f6;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s;
    font-family: inherit;
  }
  .quick-item:hover { background: #e5e7eb; }

  .result-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 16px;
    animation: slideIn 0.25s ease-out;
  }

  @keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .result-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: capitalize;
  }

  .result-category {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
  }

  .verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .verdict {
    padding: 16px;
    border-radius: 10px;
    text-align: center;
  }
  .verdict.yes { background: var(--success-bg); }
  .verdict.no { background: var(--danger-bg); }
  .verdict.conditional { background: var(--warning-bg); }

  .verdict-bag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .verdict-answer {
    font-size: 20px;
    font-weight: 700;
  }
  .verdict.yes .verdict-answer { color: var(--success); }
  .verdict.no .verdict-answer { color: var(--danger); }
  .verdict.conditional .verdict-answer { color: var(--warning); }

  .conditions {
    background: #f9fafb;
    border-left: 3px solid var(--primary);
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
  }

  .conditions-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
  }

  .source {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
  }
  .source a { color: var(--primary); text-decoration: none; }
  .source a:hover { text-decoration: underline; }

  .result-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: var(--muted);
  }
  .result-meta a { color: var(--muted); text-decoration: none; }
  .result-meta a:hover { color: var(--primary); text-decoration: underline; }
  .result-sources { margin-left: auto; }
  @media (max-width: 480px) {
    .result-sources { margin-left: 0; }
  }

  .no-result {
    text-align: center;
    padding: 8px 0 0;
    color: var(--muted);
  }

  .no-result-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .did-you-mean {
    margin-top: 16px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: left;
  }
  .did-you-mean-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
  }
  .did-you-mean-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .did-you-mean-chip {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
  }
  .did-you-mean-chip:hover { border-color: var(--primary); color: var(--primary); }

  .advanced {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }
  .advanced summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    user-select: none;
    list-style: none;
    padding: 4px 0;
  }
  .advanced summary::-webkit-details-marker { display: none; }
  .advanced summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.15s;
  }
  .advanced[open] summary::before { transform: rotate(90deg); }
  .advanced summary:hover { color: var(--text); }
  .advanced-hint { color: #9ca3af; font-size: 12px; }
  .advanced-body { padding-top: 10px; }
  .advanced-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
  }
  .advanced-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
  }
  .advanced-select:focus { outline: none; border-color: var(--primary); }
  .advanced-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
  }

  /* Searchable airline combobox */
  .airline-combo {
    position: relative;
  }
  .airline-combo-input {
    width: 100%;
    padding: 10px 32px 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
  }
  .airline-combo-input:focus {
    outline: none;
    border-color: var(--primary);
  }
  .airline-combo-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: inherit;
  }
  .airline-combo-clear:hover { color: var(--text); background: #f3f4f6; }
  .airline-combo-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    max-height: 280px;
    overflow-y: auto;
    z-index: 25;
    display: none;
  }
  .airline-combo-list.active { display: block; }
  .airline-combo-group {
    padding: 6px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--muted);
    background: #f9fafb;
    position: sticky;
    top: 0;
  }
  .airline-combo-option {
    padding: 9px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
  }
  .airline-combo-option:last-child { border-bottom: none; }
  .airline-combo-option:hover,
  .airline-combo-option.highlighted { background: #eef2ff; }
  .airline-combo-empty {
    padding: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
  }

  .airline-card {
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border: 1px solid #ddd6fe;
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
    position: relative;
  }
  .airline-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .airline-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #4338ca;
  }
  .airline-card-clear {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
  }
  .airline-card-clear:hover { color: var(--text); }
  .airline-card-focus {
    margin: 4px 0 12px;
    padding: 9px 12px;
    background: rgba(202, 138, 4, 0.08);
    border-left: 3px solid #ca8a04;
    border-radius: 4px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #713f12;
  }
  .airline-card-row-highlight .label { color: #ca8a04; }
  .airline-card-row-highlight .value { font-weight: 600; }
  .airline-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    font-size: 13px;
  }
  @media (max-width: 480px) {
    .airline-card-grid { grid-template-columns: 1fr; }
  }
  .airline-card-row .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 2px;
  }
  .airline-card-row .value { color: var(--text); }
  .airline-card-notes {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ddd6fe;
    font-size: 12px;
    color: #6b21a8;
    line-height: 1.5;
  }

  .airline-pet {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 12px;
  }
  .airline-pet-title {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
  }
  .airline-pet-verdicts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  .airline-pet-verdict {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.6);
    padding: 10px 12px;
    border-radius: 8px;
  }
  .airline-pet-verdict-icon { font-size: 22px; }
  .airline-pet-verdict-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 600;
  }
  .airline-pet-verdict-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
  }
  .airline-pet-row {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
    color: var(--text);
  }
  .airline-pet-row-label {
    color: var(--muted);
    font-weight: 600;
  }
  .airline-pet-notes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #fcd34d;
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
  }

  /* Mode tabs */
  .mode-tabs {
    display: flex;
    gap: 4px;
    background: #eef2ff;
    padding: 4px;
    border-radius: 999px;
    margin-bottom: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .mode-tab {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: transparent;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .mode-tab:hover { color: var(--text); }
  .mode-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }
  @media (max-width: 480px) {
    .mode-tab { padding: 8px 6px; font-size: 12.5px; }
  }

  /* US travelers mode panel — question-led list */
  .us-mode-panel {
    padding: 22px 26px;
    border-top: 3px solid #b91c1c;
    border-bottom: 3px solid #1e40af;
  }
  .us-mode-intro { margin-bottom: 14px; }
  .us-mode-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
  }
  .us-mode-sub {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
  }
  .us-question-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    border-top: 1px solid var(--border);
  }
  .us-question-list li { border-bottom: 1px solid var(--border); }
  .us-question {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "text arrow" "tool arrow";
    gap: 2px 12px;
    align-items: center;
    padding: 14px 4px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.12s, padding 0.12s;
  }
  .us-question:hover {
    background: #eff6ff;
    padding-left: 12px;
    padding-right: 12px;
  }
  .us-q-text {
    grid-area: text;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
  }
  .us-q-tool {
    grid-area: tool;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
  }
  .us-q-arrow {
    grid-area: arrow;
    font-size: 20px;
    color: var(--muted);
    font-weight: 400;
    transition: color 0.12s, transform 0.12s;
  }
  .us-question:hover .us-q-arrow {
    color: var(--primary);
    transform: translateX(4px);
  }
  .us-question:hover .us-q-text { color: var(--primary); }
  .us-quick-links {
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
  }
  .us-quick-label {
    color: var(--muted);
    font-weight: 600;
  }
  .us-quick-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
  }
  .us-quick-links a:hover { text-decoration: underline; }
  @media (max-width: 480px) {
    .us-mode-panel { padding: 18px; }
    .us-q-text { font-size: 14.5px; }
    .us-q-arrow { font-size: 18px; }
  }

  /* Trip planner form */
  .trip-form .form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 14px 0 6px;
  }
  .trip-form .form-label:first-child { margin-top: 0; }
  .trip-form input[type="text"],
  .trip-form input[type="number"],
  .trip-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
  }
  .trip-form input:focus,
  .trip-form select:focus {
    outline: none;
    border-color: var(--primary);
  }
  .trip-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  @media (max-width: 480px) {
    .trip-form .form-row { grid-template-columns: 1fr; }
  }

  /* Location autocomplete (From / To fields) */
  .location-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    max-height: 260px;
    overflow-y: auto;
    z-index: 20;
    display: none;
  }
  .location-suggestions.active { display: block; }
  .location-suggestion {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .location-suggestion:last-child { border-bottom: none; }
  .location-suggestion:hover,
  .location-suggestion.highlighted { background: #f3f4f6; }
  .location-suggestion-icon {
    font-size: 16px;
    opacity: 0.6;
    flex-shrink: 0;
  }
  .location-suggestion-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .location-suggestion-loading {
    padding: 12px 14px;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
  }

  .checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  @media (max-width: 480px) {
    .checkbox-grid { grid-template-columns: 1fr; }
  }
  .checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
  }
  .checkbox-grid label:hover { background: #f3f4f6; }
  .checkbox-grid input { cursor: pointer; }
  .trip-generate-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .trip-generate-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
  .trip-generate-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

  /* Trip result rendering */
  .trip-result-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 16px;
  }
  .trip-result-header {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .trip-result-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .trip-result-summary {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
  }
  .trip-section {
    margin-bottom: 22px;
  }
  .trip-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
  }
  .trip-list {
    list-style: none;
    padding: 0;
  }
  .trip-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
  }
  .trip-list li:last-child { border-bottom: none; }
  .trip-warning {
    background: #fef3c7;
    border-left: 4px solid #d97706;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #78350f;
  }
  .trip-pack-category {
    margin-bottom: 14px;
  }
  .trip-pack-cat-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
  }
  .trip-pack-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
  }
  .trip-pack-verdict {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 14px;
  }
  .trip-pack-name {
    flex: 1;
    color: var(--text);
  }
  .trip-pack-note {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
  }
  .trip-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    line-height: 1.5;
  }

  /* Print / Save-as-PDF button on the trip result */
  .trip-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
  }
  .trip-print-btn:hover { background: var(--primary); color: white; }

  /* Print-only elements (hidden on screen) */
  .print-only { display: none; }

  /* PDF/print checkboxes — hidden on screen, shown in print as interactive form fields.
     Chrome/Safari preserve <input type="checkbox"> in "Save as PDF" so they remain
     tickable in PDF viewers (Adobe Reader, Preview, etc.) without printing. */
  .pdf-check { display: none; }

  /* ═════════════════════ PRINT STYLES ═════════════════════ */
  @media print {
    @page {
      margin: 1.6cm 1.8cm;
      size: A4;
    }

    body {
      background: white !important;
      font-size: 11pt;
      color: #1a1d29;
    }

    /* Hide everything except the trip-result-card */
    header,
    .mode-tabs,
    .search-card,
    .ad-slot,
    .disclaimer,
    footer,
    .airline-card,
    .airline-pet,
    .modal-backdrop,
    .trip-print-btn,
    .email-capture-card,
    .popular-items,
    #itemModePanel { display: none !important; }

    /* Make sure tripModePanel is hidden too when printing trip result */
    #tripModePanel { display: none !important; }

    .container {
      padding: 0 !important;
      max-width: none !important;
    }

    /* Trip result card — flatten for print */
    .trip-result-card {
      box-shadow: none !important;
      border: none !important;
      padding: 0 !important;
      margin: 0 !important;
      background: white !important;
    }

    /* Print-only elements appear */
    .print-only { display: block !important; }

    /* Print header — logo + brand + generated date */
    .print-header {
      padding-bottom: 16px;
      margin-bottom: 24px;
      border-bottom: 2px solid #1a1d29;
      display: flex !important;
      justify-content: space-between;
      align-items: flex-end;
    }
    .print-logo {
      font-size: 18pt;
      font-weight: 800;
      letter-spacing: -0.01em;
    }
    .print-logo-url {
      display: block;
      font-size: 9pt;
      font-weight: 400;
      color: #6b7280;
      margin-top: 2px;
      letter-spacing: 0;
    }
    .print-date {
      font-size: 9pt;
      color: #6b7280;
      text-align: right;
    }

    /* Trip header */
    .trip-result-header {
      margin-bottom: 22px;
      padding-bottom: 14px;
      border-bottom: 1px solid #d1d5db;
    }
    .trip-result-title {
      font-size: 22pt;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 6px;
    }
    .trip-result-summary {
      font-size: 11pt;
      color: #374151;
      line-height: 1.5;
    }

    /* Sections: avoid breaking inside, clear spacing */
    .trip-section {
      page-break-inside: avoid;
      margin-bottom: 22px;
    }
    .trip-section-title {
      font-size: 9pt;
      letter-spacing: 0.08em;
      color: #6b7280;
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 10px;
      padding-bottom: 4px;
      border-bottom: 1px solid #e5e7eb;
    }

    /* Document list — interactive checkboxes (preserved in PDF by Chrome/Safari) */
    .trip-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .trip-list li {
      padding: 6px 0;
      font-size: 11pt;
      border-bottom: 1px dotted #e5e7eb;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .trip-list li input.pdf-check {
      display: inline-block !important;
      width: 14pt;
      height: 14pt;
      margin: 0;
      flex-shrink: 0;
      margin-top: 1px;
    }

    /* Warning callouts — keep borders, lose background flood */
    .trip-warning {
      background: white !important;
      border: 1.5px solid #d97706 !important;
      border-left: 4px solid #d97706 !important;
      color: #78350f !important;
      padding: 10px 14px;
      font-size: 11pt;
      margin-bottom: 8px;
      page-break-inside: avoid;
    }

    /* Packing checklist */
    .trip-pack-category {
      page-break-inside: avoid;
      margin-bottom: 14px;
    }
    .trip-pack-cat-name {
      font-size: 12pt;
      font-weight: 700;
      margin-bottom: 6px;
      padding-bottom: 4px;
      border-bottom: 1px solid #e5e7eb;
      color: #1a1d29;
    }
    .trip-pack-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 5px 0;
      font-size: 11pt;
      page-break-inside: avoid;
    }
    .trip-pack-item input.pdf-check {
      display: inline-block !important;
      width: 14pt;
      height: 14pt;
      margin: 0;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .trip-pack-verdict {
      flex-shrink: 0;
      width: 16px;
      text-align: center;
      font-size: 12pt;
    }
    .trip-pack-name {
      flex: 1;
      color: #1a1d29;
    }
    .trip-pack-note {
      display: block;
      color: #6b7280;
      font-size: 9.5pt;
      margin-top: 2px;
      font-style: italic;
    }

    /* On-screen trip-footer + print-footer styling */
    .trip-footer {
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid #e5e7eb;
      font-size: 10pt;
      color: #6b7280;
    }

    .print-footer {
      margin-top: 32px;
      padding-top: 16px;
      border-top: 2px solid #1a1d29;
      font-size: 9pt;
      color: #6b7280;
      text-align: center;
      line-height: 1.6;
    }
    .print-footer-brand {
      font-weight: 700;
      color: #1a1d29;
      font-size: 10pt;
    }
  }

  .ai-button {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .ai-button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
  .ai-button.loading,
  .ai-button:disabled,
  .trip-generate-btn.loading,
  .trip-generate-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
  }
  .ai-button-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
    opacity: 0.85;
  }

  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
    animation: fadeIn 0.2s;
  }
  @keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

  .modal-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 380px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  }
  .modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
    padding: 4px 8px;
  }
  .modal-close:hover { color: var(--text); }

  .modal-ad {
    min-height: 250px;
    background: #f3f4f6;
    border: 1px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    margin: 16px 0;
    text-align: center;
    padding: 12px;
  }

  .modal-countdown {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
  }

  .modal-image-section {
    margin: 12px 0;
  }
  .modal-image-btn {
    width: 100%;
    padding: 10px;
    background: white;
    color: var(--text);
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
  }
  .modal-image-btn:hover { border-color: var(--primary); color: var(--primary); }
  .modal-image-preview {
    position: relative;
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .modal-image-preview img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
  }
  .modal-image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
  }
  .modal-privacy {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.4;
  }

  .modal-action {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    background: #e5e7eb;
    color: var(--muted);
    transition: all 0.2s;
  }
  .modal-action.ready {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    cursor: pointer;
  }
  .modal-action.ready:hover { transform: translateY(-1px); }
  .modal-action:disabled { cursor: not-allowed; }

  /* ── User-report widget (rendered by report.js) ───────────────────────── */
  .report-card {
    margin-top: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  }
  .report-card-head { margin-bottom: 12px; }
  .report-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
  }
  .report-counter {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
  }
  .report-counter-pass { color: #047857; }
  .report-counter-pass strong { color: #065f46; font-weight: 700; }
  .report-counter-stopped { color: #b91c1c; }
  .report-counter-stopped strong { color: #991b1b; font-weight: 700; }
  .report-counter-sep { color: #d1d5db; }
  .report-counter-airport { color: var(--muted); font-size: 12px; }
  .report-counter-low {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
  }
  .report-counter-empty { color: var(--muted); font-size: 13px; font-style: italic; }

  .report-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .report-map-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px 14px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    color: #4338ca;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
  }
  .report-map-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    border-color: #818cf8;
    transform: translateY(-1px);
  }
  .report-map-btn:disabled { opacity: 0.55; cursor: not-allowed; }
  .report-vote-btn {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
  }
  .report-vote-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
  .report-vote-icon {
    display: inline-flex;
    width: 22px; height: 22px;
    align-items: center; justify-content: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: white;
  }
  .report-vote-pass:hover { border-color: #10b981; color: #065f46; }
  .report-vote-pass .report-vote-icon { background: #10b981; }
  .report-vote-stopped:hover { border-color: #ef4444; color: #991b1b; }
  .report-vote-stopped .report-vote-icon { background: #ef4444; }

  .report-card-notes {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .report-notes-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
  }
  .report-notes-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
  .report-note {
    font-size: 13px;
    line-height: 1.45;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid var(--border);
  }
  .report-note-pass { border-left-color: #10b981; }
  .report-note-stopped { border-left-color: #ef4444; }
  .report-note-tag { font-size: 11px; font-weight: 700; margin-right: 6px; }
  .report-note-pass .report-note-tag { color: #047857; }
  .report-note-stopped .report-note-tag { color: #b91c1c; }
  .report-note-where { font-size: 11px; color: var(--muted); margin-right: 6px; }
  .report-note-ago { font-size: 11px; color: #9ca3af; }
  .report-note-text { color: var(--text); margin-top: 3px; }

  /* ── Report modal (extends .modal-backdrop / .modal-card) ─────────────── */
  .report-modal-card { max-width: 440px; }
  .report-modal-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
  .report-modal-item { color: var(--primary); }
  .report-modal-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; line-height: 1.45; }

  .report-modal-field { display: block; margin-bottom: 14px; }
  .report-modal-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
  }
  .report-modal-input,
  .report-modal-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: white;
    color: var(--text);
    box-sizing: border-box;
  }
  .report-modal-input:focus,
  .report-modal-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  }
  .report-modal-input-airport { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
  .report-modal-textarea { resize: vertical; min-height: 64px; }
  .report-modal-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
  .report-modal-hint-counter { text-align: right; }

  .report-modal-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
  }

  .report-modal-submit { margin-top: 4px; }

  .report-modal-thanks { text-align: center; padding: 16px 8px; }
  .report-modal-thanks-icon {
    display: inline-flex;
    width: 56px; height: 56px;
    align-items: center; justify-content: center;
    background: #10b981;
    color: white;
    border-radius: 999px;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  .report-modal-thanks h3 { margin: 0 0 6px; font-size: 18px; }
  .report-modal-thanks p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

  .ai-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 6px;
  }

  .ai-sources {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f5f3ff;
    border-left: 3px solid #8b5cf6;
    border-radius: 6px;
  }
  .ai-sources-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6d28d9;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .ai-sources-list { list-style: none; margin: 0; padding: 0; }
  .ai-sources-list li { font-size: 13px; line-height: 1.65; padding: 1px 0; }
  .ai-sources-list a { color: var(--primary); text-decoration: none; }
  .ai-sources-list a:hover { text-decoration: underline; }

  .disclaimer {
    margin-top: 32px;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    text-align: center;
  }

  /* Popular items — chip grid linking to the per-item SEO pages */
  .popular-items { margin: 24px 0 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
  .popular-items-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .popular-items-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
  .popular-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .popular-items-grid a { padding: 10px 12px; background: #f9fafb; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; transition: border-color 0.15s, background 0.15s; }
  .popular-items-grid a:hover { border-color: var(--primary); background: #fff; color: var(--primary); }

  /* Browse-by-location: single search input that filters across all 40
     countries + regions + airports, with type-chip filters and keyboard
     navigation. Replaced the 3 separate button-grid subsections. */
  .loc-search { position: relative; margin-top: 4px; }
  .loc-search-input { width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font-family: inherit; }
  .loc-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
  .loc-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
  .loc-filter { padding: 6px 12px; border: 1px solid var(--border); background: #fff; border-radius: 999px; font-size: 12.5px; cursor: pointer; color: var(--muted); font-weight: 500; font-family: inherit; transition: all 0.15s; }
  .loc-filter:hover { border-color: var(--primary); color: var(--primary); }
  .loc-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
  .loc-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05); max-height: 320px; overflow-y: auto; z-index: 30; display: none; }
  .loc-results.active { display: block; }
  .loc-result { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: 14px; color: var(--text); border-bottom: 1px solid #f3f4f6; text-decoration: none; }
  .loc-result:last-child { border-bottom: none; }
  .loc-result:hover, .loc-result.highlighted { background: #eef2ff; }
  .loc-result .loc-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
  .loc-result .loc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .loc-result .loc-type { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; flex-shrink: 0; }
  .loc-type-country { background: #ecfdf5; color: #047857; }
  .loc-type-region  { background: #eff6ff; color: #1d4ed8; }
  .loc-type-airport { background: #fef3c7; color: #92400e; }
  .loc-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; font-style: italic; }
  .loc-popular { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; }
  .loc-popular-label { color: var(--muted); font-weight: 600; }
  .loc-popular a { padding: 6px 10px; background: #f9fafb; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); transition: border-color 0.15s; }
  .loc-popular a:hover { border-color: var(--primary); color: var(--primary); }

  /* Email capture — shown under trip briefing results (and hidden in print) */
  .email-capture-card { margin: 24px 0 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
  .email-capture-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
  .email-capture-sub { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
  .email-capture { display: flex; gap: 8px; flex-wrap: wrap; }
  .email-capture input[type="email"] { flex: 1 1 200px; min-width: 0; padding: 10px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-family: inherit; }
  .email-capture input[type="email"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
  .email-capture button { padding: 10px 18px; font-size: 14px; font-weight: 600; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; }
  .email-capture button:hover:not(:disabled) { background: var(--primary-dark); }
  .email-capture button:disabled { opacity: 0.6; cursor: not-allowed; }
  .email-capture-status { flex-basis: 100%; font-size: 13px; color: #b91c1c; margin-top: 4px; }
  .email-capture-status:empty { display: none; }
  .email-capture-fine { font-size: 12px; color: var(--muted); margin-top: 10px; }
  .email-capture-success { font-size: 14px; color: var(--success); font-weight: 600; padding: 8px 0; }

  /* Ad slot — placeholder for future ad code (AdSense, etc.) */
  .ad-slot {
    margin: 24px 0;
    min-height: 90px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
  }

  /* Desktop sidebar ad — only renders on wide screens (≥1280px viewport).
     Position: fixed, right side, always visible while scrolling.
     Standard 300×600 "Half Page" ad unit — high-fill, decent CPM. */
  .ad-slot-sidebar {
    display: none;
  }
  @media (min-width: 1280px) {
    .ad-slot-sidebar {
      display: flex;
      position: fixed;
      top: 100px;
      right: 24px;
      width: 300px;
      height: 600px;
      background: #fff;
      border: 1px dashed var(--border);
      border-radius: var(--radius);
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
      padding: 12px;
      z-index: 5;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    /* When taller screens — let the ad anchor toward top of content (above the fold) */
    @media (min-height: 800px) {
      .ad-slot-sidebar { top: 140px; }
    }
  }

  footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--muted);
  }
  footer a { color: var(--muted); }

  @media (max-width: 480px) {
    .verdict-grid { grid-template-columns: 1fr; }
    .region-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  }
