/* --- TRAVEL DESTINATIONS FRONTEND STYLES --- */
/* Matches the exact UI design provided */

.travele-dest-content {
    font-family: 'Urbanist', sans-serif;
    background-color: #ffffff;
    width: 100%;
    padding: 80px 0;
    position: relative;
}

.td-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- GRID LAYOUT --- */
.td-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

/* --- CARD DESIGN --- */
.td-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.td-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.td-img-wrap {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.td-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.td-card:hover .td-img-wrap img {
    transform: scale(1.1);
}

/* Badge for Distance */
.td-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.td-card-body {
    padding: 30px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.td-title {
    font-size: 22px;
    font-weight: 800;
    color: #0d1e38;
    margin: 0 0 10px 0;
}

/* Truncated description for card view */
.td-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.td-btn {
    display: inline-block;
    background-color: #3fc8f4;
    color: #fff;
    padding: 12px 30px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(63, 200, 244, 0.3);
    align-self: center;
    cursor: pointer;
    border: none;
}

.td-btn:hover {
    background-color: #0d1e38;
    transform: scale(1.05);
}

/* --- MODAL STYLES --- */
.td-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.td-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.td-modal-box {
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: 550px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.td-modal-overlay.active .td-modal-box {
    transform: scale(1);
    opacity: 1;
}

.td-m-image-col {
    flex: 1;
    background-color: #eee;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.td-m-image-col img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

.td-m-content-col {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.td-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #555;
    z-index: 10;
}

.td-close-btn:hover {
    background: #ff5533;
    color: #fff;
}

.td-m-title {
    font-size: 28px;
    font-weight: 800;
    color: #0d1e38;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.td-m-subtitle {
    font-size: 13px;
    color: #3fc8f4;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
    letter-spacing: 1px;
}

.td-m-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

/* --- MODAL CONTACT BUTTON --- */
.td-modal-contact-btn {
    display: inline-block;
    margin-top: 25px;
    background-color: #3fc8f4;
    color: #fff !important;
    padding: 14px 40px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(63, 200, 244, 0.3);
    border-bottom: none !important;
}

.td-modal-contact-btn:hover {
    background-color: #0d1e38;
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none !important;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 900px) {
    .td-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .td-modal-box {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }

    .td-m-image-col {
        height: 200px;
        flex: none;
    }

    .td-m-content-col {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .td-grid {
        grid-template-columns: 1fr;
    }

    .travele-dest-content {
        padding: 40px 0;
    }

    .td-grid {
        gap: 25px;
    }
}