/* =========================================================
   ALL DESTINATIONS PAGE
   ========================================================= */

.destinations-page {
    min-height: 100vh;
    background: var(--cream);
}

.destinations-container {
    width: min(calc(100% - 40px), 1200px);
    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.destinations-hero {
    padding: 28px 0 40px;

    background: linear-gradient(
        135deg,
        #4a3023 0%,
        #6b4937 60%,
        #87664f 100%
    );

    color: var(--white);
}

.destinations-breadcrumb {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 26px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 12px;
}

.destinations-breadcrumb a {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;

    transition: color 0.15s ease;
}

.destinations-breadcrumb a:hover {
    color: var(--white);
}

.destinations-breadcrumb i {
    font-size: 11px;
    opacity: 0.8;
}

.destinations-breadcrumb span {
    color: var(--white);
    font-weight: 700;
}


.destinations-hero-content {
    max-width: 640px;
}

.destinations-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 14px;
    padding: 6px 14px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.08);

    color: #f0dfcb;

    font-size: 12px;
}

.destinations-eyebrow i {
    font-size: 13px;
}

.destinations-hero-content h1 {
    margin: 0 0 12px;

    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.35;
}

.destinations-hero-content p {
    margin: 0;

    color: #eadfd4;

    font-size: 14px;
    line-height: 2;
}


/* SEARCH */

.destinations-search {
    position: relative;

    display: flex;
    align-items: center;

    gap: 8px;

    max-width: 520px;

    margin-top: 26px;
    padding: 6px 6px 6px 18px;

    background: var(--white);
    border-radius: 14px;

    box-shadow: 0 12px 34px rgba(38, 24, 17, 0.20);
}

.destinations-search > i {
    flex-shrink: 0;

    color: var(--brown-medium);
    font-size: 16px;
}

.destinations-search input {
    flex: 1;
    min-width: 0;

    height: 44px;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text-dark);

    font-family: inherit;
    font-size: 13px;
}

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

.destinations-search button {
    flex-shrink: 0;

    height: 44px;

    padding: 0 22px;

    border: 0;
    border-radius: 10px;

    background: var(--brown-dark);
    color: var(--white);

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease;
}

.destinations-search button:hover {
    background: #503529;
}


/* =========================================================
   BODY
   ========================================================= */

.destinations-body {
    padding: 40px 0 70px;
}


/* COUNT BAR */

.destinations-count-bar {
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    color: var(--text-muted);
    font-size: 12px;
}

.destinations-count-bar strong {
    color: var(--brown-dark);
    font-weight: 700;
}

.destinations-clear-filter {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 12px;

    border-radius: 999px;

    background: #fdf2f2;
    color: #a3413a;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition: background 0.2s ease;
}

.destinations-clear-filter:hover {
    background: #f7e3e3;
}

.destinations-clear-filter i {
    font-size: 12px;
}


/* GRID */

.destinations-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   CITY CARD
   ========================================================= */

.city-card {
    position: relative;

    display: block;

    height: 200px;

    border-radius: 15px;

    overflow: hidden;

    background: linear-gradient(
        135deg,
        var(--beige-light) 0%,
        var(--beige) 100%
    );

    box-shadow: 0 5px 18px rgba(59, 40, 30, 0.08);

    isolation: isolate;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.city-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(59, 40, 30, 0.14);
}

.city-card-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    z-index: 0;

    transition: transform 0.5s ease;
}

.city-card:hover .city-card-image {
    transform: scale(1.07);
}

.city-card-image.is-broken {
    opacity: 0;
}

.city-card-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    padding: 16px 16px 14px;

    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 10px;

    background: linear-gradient(
        transparent 35%,
        rgba(30, 20, 15, 0.78) 100%
    );

    color: var(--white);
}

.city-card-info {
    min-width: 0;
}

.city-card-name {
    margin: 0 0 4px;

    font-size: 17px;
    font-weight: 800;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-card-meta {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-card-meta i {
    font-size: 11px;
    opacity: 0.9;
}

.city-card-arrow {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.18);
    color: var(--white);

    font-size: 14px;

    backdrop-filter: blur(3px);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.city-card:hover .city-card-arrow {
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(-2px);
}


/* =========================================================
   EMPTY
   ========================================================= */

.destinations-empty {
    max-width: 520px;
    margin: 60px auto;
    padding: 55px 30px;

    text-align: center;

    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);

    box-shadow: 0 8px 25px rgba(59, 40, 30, 0.05);
}

.destinations-empty > i {
    font-size: 44px;
    color: var(--brown-light);
}

.destinations-empty h2 {
    margin: 18px 0 8px;

    color: var(--brown-dark);
    font-size: 18px;
}

.destinations-empty p {
    margin-bottom: 22px;

    color: var(--text-muted);
    font-size: 13px;
}

.destinations-empty-button {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    height: 42px;
    padding: 0 18px;

    border-radius: 10px;

    background: var(--brown-dark);
    color: var(--white);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition: background 0.2s ease;
}

.destinations-empty-button:hover {
    background: #503529;
    color: var(--white);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .destinations-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {

    .destinations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .city-card {
        height: 180px;
    }

    .city-card-name {
        font-size: 15px;
    }
}

@media (max-width: 500px) {

    .destinations-container {
        width: calc(100% - 24px);
    }

    .destinations-hero {
        padding: 22px 0 30px;
    }

    .destinations-search {
        padding: 5px 5px 5px 14px;
    }

    .destinations-search button {
        padding: 0 16px;
        font-size: 12px;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .city-card {
        height: 170px;
    }

    .destinations-count-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   PLACEHOLDER (only shown if a city has no image in DB)
   ========================================================= */

.city-card-image-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--beige-light),
        var(--beige)
    );

    color: var(--brown-light);
    font-size: 40px;

    z-index: 0;
}

/* =========================================================
   PLACEHOLDER (shown when a city has no image yet)
   ========================================================= */

.city-card-placeholder,
.destination-image-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--beige-light),
        var(--beige)
    );

    color: var(--brown-light);
    font-size: 40px;

    z-index: 0;
}