/* ============================================================
   work-permit.css — Trip Designer Work Permit Listing Page
   ============================================================ */

/* Hero — shared B2C pattern */
.wp-hero {
    position: relative;
    background: url('../../images/hero-beach.jpg') center/cover no-repeat, #0e1f5c;
    padding: 36px 0 56px;
    overflow: visible;
}
.wp-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;
}
.wp-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;
}
.wp-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;
}
.wp-hero-inner { position: relative; z-index: 3; text-align: center; }
.wp-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);
}
.wp-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);
}
.wp-hero h1 span { color: #fbbf24; }
.wp-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);
}
.wp-hero-stats {
    display: flex; gap: 10px; margin-bottom: 18px;
    flex-wrap: wrap; justify-content: center;
}
.wp-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;
}
.wp-hero-stat:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); }
.wp-hero-stat-num { font-size: 1.35rem; font-weight: 900; color: #fbbf24; display: block; line-height: 1; }
.wp-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 */
.wp-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;
}
.wp-autocomplete-wrap { flex: 1; position: relative; min-width: 0; }
.wp-search-input {
    width: 100%; padding: 11px 18px; border: none;
    font-size: .9rem; color: #1e293b; outline: none; background: transparent;
}
.wp-search-input::placeholder { color: #94a3b8; font-weight: 400; }
.wp-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;
}
.wp-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;
}
.wp-ac-item:last-child { border-bottom: none; }
.wp-ac-item:hover { background: #eef2ff; color: var(--tp, #04107C); }
.wp-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); }
.wp-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;
}
.wp-search-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateX(2px);
}

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

/* Filter pills */
.wp-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.wp-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;
}
.wp-filter-pill:hover, .wp-filter-pill.active { background: var(--tp, #04107C); border-color: var(--tp, #04107C); color: #fff; text-decoration: none; }

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

/* Card */
.wp-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;
}
.wp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(4,16,124,.12); border-color: #c7d2fe; text-decoration: none; color: inherit; }
.wp-card-img { position: relative; height: 180px; overflow: hidden; background: linear-gradient(135deg,#1e3a5f,var(--tp, #04107C)); }
.wp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wp-card:hover .wp-card-img img { transform: scale(1.05); }
.wp-card-country-badge {
    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);
}
.wp-card-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.wp-card-ph img { width: 56px; height: 38px; border-radius: 5px; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.wp-card-ph-name { font-size: 15px; font-weight: 800; color: #fff; }
.wp-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.wp-card-title { font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.wp-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.wp-card-badge {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; color: var(--tp, #04107C);
    background: #e0e7ff; padding: 3px 9px; border-radius: 5px;
}
.wp-card-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid #f0f3fb; }
.wp-card-btn {
    display: block; width: 100%; padding: 10px; text-align: center;
    background: var(--tp, #04107C); color: #fff; font-size: 13px; font-weight: 700;
    border-radius: 5px; text-decoration: none; transition: background .2s;
}
.wp-card-btn:hover { background: #1a2fa8; color: #fff; text-decoration: none; }

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