/* =============================================
   EmQuest Trip Cards – emq-cards.css v3
   ============================================= */

.emq-cards-wrap { width: 100%; }

/* ---- Sort row (visitor-facing) ---- */
.emqc-sort-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.emqc-count { font-size: 13px; color: #7a8fa6; }
.emqc-sort-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.emqc-sp {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid #d0e6f8;
    background: #fff;
    color: #7a8fa6;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.emqc-sp.active { background: #1A6FB5; border-color: #1A6FB5; color: #fff; }
.emqc-sp:not(.active):hover { border-color: #E8821A; color: #E8821A; }

/* =============================================
   GRID layout
   ============================================= */
.emqc-grid {
    display: grid;
    gap: 24px;
}
.emqc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.emqc-cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
    .emqc-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .emqc-cols-3,
    .emqc-cols-2 { grid-template-columns: 1fr; }
    .emqc-sort-row { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   SLIDER layout  (editor chooses this)
   ============================================= */
.emqc-slider {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* undo grid columns */
    grid-template-columns: unset !important;
}
.emqc-slider::-webkit-scrollbar { display: none; }

/* Card widths per slider variant */
.emqc-slider--one  .emqc-card { min-width: calc(100% - 2px);     max-width: calc(100% - 2px); }
.emqc-slider--peek .emqc-card { min-width: calc(100% - 48px);    max-width: calc(100% - 48px); }
.emqc-slider--two  .emqc-card { min-width: calc(50% - 10px);     max-width: calc(50% - 10px); }

.emqc-slider .emqc-card {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* On desktop, slider shows more cards */
@media (min-width: 901px) {
    .emqc-slider--peek .emqc-card { min-width: 340px; max-width: 340px; }
    .emqc-slider--two  .emqc-card { min-width: 340px; max-width: 340px; }
    .emqc-slider--one  .emqc-card { min-width: 480px; max-width: 480px; }
}

/* =============================================
   CARD (shared between grid & slider)
   ============================================= */
.emqc-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15,25,35,.07);
    transition: transform .25s;
    list-style: none;
}
.emqc-card:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 14px 36px rgba(26,111,181,.13));
}
.emqc-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image */
.emqc-img {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #d0e6f8;
}
.emqc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s;
}
.emqc-card:hover .emqc-img img { transform: scale(1.06); }
.emqc-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #1A6FB5;
}

/* Badges */
.emqc-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.emqc-badge-dest {
    background: #1A6FB5;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.emqc-badge-dur {
    background: #E8821A;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Card body */
.emqc-body { padding: 18px 20px 22px; }
.emqc-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f1923;
    line-height: 1.25;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.emqc-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 10px;
}
.emqc-price {
    font-size: 22px;
    font-weight: 800;
    color: #E8821A;
}
.emqc-price-label { font-size: 12px; color: #7a8fa6; }
.emqc-inc {
    font-size: 12px;
    color: #7a8fa6;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.emqc-valid {
    font-size: 12px;
    color: #1A6FB5;
    font-weight: 600;
    margin: 0 0 16px;
}
.emqc-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: #1A6FB5;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background .2s;
}
.emqc-card:hover .emqc-btn { background: #E8821A; }
