/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* TripAdvisor palette */
    --white:         #ffffff;
    --snow:          #f5f5f5;
    --mist:          #eeeeee;
    --lime:          #34e0a1;   /* signature bright green */
    --lime-dk:       #26c98a;
    --lime-pale:     rgba(52,224,161,.12);
    --lime-ring:     rgba(52,224,161,.32);
    --forest:        #00aa6c;   /* deeper green for text/icons */
    --forest-dk:     #008855;
    --charcoal:      #141414;   /* near-black for bold headings */
    --ink:           #1a1a1a;
    --ink-mid:       #444444;
    --ink-soft:      #777777;
    --ink-faint:     #b0b0b0;
    --border:        #e2e2e2;
    --border2:       #d0d0d0;
    --sh1: 0 1px 6px rgba(0,0,0,.07);
    --sh2: 0 4px 16px rgba(0,0,0,.10);
    --sh3: 0 8px 28px rgba(0,0,0,.14);
    --rr:  12px;
    --rr2: 8px;
    --rr3: 18px;
    --pill: 999px;
}

html { font-size: 15px; }

body {
    background: var(--snow);
    color: var(--ink);
    font-family: 'PingFang SC','Noto Sans SC','Hiragino Sans GB','Microsoft YaHei',
                 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

a { color: var(--forest); text-decoration: none; transition: color .16s; }
a:hover { color: var(--forest-dk); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

/* ===== OUTER CONTAINER ===== */
.ta-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.ta-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    box-shadow: var(--sh1);
}

.ta-topbar .ta-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.ta-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ta-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Bold black logo text — TripAdvisor style */
.ta-logo-txt {
    font-size: 1.42rem;
    font-weight: 900;
    color: var(--charcoal);
    font-style: normal;
    letter-spacing: -.5px;
    text-decoration: none;
    border-bottom: none;
}

/* Domain badge: lime green pill */
.ta-domain {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--lime);
    border-radius: var(--pill);
    padding: 4px 16px;
}

.ta-domain .tad-note {
    font-size: 0.67rem;
    color: rgba(0,0,0,.55);
    white-space: nowrap;
    font-weight: 600;
}

.ta-domain .tad-val {
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--charcoal);
    white-space: nowrap;
}

/* ===== BANNER ===== */
.ta-hero {
    margin: 4px 0 3px;
}
.ta-hero img { border-radius: var(--rr); width: 100%; }

/* ===== CATEGORY NAV ===== */
.ta-navbox {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ta-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    min-height: 38px;
}

.ta-nav-row:last-child { border-bottom: none; }

.ta-zone-badge {
    background: var(--lime);
    color: var(--charcoal);
    font-size: .68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(0,0,0,.07);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.ta-zone-items {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 8px;
    gap: 3px;
    flex: 1;
}

.ta-zone-items a {
    font-size: .82rem;
    color: var(--ink-mid);
    padding: 4px 6px;
    border-radius: var(--rr2);
    transition: all .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.ta-zone-items a:hover {
    background: var(--lime-pale);
    color: var(--forest);
    border-color: var(--lime-ring);
}

.ta-zone-items a.active {
    background: var(--charcoal);
    color: var(--lime);
    border-color: var(--charcoal);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.ta-search {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    padding: 8px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ta-search form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.ta-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1.5px solid var(--border2);
    border-radius: var(--pill);
    padding: 0 18px;
    font-size: .88rem;
    color: var(--ink);
    background: var(--snow);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    font-weight: 500;
}

.ta-search input[type="text"]:focus {
    border-color: var(--lime-dk);
    box-shadow: 0 0 0 3px var(--lime-ring);
    background: var(--white);
}

.ta-search input[type="text"]::placeholder { color: var(--ink-faint); }

.ta-search button {
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: var(--pill);
    background: var(--mist);
    color: var(--ink-mid);
    font-size: .80rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .16s;
    flex-shrink: 0;
}

.ta-search button:hover {
    background: var(--border2);
    color: var(--ink);
}

/* Search button 1 — lime green, black text (TripAdvisor "Search" style) */
.ta-search button[value="1"] {
    background: var(--lime);
    color: var(--charcoal);
}
.ta-search button[value="1"]:hover { background: var(--lime-dk); }

/* Search button 2 — deep forest green, white text */
.ta-search button[value="2"] {
    background: var(--charcoal);
    color: var(--white);
}
.ta-search button[value="2"]:hover { background: var(--ink-mid); }

/* ===== TRENDING TAGS ===== */
.ta-hotbox {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    padding: 7px 12px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.ta-hotbox h4 {
    font-size: .79rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 5px;
}

.ta-hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ta-hot-tags .tht {
    display: inline-block;
    background: var(--snow);
    color: var(--ink-mid);
    border: 1.5px solid var(--border2);
    border-radius: var(--pill);
    padding: 2px 11px;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .16s;
}

.ta-hot-tags .tht:hover {
    background: var(--lime-pale);
    color: var(--forest);
    border-color: var(--lime-ring);
}

/* ===== CONTENT SECTION ===== */
.ta-section {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rr3);
    padding: 13px 13px 10px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.ta-sect-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--mist);
    position: relative;
}

.ta-sect-top::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 44px;
    height: 3px;
    background: var(--lime);
    border-radius: var(--pill);
}

.ta-sect-top h3 {
    font-size: 1.0rem;
    font-weight: 900;
    color: var(--charcoal);
    letter-spacing: -.2px;
}

.ta-sect-top h3 a { color: var(--charcoal); }
.ta-sect-top h3 a:hover { color: var(--forest); }

.ta-sect-top h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--charcoal);
}

/* ===== MEDIA GRID ===== */
.ta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ta-grid li {
    border-radius: var(--rr);
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: var(--snow);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.ta-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: var(--lime-dk);
}

.ta-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--mist);
}

.ta-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.ta-card-img:hover img { transform: scale(1.05); }

.ta-card-txt {
    padding: 5px 7px 7px;
}

.ta-card-txt h5 {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-mid);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ta-card-txt h5 a { color: var(--ink-mid); }
.ta-card-txt h5 a:hover { color: var(--forest); }

/* ===== PAGINATION ===== */
.ta-pager {
    margin: 14px 0 6px;
    display: flex;
    justify-content: center;
}

.ta-pager-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.ta-pager-row a.tap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: var(--rr2);
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink-mid);
    text-decoration: none;
    transition: all .16s;
}

.ta-pager-row a.tap:hover {
    background: var(--lime-pale);
    border-color: var(--lime-ring);
    color: var(--forest);
}

.ta-pager-row a.tap-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--charcoal);
    border: 1.5px solid var(--charcoal);
    border-radius: var(--rr2);
    font-size: .84rem;
    font-weight: 800;
    color: var(--lime);
    cursor: default;
}

/* ===== FOOTER ===== */
.ta-flink-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.ta-flink-set {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ta-flink-set dd { display: inline; }

.ta-flink-set a {
    display: inline-block;
    font-size: .77rem;
    color: var(--ink-faint);
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--snow);
    text-decoration: none;
    transition: all .16s;
}

.ta-flink-set a:hover { color: var(--forest); border-color: var(--lime-ring); }

.ta-foot-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--ink-faint);
    font-size: .76rem;
}

/* ===== DETAIL PAGES ===== */
.ta-dtl-band {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .98rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-left: 5px solid var(--lime);
    border-radius: var(--rr);
    box-shadow: var(--sh1);
    font-weight: 600;
}

.ta-dtl-band a {
    color: var(--forest);
    font-weight: 800;
    margin-right: 6px;
}

.ta-dtl-meta {
    font-size: .9rem;
    line-height: 1.95;
    padding: 15px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--ink-mid);
}

.ta-preview {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.ta-preview picture,
.ta-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--rr2);
    display: block;
}

/* ===== DOWNLOAD BUTTONS ===== */
.ta-dl-set {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

/* Primary: lime green, black text */
.ta-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 26px;
    background: var(--lime);
    color: var(--charcoal);
    border: none;
    border-radius: var(--pill);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s, transform .14s;
    text-decoration: none;
}

.ta-dl-btn:hover {
    background: var(--lime-dk);
    color: var(--charcoal);
    transform: translateY(-1px);
}

.ta-app-note {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.ta-app-note a { color: var(--forest); font-weight: 700; }
.ta-app-note a:hover { color: var(--forest-dk); }

/* ===== SHARE BAR ===== */
.ta-share {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--snow);
    border: 1.5px solid var(--border);
    border-radius: var(--rr);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.ta-share .ts-lbl  { font-size: .77rem; color: var(--ink-faint); white-space: nowrap; font-weight: 600; }
.ta-share .ts-link { font-size: .79rem; color: var(--ink-soft); flex: 1; min-width: 0; word-break: break-all; }

.ta-share .ts-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    background: var(--charcoal);
    color: var(--lime);
    border: none;
    border-radius: var(--pill);
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .16s;
    flex-shrink: 0;
}

.ta-share .ts-copy:hover { background: var(--ink-mid); }

/* ===== VISIBILITY ===== */
.ta-pc-show { display: block; }
.ta-mb-show { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .ta-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ta-pc-show { display: none; }
    .ta-mb-show { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .ta-logo-txt { font-size: 1.12rem; }
    .ta-domain .tad-val { font-size: .92rem; }

    .ta-nav-row { align-items: stretch; }

    .ta-zone-badge {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.5;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ta-zone-items {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 5px;
        align-items: center;
    }

    .ta-zone-items a {
        font-size: 13px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .ta-search form { flex-wrap: nowrap; gap: 4px; }

    .ta-search input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 10px;
    }

    .ta-search button {
        height: 34px;
        padding: 0 8px;
        font-size: .74rem;
    }

    .ta-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }

    .ta-card-img { aspect-ratio: 600 / 350; }
    .ta-card-txt h5 { font-size: .72rem; }
    .ta-section { padding: 9px 9px 7px; }
    .ta-dl-btn { padding: 9px 16px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .ta-zone-badge { font-size: 10px; }
    .ta-zone-items a { font-size: 13px; }
}

@media (max-width: 380px) {
    .ta-zone-badge { font-size: 10px; }
    .ta-zone-items a { font-size: 12px; }
    .ta-search button { padding: 0 5px; font-size: .68rem; }
}
