/* One Click Trip pages: form, list and result. Same palette as the Packages page. */

.oct-page {
    padding-top: 56px;
    background: #f7f8fc;
    margin: 0;
    color: #2d3748;
}

.oct-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.oct-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 20px;
}

.oct-card h2 { margin: 0 0 14px; font-size: 20px; }
.oct-card h3 { margin: 14px 0 6px; font-size: 15px; color: #4a5568; }

.oct-badge {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78 0%, #2f855a 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.oct-hint { color: #718096; font-size: 13px; line-height: 1.5; margin: 6px 0 0; }
.oct-source { color: #a0aec0; font-size: 12px; margin: 14px 0 0; }
.oct-source a { color: #764ba2; margin-left: 4px; }
.oct-gyg-widget { margin-top: 12px; min-height: 120px; }
.oct-link { color: #764ba2; font-size: 14px; }
.oct-back { display: inline-block; color: #764ba2; font-size: 14px; margin-bottom: 14px; text-decoration: none; }

.oct-btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}
.oct-btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.oct-btn-primary:hover { opacity: 0.92; }
.oct-btn-primary[disabled] { background: #cbd5e0; color: #4a5568; cursor: not-allowed; }
.oct-btn-secondary { background: #edf2f7; color: #2d3748; }

.oct-alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.oct-alert-error { background: #fed7d7; color: #822727; }
.oct-alert-info { background: #ebf4ff; color: #2c5282; }
.oct-alert-warning { background: #fffaf0; color: #744210; border: 1px solid #fbd38d; }

/* ---- Form ---- */

.oct-hero { text-align: center; padding: 20px 0 8px; }
.oct-hero h1 { font-size: 30px; margin: 4px 0 10px; }
.oct-hero p { color: #718096; font-size: 16px; max-width: 620px; margin: 0 auto; line-height: 1.5; }
.oct-hero-points {
    list-style: none;
    padding: 0;
    margin: 18px auto 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    font-size: 14px;
    color: #4a5568;
}
.oct-hero-points li::before { content: "✓ "; color: #48bb78; font-weight: 700; }

.oct-form { max-width: 640px; margin: 0 auto 20px; }
.oct-fieldset { border: none; padding: 0; margin: 0 0 22px; }
.oct-fieldset legend { font-size: 17px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.oct-label { display: block; font-size: 13px; font-weight: 600; color: #4a5568; margin-bottom: 6px; }
.oct-label-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 6px; }
.oct-label-row .oct-label { margin: 0; }
.oct-label-row .oct-hint { margin: 0; }

.oct-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #2d3748;
}
.oct-input:focus { outline: none; border-color: #764ba2; box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.15); }

.oct-row { display: flex; gap: 12px; }
.oct-field { flex: 1; min-width: 0; }

.oct-child-ages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.oct-child-age { font-size: 13px; color: #4a5568; display: flex; align-items: center; gap: 6px; }
.oct-child-age select { width: auto; padding: 8px 10px; }

.oct-credits { background: #f0fff4; color: #22543d; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.oct-credits p { margin: 0; }
.oct-credits-empty { color: #744210; }
.oct-credits a { color: #764ba2; font-weight: 600; margin-left: 4px; }
.oct-submit { width: 100%; font-size: 16px; padding: 14px; }
.oct-guest { text-align: center; }
.oct-guest p { color: #4a5568; font-size: 14px; }
.oct-guest .oct-btn { margin: 4px; }

/* ---- List ---- */

.oct-list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.oct-list-head h1 { margin: 0; font-size: 26px; }
.oct-trip-list { list-style: none; padding: 0; margin: 0; }
.oct-trip-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.oct-trip-card:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09); }
.oct-trip-country { display: block; font-size: 18px; margin-bottom: 4px; }
.oct-trip-meta { display: block; color: #718096; font-size: 14px; }
.oct-trip-cities { display: block; color: #4a5568; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.oct-trip-card-image .oct-trip-cities { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.oct-trip-card-image {
    min-height: 96px;
    color: #fff;
    background-image: linear-gradient(90deg, rgba(17, 17, 39, 0.82) 0%, rgba(17, 17, 39, 0.55) 55%, rgba(17, 17, 39, 0.3) 100%), var(--oct-trip-bg);
    background-size: cover;
    background-position: center;
}
.oct-trip-card-image .oct-trip-country { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.oct-trip-card-image .oct-trip-meta { color: rgba(255, 255, 255, 0.88); }
.oct-past-trips { margin-top: 24px; }
.oct-past-trips summary { cursor: pointer; color: #718096; font-weight: 600; margin-bottom: 12px; user-select: none; }
.oct-past-trips summary:hover { color: #4a5568; }
.oct-trip-list-past .oct-trip-card { filter: grayscale(1); opacity: 0.6; }
.oct-trip-list-past .oct-trip-card:hover { opacity: 0.85; }
.oct-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.oct-status.completed { background: #c6f6d5; color: #22543d; }
.oct-status.queued, .oct-status.generating { background: #ebf4ff; color: #2c5282; }
.oct-status.failed { background: #fed7d7; color: #822727; }
.oct-status-now { background: #fefcbf; color: #744210; }
.oct-trip-month { font-size: 16px; font-weight: 700; color: #4a5568; margin: 20px 0 8px; }

/* ---- Result ---- */

.oct-trip-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.oct-trip-header h1 { margin: 0 0 6px; font-size: 28px; }
.oct-trip-header .oct-trip-meta { display: inline; }
/* Text runs the full width here (and wraps on phones), so the overlay stays dark to the right edge */
.oct-trip-header.oct-trip-card-image {
    min-height: 200px;
    background-image: linear-gradient(90deg, rgba(17, 17, 39, 0.82) 0%, rgba(17, 17, 39, 0.62) 60%, rgba(17, 17, 39, 0.45) 100%), var(--oct-trip-bg);
}
.oct-trip-header.oct-trip-card-image h1 { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }

.oct-progress { text-align: center; }
.oct-spinner {
    width: 42px;
    height: 42px;
    margin: 4px auto 14px;
    border-radius: 50%;
    border: 4px solid #e9e3f5;
    border-top-color: #764ba2;
    animation: oct-spin 0.9s linear infinite;
}
@keyframes oct-spin { to { transform: rotate(360deg); } }
.oct-steps { list-style: none; padding: 0; margin: 18px auto 0; max-width: 340px; text-align: left; }
.oct-steps li { padding: 8px 0 8px 30px; position: relative; color: #a0aec0; font-size: 15px; }
.oct-steps li::before { content: "○"; position: absolute; left: 6px; }
.oct-steps li.active { color: #553c9a; font-weight: 700; }
.oct-steps li.active::before { content: "➜"; }
.oct-steps li.done { color: #2f855a; }
.oct-steps li.done::before { content: "✓"; }

.oct-failed { text-align: center; }

.oct-route { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.oct-route li { background: #f7f8fc; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #4a5568; }
.oct-route li strong { display: block; color: #2d3748; font-size: 16px; }
.oct-route li.base { background: #f3ebfb; }

.oct-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.oct-days { list-style: none; padding: 0; margin: 0; }
.oct-day { border-left: 3px solid #e2e8f0; padding: 4px 0 14px 16px; margin-left: 6px; }
.oct-day.arrival, .oct-day.departure { border-left-color: #a0aec0; }
.oct-day.day_trip { border-left-color: #48bb78; }
.oct-day.sightseeing { border-left-color: #764ba2; }
.oct-day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.oct-day-number { font-size: 12px; font-weight: 700; color: #fff; background: #764ba2; border-radius: 10px; padding: 2px 8px; }
.oct-day.day_trip .oct-day-number { background: #2f855a; }
.oct-day.arrival .oct-day-number, .oct-day.departure .oct-day-number { background: #718096; }
.oct-day-date { color: #718096; font-size: 13px; }
.oct-places { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.oct-place { display: flex; gap: 10px; align-items: center; background: #f7f8fc; border-radius: 10px; padding: 8px; }
.oct-place img, .oct-place-noimg { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.oct-place-noimg { overflow: hidden; }
.oct-place-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
/* The local name under a name shown translated */
.oct-place-local { display: block; font-weight: 400; font-size: 12px; color: #718096; }
.poi-translate-btn:not(.is-translated) + .oct-place-local { display: none; }
.oct-place-meta { font-size: 12px; color: #718096; display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; }

.oct-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.oct-offer { display: flex; flex-direction: column; gap: 6px; background: #f7f8fc; border-radius: 12px; padding: 14px; }
.oct-offer h3 { margin: 0; font-size: 16px; color: #2d3748; line-height: 1.3; }
.oct-offer-img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.oct-offer-tag { align-self: flex-start; background: #ebf4ff; color: #2c5282; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.oct-stars { color: #d69e2e; letter-spacing: 1px; }
.oct-offer-meta { font-size: 13px; color: #4a5568; }
.oct-amenities { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.oct-amenities li { background: #edf2f7; border-radius: 6px; padding: 1px 7px; font-size: 12px; color: #4a5568; }
.oct-price { margin-top: auto; padding-top: 6px; font-size: 13px; color: #718096; }
.oct-price strong { display: block; font-size: 20px; color: #2d3748; }
.oct-offer .oct-btn { text-align: center; }
/* Getting around: no price line pushes the button down, so keep it at the bottom whatever the text above. */
.oct-car .oct-btn, .oct-taxi .oct-btn { margin-top: auto; }
.oct-flight-legs { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13px; }
.oct-flight-legs dt { color: #718096; }
.oct-flight-legs dd { margin: 0; font-weight: 600; }

.oct-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.oct-card .oct-heading h2 { margin: 0; }
.oct-info { position: relative; }
.oct-info summary { list-style: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; background: #edf2f7; color: #4a5568; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; user-select: none; }
.oct-info summary::-webkit-details-marker { display: none; }
.oct-info summary:hover, .oct-info[open] summary { background: #764ba2; color: #fff; }
.oct-info summary:focus-visible { outline: 2px solid #764ba2; outline-offset: 2px; }
.oct-info-panel { position: absolute; z-index: 20; top: 30px; left: -10px; width: min(340px, calc(100vw - 48px)); background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); padding: 12px 14px; font-size: 13px; line-height: 1.5; color: #4a5568; font-weight: normal; }
.oct-info-panel p { margin: 0 0 8px; }
.oct-info-panel a { color: #764ba2; }
.oct-disclaimer { color: #718096; font-size: 12px; line-height: 1.5; margin: 8px 4px 24px; }
.oct-disclaimer a { color: #764ba2; }
.oct-accept { align-items: flex-start; margin: 16px 0 12px; font-size: 13px; line-height: 1.5; color: #4a5568; cursor: default; }
.oct-accept input { margin-top: 2px; flex-shrink: 0; }
.oct-accept input:checked + span { text-decoration: none; color: #4a5568; }
.oct-accept a { color: #764ba2; }
.oct-accept.oct-weather-emails { margin-bottom: 0; }

.oct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.oct-grid .oct-card { margin-bottom: 0; }
.oct-grid + .oct-card { margin-top: 20px; }

.oct-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 14px; }
.oct-facts dt { color: #718096; }
.oct-facts dd { margin: 0; font-weight: 600; }
.oct-facts-wide { grid-template-columns: repeat(2, auto 1fr); }

.oct-packing-group h3:first-child { margin-top: 0; }
.oct-check { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.oct-check input { width: 16px; height: 16px; accent-color: #764ba2; }
.oct-check input:checked + span { text-decoration: line-through; color: #a0aec0; }

.oct-tips { margin-top: 18px; }
.oct-tips details { border-top: 1px solid #edf2f7; padding: 10px 0; }
.oct-tips summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.oct-ai-skip { margin-top: 16px; }
.oct-ai-skip .oct-hint { margin-top: 8px; }
.oct-ai-pending { display: flex; align-items: center; gap: 10px; }
.oct-place-ai { font-size: 13px; line-height: 1.4; color: #4a5568; margin-top: 4px; }
.oct-ai-badge { display: inline-block; font-size: 11px; font-weight: 600; color: #553c9a; background: #faf5ff;
    border: 1px solid #d6bcfa; border-radius: 10px; padding: 0 7px; margin-right: 4px; }
.oct-ai-summary { white-space: pre-line; font-size: 15px; line-height: 1.6; color: #2d3748; }
.oct-tip-text { white-space: pre-line; font-size: 14px; line-height: 1.6; color: #4a5568; margin-top: 8px; }

@media (max-width: 700px) {
    .oct-grid { grid-template-columns: 1fr; }
    .oct-grid .oct-card { margin-bottom: 20px; }
    .oct-facts-wide { grid-template-columns: auto 1fr; }
    .oct-row { flex-direction: column; gap: 10px; }
    .oct-hero h1 { font-size: 24px; }
    .oct-card { padding: 18px; }
}

/* ---- Result: owner tools (price refresh, public link) ---- */

.oct-tools { display: grid; gap: 20px; }
.oct-tool { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; }
.oct-tool + .oct-tool { border-top: 1px solid #edf2f7; padding-top: 20px; }
.oct-tool h2 { font-size: 17px; margin: 0 0 4px; }
.oct-tool > div:first-child { flex: 1 1 280px; }
.oct-tool-action { flex: 0 1 auto; max-width: 100%; }
.oct-tool-action .oct-hint { max-width: 280px; }
.oct-share-link { flex: 1 1 320px; }
.oct-share-row { display: flex; gap: 8px; margin: 4px 0 8px; }
.oct-share-row input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    font-size: 13px;
    color: #2d3748;
    background: #f7fafc;
}
.oct-link-button {
    background: none;
    border: none;
    padding: 0;
    color: #c53030;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}
.oct-refreshing { display: flex; align-items: center; gap: 10px; color: #4a5568; font-size: 14px; max-width: 360px; }
.oct-spinner.oct-spinner-small { width: 18px; height: 18px; border-width: 3px; margin: 0; flex: none; }
.oct-shared-note a { color: #2c5282; font-weight: 700; margin-left: 6px; }

/* ---- Result: report an issue / conversation with support ---- */

.oct-support { margin-top: 20px; }
.oct-support-report > summary {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}
.oct-support-report > summary::-webkit-details-marker { display: none; }
.oct-support-report > summary .oct-hint { margin: 0; font-size: 14px; }
.oct-support-report[open] > summary .oct-btn { display: none; }
.oct-support-form { display: grid; gap: 10px; margin-top: 14px; }
.oct-support-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    resize: vertical;
}
.oct-support-form button { justify-self: start; }
.oct-thread { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.oct-msg { border-radius: 12px; padding: 12px 14px; max-width: 85%; }
.oct-msg.from-user { background: #ebf4ff; justify-self: end; }
.oct-msg.from-support { background: #f3eefb; border-left: 4px solid #764ba2; justify-self: start; }
.oct-msg-head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; margin-bottom: 4px; }
.oct-msg-head time { color: #718096; font-size: 12px; }
.oct-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }

/* Hotel budget and currency on the form. */
.oct-budget-row .oct-field { flex: 1 1 120px; }
.oct-currency-field { flex: 0 1 110px !important; }

/* Hotel / flight section head: title and "?" on the left, its refresh button on the right. */
.oct-offers-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.oct-offers-head .oct-heading { margin-bottom: 0; }
.oct-section-refresh { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.oct-section-refresh .oct-hint { margin: 0; max-width: 260px; }
.oct-tool-action { margin-left: auto; }

/* Hotel price range on the result page. */
.oct-budget { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; background: #f7f8fc; border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.oct-budget label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4a5568; }
.oct-budget input { width: 120px; }
.oct-budget .oct-budget-title { flex: 1 1 100%; font-size: 14px; font-weight: 600; color: #2d3748; margin: 0; }

/* Compact hotel section: intro and budget on one line, the budget form folded away. */
.oct-hotel-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.oct-budget-current { font-size: 13px; color: #4a5568; }
.oct-budget-edit > summary { cursor: pointer; list-style: none; display: inline-flex; gap: 8px; align-items: baseline; }
.oct-budget-edit > summary::-webkit-details-marker { display: none; }
.oct-budget-edit .oct-link { font-size: 13px; color: #764ba2; text-decoration: underline; }
.oct-budget-edit[open] { flex-basis: 100%; }
.oct-budget-edit .oct-budget { margin: 8px 0 0; padding: 10px 12px; }
.oct-budget-edit .oct-budget input { width: 110px; padding: 6px 8px; }
.oct-offers-compact { gap: 10px; margin-top: 10px; }
.oct-offers-compact .oct-offer { padding: 10px; gap: 4px; }
.oct-offers-compact .oct-offer-img { height: 90px; }
.oct-offers-compact .oct-offer h3 { font-size: 15px; }
.oct-offers-compact .oct-offer-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.oct-offers-compact .oct-price { padding-top: 2px; }
.oct-offers-compact .oct-price strong { display: inline; font-size: 17px; margin-right: 4px; }
.oct-offers-compact .oct-btn { padding: 7px 12px; font-size: 14px; }
.oct-offers-compact + p, .oct-offers-compact ~ .oct-source { margin-top: 10px; }

/* Weather: the figures in one row. */
.oct-facts-row { grid-template-columns: repeat(4, auto 1fr); }
@media (max-width: 640px) {
    .oct-facts-row { grid-template-columns: auto 1fr; }
}

/* Collapsible days on phones (the script in one-click-trip-view.html). */
@media (max-width: 640px) {
    .oct-day-head { cursor: pointer; }
    .oct-day-head::after { content: "▾"; margin-left: auto; color: #718096; }
    .oct-day.collapsed .oct-day-head { margin-bottom: 0; }
    .oct-day.collapsed .oct-day-head::after { content: "▸"; }
    .oct-day.collapsed > :not(.oct-day-head) { display: none; }
}

/* Countdown to the next monthly One Click Trips. */
.oct-renews { margin: 6px 0 0; font-size: 13px; color: #4a5568; }

/* Support is a Pro benefit: the upgrade offer in place of "Report an issue". */
.oct-support-pro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.oct-support-pro p { margin: 4px 0 0; }

/* No credits left: buy one more (or get Pro). */
.oct-buy-more { display: flex; flex-wrap: wrap; gap: 10px; }
/* Both choices the same size, side by side (stacked on narrow screens). */
.oct-buy-more .oct-btn { flex: 1 1 240px; width: auto; text-align: center; display: flex; align-items: center; justify-content: center; }

/* Dark launch: shown to admins while One Click Trip is switched off for users */
.oct-admin-preview {
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px dashed #d69e2e;
    border-radius: 8px;
    background: #fffaf0;
    color: #744210;
    font-size: 14px;
}

/* Section icons: black-and-white line pictograms next to the headings and the quick links. */
.oct-icon { width: 20px; height: 20px; flex-shrink: 0; color: #1a202c; }
.oct-h2 { display: flex; align-items: center; gap: 10px; }

/* Things to do, per city */
.oct-activity-city + .oct-activity-city { border-top: 1px solid #edf2f7; margin-top: 18px; padding-top: 4px; }
.oct-activity-city > h3 { font-size: 17px; color: #2d3748; }
.oct-image-credit { font-size: 11px; color: #a0aec0; margin-top: -4px; }
.oct-activity .oct-offer-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.oct-activity .oct-price strong { display: inline; font-size: 18px; }

/* Nearby cities for an extra day trip: proposed cities as cards, each chosen one's day plan as a collapsible panel */
#nearby-propose { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; }
#nearby-propose[hidden] { display: none; }
#nearby-propose[aria-busy="true"] { cursor: progress; opacity: 1; }
#nearby-propose .oct-spinner-small { width: 16px; height: 16px; }
.oct-nearby-loading { display: flex; align-items: center; gap: 8px; }
.oct-nearby-error { color: #c53030; }
.oct-nearby-cities { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.oct-nearby-city {
    width: 100%; height: 100%; text-align: left; font: inherit; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px;
    background: #f7f8fc; border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; color: #4a5568;
}
.oct-nearby-city:hover { border-color: #d6bcfa; }
.oct-nearby-city:focus-visible { outline: 2px solid #764ba2; outline-offset: 2px; }
.oct-nearby-city.chosen { background: #f3ebfb; border-color: #764ba2; }
.oct-nearby-city { position: relative; }
.oct-nearby-city[aria-busy="true"] { cursor: progress; border-color: #d6bcfa; }
/* Small spinner in the corner of the city card while its day plan loads. */
.oct-nearby-city[aria-busy="true"]::after {
    content: ''; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; box-sizing: border-box;
    border-radius: 50%; border: 3px solid #e9e3f5; border-top-color: #764ba2; animation: oct-spin 0.9s linear infinite;
}
.oct-nearby-name strong { color: #2d3748; font-size: 16px; }
.oct-nearby-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }
.oct-nearby-km { font-weight: 700; color: #764ba2; }
.oct-nearby-highlights { font-size: 12px; color: #718096; line-height: 1.4; }
.oct-nearby-plans:not(:empty) { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.oct-nearby-plan { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.oct-nearby-plan > summary {
    cursor: pointer; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 12px 16px; font-weight: 700; color: #2d3748;
}
.oct-nearby-plan > summary::-webkit-details-marker { display: none; }
.oct-nearby-plan > summary::before { content: '\25B8'; color: #764ba2; margin-right: 2px; transition: transform .15s; }
.oct-nearby-plan[open] > summary::before { transform: rotate(90deg); }
.oct-nearby-plan-title { flex: 1; }
.oct-nearby-plan-meta { font-size: 13px; font-weight: 400; color: #718096; }
.oct-nearby-plan-body { padding: 0 16px 16px; }
.oct-nearby-plan-body > h3 { font-size: 15px; color: #2d3748; margin: 14px 0 8px; }

/* Quick links to the sections: a sticky bar of chips under the navbar ... */
.oct-wrap [id] { scroll-margin-top: 124px; }
.oct-toc {
    position: sticky;
    top: 56px;
    z-index: 20;
    margin: 0 -16px 20px;
    padding: 8px 16px;
    background: rgba(247, 248, 252, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e2e8f0;
}
.oct-toc-title { display: none; }
.oct-toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.oct-toc ul::-webkit-scrollbar { display: none; }
.oct-toc a {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #2d3748;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.oct-toc a .oct-icon { width: 16px; height: 16px; }
.oct-toc a:hover { border-color: #1a202c; }
.oct-toc a.active { background: #1a202c; border-color: #1a202c; color: #fff; }
.oct-toc a.active .oct-icon { color: #fff; }

/* ... and a sidebar next to the page when there is room for it. */
@media (min-width: 1320px) {
    .oct-wrap [id] { scroll-margin-top: 76px; }
    .oct-toc {
        position: fixed;
        top: 80px;
        left: calc(50% - 440px - 220px);
        width: 196px;
        box-sizing: border-box;
        margin: 0;
        padding: 14px 10px;
        background: #fff;
        backdrop-filter: none;
        border: none;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .oct-toc-title { display: block; margin: 0 8px 8px; font-size: 12px; font-weight: 700; color: #718096; text-transform: uppercase; letter-spacing: 0.5px; }
    .oct-toc ul { flex-direction: column; gap: 2px; overflow: visible; }
    .oct-toc a { border: none; border-radius: 10px; padding: 8px 10px; white-space: normal; font-weight: 500; font-size: 14px; }
    .oct-toc a:hover { background: #f7f8fc; }
    .oct-toc a.active { background: #1a202c; color: #fff; }
}

/* Weather forecast (trip page) */
.oct-forecast-days { list-style: none; margin: 0; padding: 0; border: 1px solid #e8ecf4; border-radius: 8px; overflow: hidden; }
.oct-forecast-days li { display: grid; grid-template-columns: 96px 28px minmax(0, 1fr) auto 52px; grid-template-areas: "date icon label temp rain" "date icon city temp rain"; align-items: center; column-gap: 10px; padding: 8px 12px; font-size: 14px; }
.oct-forecast-days li + li { border-top: 1px solid #e8ecf4; }
.oct-forecast-days li.oct-forecast-changed { background: #fffbeb; }
.oct-forecast-date { grid-area: date; font-weight: 600; color: #2d3748; }
.oct-forecast-icon { grid-area: icon; font-size: 20px; line-height: 1; }
.oct-forecast-label { grid-area: label; color: #4a5568; }
.oct-forecast-city { grid-area: city; color: #a0aec0; font-size: 12px; }
.oct-forecast-temp { grid-area: temp; white-space: nowrap; color: #718096; }
.oct-forecast-temp strong { color: #2d3748; }
.oct-forecast-rain { grid-area: rain; text-align: right; color: #2b6cb0; font-size: 13px; white-space: nowrap; }
.oct-forecast-notice { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: #ebf8ff; color: #2c5282; font-size: 14px; }
.oct-forecast-notice-error { background: #fff5f5; color: #9b2c2c; }
.oct-forecast-updated { margin: 12px 0 0; font-size: 13px; color: #4a5568; }
.oct-forecast-refresh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; }
.oct-forecast-refresh .oct-hint { margin: 0; }
.oct-forecast-emails { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 12px 0 0; font-size: 13px; color: #4a5568; }
.oct-link-btn { background: none; border: none; padding: 0; color: #764ba2; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) {
    .oct-forecast-days li { grid-template-columns: 76px 24px minmax(0, 1fr) auto; grid-template-areas: "date icon label temp" "date icon city rain"; column-gap: 8px; }
}
