/* ============================================================
   destinations.css — Styles for Destinations page
   ============================================================ */

/* Active nav link */
.nav-active {
    color: var(--gold) !important;
}
.nav-active::after {
    width: 100% !important;
    background-color: var(--gold) !important;
}

/* ---- Hero ---- */
.dest-hero {
    height: 65vh;
    background-image:
        radial-gradient(ellipse at 50% 100%, rgba(245,200,66,0.07) 0%, transparent 65%),
        linear-gradient(135deg, rgba(5,10,24,0.82), rgba(13,31,64,0.7)),
        url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.page-hero-content h1 {
    font-size: 4rem;
    margin: 10px 0 15px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.1);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs i { font-size: 0.7rem; }

/* ---- Controls Section ---- */
.dest-controls-section {
    padding: 0 5%;
    transform: translateY(-40px);
    position: relative;
    z-index: 10;
}

.dest-controls {
    background: rgba(13, 27, 54, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(245, 200, 66, 0.08);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* Search row */
.dest-search-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(5, 10, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 6px 6px 6px 22px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.dest-search-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(245, 200, 66, 0.18), 0 0 20px rgba(245, 200, 66, 0.1);
}

.dest-search-icon {
    color: var(--gold);
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.dest-search-wrap:focus-within .dest-search-icon {
    transform: scale(1.1);
}

.dest-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.dest-search-input::placeholder {
    color: var(--text-muted);
}

.dest-search-btn {
    padding: 10px 28px;
    border-radius: 40px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Filter row */
.dest-filter-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.dest-filter-wrap .filter-btn {
    padding: 8px 22px;
    font-size: 0.9rem;
}

.dest-filter-wrap .filter-btn:hover {
    color: var(--text-primary);
}

/* ---- Result Info ---- */
.dest-grid-section {
    padding-top: 10px;
}

.dest-grid-section .package-card {
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.45s ease;
}

.dest-grid-section .package-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 28px 60px rgba(0,0,0,0.45);
}

.dest-controls {
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.dest-controls:focus-within {
    border-color: rgba(245, 200, 66, 0.15);
}

.dest-result-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 14px 20px;
    background: rgba(245,200,66,0.06);
    border: 1px solid rgba(245,200,66,0.15);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

#dest-result-count {
    color: var(--gold);
}

.dest-clear-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dest-clear-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ---- Error / No-results states ---- */
.dest-error,
.dest-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.dest-error i,
.dest-no-results i {
    font-size: 3.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

.dest-error h3,
.dest-no-results h3 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.dest-error code {
    color: var(--teal);
}

/* ---- Float-icon animation for error / no-results states ---- */
@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.dest-error i,
.dest-no-results i {
    animation: float-icon 2.5s ease-in-out infinite;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero-content h1 { font-size: 2.5rem; }
    .dest-controls { padding: 20px; }
    .dest-search-wrap { flex-wrap: wrap; border-radius: 16px; padding: 12px 16px; }
    .dest-search-btn { width: 100%; margin-top: 8px; text-align: center; }
}
