@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --transition-speed: 0.4s;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FFFFFF;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 120px 0 0;
}

@media (max-width: 768px) {
    body {
        padding: 20px 0 0;
    }
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 0 0;
    }
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.container,
.models-schedule-grid,
.date-filter-nav,
.date-filter-container,
.date-filter-scroll {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}


/* Filter Container Styles */
.filter-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 10px;
    padding: 0 15px;
    overflow-x: auto;
}

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 10px; /* Add some padding for scrollbar */
}

.filter-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 12px 5px;
    border: 2px solid #1a1a1a;
    border-radius: 30px;
    background-color: #f8f8f8;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
    flex: 0 0 auto;
    width: calc(100% / 3 - 20px / 3); /* Set width to one-third of container minus gaps */
    min-width: 100px; /* Set a minimum width to prevent too narrow buttons */
}

.filter-btn:hover, .filter-btn.active {
    background-color: #1a1a1a;
    color: #f8f8f8;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .filter-container {
        padding: 0 10px;
    }

    .filter-buttons {
        justify-content: flex-start;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 10px 5px;
        width: calc(100% / 3 - 20px / 3); /* Maintain the same width on mobile */
    }
}

@media (max-width: 480px) {
    .filter-btn {
        font-size: 0.7rem;
        padding: 8px 5px;
        min-width: 80px; /* Reduce minimum width for very small screens */
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.filter-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.filter-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


/* Filter Container Styles */
h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, #ffb187, #e521d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: 2px;
    padding: 2.5rem 0 1.5rem;
}

#sort-select {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 12px 24px;
    border: 2px solid #1a1a1a;
    border-radius: 30px;
    background-color: #f8f8f8;
    color: #1a1a1a;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

#sort-select:hover {
    background-color: #1a1a1a;
    color: #f8f8f8;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.models-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding-top: 30px;
}

.model-schedule-item {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-speed) ease;
    overflow: hidden;
    border-radius: 20px;
}

.model-schedule-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.image-slider {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

.model-cup-size {
    position: absolute;
    bottom: 7.6rem;
    right: 10px;
    padding: 6px 12px;
    background: rgba(183, 183, 183, 0.3);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-cup-size:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.model-cup-size::before {
    content: '\f004';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1rem;
    color: #ff5757;
    opacity: 0.9;
}

.ranking-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #ff61a3, #ff46c1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: pulse 5s infinite ease-in-out;
}

.ranking-badge-number {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f8f8f8;
}

.ranking-badge-text {
    font-size: 0.6rem;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.new-face-badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ebffa7;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badge-appear 0.6s ease;
    white-space: nowrap;
}

.model-info {
    margin-top: 15px;
    text-align: center;
}

.model-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #2c3e50;
    margin: 5px 0;
    transition: color var(--transition-speed) ease;
}

.model-schedule-item:hover .model-name {
    color: #ff46c1;
}

.model-number {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: #2c3e50;
}

.model-age {
    font-weight: 600;
    font-size: 1rem;
    color: #ff61a3;
    margin: 5px 0;
}

.model-measurements {
    font-weight: 300;
    font-size: 0.9rem;
    color: #797979;
    margin: 5px 0;
}

.model-availability {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fa7fb3;
}

/* Filter Buttons */
.date-filter-nav:not(:first-child) {
    margin-top: 30px; /* Adjust this value as needed */
}
.date-filter-nav {
    background-color: #fff9fd; /* Very light pink */
    padding: 20px 0 10px; /* Increased bottom padding */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.date-filter-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff61a3, #ff46c1);
}

.date-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    overflow: visible; /* Changed from overflow-x: auto */
}

.date-filter-scroll {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto; /* Moved overflow to this element */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    mask-image: linear-gradient(to right, transparent, black 10px, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10px, black 90%, transparent);
}

.date-filter-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.date-filter-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 70, 193, 0.3);
    color: #ff46c1;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(255, 70, 193, 0.1);
    margin-bottom: 10px; /* Added to ensure space for shadow */
}

.date-filter-btn:hover, .date-filter-btn.active {
    background: rgba(255, 70, 193, 0.2);
    color: #fff;
    box-shadow: 0 6px 12px rgba(255, 70, 193, 0.2);
}

.date-filter-btn.active {
    background: rgba(255, 70, 193, 0.8);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 768px) {
    .date-filter-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .date-filter-nav {
        padding: 15px 0 25px;
    }
}

@media (max-width: 480px) {
    .date-filter-btn {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .date-filter-scroll {
        gap: 10px;
    }
    
    .date-filter-nav {
        padding: 20px 0 10px;
    }
}
/* Filter Buttons */

@media (max-width: 1024px) {
    .models-schedule-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .date-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    #sort-select {
        width: 100%;
    }
    
    .models-schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .model-number {
        font-size: 2.5rem;
    }

    .ranking-badge {
        width: 45px;
        height: 45px;
    }

    .ranking-badge-number {
        font-size: 1.2rem;
    }

    .ranking-badge-text {
        font-size: 0.5rem;
    }

    .model-name {
        font-size: 1.5rem;
    }

    .model-age, .model-measurements, .model-availability {
        font-size: 0.8rem;
    }

    .model-cup-size {
        padding: 5px 10px;
        font-size: 0.8rem;
        bottom: 6.2rem;
        right: 8px;
    }

    .new-face-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
        top: 10px;
    }

    .date-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .date-buttons {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .models-schedule-grid {
        gap: 15px;
    }

    .model-number {
        font-size: 2rem;
    }

    .ranking-badge {
        width: 41px;
        height: 41px;
    }

    .ranking-badge-number {
        font-size: 1.2rem;
    }

    .ranking-badge-text {
        display: none;
    }

    .model-name {
        font-size: 1.2rem;
    }

    .model-age, .model-measurements, .model-availability {
        font-size: 0.7rem;
    }

    .model-cup-size {
        padding: 4px 8px;
        font-size: 0.75rem;
        bottom: 100px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .new-face-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
        top: 8px;
    }

    .date-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .date-buttons {
        gap: 8px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 10px 20px rgba(255, 70, 193, 0.6);
    }
}

@keyframes badge-appear {
    from {
        opacity: 0;
        transform: translateY(-20px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}