/**
 * Desert redesign — structural pieces that go beyond a color/font swap.
 * Added 2026-08-15, piece by piece, starting with the front-page
 * destination grid (front-page.php). Uses tokens from desert-tokens.css.
 * Each section below is self-contained so it's safe to add the next one
 * (listing cards, hero, nav, footer) without touching what's already here.
 */

/* ---------- front page: destination grid ---------- */
.desert-dest-grid{
    max-width:1170px;
    margin:0 auto;
    padding:28px clamp(16px,3vw,32px) 6px;
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr;
    grid-template-rows:auto auto;
    gap:14px;
    box-sizing:border-box;
}
.desert-dest-card{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:var(--dt-radius);
    min-height:210px;
    text-decoration:none;
    box-shadow:var(--dt-shadow);
    background:var(--dt-ink-800);
}
.desert-dest-grid .desert-dest-card img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    transition:transform .5s ease;
}
.desert-dest-card:hover img{
    transform:scale(1.05);
}
.desert-dest-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(27,18,12,0) 35%,rgba(27,18,12,.88) 100%);
}
.desert-dest-card--lg{
    grid-row:span 2;
    min-height:436px;
}
.desert-dest-tag{
    position:absolute;
    top:14px;
    left:14px;
    z-index:2;
    font-family:'Archivo',sans-serif;
    font-size:11px;
    font-weight:700;
    letter-spacing:.09em;
    text-transform:uppercase;
    background:var(--dt-terracotta);
    color:var(--dt-paper-hi);
    padding:5px 10px;
    border-radius:2px;
}
.desert-dest-info{
    position:absolute;
    left:18px;
    right:18px;
    bottom:16px;
    z-index:2;
    color:var(--dt-paper-hi);
    font-family:'Fraunces',Georgia,serif;
}
.desert-dest-info strong{
    display:block;
    font-size:21px;
    font-weight:650;
}
.desert-dest-card--lg .desert-dest-info strong{
    font-size:29px;
}
.desert-dest-info em{
    display:block;
    font-style:italic;
    font-weight:500;
    font-family:'Fraunces',Georgia,serif;
    font-size:14px;
    color:var(--dt-terracotta-hi);
    margin-top:3px;
}

@media only screen and (max-width:900px){
    .desert-dest-grid{
        grid-template-columns:1fr 1fr;
    }
    .desert-dest-card--lg{
        grid-column:span 2;
        grid-row:auto;
        min-height:260px;
    }
}
@media only screen and (max-width:560px){
    .desert-dest-grid{
        grid-template-columns:1fr;
        padding:20px 14px 4px;
    }
    .desert-dest-card--lg{
        grid-column:auto;
        min-height:240px;
    }
    .desert-dest-card{
        min-height:190px;
    }
}

/* ---------- listing cards (loop.php) ----------
   Used on category pages (taxonomy-listcat.php) and the homepage
   "Recently Added" section — both wrap loop.php in .featured_content,
   so this one change covers every place the old horizontal thumb+text
   row appeared. loop.php's markup/classes are untouched; this is a
   pure CSS re-layout from a floated row to a card grid. */
.content_wrapper .featured_content{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:24px;
    overflow:visible;
}
.content_wrapper .featured_content .blog-row{
    grid-column:1/-1;
    margin:0;
}
.content_wrapper .featured_content .featured_post{
    margin-bottom:0;
    padding:0;
    display:block;
    overflow:visible;
}
.content_wrapper .featured_content .featured_post .featured{
    background:var(--dt-paper-hi);
    border:1px solid var(--dt-paper-line);
    border-radius:var(--dt-radius);
    overflow:hidden;
    padding:0;
    height:100%;
    display:flex;
    flex-direction:column;
    transition:transform .18s ease, box-shadow .18s ease;
}
.content_wrapper .featured_content .featured_post .featured:hover{
    transform:translateY(-4px);
    box-shadow:var(--dt-shadow);
}
.content_wrapper .featured_content .featured_thumb{
    width:100%;
    float:none;
    margin:0;
    text-align:left;
    position:relative;
}
.content_wrapper .featured_content .featured_thumb .post-thumb{
    width:100%;
    height:190px;
    margin-bottom:0;
}
.content_wrapper .featured_content .featured_thumb img.f_thumb{
    width:100%;
    height:190px;
    max-width:none;
    object-fit:cover;
}
.content_wrapper .featured_content .featured_thumb .star_rating{
    margin:10px 0 0 14px;
}
.content_wrapper .featured_content .f_post_content{
    padding:14px 18px 20px;
    flex:1;
    display:flex;
    flex-direction:column;
}
.content_wrapper .featured_content .f_post_content.f_post_paid{
    margin-top:0;
}
.content_wrapper .featured_content .f_post_title{
    font-size:19px;
    margin-top:0;
    margin-bottom:6px;
}
.content_wrapper .featured_content .f_post_meta{
    order:-1;
    font-size:13px;
    color:var(--dt-terracotta);
    font-weight:700;
    letter-spacing:.03em;
    margin-bottom:10px;
}

@media only screen and (max-width:640px){
    .content_wrapper .featured_content{
        grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
        gap:16px;
    }
}
@media only screen and (max-width:480px){
    .content_wrapper .featured_content{
        grid-template-columns:1fr;
    }
}
