/* ============================================================
   pahang.co — Homepage (mobile-first)
   Shared .chip / .hscroll / .pcard live in main.css
   ============================================================ */

:root {
    --tone-food: #ea580c;
    --tone-stay: #2563eb;
    --tone-biz:  #4f46e5;
    --tone-read: #0d9488;
    --tone-zh:   #dc2626;
    --tone-news: #475569;
}

/* ── HERO ── */
.hero {
    position: relative;
    background: var(--navy) url('../img/hero.webp') center / cover no-repeat;
    padding: 40px 16px 28px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,43,94,.72), rgba(13,43,94,.88));
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 6vw, 46px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.hero h1 em { font-style: normal; color: #fbbf24; }
.hero p { color: rgba(255,255,255,.72); font-size: 14px; margin: 10px auto 20px; max-width: 440px; line-height: 1.6; }

.search {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 18px 48px rgba(0,0,0,.28);
    text-align: left;
}
.search-types { display: flex; gap: 4px; background: var(--pale); border-radius: 10px; padding: 4px; margin-bottom: 10px; }
.search-type {
    flex: 1;
    border: 0; background: transparent;
    font: 600 13px/1 'DM Sans', sans-serif;
    color: var(--muted);
    padding: 9px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
}
.search-type.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(13,43,94,.14); }
.search-row { display: flex; gap: 8px; }
.search-row input {
    flex: 1; min-width: 0;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font: 400 15px 'DM Sans', sans-serif;
    color: var(--charcoal);
    outline: none;
}
.search-row input:focus { border-color: var(--blue); }
.search-go {
    border: 0; background: var(--blue); color: #fff;
    font: 600 14px 'DM Sans', sans-serif;
    padding: 0 20px; border-radius: 10px; cursor: pointer;
}
.search-go:hover { background: var(--navy); }
.search-daerah { margin: 10px -12px -2px; padding: 2px 12px 2px; }
.search-daerah .chip { padding: 7px 12px; font-size: 12px; }

/* ── TILES ── */
.tiles-wrap { background: #fff; padding: 16px 16px 8px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile {
    display: flex; align-items: center; gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 12px;
    text-decoration: none;
    color: var(--charcoal);
    box-shadow: var(--shadow-card);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: transparent; }
.tile-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 12px; font-size: 22px;
    background: var(--tone-bg, var(--pale));
}
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-label { font-weight: 700; font-size: 15px; color: var(--navy); line-height: 1.2; }
.tile-count { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tone-food .tile-icon { --tone-bg: #fff1e8; }
.tone-stay .tile-icon { --tone-bg: #e8f0ff; }
.tone-biz  .tile-icon { --tone-bg: #eceafd; }
.tone-read .tile-icon { --tone-bg: #e4f6f4; }
.tone-zh   .tile-icon { --tone-bg: #fdeaea; }
.tone-news .tile-icon { --tone-bg: #eef1f5; }
.tone-zh .tile-label { color: var(--tone-zh); }

/* ── SECTIONS ── */
.hsec { padding: 28px 16px; background: #fff; }
.hsec.is-pale { background: var(--pale); }
.hsec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hsec-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700; color: var(--navy);
}
.hsec-more { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.hsec-more:hover { text-decoration: underline; }
.ad-wrap-a, .ad-wrap-mid { padding: 0 16px; background: #fff; }

/* ── BY DAERAH ── */
.daerah-switch { margin-bottom: 8px; }
.daerah-panel[hidden] { display: none; }
.daerah-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.daerah-links a {
    font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none;
    background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 14px;
}
.daerah-links a:hover { border-color: var(--blue); }

/* ── READ TABS ── */
.ctabs { display: flex; gap: 4px; background: var(--pale); border-radius: 10px; padding: 4px; }
.ctab {
    border: 0; background: transparent;
    font: 600 13px/1 'DM Sans', sans-serif;
    color: var(--muted); padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.ctab.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(13,43,94,.14); }
.ctab.is-zh.is-active { color: var(--tone-zh); }
.cpanel[hidden] { display: none; }
.cgrid { display: flex; flex-direction: column; gap: 10px; }
.citem {
    display: flex; gap: 12px; align-items: center;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 8px; text-decoration: none; color: var(--charcoal);
    transition: box-shadow .15s;
}
.citem:hover { box-shadow: var(--shadow-card); }
.citem-media {
    width: 96px; flex-shrink: 0; aspect-ratio: 4 / 3;
    border-radius: 8px; overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--sky));
}
.citem.is-zh .citem-media { background: linear-gradient(135deg, #7c1d1d, #dc2626); }
.citem-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.citem-body { min-width: 0; }
.citem-title {
    font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--navy);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.citem.is-zh .citem-title { color: #7c1d1d; }
.citem-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.citem.is-big { flex-direction: column; align-items: stretch; padding: 0; }
.citem.is-big .citem-media { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.citem.is-big .citem-body { padding: 12px 14px 14px; }
.citem.is-big .citem-title { font-family: 'Playfair Display', serif; font-size: 18px; -webkit-line-clamp: 2; }
.cpanel-more {
    display: inline-block; margin-top: 14px;
    font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none;
}
.cpanel-more.is-zh { color: var(--tone-zh); }

/* ── CTA ── */
.hcta { background: var(--navy); padding: 40px 16px; text-align: center; }
.hcta h2 { font-family: 'Playfair Display', serif; font-size: 24px; color: #fff; margin-bottom: 8px; }
.hcta p { color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 20px; }
.hcta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hcta-primary, .hcta-secondary {
    padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.hcta-primary { background: var(--accent); color: #1f1300; }
.hcta-secondary { color: #fff; border: 1.5px solid rgba(255,255,255,.35); }

/* ── DESKTOP ── */
@media (min-width: 720px) {
    .hero { padding: 72px 24px 56px; }
    .search { padding: 14px; }
    .search-types { max-width: 420px; margin: 0 auto 12px; }
    .tiles-wrap { padding: 24px 24px 8px; }
    .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .hsec { padding: 40px 24px; }
    .hsec-head h2 { font-size: 28px; }
    .ad-wrap-a, .ad-wrap-mid { padding: 0 24px; }
    .pgrid.hscroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .pgrid.hscroll .pcard { width: auto; }
    .search-daerah, .daerah-switch { flex-wrap: wrap; }
    .search-daerah { margin: 12px 0 0; padding: 0; }
    .daerah-switch { margin-bottom: 16px; }
    .cgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
    .citem.is-big { grid-row: span 4; }
    .hcta { padding: 56px 24px; }
    .hcta h2 { font-size: 32px; }
}
@media (min-width: 1100px) {
    .tiles { grid-template-columns: repeat(6, 1fr); }
    .tile { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
}
