/* =============================================
   Flywell Destinations — Frontend Styles
   Matches Figma design at flywell.dgftech.us/destinations
   ============================================= */

:root {
    --fwd-navy:       #1a2744;
    --fwd-blue:       #1e3a5f;
    --fwd-orange:     #f5a623;
    --fwd-red:        #e53935;
    --fwd-text:       #1a2744;
    --fwd-muted:      #6b7280;
    --fwd-border:     #e5e7eb;
    --fwd-bg:         #f8f9fb;
    --fwd-white:      #ffffff;
    --fws-card-radius: 12px;
    --fws-pill-radius: 6px;
    --fwd-shadow:     0 2px 12px rgba(0,0,0,.08);
    --fwd-shadow-hover: 0 8px 32px rgba(0,0,0,.14);
}

/* ---- Wrapper ---- */
.fws-sports-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 0;
    font-family: inherit;
}

/* =====================
   FILTERS SIDEBAR
===================== */
.fws-filters {
    flex: 0 0 280px;
    background: var(--fwd-white);
    border: 1px solid var(--fwd-border);
    border-radius: var(--fws-card-radius);
    padding: 20px;
    position: sticky;
    top: 100px;
}

.fws-filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fws-filters__header span {
    font-size: 18px;
    font-weight: 700;
    color: var(--fwd-text);
}

.fws-clear-all {
    background: none;
    border: none;
    color: var(--fwd-red);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
}

.fws-clear-all:hover { text-decoration: underline; }

/* Filter sections */
.fws-filter-section {
    border-top: 1px solid var(--fwd-border);
    padding: 16px 0;
}

.fws-filter-section h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fwd-text);
}

/* Search */
.fws-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fws-search-wrap svg {
    position: absolute;
    left: 12px;
    color: var(--fwd-muted);
    pointer-events: none;
    z-index: 1;
}

.fws-search-wrap input {
    width: 100%;
    padding: 10px 12px 10px 40px !important;
    border: 1px solid var(--fwd-border);
    border-radius: var(--fws-pill-radius);
    font-size: 14px;
    color: var(--fwd-text);
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box !important;
}

.fws-search-wrap input:focus {
    border-color: var(--fwd-navy);
}

/* Pills */
.fws-pill-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fws-pill {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: var(--fwd-bg);
    border: 1px solid var(--fwd-border);
    border-radius: var(--fws-pill-radius);
    font-size: 14px;
    color: var(--fwd-text);
    cursor: pointer;
    text-align: left;
    transition: all .15s;
}

.fws-pill:hover {
    border-color: var(--fwd-navy);
}

.fws-pill.active {
    background: var(--fwd-navy);
    border-color: var(--fwd-navy);
    color: var(--fwd-white);
    font-weight: 600;
}

/* Rating pills — highlight in orange when active */
#fwd-ratings .fws-pill.active {
    background: var(--fwd-orange);
    border-color: var(--fwd-orange);
    color: var(--fwd-text);
}

/* Price range */
.fws-range-wrap input[type="range"] {
    width: 100%;
    accent-color: var(--fwd-navy);
    cursor: pointer;
}

.fws-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--fwd-muted);
    margin-top: 4px;
}

/* =====================
   MAIN CONTENT
===================== */
.fws-main {
    flex: 1;
    min-width: 0;
}

/* Toolbar */
.fws-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.fws-count {
    white-space: nowrap !important;
    flex-shrink: 0;
    margin: 0;
    font-size: 15px;
    color: var(--fwd-muted);
}

.fws-count strong, #fwd-total {
    font-weight: 700;
    color: var(--fwd-text);
}

.fws-sort {
    width: 160px !important;
    max-width: 160px !important;
    min-width: 0 !important;
    flex-shrink: 1;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--fwd-border);
    border-radius: var(--fws-pill-radius);
    font-size: 14px;
    color: var(--fwd-text);
    background: var(--fwd-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

/* Grid */
.fws-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .fws-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .fws-sports-wrapper { flex-direction: column; }
    .fws-filters { position: static; flex: none; width: 100%; }
    .fws-grid { grid-template-columns: 1fr; }
}

/* Loading spinner */
.fws-loading {
    grid-column: 1/-1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.fws-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--fwd-border);
    border-top-color: var(--fwd-navy);
    border-radius: 50%;
    animation: fwd-spin .7s linear infinite;
}

@keyframes fwd-spin { to { transform: rotate(360deg); } }

/* No results */
.fws-no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 0;
    color: var(--fwd-muted);
}

.fws-no-results svg { margin-bottom: 16px; opacity: .4; }
.fws-no-results p { font-size: 15px; }
.fws-no-results button {
    background: none;
    border: none;
    color: var(--fwd-red);
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

/* =====================
   DESTINATION CARD
===================== */
.fws-card {
    background: var(--fwd-white);
    border-radius: var(--fws-card-radius);
    overflow: hidden;
    box-shadow: var(--fwd-shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
}

.fws-card:hover {
    box-shadow: var(--fwd-shadow-hover);
    transform: translateY(-4px);
}

/* Image */
.fws-card__image-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.fws-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.fws-card:hover .fws-card__image { transform: scale(1.05); }

/* Badge */
.fws-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--fwd-orange);
    color: var(--fwd-text);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Stars */
.fws-card__stars {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,.92);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--fwd-orange);
    letter-spacing: 1px;
}

/* Card body */
.fws-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.fws-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--fwd-text);
    line-height: 1.3;
}

.fws-card__location {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--fwd-muted);
}

.fws-card__location svg { flex-shrink: 0; }

.fws-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--fwd-muted);
    border-top: 1px solid var(--fwd-border);
    padding-top: 8px;
    margin-top: 2px;
}

.fws-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 2px;
}

.fws-card__price-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--fwd-text);
}

.fws-card__price-pp {
    font-size: 12px;
    color: var(--fwd-muted);
}

/* CTA Button */
.fws-card__cta {
    display: block;
    background: var(--fwd-navy);
    color: var(--fwd-white);
    text-align: center;
    padding: 11px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    transition: background .2s, opacity .2s;
}

.fws-card__cta:hover {
    background: #0f1a32;
    color: var(--fwd-white);
}

/* Placeholder card (no image) */
.fws-card__image[src=""] {
    background: #e5e7eb;
}

/* ── v2 additions: travel date, inclusions pills ─────────────────── */

.fws-card__travel-date,
.fws-card__duration {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px;
}

.fws-card__travel-date svg,
.fws-card__duration svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #9ca3af;
}

/* Inclusions */
.fws-card__includes {
    margin: 8px 0;
}

.fws-card__includes-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #9ca3af;
    margin-bottom: 5px;
}

.fws-card__includes-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fws-card__pill {
    display: inline-block;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
}
