/* layout & controls */
.content-wrapper {
    padding: 2% 5% 5% 5%;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.map-container {
    padding: 5%;
    padding-bottom: 0;
    height: 50vh;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.controls-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 280px;
    max-width: 450px;
}

.search-box input {
    width: 100%;
    padding: 10px 18px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-right: none;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #F4C2C2;
}

.search-box button {
    background-color: #F4C2C2;
    color: white;
    border: 1px solid #F4C2C2;
    padding: 0 16px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-box button:hover {
    background-color: #e5b0b0;
}

.filter-sort-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.select-filter {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
}

.select-filter:focus {
    border-color: #F4C2C2;
}

/* table styling */
.table-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #efefef;
}

.store-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.store-table th {
    background-color: #fafafa;
    color: #444;
    font-weight: 600;
    padding: 16px;
    border-bottom: 2px solid #eaeaea;
    white-space: nowrap;
}

/* table cell details */
.store-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    vertical-align: middle;
    word-break: break-word;
}

.store-table tbody tr:hover {
    background-color: #fff9f9;
}

.store-table td a {
    color: #d87070;
    text-decoration: none;
    font-weight: 500;
}

.store-table td a:hover {
    text-decoration: underline;
}

/* chips & badges */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    color: #ffffff;
}

/* platform chips */
.chip-online { background-color: #2e7d32; }
.chip-physical { background-color: #1565c0; }

/* tag chips */
.chip-figurines { background-color: #6a1b9a; }
.chip-gundam { background-color: #00695c; }
.chip-tcg { background-color: #e53935; }
.chip-manga { background-color: #f57f17; }
.chip-gacha { background-color: #4e342e; }
.chip-artscrafts { background-color: #0288d1; }
.chip-default { background-color: #546e7a; }

/* pagination */
.pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.pagination button {
    border: 1px solid #ddd;
    background-color: #fff;
    color: #444;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button.active {
    background-color: #F4C2C2;
    color: white;
    border-color: #F4C2C2;
}

.pagination button:hover:not(.active) {
    background-color: #f5f5f5;
}
/* filter bar */
.tag-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.tag-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Clickable Tag Button in Filter Bar */
.tag-btn {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tag-btn:hover {
    border-color: #F4C2C2;
    background-color: #fff0f0;
}

/* Active Selected State for Multi-Tags */
.tag-btn.active {
    background-color: #F4C2C2;
    color: #ffffff;
    border-color: #F4C2C2;
    box-shadow: 0 2px 6px rgba(244, 194, 194, 0.4);
}