#bird-guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bird-guide-header {
    text-align: center;
    margin-bottom: 30px;
}

.bird-guide-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    padding: 15px;
    margin: 0 auto;
    max-width: 800px;
}

.bird-guide-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    min-width: 200px;
}

#bird-search {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

#bird-search:focus {
    border-color: #64b5f6;
}

.filter-container {
    min-width: 120px;
}

.filter-container select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    outline: none;
}

.search-button {
    background: #64b5f6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #42a5f5;
}

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

.display-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.display-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bird-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bird-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    cursor: pointer;
    opacity: 1;
}

.bird-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bird-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.bird-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bird-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0,0,0,0.3); */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.bird-card:hover .bird-overlay {
    opacity: 1;
}

.view-details {
    background: #64b5f6;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
}

.view-details:hover {
    background: #42a5f5;
}

.bird-info {
    padding: 15px;
}

.bird-thai-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff !important;
    margin: 0 0 5px 0;
}

.bird-english-name {
    color: #fff;
    margin: 0;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 10px 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #64b5f6;
    color: white;
    border-color: #64b5f6;
}

/* Modal Styles */
.bird-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto auto auto;
    border-radius: 12px;
    width: 90%;
    max-width: 1100px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #000;
}

.modal-body {
    display: flex;
    padding: 0;
}

.bird-image-container {
    flex: 1;
    background: #f5f5f5;
}

.bird-images-gallery {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-image-container {
    flex: 1;
}

.main-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px 0 0 0;
}

.thumbnail-container {
    background: #f8f9fa;
    padding: 10px;
    border-top: 1px solid #e9ecef;
}

.thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: #64b5f6;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #64b5f6;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
}

.bird-info-container {
    flex: 1;
    padding: 30px;
}

.bird-info-container h3 {
    color: #64b5f6;
    font-size: 24px;
    margin-bottom: 20px;
}

.bird-details p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.bird-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-button {
    background: #64b5f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.back-button:hover {
    background: #42a5f5;
}

/* Conservation Status Styles */
.conservation-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.status-scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.status-labels-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    margin-bottom: 8px;
}

.status-badges-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.scale-label-top {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.scale-label-top:first-child {
    text-align: left;
}

.scale-label-top:last-child {
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    color: white;
    border: 2px solid #333;
    position: relative;
}

.scale-label {
    font-size: 10px;
    color: #666;
    margin: 0 5px;
}

/* IUCN Status Colors */
.status-ex { background-color: #000000; } /* Extinct - Black */
.status-ew { background-color: #542344; } /* Extinct in Wild - Dark Purple */
.status-cr { background-color: #d1242f; } /* Critically Endangered - Red */
.status-en { background-color: #ff6900; } /* Endangered - Orange */
.status-vu { background-color: #ffab00; } /* Vulnerable - Yellow/Orange */
.status-nt { background-color: #cce226; color: #333; } /* Near Threatened - Yellow/Green */
.status-lc { background-color: #60c659; } /* Least Concern - Green */
.status-dd { background-color: #d3d3d3; color: #333; } /* Data Deficient - Gray */
.status-ne { background-color: #ffffff; color: #333; border-color: #ccc; } /* Not Evaluated - White */

/* Active status highlighting */
.status-badge.active {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
}

.status-badge.inactive {
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .bird-guide-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .bird-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .main-image-container img {
        height: 250px;
        border-radius: 12px 12px 0 0;
    }
    
    .bird-info-container {
        padding: 20px;
    }
    
    .thumbnails {
        justify-content: center;
    }
    
    .thumbnail {
        width: 50px;
        height: 38px;
    }
}




/* custom style */
#family-filter, #status-filter {
  padding: 0;
}

    .bird-guide-header {
      padding: 40px 0 40px 0;

    }

.bird-overlay {
  position: absolute;
  top: auto;
  left: auto;
  right: 10px;
  bottom: 10px;
}

.bird-info {
  background-color: #535353;
}

.conservation-status {
  padding-bottom: 20px;;
}

.right-arrow {
  filter: brightness(0) invert(1);
}