/* ── Agoda Dubai General Hotels v1.0 ─────────────────────────────────── */
.adg-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: 48px;
    color: #1a1a1a;
}

/* ── Header ── */
.adg-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 3px solid #e8342a;
    margin-bottom: 12px;
}
.adg-heading {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
    color: #111;
}
.adg-tagline { font-size: 0.95rem; margin: 0; color: #444; }
.adg-tagline strong { color: #e8342a; }

.adg-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.adg-sort-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
}
.adg-sort-select {
    border: 1.5px solid #ddd;
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 0.85rem;
    background: #fff;
    color: #222;
    cursor: pointer;
    min-width: 240px;
}
.adg-sort-select:focus { outline: 2px solid #e8342a; }

.adg-count { font-size: 0.82rem; color: #888; margin: 0 0 12px; }

/* ── Area legend pills ── */
.adg-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.adg-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: .02em;
}
.adg-pill-marina   { background: #e3f2fd; color: #0277bd; }
.adg-pill-downtown { background: #fce4ec; color: #c62828; }
.adg-pill-dubai    { background: #f3e5f5; color: #6a1b9a; }

/* ── Grid ── */
.adg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

/* ── Card ── */
.adg-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.adg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,.13);
}

/* ── Image ── */
.adg-img-box {
    position: relative;
    width: 100%;
    padding-top: 62%;
    background: #f0f0f0;
    overflow: hidden;
}
.adg-img-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
    display: block;
}
.adg-card:hover .adg-img-box img { transform: scale(1.07); }

.adg-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #ccc;
    background: #f8f8f8;
}

/* Area tag on image */
.adg-area-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 5px;
    letter-spacing: .03em;
    backdrop-filter: blur(4px);
}
.adg-zone-marina   { background: rgba(2,119,189,0.85);  color: #fff; }
.adg-zone-downtown { background: rgba(198,40,40,0.85);  color: #fff; }
.adg-zone-dubai    { background: rgba(106,27,154,0.85); color: #fff; }

/* ── Info ── */
.adg-info {
    padding: 13px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.adg-stars { font-size: 0.78rem; color: #f0a30a; letter-spacing: 1px; }
.adg-stars { white-space: nowrap; }
.adg-name {
    font-size: 0.93rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating */
.adg-rating-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.adg-sc {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    padding: 2px 7px;
    border-radius: 5px;
}
.adg-ex { background: #1b5e20; }
.adg-vg { background: #1a7f37; }
.adg-gd { background: #2e7d32; }
.adg-ok { background: #558b2f; }
.adg-sl { font-size: 0.78rem; font-weight: 600; color: #333; }
.adg-revs { font-size: 0.73rem; color: #999; }

/* Price */
.adg-price-row {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid #f0f0f0;
}
.adg-price { font-size: 1.45rem; font-weight: 900; color: #e8342a; line-height: 1; }
.adg-night { font-size: 0.72rem; color: #aaa; }

/* CTA */
.adg-btn {
    background: #e8342a;
    color: #fff;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 8px;
    margin-top: 8px;
    transition: background .15s;
}
.adg-card:hover .adg-btn { background: #c0392b; }

/* Footer */
.adg-footer {
    font-size: 0.7rem;
    color: #bbb;
    text-align: center;
    margin-top: 30px;
    line-height: 1.6;
}
.adg-footer a { color: #aaa; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .adg-header { flex-direction: column; align-items: flex-start; }
    .adg-header-right { align-items: flex-start; }
    .adg-sort-select { min-width: 100%; }
    .adg-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .adg-heading { font-size: 1.2rem; }
}
@media (max-width: 440px) {
    .adg-grid { grid-template-columns: 1fr; }
    .adg-price { font-size: 1.25rem; }
}
