/* SkiGB Compare — ⇄ toggles on property cards + the bottom shortlist tray.
   (The /ski-compare/ page table styles are inlined in its template.) */

/* Toggle button on cards */
.skigb-compare-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f2f6f7;
    color: #33484d;
    border: 1px solid #dde6e9;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 12px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    font-family: inherit;
}
.skigb-compare-toggle:hover {
    background: #e5edef;
}
.skigb-compare-toggle.is-active {
    background: #0098a6;
    border-color: #0098a6;
    color: #fff;
}

/* Overlay variant sitting on the card image */
.skigb-compare-toggle--overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(20, 40, 50, .25);
}

/* Shortlist tray */
.skigb-cmp-tray {
    position: fixed;
    left: 16px;
    bottom: 16px;
    right: auto;
    z-index: 9998; /* below the ✨ FAB's dialog, above content */
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100vw - 110px); /* leave room for the ✨ FAB bottom-right */
    background: #ffffff;
    border: 1px solid #e3e9ec;
    border-radius: 999px;
    box-shadow: 0 10px 34px rgba(20, 40, 50, .18);
    padding: 8px 10px 8px 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.skigb-cmp-tray__label {
    font-size: 13px;
    font-weight: 700;
    color: #33484d;
    white-space: nowrap;
}
.skigb-cmp-tray__items {
    display: flex;
    align-items: center;
    gap: 6px;
}
.skigb-cmp-tray__item {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
}
.skigb-cmp-tray__item img,
.skigb-cmp-tray__ph {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f6f7;
    font-size: 18px;
}
.skigb-cmp-tray__rm {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #23323a;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.skigb-cmp-tray__rm:hover { background: #b3392f; }
.skigb-cmp-tray__go {
    background: #0098a6;
    color: #fff !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 18px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease;
}
.skigb-cmp-tray__go:hover { background: #00747f; }
.skigb-cmp-tray__go.is-disabled {
    pointer-events: none;
    opacity: .5;
}
.skigb-cmp-tray__clear {
    background: none;
    border: none;
    color: #6b7a82;
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
    font-family: inherit;
}
.skigb-cmp-tray__clear:hover { color: #b3392f; }

@media (max-width: 700px) {
    .skigb-cmp-tray {
        left: 10px;
        bottom: 10px;
        max-width: calc(100vw - 90px);
        padding: 6px 8px 6px 12px;
        gap: 8px;
    }
    .skigb-cmp-tray__label { display: none; }
    .skigb-cmp-tray__item,
    .skigb-cmp-tray__item img,
    .skigb-cmp-tray__ph { width: 34px; height: 34px; }
    .skigb-cmp-tray__go { font-size: 13px; padding: 10px 14px; }
}

/* Card body positioning helper so the overlay toggle can anchor */
.skigb-property-card { position: relative; }

/* Trip finder card toggle sits under the card, small */
.skigb-tf__cards .skigb-compare-toggle {
    margin: 4px 0 8px;
}
