/* filter */

.dest-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* space between buttons */
    margin-bottom: 20px;
}

.dest-filter button {
    border: 1px solid #999;
    padding: 3px 14px;
    border-radius: 30px;
  /*  background: #ECECEC;*/
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover effect */
.dest-filter button:hover {
    background: #caa938;
    border: 1px solid #caa938;
    color: #ffffff;
}
        
.dest-filter button.active {
    background: #caa938;
    border: 1px solid #caa938;
    color: #ffffff;
}


.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.dest-item img {
    width: 100%;
    cursor: pointer;
}


/* TABLET (iPad) */
@media (max-width: 1024px) {
    .dest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .dest-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive image height */
@media (max-width: 767px) {
    .dest-item img {
        height: 180px;
    }
}

.dest-item {
    /*background: #F2F2F2;*/
    background: #fff !important;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dest-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.dest-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.dest-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 3px;
    color: #caa938 !important;
    margin: 15px 20px;
}

.dest-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 6px 20px 12px;
    color: #555;
}

/* DESKTOP / DEFAULT (2 columns) */
.dest-popup-inner {
    display: flex;
    gap: 30px;
}



/* =========================
   POPUP OVERLAY
========================= */
#dest-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;

    display: none;              /* hidden by default */
    align-items: center;
    justify-content: center;

    padding: 20px;              /* prevents edge overflow */
    overflow-x: hidden;
}

/* =========================
   POPUP INNER
========================= */
.dest-popup-inner {
    background: #fff;
    width: 100%;
    max-width: 600px;

    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;

    position: relative;

    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;

    display: flex;
    gap: 30px;
}

/* =========================
   IMAGE
========================= */
#dest-popup-image {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
}

/* =========================
   TITLE
========================= */
#dest-popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem !important;
    font-weight: 500;
    color: #caa938;
    margin: 0 0 16px;
    line-height: 1.3;
}

/* =========================
   CLOSE BUTTON (FIXED)
========================= */
.dest-close {
    position: absolute;
    top: 6px;
    right: 6px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: 20px;
    font-weight: 400;

    color: #555;
    cursor: pointer;

    transition: color 0.2s ease, background 0.2s ease;
}

.dest-close:hover {
    color: #C4A10E;
    background: rgba(196, 161, 14, 0.12);
}


/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {
    .dest-popup-inner {
        flex-direction: column;
        width: 100%;
        padding: 25px;
    }

    #dest-popup-title {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    #dest-popup-content p {
        font-size: 0.75rem;
        line-height: 1.45;
    }
}

@media (max-width: 767px) {
    .dest-popup-left,
    .dest-popup-right {
        flex: 0 0 100%;
        width: 100%;
    }
}


.dest-popup-left {
    flex: 0 0 30%;
}

.dest-popup-right {
    flex: 1; /* takes remaining width */
}






