/* Split for the 300-line cap — order matters, keep sequence. */

.trivago-comp-item {
    font-size: 12px;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .trivago-top-ribbon {
        display: flex !important;
        background-color: #991b1b;
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        text-align: center;
        padding: 6px 12px;
        letter-spacing: 0.02em;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }
    .trivago-card-grid {
        grid-template-columns: 1fr;
    }
    .trivago-card-media {
        height: 220px;
    }
    .trivago-card-dealbox {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding: 12px 14px;
    }
}

@media (max-width: 576px) {
    .trivago-card {
        margin-bottom: 14px;
        border-radius: 10px;
    }
    .trivago-card-media {
        height: 195px;
    }
    .trivago-card-body {
        padding: 12px 12px 10px;
    }
    .trivago-hotel-title {
        font-size: 16px;
    }
    .trivago-price-amount {
        font-size: 20px;
    }
    .trivago-deal-btn {
        padding: 7px 14px;
        font-size: 13px;
    }
}

/* Trivago shimmer removed: dead on home (cards use .gh-shimmer via
   FastnetLoading.skeleton). Canonical sweep lives in loading.css. */
.hotel-list-image-empty {
    align-items: center;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    height: 100%;
    justify-content: center;
    min-height: 210px;
}

/* Card highlight effect when linked or focused from map marker */
.trivago-card.map-highlight-card {
    border-color: #007fad !important;
    box-shadow: 0 0 0 3px rgba(0, 127, 173, 0.35), 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
    transition: all 0.25s ease;
}

/* ── Google Hotels Card — extracted from templates/element/Home/gh-hotel-cards.php for cacheability ── */
.gh-card{background:#fff;border:1px solid #e8eaed;border-radius:14px;margin-bottom:16px;display:flex;flex-direction:row;overflow:hidden;cursor:pointer;box-shadow:0 2px 8px rgba(60,64,67,.14),0 8px 24px rgba(60,64,67,.12);transition:box-shadow .24s ease,border-color .24s ease,transform .24s ease;font-family:'Google Sans',Roboto,Arial,sans-serif}
.gh-card:hover{box-shadow:0 8px 24px rgba(60,64,67,.22),0 16px 48px rgba(60,64,67,.16);border-color:#dadce0;transform:translateY(-3px)}
.gh-card.map-hovered{box-shadow:0 8px 24px rgba(26,115,232,.36),0 16px 48px rgba(26,115,232,.20);border-color:#1a73e8;transform:translateY(-3px)}
.gh-card-photo{position:relative;flex:0 0 185px;min-height:168px;background:#f8f9fa;overflow:hidden;border-right:1px solid #f1f3f4}
.gh-card-photo img{width:100%;height:100%;object-fit:cover;display:block}
.gh-card-no-photo{width:100%;height:100%;min-height:180px;display:flex;align-items:center;justify-content:center;color:#9e9e9e;font-size:12px;text-align:center;padding:8px}
.gh-card-bm{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;background:rgba(0,0,0,.48);border:none;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;cursor:pointer;z-index:3;transition:background .15s}
.gh-card-bm:hover{background:rgba(0,0,0,.72)}
.gh-card-dots{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);display:flex;gap:4px;z-index:3}
.gh-card-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55)}
.gh-card-dot.a{background:#fff}
.gh-card-body{flex:1 1 0;min-width:0;padding:12px 16px 12px 16px;display:flex;flex-direction:column;justify-content:space-between}
.gh-name-price-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:4px}
.gh-hotel-name{font-size:16px;font-weight:400;color:#202124;text-decoration:none;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1 1 0;min-width:0;line-height:20px}
.gh-hotel-name:hover{color:#1a73e8}
.gh-hotel-price{font-size:15px;font-weight:700;color:#202124;white-space:nowrap;flex-shrink:0;line-height:20px}
.gh-rating-inline{font-size:13.5px;color:#202124;margin-bottom:8px;display:flex;align-items:center;gap:3px}
.gh-rating-num{font-weight:600}
.gh-rating-star{color:#fbbc04;font-size:13px}
.gh-rating-count{color:#1a73e8}
.gh-amenity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px 12px;flex:1;margin-bottom:10px}
.gh-am-item{display:flex;align-items:center;gap:5px;font-size:12.5px;color:#202124;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gh-am-item i{color:#5f6368;font-size:11px;width:13px;text-align:center;flex-shrink:0}
.gh-card-bottom{display:flex;align-items:center;justify-content:flex-end}
.gh-btn-prices{background:#1a73e8;color:#fff;border:1px solid #1a73e8;border-radius:18px;padding:7px 18px;font-size:13px;font-weight:500;text-decoration:none;display:inline-flex;align-items:center;gap:6px;transition:background .15s,box-shadow .15s;white-space:nowrap;line-height:1;font-family:'Google Sans',Roboto,sans-serif}
.gh-btn-prices:hover{background:#1765cc;border-color:#1765cc;color:#fff;box-shadow:0 1px 2px rgba(60,64,67,.3)}
.gh-btn-details{background:#fff;color:#1a73e8;border:1px solid #dadce0;border-radius:18px;padding:7px 18px;font-size:13px;font-weight:500;text-decoration:none;display:inline-flex;align-items:center;transition:all .15s;white-space:nowrap;line-height:1;font-family:'Google Sans',Roboto,sans-serif}
.gh-btn-details:hover{border-color:#aecbfa;background:#e8f0fe;color:#1967d2}
.gh-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:12px;font-size:10px;font-weight:700;letter-spacing:.03em;font-family:'Google Sans',Roboto,sans-serif;line-height:1}
.gh-badge-great{background:#e6f4ea;color:#137333;border:1px solid #a8dab5}
.gh-badge-deal{background:#e6f4ea;color:#137333;border:1px solid #a8dab5}
.gh-badge-photo{position:absolute;top:8px;left:8px;z-index:4;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.gh-price-great{color:#137333 !important}
.gh-price-sub{font-size:11px;color:#5f6368;font-weight:400;font-family:Roboto,sans-serif;line-height:1}
.gh-shimmer{background:#fff;border:1px solid #e8eaed;border-radius:8px;margin-bottom:16px;display:flex;overflow:hidden;box-shadow:none}
/* Skeleton blocks delegate to the canonical sweep in loading.css. This used
   to declare a second, byte-identical @keyframes ghShim — and its
   background-position sweep jumped visibly at the loop point because the
   gradient does not start and end on the same colour. */
.gh-shim-block{border-radius:4px}
.gh-hotel-price{font-size:18px;font-weight:700;color:#202124}
@media(max-width:991px){.gh-hotel-price{font-size:16px}}
.gh-card-media-row{display:contents}
.gh-card-viewmap{display:none}
@media(max-width:767px){
  .gh-card{flex-direction:column;border-radius:12px}
  .gh-card-media-row{display:block !important;width:100%}
  .gh-card-photo{width:100%;min-height:0;height:168px;border-right:none;border-bottom:1px solid #f1f3f4}
  .gh-card-body{padding:10px 12px 0}
  .gh-name-price-row{margin-bottom:2px}
  .gh-hotel-price{display:none}
  .gh-hotel-name{font-size:15px;font-weight:500;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .gh-amenity-grid{display:none}
  .gh-card-bottom{display:none}
  .gh-card-viewmap{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e8eaed;margin-top:10px;padding:10px 0 8px}
}
@media(max-width:360px){.gh-hotel-name{font-size:15px}}
.gh-empty{ background:#fff; border:1px solid #e8eaed; border-radius:16px; padding:32px 24px; text-align:center; box-shadow:0 2px 8px rgba(60,64,67,.08)}
.gh-empty-icon{ width:64px; height:64px; border-radius:50%; background:#f1f3f4; display:inline-flex; align-items:center; justify-content:center; color:#9aa0a6; font-size:26px; margin-bottom:16px}
.gh-empty h4{ font-size:16px; font-weight:500; color:#202124; margin:0 0 6px; font-family:'Google Sans',Roboto,sans-serif}
.gh-empty p{ font-size:13.5px; color:#5f6368; margin:0 0 18px; line-height:18px; font-family:Roboto,sans-serif}
.gh-empty-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap}
.gh-empty-btn{ border-radius:20px; padding:8px 18px; font-size:13px; font-weight:500; text-decoration:none; display:inline-flex; align-items:center; gap:6px; font-family:'Google Sans',Roboto,sans-serif}
.gh-empty-btn.primary{ background:#1a73e8; color:#fff; border:1px solid #1a73e8}
.gh-empty-btn.primary:hover{ background:#1765cc}
.gh-empty-btn.secondary{ background:#fff; color:#1a73e8; border:1px solid #dadce0}
.gh-empty-btn.secondary:hover{ background:#f8f9fa; border-color:#aecbfa}
