/* Yalla Conversion UI — CSS v2.1
   Mobile-first tour cards, hero card, destination grid, CTAs */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

.yalla-tours-wrap *,
.yalla-tours-wrap *::before,
.yalla-tours-wrap *::after { box-sizing: border-box; }

.yalla-tours-wrap {
    font-family: 'Tajawal', sans-serif;
    width: 100%;
}

/* ── GRID / LIST LAYOUTS ── */
.yalla-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.yalla-layout-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.yalla-layout-list .yalla-card {
    flex-direction: row;
}
.yalla-layout-list .yalla-card-img-wrap {
    width: 120px;
    min-height: 120px;
    flex-shrink: 0;
}

/* ── BASE CARD ── */
.yalla-card {
    background: #fff;
    border: 1.5px solid #E8D4A8;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
    cursor: pointer;
}
.yalla-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(200,164,92,.2);
    border-color: #C8A45C;
}

/* ── HERO CARD ── */
.yalla-card--hero {
    border: 2.5px solid #C8A45C;
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 220px;
}
.yalla-card--hero .yalla-card-img-wrap--hero {
    width: 45%;
    min-height: 220px;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .yalla-card--hero { flex-direction: column; }
    .yalla-card--hero .yalla-card-img-wrap--hero { width: 100%; min-height: 180px; }
}

/* ── CARD IMAGE WRAP ── */
.yalla-card-img-wrap {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #2C5F2E, #4B2E1E);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yalla-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.yalla-card:hover .yalla-card-img-wrap img { transform: scale(1.04); }
.yalla-card-no-img { font-size: 48px; }

/* ── NUDGE BADGES ── */
.yalla-nudge-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 24px;
    font-size: 10px;
    font-weight: 800;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: .03em;
    z-index: 1;
}
.yalla-badge-hot      { background: #E74C3C; color: #fff; }
.yalla-badge-limited  { background: #D97706; color: #fff; }
.yalla-badge-rated    { background: #C8A45C; color: #fff; }
.yalla-badge-discount { background: #2D7A4F; color: #fff; }

/* ── DEST CHIP (on hero) ── */
.yalla-dest-chip {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(75,46,30,.8);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 24px;
    backdrop-filter: blur(4px);
}

/* ── CARD BODY ── */
.yalla-card-body { padding: 13px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.yalla-card-name {
    font-size: 14px;
    font-weight: 800;
    color: #2B2B2B;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.yalla-card-ar {
    font-size: 11px;
    color: #9A9A9A;
    direction: rtl;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.yalla-card-desc { font-size: 11px; color: #6B4A32; line-height: 1.55; }
.yalla-card-duration { font-size: 10px; color: #9A9A9A; }

/* ── PRICE ── */
.yalla-price-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin: 4px 0; }
.yalla-price-main { font-size: 18px; font-weight: 900; color: #C8A45C; }
.yalla-price-old  { font-size: 12px; color: #9A9A9A; }
.yalla-price-save { font-size: 10px; font-weight: 800; color: #2D7A4F; background: #E6F5EE; padding: 1px 6px; border-radius: 24px; }
.yalla-price-unit { font-size: 10px; color: #9A9A9A; }

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

/* ── PREQUAL TRIGGER ── */
.yalla-prequal-trigger {
    width: 100%;
    margin-top: 6px;
    background: #F5EDD4;
    color: #4B2E1E;
    border: 1.5px dashed #C8A45C;
    border-radius: 9px;
    padding: 8px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: .12s;
}
.yalla-prequal-trigger:hover { background: #F0E4C0; }

/* ── DESTINATION GRID ── */
.yalla-dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.yalla-dest-card { text-decoration: none; display: block; border-radius: 14px; overflow: hidden; transition: transform .15s; }
.yalla-dest-card:hover { transform: translateY(-3px); }
.yalla-dest-img {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg, #2C5F2E, #4B2E1E);
    overflow: hidden;
}
.yalla-dest-img img { width: 100%; height: 100%; object-fit: cover; }
.yalla-dest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 60%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
}
.yalla-dest-emoji { font-size: 20px; margin-bottom: 2px; }
.yalla-dest-name  { font-size: 13px; font-weight: 800; color: #fff; }
.yalla-dest-count { font-size: 10px; color: rgba(255,255,255,.7); }

/* ── EMPTY STATE ── */
.yalla-empty { color: #9A9A9A; font-family: 'Tajawal', sans-serif; text-align: center; padding: 24px; }

/* ── AUTOMATION STYLES (used by yalla-automation-engine) ── */
.yalla-pq-prog { height: 4px; background: #E8D4A8; border-radius: 24px; margin-bottom: 14px; }
.yalla-pq-prog-fill { height: 100%; background: #C8A45C; border-radius: 24px; transition: width .3s ease; }
.yalla-pq-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.yalla-pq-back { background: none; border: 1.5px solid #E8D4A8; border-radius: 8px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.yalla-pq-title { font-size: 15px; font-weight: 800; color: #4B2E1E; flex: 1; }
.yalla-pq-step  { font-size: 10px; color: #9A9A9A; background: #F5EDD4; padding: 2px 8px; border-radius: 24px; }

.yalla-qual-card { background: #F9F4EC; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.yalla-qual-title { font-size: 12px; font-weight: 800; color: #4B2E1E; margin-bottom: 9px; }
.yalla-stepper-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #E8D4A8; }
.yalla-stepper-row:last-child { border-bottom: none; }
.yalla-sl { font-size: 13px; font-weight: 700; color: #2B2B2B; }
.yalla-ss { font-size: 10px; color: #9A9A9A; }
.yalla-stepctl { display: flex; align-items: center; gap: 10px; }
.yalla-step-btn { background: #E8D4A8; border: none; border-radius: 6px; width: 28px; height: 28px; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.yalla-step-btn:hover { background: #C8A45C; color: #fff; }
.yalla-step-val { font-size: 16px; font-weight: 800; color: #4B2E1E; min-width: 24px; text-align: center; }

.yalla-date-grid { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 3px; }
.yalla-dpill { border: 1.5px solid #E8D4A8; border-radius: 10px; padding: 6px 8px; min-width: 48px; text-align: center; cursor: pointer; background: #fff; transition: .12s; flex-shrink: 0; }
.yalla-dpill:hover { border-color: #C8A45C; }
.yalla-dpill--sel { background: #4B2E1E; border-color: #4B2E1E; }
.yalla-dpill--sel .yalla-dp-day, .yalla-dpill--sel .yalla-dp-num, .yalla-dpill--sel .yalla-dp-mon { color: #fff; }
.yalla-dpill--sold { opacity: .45; cursor: not-allowed; }
.yalla-dp-day { font-size: 9px; color: #9A9A9A; display: block; font-weight: 600; }
.yalla-dp-num { font-size: 14px; font-weight: 900; color: #4B2E1E; display: block; line-height: 1.2; }
.yalla-dp-mon { font-size: 8px; color: #9A9A9A; display: block; }
.yalla-dp-sold { font-size: 8px; color: #E74C3C; display: block; }

.yalla-tier-card {
    border: 1.5px solid #E8D4A8;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: .15s;
}
.yalla-tier-card:hover { border-color: #C8A45C; }
.yalla-tier--selected { border-color: #C8A45C; background: #FFF8EC; box-shadow: 0 0 0 2px #C8A45C; }
.yalla-tier-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.yalla-tier-name  { font-size: 13px; font-weight: 800; color: #2B2B2B; }
.yalla-tier-badge { font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 24px; }
.yalla-tb--vip { background: #F5EDD4; color: #4B2E1E; }
.yalla-tb--pop { background: #C8A45C; color: #fff; }
.yalla-tier-price { font-size: 16px; font-weight: 900; color: #C8A45C; margin-bottom: 3px; }
.yalla-tier-price span { font-size: 10px; color: #9A9A9A; font-weight: 400; }
.yalla-tier-popular { font-size: 10px; color: #2D7A4F; font-weight: 700; background: #E6F5EE; padding: 1px 7px; border-radius: 24px; display: inline-block; margin-bottom: 4px; }
.yalla-tier-feats { font-size: 10px; color: #6B4A32; line-height: 1.7; }

.yalla-price-calc { font-size: 13px; color: #4B2E1E; background: #F5EDD4; border-radius: 9px; padding: 8px 12px; margin: 8px 0; text-align: center; }
.yalla-price-calc strong { color: #C8A45C; font-size: 16px; }
.yalla-nav-btn { width: 100%; border: none; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 800; font-family: 'Tajawal', sans-serif; cursor: pointer; transition: .12s; }
.yalla-nav-primary { background: #4B2E1E; color: #fff; }
.yalla-nav-primary:hover { background: #6B4A32; }

.yalla-urgency-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: 'Tajawal', sans-serif;
    margin: 6px 0;
}
.yalla-urg-text { color: #92400E; font-weight: 600; }
.yalla-urg-badge { background: #E74C3C; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 24px; }
.yalla-countdown-wrap { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #92400E; font-family: 'Tajawal', sans-serif; margin: 4px 0; }
.yalla-countdown-label { font-weight: 600; }
.yalla-cd-unit { background: #4B2E1E; color: #fff; padding: 2px 6px; border-radius: 5px; font-size: 13px; font-weight: 900; font-family: monospace; }
.yalla-cdi { background: #4B2E1E; color: #fff; padding: 1px 5px; border-radius: 4px; font-size: 11px; font-weight: 900; font-family: monospace; }

.yalla-proof-ticker {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #E6F5EE;
    border-radius: 24px;
    padding: 5px 12px;
    font-size: 11px;
    font-family: 'Tajawal', sans-serif;
    color: #2D7A4F;
    font-weight: 600;
    margin: 6px 0;
}
.yalla-proof-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #25D366;
    animation: yallaProofPulse 1s infinite;
    flex-shrink: 0;
}
@keyframes yallaProofPulse { 0%,100%{opacity:1}50%{opacity:.3} }
.yalla-proof-text { transition: opacity .3s; }

.yalla-wa-preview-box {
    background: #E5DDD5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
.yalla-wa-preview-hdr {
    background: #075E54;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.yalla-wa-preview-hdr span { font-size: 20px; }
.yalla-wa-agent-name { font-size: 13px; font-weight: 700; color: #fff; }
.yalla-wa-status { font-size: 10px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 4px; }
.yalla-wa-online { width: 6px; height: 6px; border-radius: 50%; background: #25D366; display: inline-block; }
.yalla-wa-preview-body { padding: 12px; }
.yalla-wa-bubble { background: #fff; border-radius: 0 10px 10px 10px; padding: 10px 12px; font-size: 12px; line-height: 1.7; color: #2B2B2B; display: inline-block; max-width: 85%; word-break: break-word; }
.yalla-wa-send-btn { width: 100%; background: #25D366; color: #fff; border: none; border-radius: 14px; padding: 14px; font-size: 14px; font-weight: 800; font-family: 'Tajawal', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .12s; margin-bottom: 8px; }
.yalla-wa-send-btn:hover { background: #1DA851; }
.yalla-trust-row { display: flex; justify-content: center; gap: 14px; font-size: 10px; color: #9A9A9A; }
.yalla-pq-hero { background: #fff; border: 2px solid #C8A45C; border-radius: 16px; overflow: hidden; margin-bottom: 10px; }
.yalla-pq-hero-img { height: 140px; background: linear-gradient(135deg,#2C5F2E,#4B2E1E); display: flex; align-items: center; justify-content: center; position: relative; }
.yalla-pq-hero-emoji { font-size: 52px; }
.yalla-urgency-strip { position: absolute; bottom: 8px; left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; }
.yalla-pq-hero-body { padding: 12px; }
.yalla-pq-tour-name { font-size: 15px; font-weight: 800; color: #2B2B2B; margin-bottom: 5px; }
.yalla-pq-price-row { display: flex; align-items: baseline; gap: 5px; margin-bottom: 8px; }
.yalla-pq-price { font-size: 20px; font-weight: 900; color: #C8A45C; }
.yalla-pq-unit  { font-size: 11px; color: #9A9A9A; }
.yalla-pq-ctas  { display: flex; gap: 7px; }

/* Mobile */
@media (max-width: 480px) {
    .yalla-layout-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .yalla-card--hero  { grid-column: 1 / -1; }
    .yalla-dest-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
    .yalla-layout-grid { grid-template-columns: 1fr; }
}
