.search-form { 
    background: var(--card-bg); padding: 15px; border-radius: 8px; margin-bottom: 20px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; flex-direction: column; gap: 10px;
}

.search-form input, .search-form select, .search-form button { 
    padding: 10px; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; width: 100%; box-sizing: border-box;
}

.search-form button { background-color: var(--primary-color); color: white; border: none; cursor: pointer; font-weight: bold; }
.search-form button:hover { background-color: #0056b3; }

.shared-search-form {
    gap: 12px;
    padding: 20px;
}

.destination-field { position: relative; width: 100%; }
.destination-field > input[type="text"] { min-height: 48px; font-size: 1.05rem; }

.destination-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    margin: 2px 0 0;
    padding: 4px 0;
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.destination-suggestions[hidden] { display: none; }
.destination-suggestions li { padding: 9px 12px; cursor: pointer; }
.destination-suggestions li:hover, .destination-suggestions li.is-active { background: #e7f1ff; }
.destination-suggestions li small { color: #6c757d; margin-left: 6px; }

.shared-search-form h3 { margin: 0 0 2px; }
.shared-search-form > input[type="text"] { min-height: 48px; font-size: 1.05rem; }
.shared-search-criteria {
    overflow: hidden;
    border: 1px solid #dfe4e8;
    border-radius: 6px;
    background: #f8f9fa;
}

.shared-search-criteria > summary {
    padding: 11px 13px;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside;
}

.shared-search-criteria[open] > summary { border-bottom: 1px solid #dfe4e8; }
.shared-search-criteria-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 14px; }
.shared-search-criteria-fields > label { display: flex; flex-direction: column; gap: 5px; color: #495057; font-size: 0.78rem; font-weight: 700; }
.shared-search-criteria-fields input[type="text"],
.shared-search-criteria-fields select { width: 100%; min-height: 38px; box-sizing: border-box; padding: 8px 9px; border: 1px solid #ced4da; border-radius: 4px; background: #fff; color: #333; font: inherit; font-weight: 400; }
.shared-search-particularities { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; padding: 9px 12px; border: 1px solid #dfe4e8; border-radius: 4px; }
.shared-search-particularities legend { padding: 0 4px; color: #495057; font-size: 0.78rem; font-weight: 700; }
.shared-search-particularities label { display: inline-flex; align-items: center; gap: 6px; color: #495057; font-size: 0.8rem; }
.shared-search-particularities input { accent-color: var(--primary-color); }

.search-form .shared-search-submit {
    min-height: 48px;
    padding: 12px 16px;
    background: #007bff;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.search-form .shared-search-submit:hover { background: #0056b3; }
.shared-search-results-title { margin: 0 0 12px; color: #343a40; font-size: 1.05rem; }
.shared-search-status { padding: 14px; color: #66717a; text-align: center; }
.shared-search-error { color: #b42332; }

.trip-card { 
    background: var(--card-bg); padding: 15px; border-radius: 8px; margin-bottom: 10px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background 0.2s;
}
.trip-card:hover { background: #f1f3f5; }

.shared-trip-card {
    --card-hue: calc(190 + var(--trip-card-index, 0) * 35);
    min-height: 42px;
    gap: 10px;
    margin-bottom: 5px;
    padding: 4px 10px;
    border: 0;
    border-left: 4px solid hsl(var(--card-hue) 55% 48%);
    border-radius: 5px;
    background: hsl(var(--card-hue) 70% 97%);
    color: inherit;
    text-align: left;
    font: inherit;
}

.shared-trip-card:hover { background: hsl(var(--card-hue) 65% 92%); }
.shared-trip-card-main {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.shared-trip-card-main:focus-visible,
.shared-trip-favorite:focus-visible { outline: 2px solid hsl(var(--card-hue) 65% 42%); outline-offset: 2px; }
.shared-trip-card-flag { flex: 0 0 30px; font-size: 1.45rem; line-height: 1; text-align: center; }
.shared-trip-flag-img { display: block; width: 28px; height: 21px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
.shared-trip-card-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.shared-trip-card-title { overflow-wrap: anywhere; font-size: 0.9rem; }
.shared-trip-card-title > span { color: #58636c; font-weight: 400; }
.shared-trip-card-details { overflow: hidden; color: #64717b; font-size: 0.73rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.shared-trip-owner-avatar { flex: 0 0 32px; width: 32px; height: 32px; box-sizing: border-box; font-size: 0.72rem; cursor: default; }
.shared-trip-owner-avatar:hover { transform: none; }
.shared-trip-favorite { flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #78838b; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.shared-trip-favorite:hover,
.shared-trip-favorite.is-favorite { color: #df9b00; }

.trip-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 16px;
}
.trip-page-dot, .trip-page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #cbd4da;
    border-radius: 50%;
    background: #fff;
    color: #34434c;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}
.trip-page-dot:hover, .trip-page-arrow:hover:not(:disabled) { background: #eef3f6; }
.trip-page-dot.is-current { background: var(--primary-color, #007bff); border-color: var(--primary-color, #007bff); color: #fff; font-weight: 700; cursor: default; }
.trip-page-arrow:disabled { color: #b5bdc2; cursor: default; opacity: 0.6; }

.my-trip-list-group { margin: 0 0 24px; }
.my-trip-list-heading { margin: 0 0 10px; padding: 0 0 7px; border-bottom: 2px solid #dee4e8; color: #34434c; font-size: 1.05rem; }
.my-trip-list-empty { margin: 0; padding: 12px 2px; color: #707b83; font-size: 0.88rem; }
.my-trip-list-error { padding: 14px; color: #b42332; text-align: center; }
.my-trip-list-card {
    --card-hue: calc(190 + var(--trip-card-index, 0) * 35);
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    padding: 4px 10px;
    border-left: 4px solid hsl(var(--card-hue) 55% 48%);
    border-radius: 5px;
    background: hsl(var(--card-hue) 70% 97%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.my-trip-list-card-main { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.my-trip-list-card-main:hover .shared-trip-card-title strong { text-decoration: underline; }
.my-trip-list-card-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.my-trip-list-dates { color: #58656e; font-size: 0.73rem; }
.my-trip-status-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 12px; font-size: 0.68rem; font-weight: 700; }
.my-trip-status-public { background: #d7f0e2; color: #216b41; }
.my-trip-status-private { background: #e8eaed; color: #52606a; }
.my-trip-status-community { background: #fff0cc; color: #795800; }
.my-trip-favorite-remove { flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #df9b00; font-size: 1.3rem; cursor: pointer; }
.my-trip-favorite-remove:hover { background: rgba(223,155,0,0.12); }

/* Menu « trois points » à l'extrême droite des cartes de voyages */
.trip-card-menu-btn { flex: 0 0 32px; width: 32px; height: 32px; margin-right: -4px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #58656e; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.trip-card-menu-btn:hover, .trip-card-menu-btn:focus-visible { background: rgba(0, 0, 0, 0.09); outline: none; }
body.dark-mode .trip-card-menu-btn { color: #c3ccd6; }
body.dark-mode .trip-card-menu-btn:hover, body.dark-mode .trip-card-menu-btn:focus-visible { background: rgba(255, 255, 255, 0.12); }

/* Fenêtre « Copier et importer » */
.copy-trip-card { max-width: 440px; max-height: 90vh; overflow-y: auto; }
.copy-trip-card h3 { margin: 0 0 12px; }
.copy-trip-summary { padding: 10px 12px; border-radius: 8px; background: #f1f5f7; }
.copy-trip-meta { margin-top: 3px; color: #58656e; font-size: 0.8rem; }
.copy-trip-excerpt { margin: 8px 0 0; color: #3d4a52; font-size: 0.85rem; line-height: 1.4; }
.copy-trip-lead { margin: 14px 0 6px; font-weight: 600; font-size: 0.9rem; }
.copy-trip-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.copy-trip-option { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; cursor: pointer; }
.copy-trip-option small { color: #707b83; }
.copy-trip-separator { border: 0; border-top: 1px solid #dee4e8; margin: 12px 0; }
.copy-trip-note { margin: 12px 0 0; color: #707b83; font-size: 0.78rem; }
.copy-trip-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.copy-trip-actions button { padding: 8px 16px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.copy-trip-cancel { background: #e8eaed; color: #34434c; }
.copy-trip-confirm { background: #288eaf; color: #fff; }
.copy-trip-confirm:disabled { opacity: 0.6; cursor: wait; }
body.dark-mode .copy-trip-summary { background: #1b2028; }
body.dark-mode .copy-trip-meta, body.dark-mode .copy-trip-excerpt, body.dark-mode .copy-trip-note, body.dark-mode .copy-trip-option small { color: #aab4bf; }
body.dark-mode .copy-trip-cancel { background: #343c47; color: #e6edf3; }

.trip-inspired-by { margin: 12px 0 0; color: #58656e; font-size: 0.85rem; font-style: italic; }
body.dark-mode .trip-inspired-by { color: #aab4bf; }

.section-view { display: none; }
.section-view.active { display: block; }

@media (max-width: 600px) {
    .shared-search-form { padding: 14px; }
    .shared-search-criteria-fields { grid-template-columns: 1fr; }
    .shared-trip-card-details { white-space: normal; }
}

.full-width-create-bar {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #28a745;
    color: white;
    padding: 14px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background 0.2s;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}
.full-width-create-bar:hover { background-color: #218838; }

.partner-key-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 50%; background: #d1f0e0; color: #146c43; cursor: default; }
.shared-source-filter { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.shared-source-filter select { padding: 7px 12px; border: 1px solid #ced4da; border-radius: 999px; background: #fff; color: #343a40; font-size: 0.9rem; cursor: pointer; }
body.dark-mode .shared-source-filter select { background: #1d232c; border-color: #3b4552; color: #e6edf3; }