/* Yalla Smart Search — CSS v2.1
   Brand: warm beige bg, deep brown, gold accent, Tajawal font
   NOTE: Tajawal font is loaded by yalla-conversion-ui (single point).
   If using smart search without conversion-ui, uncomment the import below:
   @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap'); */

.yalla-search-wrap *,
.yalla-search-wrap *::before,
.yalla-search-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.yalla-search-wrap {
    font-family: 'Tajawal', sans-serif;
    max-width: 100%;
    position: relative;
}

/* Search Bar */
.yalla-sbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #E8D4A8;
    border-radius: 24px;
    padding: 10px 14px;
    transition: border-color .2s, box-shadow .2s;
}
.yalla-sbar.focused {
    border-color: #C8A45C;
    box-shadow: 0 0 0 3px rgba(200,164,92,.14);
}
.yalla-sbar-icon { color: #9A9A9A; flex-shrink: 0; }
.yalla-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #2B2B2B;
    background: transparent;
}
.yalla-search-input::placeholder { color: #9A9A9A; font-size: 13px; }
.yalla-clr-btn {
    background: none;
    border: none;
    color: #9A9A9A;
    font-size: 13px;
    cursor: pointer;
    display: none;
    padding: 0 2px;
    font-family: 'Tajawal', sans-serif;
}

/* Results container */
.yalla-results { margin-top: 8px; }

/* Section labels */
.yalla-section-label {
    font-size: 10px;
    font-weight: 800;
    color: #9A9A9A;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 10px 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.yalla-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E8D4A8;
}

/* Chips */
.yalla-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.yalla-chip {
    background: #fff;
    border: 1px solid #E8D4A8;
    border-radius: 24px;
    padding: 4px 10px;
    font-size: 11px;
    color: #6B4A32;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    transition: .1s;
}
.yalla-chip:hover { background: #C8A45C; color: #fff; border-color: #C8A45C; }

/* Hero Card */
.yalla-hero-card {
    background: #fff;
    border: 2.5px solid #C8A45C;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 8px;
    transition: transform .15s, box-shadow .15s;
}
.yalla-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200,164,92,.2);
}

/* Regular Card */
.yalla-result-card {
    background: #fff;
    border: 1px solid #E8D4A8;
    border-radius: 14px;
    display: flex;
    margin-bottom: 7px;
    overflow: hidden;
    transition: border-color .12s, transform .12s;
    cursor: pointer;
}
.yalla-result-card:hover { border-color: #C8A45C; transform: translateY(-1px); }

/* Card image areas */
.yalla-card-img {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg,#2C5F2E,#4B2E1E);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.yalla-card-img img { width: 100%; height: 100%; object-fit: cover; }
.yalla-card-img-sm {
    width: 80px;
    min-height: 80px;
    background: #F5EDD4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.yalla-card-img-sm img { width: 80px; height: 80px; object-fit: cover; }
.yalla-card-emoji { font-size: 36px; }
.yalla-top-badge {
    position: absolute;
    top: 0; right: 0;
    background: #C8A45C;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 9px;
    border-bottom-left-radius: 10px;
    letter-spacing: .05em;
    font-family: 'Tajawal', sans-serif;
}

/* Card body */
.yalla-card-body { flex: 1; padding: 10px 12px; min-width: 0; }
.yalla-card-name { font-size: 13px; font-weight: 700; color: #2B2B2B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; }
.yalla-card-ar   { font-size: 11px; color: #9A9A9A; direction: rtl; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.yalla-card-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }

/* Badges */
.yalla-badge { font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 24px; display: inline-flex; align-items: center; }
.yalla-badge-destination { background: #E8D4A8; color: #4B2E1E; }
.yalla-badge-tour        { background: #f0f0f0; color: #555; }
.yalla-badge-alias       { background: #E6F5EE; color: #2D7A4F; }
.yalla-badge-exact       { background: #FFF3CD; color: #856404; }
.yalla-badge-partial     { background: #f0f0f0; color: #666; }

/* Price */
.yalla-price       { font-size: 13px; font-weight: 800; color: #C8A45C; }
.yalla-tours-count { font-size: 10px; color: #9A9A9A; }

/* CTAs */
.yalla-card-ctas { display: flex; gap: 6px; }
.yalla-btn-book, .yalla-btn-wa {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 9px 0;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.yalla-btn-book { background: #4B2E1E; color: #fff; }
.yalla-btn-book:hover { background: #6B4A32; }
.yalla-btn-wa   { background: #25D366; color: #fff; }
.yalla-btn-wa:hover { background: #1DA851; }
.yalla-btn-book-mini, .yalla-btn-wa-mini {
    border: none;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: .1s;
    display: flex;
    align-items: center;
    gap: 3px;
}
.yalla-btn-book-mini { background: #4B2E1E; color: #fff; }
.yalla-btn-wa-mini   { background: #25D366; color: #fff; }

/* No results */
.yalla-no-results { text-align: center; padding: 24px 16px; }
.yalla-no-results-icon  { font-size: 32px; margin-bottom: 8px; }
.yalla-no-results-title { font-size: 14px; font-weight: 700; color: #2B2B2B; margin-bottom: 4px; }
.yalla-no-results-sub   { font-size: 11px; color: #9A9A9A; margin-bottom: 10px; }

/* Skeleton */
.yalla-skel-card { display: flex; gap: 10px; padding: 10px; background: #fff; border: 1px solid #E8D4A8; border-radius: 14px; margin-bottom: 7px; }
.yalla-skel { background: linear-gradient(90deg,#f0e8d8 25%,#efe5d0 50%,#f0e8d8 75%); background-size: 200% 100%; animation: yalla-shimmer 1.2s infinite; border-radius: 8px; }
@keyframes yalla-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.yalla-skel-sq    { width: 60px; height: 60px; border-radius: 10px; flex-shrink: 0; }
.yalla-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.yalla-skel-l1    { height: 13px; width: 65%; }
.yalla-skel-l2    { height: 10px; width: 40%; }

/* Mobile */
@media (max-width: 480px) {
    .yalla-search-input { font-size: 16px; } /* Prevent iOS zoom */
    .yalla-card-name    { font-size: 12px; }
}
