.trip-destination {
    background: #f3f4f6;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color, #1f2937);
    border: 1px solid #e5e7eb;
}

.trip-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.trip-input:focus {
    outline: none;
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* Travel style pills */
.style-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.style-pill {
    cursor: pointer;
    margin: 0;
}
.style-pill input {
    display: none;
}
.style-pill span {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    user-select: none;
}
.style-pill input:checked + span {
    border-color: var(--primary, #3b82f6);
    background: var(--primary, #3b82f6);
    color: white;
}
.style-pill:hover span {
    border-color: var(--primary, #3b82f6);
}

/* Submit button */
.trip-btn {
    background: var(--primary, #3b82f6);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.trip-btn:hover {
    filter: brightness(1.1);
}
.trip-btn:active {
    transform: scale(0.98);
}
.trip-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading spinner */
.trip-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--primary, #3b82f6);
    border-radius: 50%;
    animation: tripSpin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes tripSpin {
    to { transform: rotate(360deg); }
}

/* Itinerary */
.trip-intro {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.trip-print-brand {
    display: none;
}

.trip-hotel-card {
    background: white;
    border: 2px solid var(--primary, #3b82f6);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.trip-hotel-img {
    width: 260px;
    min-height: 200px;
    background: #f3f4f6;
    flex-shrink: 0;
}
.trip-hotel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trip-hotel-info {
    padding: 1.25rem 1.25rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.trip-hotel-info h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}
.trip-hotel-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.trip-day {
    margin-bottom: 2.5rem;
}
.trip-day-header {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--primary, #3b82f6);
    display: inline-block;
}
.trip-day-narrative {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.trip-slot {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s;
}
.trip-slot:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.trip-slot-thumb {
    width: 140px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}
.trip-slot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trip-slot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #1e40af));
    opacity: 0.85;
    padding: 0.5rem;
    text-align: center;
}
.trip-slot-placeholder .ph-icon {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}
.trip-slot-placeholder .ph-name {
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}
.trip-slot-info {
    flex: 1;
    min-width: 0;
}
.trip-slot-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.trip-slot-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.trip-slot-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}
.trip-slot-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}
.trip-slot-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-self: center;
}
.trip-book-btn {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--primary, #3b82f6);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: filter 0.2s;
}
.trip-book-btn:hover {
    filter: brightness(1.1);
    color: white;
}
.trip-visit-btn {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid #d1d5db;
    color: #6b7280;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.trip-visit-btn:hover {
    border-color: var(--primary, #3b82f6);
    color: var(--primary, #3b82f6);
}

/* Action bar */
.trip-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.trip-action-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #d1d5db;
    background: white;
    color: #374151;
    transition: all 0.2s;
}
.trip-action-btn:hover {
    border-color: var(--primary, #3b82f6);
    color: var(--primary, #3b82f6);
}

/* Print styles */
@media print {
    .site-header, .site-footer, #trip-form-section, #trip-loading,
    #trip-error, .trip-actions, .trip-book-btn, .trip-visit-btn,
    .trip-slot-actions, .nav-toggle { display: none !important; }
    .trip-print-brand {
        display: block !important;
        text-align: center;
        font-size: 1.4rem;
        font-weight: 700;
        padding: 0.5rem 0 1rem;
        border-bottom: 2px solid #333;
        margin-bottom: 1rem;
    }
    .trip-page { max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
    .trip-slot, .trip-hotel-card { break-inside: avoid; }
    .trip-day { break-before: auto; }
    body { background: white !important; }
}

/* Mobile */
@media (max-width: 600px) {
    .trip-hotel-card { flex-direction: column; }
    .trip-hotel-img { width: 100%; min-height: 200px; }
    .trip-hotel-info { padding: 1rem; }
    .trip-slot { flex-wrap: wrap; }
    .trip-slot-thumb { width: 100px; height: 80px; }
    .trip-slot-actions { flex-direction: row; align-self: flex-start; }
}
