/**
 * Single Destination City Highlights Styles
 * 
 * @package Tourify
 * @subpackage Tourify/template-parts/single-page/destinations-init/css
 * @since 1.0.0
 */

.tourify-destination-highlights-section {
    padding: 38px 0 54px 0;
    position: relative;
}

.dest-highlights-inner {
    width: 100%;
}

/* --- Section Header & Title --- */
.dest-highlights-header {
    margin-bottom: 34px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 1024px) {
    .dest-highlights-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.dest-header-text {
    max-width: 720px;
}

.dest-sec-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #DE9127;
    margin-bottom: 8px;
}

.dest-sec-subtitle i {
    font-size: 14px;
}

.dest-sec-title {
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.25;
    color: #00142b;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.dest-sec-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* --- Filter Bar & Tabs --- */
.dest-highlights-filter-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 999px;
    flex-wrap: wrap;
    align-self: flex-start;
}

@media (min-width: 1024px) {
    .dest-highlights-filter-bar {
        align-self: flex-end;
    }
}

.dest-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: none;
    background: transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.dest-filter-btn:hover {
    color: #00142b;
    background: rgba(255, 255, 255, 0.6);
}

.dest-filter-btn.active {
    background: #00142b;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 20, 43, 0.2);
}

.dest-filter-btn.active i {
    color: #F9A61D;
}

.dest-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.dest-filter-btn.active .dest-filter-count {
    background: rgba(249, 166, 29, 0.25);
    color: #F9A61D;
}

/* --- Highlights Grid --- */
.dest-highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

@media (min-width: 640px) {
    .dest-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dest-highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Highlight Card --- */
.dest-highlight-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(16, 26, 61, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.dest-highlight-card:hover {
    transform: translateY(-6px);
    border-color: #0FA3C4;
    box-shadow: 0 18px 36px -8px rgba(16, 26, 61, 0.14);
}

/* Card Media */
.dest-card-media {
    position: relative;
    height: 220px;
    background: #0f172a;
    overflow: hidden;
}

.dest-card-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.dest-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-highlight-card:hover .dest-card-media img {
    transform: scale(1.08);
}

.dest-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.dest-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #101a3d 0%, #1e293b 100%);
    color: #64748b;
    font-size: 44px;
}

/* Watermark Number */
.dest-card-index {
    position: absolute;
    bottom: 8px;
    right: 14px;
    /* font-family: 'Cinzel', serif; */
    font-weight: 800;
    font-size: 38px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.28);
    pointer-events: none;
    z-index: 2;
    letter-spacing: -0.05em;
    user-select: none;
}

/* Card Badges */
.dest-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    z-index: 3;
    pointer-events: none;
}

.dest-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    backdrop-filter: blur(8px);
    line-height: 1.2;
}

.dest-type-activity {
    background: var(--tourify-badge-bg, rgba(13, 122, 100, 0.92));
    color: var(--tourify-badge-text, #ffffff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dest-type-attraction {
    background: var(--tourify-badge-bg, rgba(184, 110, 14, 0.92));
    color: var(--tourify-badge-text, #ffffff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dest-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--tourify-badge-bg, rgba(0, 20, 43, 0.88));
    color: var(--tourify-badge-text, #F9A61D);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.dest-promo-badge i {
    font-size: 10px;
}

/* --- Card Body --- */
.dest-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dest-card-meta-top {
    margin-bottom: 8px;
}

.dest-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-secondary, #DE9127);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dest-card-tag i {
    color: var(--color-secondary, #DE9127);
    font-size: 11.5px;
}

.dest-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.35;
}

.dest-card-title a {
    color: #00142b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dest-highlight-card:hover .dest-card-title a {
    color: #124B8C;
}

.dest-card-excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Card Footer --- */
.dest-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dest-card-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 10px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dest-card-cta-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.dest-highlight-card:hover .dest-card-cta-btn {
    background: linear-gradient(135deg, #00142b 0%, #124B8C 100%);
    color: #F9A61D;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 20, 43, 0.2);
}

.dest-highlight-card:hover .dest-card-cta-btn i {
    transform: translateX(4px);
    color: #F9A61D;
}

.dest-card-directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.dest-card-directions-btn:hover {
    background: #DE9127;
    border-color: #DE9127;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(222, 145, 39, 0.35);
}

/* Filtering Animations */
.dest-highlight-card.is-hidden {
    display: none !important;
}

.dest-highlight-card.fade-out {
    opacity: 0;
    transform: scale(0.96);
}

.dest-highlight-card.fade-in {
    animation: destFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes destFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

