/* TripMaker Styles */

/* ==================== Design Tokens ==================== */

:root {
    --tm-primary: #362c5d;
    --tm-accent: #FFC166;
    --tm-flight: #0d6efd;
    --tm-hotel: #198754;
    --tm-activity: #6f42c1;
    --tm-exclusion: #dc3545;
    --tm-other-service: #fd7e14;
}

/* ==================== Breadcrumb ==================== */

.tm-breadcrumb {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

/* ==================== KPI Cards ==================== */

.tm-kpi-cards {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tm-kpi-card {
    flex: 1;
    min-width: 120px;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #dee2e6;
}

.tm-kpi-card.primary { border-top-color: var(--tm-primary); }
.tm-kpi-card.success { border-top-color: #198754; }
.tm-kpi-card.info { border-top-color: #0dcaf0; }
.tm-kpi-card.secondary { border-top-color: #6c757d; }

.tm-kpi-icon {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.tm-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
}

.tm-kpi-title {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== Filter Bar ==================== */

.tm-filter-bar {
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

/* ==================== Empty State ==================== */

.tm-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.tm-empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==================== Project Cards ==================== */

.project-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #dee2e6;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.project-card .card-header {
    background: linear-gradient(135deg, var(--tm-primary) 0%, #2a2149 100%);
    color: white;
    padding: 0.75rem 1rem;
}

.project-card .card-header h6 {
    margin-bottom: 0;
}

.info-row {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row i {
    width: 22px;
    color: #6c757d;
    margin-right: 8px;
}

/* ==================== Flight Cards ==================== */

.flight-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--tm-flight);
}

.flight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--tm-flight);
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.flight-endpoint {
    text-align: center;
    flex: 1;
}

.flight-endpoint .airport-code {
    font-size: 24px;
    font-weight: bold;
    color: var(--tm-flight);
}

.flight-endpoint .time {
    font-size: 18px;
    font-weight: 500;
    margin-top: 4px;
}

.flight-endpoint .date {
    font-size: 12px;
    color: #6c757d;
}

.flight-arrow {
    flex: 0 0 100px;
    text-align: center;
    position: relative;
    margin: 0 20px;
}

.flight-arrow i {
    font-size: 24px;
    color: var(--tm-flight);
}

.flight-duration {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
}

.flight-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

.flight-airline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.airline-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.flight-price {
    text-align: right;
}

.price-label {
    font-size: 12px;
    color: #6c757d;
}

.price-amount {
    font-size: 24px;
    font-weight: bold;
    color: #198754;
}

.price-per-person {
    font-size: 11px;
    color: #6c757d;
}

/* ==================== Flight Results Table ==================== */

.flight-results-table {
    font-size: 0.875rem;
}

.flight-results-table thead th {
    font-weight: 600;
    color: #495057;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

.flight-results-table tbody td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

.flight-results-table .airline-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

/* ==================== Accommodation Cards ==================== */

.accommodation-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.2s;
    border-left: 3px solid var(--tm-hotel);
}

.accommodation-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--tm-hotel);
}

.accommodation-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.accommodation-info {
    padding: 16px;
}

.hotel-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #212529;
}

.hotel-rating {
    color: #ffc107;
    margin-bottom: 8px;
}

.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.amenity-badge {
    font-size: 11px;
    padding: 4px 8px;
}

/* ==================== Activity Calendar ==================== */

.activity-day {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: white;
    border-left: 3px solid var(--tm-activity);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tm-activity);
}

.day-date {
    font-size: 18px;
    font-weight: bold;
    color: var(--tm-activity);
}

.time-slot {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--tm-activity);
}

.time-slot-header {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.activity-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    transition: all 0.2s;
}

.activity-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.activity-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6c757d;
}

/* ==================== Exclusion Cards ==================== */

.exclusion-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exclusion-card {
    background: white;
    border: 1px solid #dee2e6;
    border-left: 3px solid var(--tm-exclusion);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: box-shadow 0.2s;
}

.exclusion-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exclusion-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.exclusion-card-body .exclusion-text {
    flex: 1;
    color: #495057;
    font-size: 0.95rem;
}

.exclusion-card-body .exclusion-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* ==================== Quick-Add Bar ==================== */

.quick-add-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.quick-add-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--tm-exclusion);
    border-radius: 1rem;
    background: white;
    color: var(--tm-exclusion);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-add-pill:hover {
    background: var(--tm-exclusion);
    color: white;
}

.quick-add-pill.disabled {
    opacity: 0.4;
    pointer-events: none;
    border-color: #adb5bd;
    color: #adb5bd;
}

/* ==================== Cost Review Page ==================== */

.cost-table {
    font-size: 14px;
}

.cost-table thead th {
    font-weight: 600;
    color: #495057;
    padding: 10px 12px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.cost-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
}

.cost-margin-cell {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-block;
}

.cost-margin-cell:hover {
    background: #e9ecef;
}

.cost-margin-input {
    font-size: 13px;
}

tr.cost-manually-adjusted {
    background: #fffbeb;
}

tr.cost-manually-adjusted:hover {
    background: #fff3cd;
}

.cost-total-row td {
    border-top: 2px solid #212529 !important;
    font-weight: 700;
    padding-top: 12px !important;
}

.cost-type-icon {
    font-size: 1.1rem;
}

.global-margin-bar {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==================== AI Brief Card ==================== */

.ai-brief-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    background: white;
    border-left: 3px solid var(--tm-accent);
}

.ai-brief-card.loading {
    opacity: 0.6;
}

.ai-brief-card.error {
    border-left-color: var(--tm-exclusion);
}

/* ==================== Itinerary Strip ==================== */

.itin-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.itin-pill {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.itin-pill:hover,
.itin-pill.active {
    background: var(--tm-primary);
    color: white;
    border-color: var(--tm-primary);
}

/* ==================== Section Cards ==================== */

.tm-section-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: white;
    margin-bottom: 1rem;
    overflow: hidden;
}

.tm-section-card .card-header {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.btn-xs {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1.4;
}

/* ==================== Section Card Item List ==================== */

.tm-card-items {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #495057;
    max-height: 120px;
    overflow-y: auto;
}

.tm-card-items li {
    padding: 0.2rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-card-items li:last-child {
    border-bottom: none;
}

/* ==================== Exclusion Pills (KPI Card) ==================== */

.tm-exclusion-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
}

.tm-exclusion-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #fce4ec;
    color: #9a3040;
    border-radius: 1rem;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ==================== Destination Autocomplete ==================== */

.dest-autocomplete {
    position: absolute;
    z-index: 1060;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    max-height: 250px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dest-autocomplete li {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.dest-autocomplete li:hover {
    background: #e9ecef;
}

/* ==================== Destination Chips ==================== */

.dest-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.5rem;
    background: var(--tm-primary);
    color: white;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin: 0.125rem;
}

.dest-chip .remove {
    cursor: pointer;
    opacity: 0.8;
}

.dest-chip .remove:hover {
    opacity: 1;
}

/* ==================== Loading States ==================== */

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    height: 20px;
    margin-bottom: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== Status Badges ==================== */

.status-draft { background-color: #6c757d; }
.status-active { background-color: #198754; }
.status-quoted { background-color: #0dcaf0; }
.status-closed { background-color: #343a40; }

/* ==================== Badges ==================== */

.badge-option {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
}

/* ==================== Modal Improvements ==================== */

.modal-header.bg-primary {
    background: linear-gradient(135deg, var(--tm-primary) 0%, #2a2149 100%) !important;
}

/* ==================== Animations ==================== */

.fade-in-up {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ==================== Responsive Adjustments ==================== */

@media (max-width: 768px) {
    .tm-kpi-cards {
        flex-direction: column;
    }

    .tm-kpi-card {
        min-width: auto;
    }

    .flight-route {
        flex-direction: column;
    }

    .flight-arrow {
        transform: rotate(90deg);
        margin: 16px 0;
    }

    .flight-details {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .accommodation-card {
        margin-bottom: 20px;
    }
}

/* ==================== Project Header ==================== */

.tm-project-header {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.tm-project-header h4 {
    margin-bottom: 0.25rem;
}

.tm-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #495057;
    margin-top: 0.5rem;
}

.tm-meta-row .meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tm-meta-row .meta-item i {
    color: #6c757d;
}

/* ==================== Preparedness Icons ==================== */

.tm-preparedness {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.tm-preparedness-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.tm-preparedness-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    background: #dee2e6;
}

.tm-preparedness-icon.ready {
    background: #198754;
}

.tm-preparedness-icon.partial {
    background: #ffc107;
}

.tm-preparedness-icon.empty {
    background: #dee2e6;
}

/* ==================== Cost Summary Card ==================== */

.tm-cost-summary {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-top: 3px solid var(--tm-primary);
}

.tm-cost-summary h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.tm-cost-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: #495057;
}

.tm-cost-row .label {
    color: #6c757d;
}

.tm-cost-total {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    border-top: 2px solid #dee2e6;
    margin-top: 0.5rem;
}

/* ==================== AI Brief Extensions ==================== */

.ai-brief-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ai-timing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.ai-timing-badge.score-1 { background: #dc3545; }
.ai-timing-badge.score-2 { background: #fd7e14; }
.ai-timing-badge.score-3 { background: #ffc107; color: #212529; }
.ai-timing-badge.score-4 { background: #0d6efd; }
.ai-timing-badge.score-5 { background: #198754; }

.ai-area-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

@media (max-width: 991.98px) {
    .ai-area-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .ai-area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tm-area-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
}

.tm-area-card:hover {
    border-color: var(--tm-hotel);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tm-area-card h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--tm-primary);
}

.tm-area-card p {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.tm-area-card .highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.tm-area-card .highlights-list li::before {
    content: "\2022";
    color: var(--tm-accent);
    font-weight: bold;
    margin-right: 0.35rem;
}

.ai-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

@media (max-width: 991.98px) {
    .ai-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .ai-highlights-grid {
        grid-template-columns: 1fr;
    }
}

.tm-highlight-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0;
    border-left: 3px solid var(--tm-activity);
}

.tm-highlight-card:hover {
    border-color: var(--tm-activity);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tm-highlight-card .hl-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.tm-highlight-card .hl-desc {
    font-size: 0.8rem;
    color: #495057;
    margin-bottom: 0.25rem;
}

.tm-highlight-card .hl-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    gap: 0.75rem;
}

.ai-feedback-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.ai-feedback-bar .btn {
    font-size: 0.85rem;
}

.ai-feedback-bar .btn.voted {
    opacity: 0.5;
    pointer-events: none;
}

.ai-practical-section summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem 0;
    color: #495057;
}

.ai-practical-section .practical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #495057;
    padding: 0.5rem 0;
}

.ai-practical-section .practical-item .practical-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.15rem;
}

.itin-pill .pill-actions {
    display: none;
    gap: 0.15rem;
    margin-left: 0.25rem;
}

.itin-pill:hover .pill-actions {
    display: inline-flex;
}

.itin-pill .pill-actions .pill-action-btn {
    background: none;
    border: none;
    padding: 0 2px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.7;
    color: inherit;
}

.itin-pill .pill-actions .pill-action-btn:hover {
    opacity: 1;
}

.itin-pill.active .pill-actions {
    display: inline-flex;
}

/* ==================== PDF Section ==================== */

.tm-pdf-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
}

/* Disable global card hover scale for all TripMaker pages */
.card:hover {
    transform: none;
    -webkit-transform: none;
}

/* ==================== Hotel Search Results ==================== */

.hotel-result-card {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.hotel-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hotel-result-thumb {
    flex: 0 0 120px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-result-thumb img.hotel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-result-thumb .hotel-thumb-placeholder {
    font-size: 2.5rem;
    color: #adb5bd;
}

.hotel-result-body {
    flex: 1;
    padding: 0.75rem 1rem;
    min-width: 0;
}

.hotel-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.hotel-result-header h6 {
    font-weight: 600;
    color: var(--tm-primary);
}

.hotel-result-price {
    white-space: nowrap;
}

.hotel-stars {
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.hotel-result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #495057;
}

.hotel-result-details i {
    margin-right: 0.2rem;
}

.hotel-result-action {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-left: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .hotel-result-card {
        flex-direction: column;
    }

    .hotel-result-thumb {
        flex: none;
        height: 120px;
    }

    .hotel-result-action {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding: 0.75rem;
        justify-content: center;
    }
}

/* ==================== Hotel Group Cards ==================== */

.hotel-group-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: white;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.hotel-group-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.hotel-group-thumb {
    flex: 0 0 100px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hotel-group-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-group-img-placeholder {
    font-size: 2rem;
    color: #adb5bd;
}

.hotel-group-body {
    padding: 0.5rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hotel-group-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--tm-primary);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotel-group-body .hotel-stars {
    margin-bottom: 0.15rem;
}

.hotel-group-location {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.hotel-group-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.hotel-group-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.85rem;
}

/* ==================== Activity View Toggle ==================== */

.activity-view-toggle .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.activity-view-toggle .btn.active {
    background: var(--tm-activity);
    border-color: var(--tm-activity);
    color: white;
}

/* ==================== Activity Calendar Grid ==================== */

.activity-calendar {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-bottom: 1rem;
}

.calendar-day-col {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 260px;
}

.calendar-day-header {
    background: var(--tm-activity);
    color: white;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.calendar-slot {
    border-bottom: 1px solid #f0f0f0;
    padding: 0.4rem 0.5rem;
    min-height: 52px;
    position: relative;
}

.calendar-slot:last-child {
    border-bottom: none;
}

.calendar-slot-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
    margin-bottom: 0.2rem;
}

.activity-chip {
    background: var(--tm-activity);
    color: white;
    border-radius: 0.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-chip:hover {
    background: #5a32a3;
}

.activity-chip .chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.activity-chip .chip-remove {
    display: none;
    cursor: pointer;
    opacity: 0.8;
    flex-shrink: 0;
    font-size: 0.7rem;
}

.activity-chip:hover .chip-remove {
    display: inline;
}

.calendar-slot-empty {
    color: #dee2e6;
    font-size: 0.75rem;
    font-style: italic;
    padding: 0.2rem 0;
}

/* ==================== Experience Cards (Search Results) ==================== */

.experience-card {
    display: flex;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.experience-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.experience-card-img {
    flex: 0 0 160px;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, #6f42c1 0%, #4a1d96 100%);
}

.experience-card-img-placeholder {
    flex: 0 0 160px;
    height: 140px;
    background: linear-gradient(135deg, #6f42c1 0%, #4a1d96 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
}

.experience-card-body {
    flex: 1;
    padding: 0.75rem 1rem;
    min-width: 0;
}

.experience-card-body h6 {
    font-weight: 600;
    color: var(--tm-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.experience-card-body .tagline {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.experience-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.experience-rating .stars {
    color: #ffc107;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.experience-card-price {
    white-space: nowrap;
    text-align: right;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    border-left: 1px solid #f0f0f0;
    min-width: 120px;
}

.experience-card-price .price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #198754;
}

.experience-card-price .price-label {
    font-size: 0.7rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .experience-card {
        flex-direction: column;
    }

    .experience-card-img,
    .experience-card-img-placeholder {
        flex: none;
        width: 100%;
        height: 120px;
    }

    .experience-card-price {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 1rem;
    }

    .activity-calendar {
        grid-template-columns: 1fr;
    }
}

/* ==================== Print Styles ==================== */

@media print {
    .tm-filter-bar,
    .tm-breadcrumb,
    button,
    .btn,
    .d-print-none {
        display: none !important;
    }

    .project-card {
        break-inside: avoid;
    }

    .tm-kpi-card {
        border: 1px solid #dee2e6;
    }
}
