/* ==========================================
   Trending Destinations (Digicells Hotel Booking)
   Additive module — does not override any existing
   .dghb-* classes from style.css.
   Font-family intentionally NOT set anywhere below,
   so all text inherits Elementor's global typography.
   ========================================== */

.dghb-trending-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 0;
    box-sizing: border-box;
}

.dghb-trending-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: inherit;
}

.dghb-trending-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 20px;
}

/* No title/subtitle rendered → grid starts right at the top, no gap left behind */
.dghb-trending-wrap > .dghb-trending-grid:first-child {
    margin-top: 0;
}

.dghb-trending-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.dghb-trending-row {
    display: grid;
    gap: 16px;
}

.dghb-trending-row-large {
    grid-template-columns: repeat(2, 1fr);
}

.dghb-trending-row-small {
    grid-template-columns: repeat(3, 1fr);
}

.dghb-trending-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    text-decoration: none;
    min-height: 180px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dghb-trending-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.dghb-trending-card-large {
    aspect-ratio: 16 / 9;
}

.dghb-trending-card-small {
    aspect-ratio: 1 / 1;
}

.dghb-trending-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

.dghb-trending-name {
    position: absolute;
    left: 18px;
    bottom: 16px;
    right: 18px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dghb-trending-card-small .dghb-trending-name {
    font-size: 1.05rem;
}

.dghb-trending-flag {
    font-size: 1.15em;
    line-height: 1;
    display: inline-flex;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .dghb-trending-card-large,
    .dghb-trending-card-small {
        min-height: 150px;
    }
}

@media (max-width: 640px) {
    .dghb-trending-row-large,
    .dghb-trending-row-small {
        grid-template-columns: repeat(2, 1fr);
    }
    .dghb-trending-title { font-size: 1.4rem; }
    .dghb-trending-name { font-size: 1rem; }
    .dghb-trending-card-small .dghb-trending-name { font-size: 0.9rem; }
}

@media (max-width: 420px) {
    .dghb-trending-row-large,
    .dghb-trending-row-small {
        grid-template-columns: 1fr;
    }
}
