/* ============================================================
   tour-package.css — Trip Designer Tour Package Page
   ============================================================ */

/* Hero — shared B2C pattern */
.tp-hero {
    position: relative;
    background: url('../../images/hero-beach.jpg') center/cover no-repeat, #0e1f5c;
    padding: 36px 0 56px;
    overflow: visible;
}
.tp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,17,84,.82) 0%, rgba(30,64,175,.55) 50%, rgba(4,16,124,.82) 100%);
    z-index: 0;
    pointer-events: none;
}
.tp-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 40px;
    background: #f4f6fb;
    clip-path: ellipse(70% 100% at 50% 100%);
    z-index: 0;
    pointer-events: none;
}
.tp-hero-inner { position: relative; z-index: 3; }
.tp-search-bar { position: relative; z-index: 10; }
.tp-autocomplete-list { z-index: 100 !important; }
.tp-hero-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.tp-hero-inner { position: relative; z-index: 2; text-align: center; }
.tp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(251,191,36,.15);
    border: 1px solid rgba(251,191,36,.4);
    color: #fcd34d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 5px;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(251,191,36,.18);
}
.tp-hero h1 {
    font-size: 2.1rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.tp-hero h1 span { color: #fbbf24; }
.tp-hero-sub {
    color: rgba(255,255,255,.88);
    font-size: .95rem;
    margin-bottom: 18px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.tp-hero-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.tp-hero-stat {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 5px;
    padding: 8px 18px;
    min-width: 100px;
    backdrop-filter: blur(8px);
    text-align: center;
    transition: transform .2s, background .2s;
}
.tp-hero-stat:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); }
.tp-hero-stat-num { font-size: 1.35rem; font-weight: 900; color: #fbbf24; display: block; line-height: 1; }
.tp-hero-stat-lbl { font-size: .7rem; color: rgba(255,255,255,.85); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; display: block; margin-top: 3px; }

/* Search bar (shared B2C pattern — matches visa page) */
.tp-search-bar {
    display: flex;
    gap: 0;
    background: #fff;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 5px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    position: relative;
    z-index: 10;
}
.tp-autocomplete-wrap { flex: 1; position: relative; min-width: 0; }
.tp-search-select {
    width: 100%;
    padding: 11px 18px;
    border: none;
    font-size: .9rem;
    color: #1e293b;
    outline: none;
    background: transparent;
}
.tp-search-select::placeholder { color: #94a3b8; font-weight: 400; }

.tp-autocomplete-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 5px;
    box-shadow: 0 12px 40px rgba(0,0,0,.16);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}
.tp-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.tp-ac-item:last-child { border-bottom: none; }
.tp-ac-item:hover { background: #eef2ff; color: var(--tp, #04107C); }
.tp-ac-item img { width: 28px; height: 20px; border-radius: 3px; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.tp-search-btn {
    padding: 0 26px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--tp, #04107C);
    border: none;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
}
.tp-search-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateX(2px);
}

/* Page body */
.tp-body {
    background: #f4f6fb;
    padding: 32px 0 60px;
}

/* Country filter pills */
.tp-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.tp-filter-pill {
    padding: 6px 16px;
    border-radius: 5px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.tp-filter-pill:hover, .tp-filter-pill.active {
    background: var(--tp, #04107C);
    border-color: var(--tp, #04107C);
    color: #fff;
    text-decoration: none;
}

/* Package grid */
.tp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 991px) { .tp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tp-grid { grid-template-columns: 1fr; } }

/* Package card */
.tp-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    border: 1.5px solid #e8eaf0;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: all .2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.tp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(4,16,124,.12);
    border-color: #c7d2fe;
    text-decoration: none;
    color: inherit;
}
.tp-card-img {
    position: relative;
    height: 190px;
    overflow: hidden;
}
.tp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.tp-card:hover .tp-card-img img { transform: scale(1.05); }
.tp-card-country {
    position: absolute;
    top: 12px; left: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--tp, #04107C);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 5px;
    letter-spacing: .3px;
    box-shadow: 0 2px 8px rgba(251,191,36,.4);
}
.tp-card-nights {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
}
.tp-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.tp-card-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tp-card-includes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.tp-card-include {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #064e3b;
    background: #d1fae5;
    padding: 3px 9px;
    border-radius: 5px;
}
.tp-card-include i { font-size: 10px; }
.tp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f3fb;
}
.tp-card-price-label { font-size: 11px; color: #94a3b8; font-weight: 600; }
.tp-card-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--tp, #04107C);
    line-height: 1;
}
.tp-card-price span { font-size: 11px; color: #64748b; font-weight: 600; }
.tp-card-btn {
    background: var(--tp, #04107C);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background .2s;
}
.tp-card-btn:hover { background: #1a2fa8; color: #fff; text-decoration: none; }

/* Placeholder */
.tp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e3a5f 0%, var(--tp, #04107C) 50%, #312e81 100%);
}
.tp-ph-flag {
    width: 56px;
    height: 38px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.tp-ph-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
}
.tp-ph-nights {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    font-weight: 600;
}

/* Empty */
.tp-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.tp-empty i { font-size: 48px; margin-bottom: 14px; display: block; }
