/* =========================================================
   BOOK XE — FRONTEND CSS v2
   Aesthetic: Clean Automotive / Bold & Professional
   Font: Montserrat (body) + Playfair Display (headings)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');

:root {
    --xe-ink:       #0d0f14;
    --xe-ink2:      #1e2330;
    --xe-blue:      #1a56db;
    --xe-blue-d:    #1240aa;
    --xe-blue-bg:   #eff4ff;
    --xe-accent:    #f59e0b;
    --xe-text:      #374151;
    --xe-muted:     #6b7280;
    --xe-border:    #e5e7eb;
    --xe-bg:        #f9fafb;
    --xe-white:     #ffffff;
    --xe-radius:    14px;
    --xe-shadow:    0 2px 20px rgba(13,15,20,.08);
    --xe-shadow-h:  0 16px 48px rgba(13,15,20,.15);
    --xe-trans:     all .3s cubic-bezier(.4,0,.2,1);
    --xe-max-w:     1240px;
    --font-display: 'Playfair Display', serif;
    --font-body:    'Montserrat', sans-serif;

    /* Contact brand colors */
    --phone-bg:   #f0fdf4; --phone-c: #16a34a; --phone-b: #bbf7d0;
    --zalo-bg:    #eff4ff; --zalo-c:  #1a56db; --zalo-b:  #bfdbfe;
    --msg-bg:     #f0f4ff; --msg-c:   #4f46e5; --msg-b:   #c7d2fe;
    --wa-bg:      #f0fdf4; --wa-c:    #15803d; --wa-b:    #bbf7d0;
    --viber-bg:   #f5f3ff; --viber-c: #7c3aed; --viber-b: #ddd6fe;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ════════════════════════════════════════════════════════
   SINGLE XE
════════════════════════════════════════════════════════ */
.tbx-xe-single {
    max-width: var(--xe-max-w);
    margin: 0 auto;
    padding: 0 24px 80px;
    font-family: var(--font-body);
}

/* ── HERO ─────────────────────────────────────────────── */
.tbx-xe-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin: 40px 0 60px;
    align-items: start;
}
@media (max-width: 960px) { .tbx-xe-hero { grid-template-columns: 1fr; } }

.tbx-xe-hero__image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--xe-shadow);
}
.tbx-xe-hero__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.tbx-xe-hero__image:hover img { transform: scale(1.03); }

/* Tag số chỗ trên ảnh */
.tbx-xe-hero__image::before {
    content: attr(data-cho) ' chỗ';
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(13,15,20,.75);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 24px;
    z-index: 1;
    letter-spacing: .4px;
}

/* ── INFO CARD ─────────────────────────────────────────── */
.tbx-xe-info-card {
    background: var(--xe-white);
    border-radius: 20px;
    border: 1px solid var(--xe-border);
    box-shadow: 0 4px 28px rgba(13,15,20,0.1), 0 1px 3px rgba(13,15,20,0.05);
    overflow: hidden;
    position: sticky;
    top: 24px;
    transition: box-shadow .3s ease;
}
.tbx-xe-info-card:hover {
    box-shadow: 0 8px 44px rgba(13,15,20,0.14);
}

/* Top stripe màu ink */
.tbx-xe-info-card__top {
    background: linear-gradient(135deg, var(--xe-ink) 0%, var(--xe-ink2) 100%);
    padding: 26px 26px 22px;
    position: relative;
    overflow: hidden;
}
.tbx-xe-info-card__top::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(26,86,219,.12);
    right: -50px;
    top: -60px;
    pointer-events: none;
}
.tbx-xe-hang {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--xe-accent);
    margin-bottom: 9px;
    display: block;
}
.tbx-xe-info-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--xe-white);
    line-height: 1.28;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
}

.tbx-xe-info-card__body { padding: 20px 26px; }

/* Specs */
.tbx-xe-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.tbx-xe-spec {
    background: var(--xe-bg);
    border: 1px solid var(--xe-border);
    border-radius: 11px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .2s, border-color .2s;
}
.tbx-xe-spec:hover {
    background: #eff4ff;
    border-color: #bfdbfe;
}
.tbx-xe-spec__icon { font-size: 18px; flex-shrink: 0; }
.tbx-xe-spec__label {
    display: block;
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--xe-muted);
    margin-bottom: 2px;
}
.tbx-xe-spec__value {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--xe-ink);
}

/* Price */
.tbx-xe-price-box {
    background: linear-gradient(135deg, var(--xe-blue-bg) 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 11px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.tbx-xe-price-label {
    font-size: 11px;
    color: var(--xe-muted);
    font-weight: 400;
}
.tbx-xe-price-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--xe-blue);
    letter-spacing: -.5px;
}

/* ── CONTACT BUTTONS ──────────────────────────────────── */
.tbx-xe-contact-title {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--xe-muted);
    margin-bottom: 10px;
}
.tbx-xe-contact-btns { display: flex; flex-direction: column; gap: 8px; }

.tbx-contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 11px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: var(--xe-trans);
    cursor: pointer;
}
.tbx-contact-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.tbx-contact-btn__icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.tbx-contact-btn__text { display: flex; flex-direction: column; }
.tbx-contact-btn__action { font-size: 12px; font-weight: 500; line-height: 1.2; }
.tbx-contact-btn__detail { font-size: 11px; margin-top: 1px; opacity: .75; font-weight: 400; }

/* Phone */
.tbx-contact-btn--phone { background: var(--phone-bg); border-color: var(--phone-b); }
.tbx-contact-btn--phone .tbx-contact-btn__icon { background: var(--phone-b); }
.tbx-contact-btn--phone .tbx-contact-btn__action,
.tbx-contact-btn--phone .tbx-contact-btn__detail { color: var(--phone-c); }

/* Zalo */
.tbx-contact-btn--zalo { background: var(--zalo-bg); border-color: var(--zalo-b); }
.tbx-contact-btn--zalo .tbx-contact-btn__icon { background: var(--zalo-b); }
.tbx-contact-btn--zalo .tbx-contact-btn__action,
.tbx-contact-btn--zalo .tbx-contact-btn__detail { color: var(--zalo-c); }

/* Messenger */
.tbx-contact-btn--messenger { background: var(--msg-bg); border-color: var(--msg-b); }
.tbx-contact-btn--messenger .tbx-contact-btn__icon { background: var(--msg-b); }
.tbx-contact-btn--messenger .tbx-contact-btn__action,
.tbx-contact-btn--messenger .tbx-contact-btn__detail { color: var(--msg-c); }

/* WhatsApp */
.tbx-contact-btn--whatsapp { background: var(--wa-bg); border-color: var(--wa-b); }
.tbx-contact-btn--whatsapp .tbx-contact-btn__icon { background: var(--wa-b); }
.tbx-contact-btn--whatsapp .tbx-contact-btn__action,
.tbx-contact-btn--whatsapp .tbx-contact-btn__detail { color: var(--wa-c); }

/* Viber */
.tbx-contact-btn--viber { background: var(--viber-bg); border-color: var(--viber-b); }
.tbx-contact-btn--viber .tbx-contact-btn__icon { background: var(--viber-b); }
.tbx-contact-btn--viber .tbx-contact-btn__action,
.tbx-contact-btn--viber .tbx-contact-btn__detail { color: var(--viber-c); }

/* ── Description ───────────────────────────────────────── */
.tbx-xe-content-wrapper {
    margin: 0 auto;
}
.tbx-xe-section { margin-bottom: 56px; }
.tbx-xe-section-title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    color: var(--xe-ink);
    margin-bottom: 20px;
    padding-bottom: 14px;
    position: relative;
    letter-spacing: -0.3px;
    line-height: 1.3;
}
.tbx-xe-section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--xe-blue), #60a5fa, transparent);
    border-radius: 2px;
}
.tbx-xe-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--xe-text);
    font-weight: 400;
}

/* ════════════════════════════════════════════════════════
   CARD GRID (Archive / Shortcode)
════════════════════════════════════════════════════════ */
.tbx-xe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tbx-xe-card {
    background: var(--xe-white);
    border-radius: var(--xe-radius);
    border: 1px solid var(--xe-border);
    box-shadow: 0 2px 14px rgba(13,15,20,0.07), 0 1px 3px rgba(13,15,20,0.03);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.25,0,.2,1), box-shadow .35s cubic-bezier(.25,0,.2,1);
    display: flex;
    flex-direction: column;
}
.tbx-xe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 52px rgba(13,15,20,0.14), 0 4px 12px rgba(13,15,20,0.06);
}

.tbx-xe-card__img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    height: 200px;
}
.tbx-xe-card__img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.tbx-xe-card:hover .tbx-xe-card__img-wrap img { transform: scale(1.07); }

.tbx-xe-card__badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--xe-ink);
    color: var(--xe-white);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: .3px;
}

.tbx-xe-card__body {
    padding: 17px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tbx-xe-card__hang {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--xe-blue);
    margin-bottom: 6px;
}
.tbx-xe-card__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 7px;
    line-height: 1.3;
    flex: 1;
}
.tbx-xe-card__title a {
    color: var(--xe-ink);
    text-decoration: none;
    transition: color .2s;
}
.tbx-xe-card__title a:hover { color: var(--xe-blue); }

.tbx-xe-card__excerpt {
    font-size: 12.5px;
    color: var(--xe-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 400;
}
.tbx-xe-card__price {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--xe-blue);
    margin-bottom: 14px;
}
.tbx-xe-card__actions {
    display: flex;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid var(--xe-border);
}
.tbx-xe-card__btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--xe-trans);
}
.tbx-btn-phone  { background: #16a34a; color: #fff; }
.tbx-btn-phone:hover  { background: #15803d; color: #fff; transform: translateY(-1px); }
.tbx-btn-zalo   { background: var(--xe-blue); color: #fff; }
.tbx-btn-zalo:hover   { background: var(--xe-blue-d); color: #fff; transform: translateY(-1px); }
.tbx-btn-detail { background: var(--xe-bg); color: var(--xe-text); border: 1px solid var(--xe-border); }
.tbx-btn-detail:hover { background: var(--xe-border); color: var(--xe-ink); }

/* ════════════════════════════════════════════════════════
   ARCHIVE
════════════════════════════════════════════════════════ */
.tbx-xe-archive {
    max-width: var(--xe-max-w);
    margin: 0 auto;
    padding: 0 24px 80px;
    font-family: var(--font-body);
}

.tbx-xe-archive-header {
    background: var(--xe-ink);
    border-radius: 20px;
    padding: 58px 44px;
    margin: 32px 0 44px;
    position: relative;
    overflow: hidden;
}
/* Decorative circles */
.tbx-xe-archive-header::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(26,86,219,.2);
    right: -100px; top: -150px;
    pointer-events: none;
}
.tbx-xe-archive-header::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(245,158,11,.15);
    left: 60px; bottom: -80px;
    pointer-events: none;
}
.tbx-xe-archive-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--xe-white);
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}
.tbx-xe-archive-desc {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    max-width: 480px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.tbx-xe-pagination { margin-top: 48px; text-align: center; }

@media (max-width: 768px) {
    .tbx-xe-archive-header { padding: 36px 22px; }
    .tbx-xe-archive-title  { font-size: 28px; }
    .tbx-xe-hero { margin: 24px 0 40px; }
    .tbx-xe-hero__image img { height: 300px; }
    .tbx-xe-grid { grid-template-columns: 1fr; }
    .tbx-xe-specs { grid-template-columns: 1fr; }
}
