/* Styles for Seniman filter/sort pills */
.filter-sort-wrapper { display: flex; align-items: center; gap: 12px; }
.pill-group { display:flex; gap:12px; align-items:center; }
.filter-dropdown { position:relative; display:inline-block; }
.pill { display: inline-flex; align-items: center; gap:8px; padding:10px 14px; border:1px solid #e6e6e6; border-radius:999px; background:#fff; box-shadow: 0 0 0 rgba(0,0,0,0); }
.pill-icon { display:inline-flex; align-items:center; justify-content:center; width:20px; color:#666; }
.pill-input { border:0; outline:0; background:transparent; padding:0; font-size:14px; color:#444; min-width:140px; }
.pill-input::placeholder { color:#bdbdbd; }
.pill-select { -webkit-appearance:none; -moz-appearance:none; appearance:none; border:0; outline:0; background:transparent; padding:0 18px 0 0; font-size:14px; color:#444; }
.pill-sort { position:relative; padding-right:28px; }
.pill-caret { position:absolute; right:10px; top:50%; transform:translateY(-50%); pointer-events:none; color:#666; }

/* smaller / secondary variants */
.pill.small { padding:8px 12px; }

/* responsive */
@media (max-width:576px){
  .pill-input { min-width:80px; }
  .filter-sort-wrapper { gap:8px; }
}

/* subtle focus */
.pill:focus-within { box-shadow: 0 0 0 3px rgba(100,150,255,0.08); border-color:#c6dbff; }
.seniman-main-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Title halaman */
.seniman-page-header {
    padding: 40px 0 0 0;
    /* border: 1px solid crimson; */
}

.seniman-page-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.seniman-page-header p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 900px;
}

/* search dll */
.seniman-search-bar { 
    margin: 30px 0 10px 0;
}

.seniman-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: none;
}

.search-input {
    border-radius: 50px;
    border: 1.5px solid #c0c0c0;
    padding: 10px 45px 10px 20px;
    font-size: 0.9rem;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.search-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: #666;
}

.filter-sort-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.filter-btn, .sort-btn {
    border-radius: 50px;
    border: 1.5px solid #c0c0c0;
    background: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover, .sort-btn:hover {
    border-color: #666;
    background: #f8f8f8;
}

.sort-select {
    border-radius: 50px;
    border: 1.5px solid #c0c0c0;
    padding: 10px 36px 10px 20px; /* kanan lebih besar untuk ruang caret */
    font-size: 0.9rem;
    color: #333;
    background: white url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center/16px 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 120px;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #666;
}

/* Hide the SVG caret for inputs (datalist search box) that reuse .sort-select
   Keep the caret for true <select> elements. */
input.sort-select {
    background-image: none !important;
    padding-right: 20px; /* reduce right padding since caret removed */
}


.seniman-card {
    border: 1.5px solid #d0d0d0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
    display: flex;
}

.seniman-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.seniman-image-wrapper {
    width: 140px;
    min-width: 140px;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px;
    background-color: #f5f5f5;
    /* border: 1px solid crimson; */
}

.seniman-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seniman-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 18px 20px 18px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.seniman-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}

.seniman-location {
    font-size: 1rem;
    font-style: italic;
    color: #444;
    margin-bottom: 12px;
    display: block;
}


.seniman-bio {
    color: #555;
    font-size: 0.95rem;
    margin-top: 0;
    line-height: 1.6;
    word-break: break-word;
    white-space: normal;
}

.bio-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
}

.sort-select {
    border-radius: 50px;
    border: 1.5px solid #c0c0c0;
    padding: 10px 36px 10px 20px; /* kanan lebih besar untuk ruang caret */
    font-size: 0.9rem;
    color: #333;
    background: white url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center/16px 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 120px;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #666;
}


/* Responsive Mobile */
@media (max-width: 768px) {
    .seniman-main-container {
        padding: 0 15px;
    }

    .seniman-page-header {
        padding: 20px 0 0 0;
    }

    .seniman-page-header h2 {
        font-size: 1.5rem;
    }

    .seniman-page-header p {
        font-size: 0.85rem;
    }

    .seniman-search-bar {
        margin: 20px 0 15px 0;
    }

    .seniman-search-form {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-wrapper {
        width: 100%;
        flex: none;
    }

    .filter-sort-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .filter-btn, .sort-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .sort-select {
        min-width: auto;
        flex: 1;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .seniman-card {
        flex-direction: column;
    }

    .seniman-image-wrapper {
        width: 100%;
        height: 200px;
        margin: 0;
        border-radius: 0;
    }

    .seniman-info {
        padding: 15px;
    }

    .seniman-name {
        font-size: 1.1rem;
    }

    .seniman-location {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .seniman-bio {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .seniman-page-header h2 {
        font-size: 1.3rem;
    }

    .filter-sort-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .filter-btn, .sort-select {
        width: 100%;
    }

    .seniman-image-wrapper {
        height: 180px;
    }

    .seniman-name {
        font-size: 1rem;
    }

    .seniman-location {
        font-size: 0.85rem;
    }

    .seniman-bio {
        font-size: 0.8rem;
    }
}

/* Filter panel dropdown */
.filter-panel { display:none; position:absolute; z-index:1200; width:260px; right:0; top:calc(100% + 8px); background:#fff; border-radius:12px; padding:14px; box-shadow:0 6px 30px rgba(0,0,0,0.18); border:1px solid rgba(0,0,0,0.06); }
.filter-panel[aria-hidden="false"] { display:block; }
.filter-panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.filter-panel-header h4 { margin:0; font-size:18px; }
.filter-reset { color:#e33; font-weight:600; text-decoration:underline; font-size:13px; }
.filter-panel-body { padding-top:6px; }
.filter-available { display:block; margin-bottom:12px; font-size:14px; }
.filter-section .filter-title { font-weight:700; margin-bottom:8px; }

/* custom select */
.custom-select { position:relative; }
.custom-select-trigger { width:100%; text-align:left; padding:10px 12px; border-radius:8px; border:2px solid #111; background:#fff; font-size:14px; }
.custom-select-trigger .caret { float:right; color:#444; }
.custom-search { width:100%; border:0; outline:0; font-size:14px; padding:6px 4px; }
.custom-select-trigger { display:flex; align-items:center; gap:8px; }
.custom-options { display:none; position:absolute; left:0; right:0; top:calc(100% + 8px); background:#fff; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.12); max-height:160px; overflow:auto; border:1px solid #eee; }
.custom-option { padding:10px 12px; cursor:pointer; }
.custom-option:hover { background:#f5f5f5; }
.custom-options.open { display:block; }

/* mobile adjustments: mimic attachment */
@media (max-width:420px){
    .filter-panel { width:320px; left:10px; right:10px; top:60px; }
    .custom-select-trigger { border-radius:8px; }
}
