/* ═══════════════════════════════════════════════════════════════════════════
   SassyFunke Flight Deals — CPT Frontend Styles

   Uses !important on critical properties to override the broad wildcard
   selectors in Additional CSS (e.g. .sf-travel [class*="badge"]).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Section ────────────────────────────────────────────────────────────── */
.sf-fd-section {
    max-width: 1280px;
    margin: 0 auto;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sf-fd-header {
    margin-bottom: 2rem;
}

.sf-fd-tag {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
    background: #F5EBCD !important;
    padding: .35rem .75rem !important;
    border-radius: 20px !important;
    font-size: .65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0A2E1C !important;
    margin-bottom: .6rem !important;
}

.sf-fd-section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
    color: #1C1C1C !important;
    margin: 0 0 .5rem !important;
    line-height: 1.2;
}

.sf-fd-subtitle {
    color: #6B7280;
    font-size: .95rem;
    max-width: 520px;
    margin: 0;
}

/* ─── Filter Tabs ────────────────────────────────────────────────────────── */
.sf-fd-tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.75rem !important;
}

.sf-fd-tab {
    padding: .5rem 1rem !important;
    border-radius: 20px !important;
    border: 1.5px solid #E5E7EB !important;
    background: #FFFFFF !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: .8rem !important;
    font-weight: 500 !important;
    color: #1C1C1C !important;
    cursor: pointer;
    transition: all .2s;
}

.sf-fd-tab:hover {
    border-color: #145A32 !important;
    background: rgba(20, 90, 50, .06) !important;
    color: #145A32 !important;
}

.sf-fd-tab--active,
.sf-fd-tab--active:hover {
    border-color: #0A2E1C !important;
    background: #0A2E1C !important;
    color: #FFFFFF !important;
}

/* ─── Grid ───────────────────────────────────────────────────────────────── */
.sf-fd-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
}

@media (max-width: 600px) {
    .sf-fd-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Deal Card ──────────────────────────────────────────────────────────── */
.sf-fd-card {
    background: #FFFFFF !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06) !important;
    transition: transform .3s, box-shadow .3s !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.sf-fd-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 36px rgba(10, 46, 28, .12) !important;
}

.sf-fd-card--featured {
    border: 2px solid #C9A84C !important;
    box-shadow: 0 4px 20px rgba(201, 168, 76, .15) !important;
}

.sf-fd-card--featured:hover {
    box-shadow: 0 12px 36px rgba(201, 168, 76, .25) !important;
}

.sf-fd-card--hidden {
    display: none !important;
}

/* ─── Card Image ─────────────────────────────────────────────────────────── */
.sf-fd-card-img,
a.sf-fd-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #e8e8e8 !important;
    border-radius: 0 !important;
}

.sf-fd-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .35s;
    position: absolute !important;
    top: 0;
    left: 0;
}

.sf-fd-card:hover .sf-fd-card-img img {
    transform: scale(1.06);
}

.sf-fd-card-img .sf-fd-badge {
    position: absolute !important;
    top: .75rem;
    left: .75rem;
}

.sf-fd-card-img .sf-fd-featured-badge {
    position: absolute !important;
    top: .75rem;
    right: .75rem;
}

.sf-fd-card-img-route {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 !important;
    background: none !important;
}

.sf-fd-route--overlay {
    display: block !important;
    background: #0A2E1C !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    margin: 0 !important;
    padding: .75rem 1.25rem !important;
    font-size: 1.25rem !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.sf-fd-route--overlay .sf-fd-arrow {
    color: #C9A84C !important;
    -webkit-text-fill-color: #C9A84C !important;
}

/* ─── Route Banner (no image) ────────────────────────────────────────────── */
.sf-fd-route-banner,
a.sf-fd-route-banner {
    display: block !important;
    background: #0A2E1C !important;
    padding: 1.25rem 1.5rem 1.15rem !important;
    text-decoration: none !important;
    color: #FFFFFF !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.sf-fd-route-banner:hover,
a.sf-fd-route-banner:hover {
    background: #0D3A24 !important;
    text-decoration: none !important;
    color: #FFFFFF !important;
}

.sf-fd-route-banner-badges {
    display: flex !important;
    align-items: center;
    gap: .4rem;
    margin-bottom: .6rem !important;
}

.sf-fd-route--banner {
    color: #FFFFFF !important;
    font-size: 1.5rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700 !important;
}

.sf-fd-route--banner .sf-fd-arrow,
.sf-fd-route--overlay .sf-fd-arrow {
    color: #C9A84C !important;
}

/* ─── Badges (override Additional CSS wildcard [class*="badge"]) ─────────── */
.sf-fd-badge {
    display: inline-block !important;
    padding: .3rem .7rem !important;
    border-radius: 6px !important;
    font-size: .65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
    color: #fff !important;
    z-index: 2;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.sf-fd-badge--hot      { background: #D35F49 !important; }
.sf-fd-badge--good     { background: #145A32 !important; }
.sf-fd-badge--mistake  { background: #F59E0B !important; color: #1C1C1C !important; }
.sf-fd-badge--seasonal { background: #3B82F6 !important; }

.sf-fd-featured-badge {
    display: inline-block !important;
    background: #C9A84C !important;
    color: #1C1C1C !important;
    padding: .3rem .7rem !important;
    border-radius: 6px !important;
    font-size: .65rem !important;
    font-weight: 700 !important;
    z-index: 2;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.sf-fd-featured-badge--inline {
    margin-left: auto;
}

/* ─── Card Body ──────────────────────────────────────────────────────────── */
.sf-fd-card-body {
    padding: 1.25rem 1.5rem 1rem !important;
    flex: 1;
}

.sf-fd-route {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #1C1C1C !important;
    margin: 0 0 .4rem !important;
    line-height: 1.3;
}

.sf-fd-arrow {
    color: #C9A84C !important;
    margin: 0 .25rem;
}

.sf-fd-airline {
    font-size: .85rem !important;
    color: #6B7280 !important;
    margin: 0 0 1rem !important;
}

/* ─── Price ──────────────────────────────────────────────────────────────── */
.sf-fd-price-block {
    display: flex !important;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .4rem !important;
}

.sf-fd-price {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 1.6rem !important;
    color: #145A32 !important;
    line-height: 1 !important;
}

.sf-fd-trip-label {
    font-size: .75rem !important;
    color: #9CA3AF !important;
}

.sf-fd-alt-prices {
    display: flex !important;
    align-items: center;
    gap: .35rem;
    margin-bottom: 1rem !important;
}

.sf-fd-alt-price {
    font-size: .75rem !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    background: #F2E8D5 !important;
    padding: .2rem .5rem !important;
    border-radius: 4px !important;
    line-height: 1.3;
}

.sf-fd-alt-approx {
    font-size: .6rem !important;
    color: #9CA3AF !important;
    font-style: italic;
}

/* ─── Details ────────────────────────────────────────────────────────────── */
.sf-fd-details {
    display: flex !important;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .85rem !important;
}

.sf-fd-detail-tag {
    padding: .3rem .6rem !important;
    border-radius: 5px !important;
    background: #F2E8D5 !important;
    font-size: .72rem !important;
    font-weight: 500 !important;
    color: #1C1C1C !important;
}

.sf-fd-dates {
    font-size: .82rem !important;
    color: #6B7280 !important;
    margin: 0 0 .5rem !important;
}

.sf-fd-notes {
    font-size: .78rem !important;
    color: #9CA3AF !important;
    font-style: italic;
    margin: 0 !important;
    line-height: 1.5;
}

/* ─── Card Footer ────────────────────────────────────────────────────────── */
.sf-fd-card-footer {
    padding: 1rem 1.5rem 1.5rem !important;
    border-top: 1px solid #E5E7EB !important;
    margin-top: auto;
}

.sf-fd-meta-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .85rem !important;
}

.sf-fd-posted,
.sf-fd-expiry {
    font-size: .7rem !important;
    color: #9CA3AF !important;
}

/* ─── Card Actions (two buttons) ─────────────────────────────────────────── */
.sf-fd-card-actions {
    display: flex !important;
    gap: .6rem;
}

/* ─── Buttons (override Additional CSS [class*="card"] a) ────────────────── */
.sf-fd-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .35rem;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all .2s !important;
    text-decoration: none !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.sf-fd-btn--details {
    flex: 0 0 auto;
    padding: .75rem 1rem !important;
    font-size: .85rem !important;
    background: #FFFFFF !important;
    color: #0A2E1C !important;
    border: 1.5px solid #0A2E1C !important;
}

.sf-fd-btn--details:hover {
    background: #0A2E1C !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.sf-fd-btn--book {
    flex: 1;
    padding: .75rem 1rem !important;
    font-size: .85rem !important;
    background: #C9A84C !important;
    color: #1C1C1C !important;
}

.sf-fd-btn--book:hover {
    background: #0A2E1C !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.sf-fd-btn--wa {
    padding: .75rem 1.25rem !important;
    font-size: .9rem !important;
    background: #25D366 !important;
    color: #fff !important;
}

.sf-fd-btn--wa:hover {
    background: #1ebe5d !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ─── Empty State ────────────────────────────────────────────────────────── */
.sf-fd-empty {
    text-align: center;
    padding: 3rem 2rem !important;
    background: #FFFFFF !important;
    border-radius: 14px !important;
    color: #6B7280;
}

.sf-fd-empty p {
    margin-bottom: 1.25rem;
    font-size: .95rem;
}

/* ─── Disclaimer ─────────────────────────────────────────────────────────── */
.sf-fd-disclaimer {
    margin-top: 1.5rem;
    font-size: .72rem !important;
    color: #9CA3AF !important;
    text-align: center;
    line-height: 1.5;
}

/* ─── Featured Deal Widget ───────────────────────────────────────────────── */
.sf-fd-featured-card {
    background: #FFFFFF !important;
    border-radius: 14px !important;
    border: 2px solid #C9A84C !important;
    box-shadow: 0 4px 20px rgba(201, 168, 76, .15) !important;
    overflow: hidden;
    max-width: 400px;
    padding: 0 !important;
}

.sf-fd-featured-header {
    background: linear-gradient(135deg, #F5EBCD, #F2E8D5) !important;
    padding: .65rem 1rem !important;
    text-align: center;
}

.sf-fd-featured-label {
    font-size: .8rem !important;
    font-weight: 700 !important;
    color: #0A2E1C !important;
}

.sf-fd-featured-body {
    padding: 1.25rem !important;
}

.sf-fd-featured-body .sf-fd-route {
    font-size: 1.2rem !important;
    margin-bottom: .35rem !important;
}

.sf-fd-featured-body .sf-fd-airline {
    margin-bottom: .65rem !important;
}

.sf-fd-featured-body .sf-fd-btn--book {
    margin-top: .85rem !important;
}
