/* ===========================
   DESTINATIONS HERO
=========================== */
.dest-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 95px;
    overflow: hidden;
}

.dest-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    border-radius:var(--radius);

}

.dest-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 40, 0.55) 0%,
        rgba(10, 20, 40, 0.40) 100%
    );
    z-index: 1;
    border-radius:var(--radius);

}

.dest-hero__search {
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    padding: 0 24px;
    transform: translateY(-10%);
}

.dest-hero__search .search-box {
    transform: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* ===========================
   DESTINATIONS LISTING
=========================== */
.dest-listing {
    padding: 120px 24px 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

/* ===========================
   SORT BAR
=========================== */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.sort-bar__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

/* Sort Dropdown */
.sort-dropdown-wrap {
    position: relative;
}

.sort-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 25px;
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.sort-dropdown-btn:hover,
.sort-dropdown-btn.open {
    border-color: var(--primary);
    color: var(--primary);
}

.sort-dropdown-btn svg {
    transition: transform 0.3s ease;
}

.sort-dropdown-btn.open svg {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.10);
    min-width: 180px;
    z-index: 200;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s ease;
}

.sort-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.rtl .sort-dropdown-menu {
    left: auto;
    right: 0;
}

.sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    text-align: left;
}

body.rtl .sort-option {
    text-align: right;
}

.sort-option:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.sort-option.active {
    color: var(--primary);
    font-weight: 700;
    background: #f0f9ff;
}

.sort-option svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ===========================
   DESTINATIONS GRID
=========================== */
.dest-listing__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

/* ===========================
   DESTINATION CARD
   (same style as home)
=========================== */
.dest-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.dest-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dest-card:hover .dest-card__img {
    transform: scale(1.06);
}

.dest-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.10) 55%,
        transparent 100%
    );
}

/* Arrow icon (top-right) */
.dest-card__arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.90);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
}

body.rtl .dest-card__arrow {
    right: auto;
    left: 12px;
}

.dest-card:hover .dest-card__arrow {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Info block (bottom-left) */
.dest-card__info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: var(--white);
}

body.rtl .dest-card__info {
    left: auto;
    right: 16px;
    text-align: right;
}

.dest-card__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.dest-card__price {
    font-size: 12px;
    opacity: 0.92;
    font-weight: 500;
}

/* ===========================
   PAGINATION (reuse trips.css)
=========================== */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
    .dest-listing__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dest-hero {
        min-height: 200px;
    }

    .dest-hero__search {
        transform: translateX(-1.6em);
        padding: 0 12px;
        margin-bottom: 16px;
    }

    body.rtl .dest-hero__search {
        transform: translateX(1.6em);
    }

    .dest-hero__search .search-box {
        flex-wrap: wrap;
        gap: 12px;
        border-radius: 12px;
        padding: 16px;
    }

    .dest-hero__search .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-width: calc(50% - 12px);
        padding: 8px 12px;
    }

    body.rtl .dest-hero__search .search-field {
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .dest-listing {
        padding: 24px 16px 60px;
    }

    .dest-listing__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dest-card__name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .dest-listing__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dest-card__name {
        font-size: 13px;
    }

    .dest-card__price {
        font-size: 11px;
    }
}
