/* Floor Plan Styles - New Design */

/* Header & Filter */
.floorplan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.fp-section-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fp-section-title .divider {
    color: #cbd5e1;
    font-weight: 300;
}

.fp-section-title span:last-child {
    color: #64748b;
    font-weight: 400;
    font-size: 1.8rem;
}

.custom-select-wrapper {
    position: relative;
    width: 200px;
}

.fp-select {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: var(--transition);
}

.fp-select:hover,
.fp-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 0.9rem;
}

/* Slider Track & Cards */
.fp-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    /* Space for shadows/hover effects */
}

.fp-slider-track {
    display: flex;
    flex-wrap: nowrap;
    /* Critical for slider logic */
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.fp-slide {
    width: 50%;
    /* Explicit width */
    min-width: 50%;
    /* 2 slides per view on desktop */
    flex: 0 0 50%;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
    display: none;
    /* Base state */
    position: relative;
    /* Ensure overlay/label is positioned contextually */
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
}

/* On mobile, show 1 slide */
@media (max-width: 768px) {
    .fp-slide {
        min-width: 100%;
        width: 100%;
        flex: 0 0 100%;
    }
}

.fp-slide.active {
    display: block;
    /* Show if it matches filter */
    opacity: 1;
}

/* Card Design */
.fp-slide-img {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid #f1f5f9;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    /* Add space for the label */
}

.fp-slide-img img {
    max-height: 350px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.fp-slide:hover .fp-slide-img img {
    transform: scale(1.05);
}

.fp-slide-label {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #8b8000;
    /* Dark Gold/Olive typically used in real estate or similar to reference */
    background: #7ca942;
    /* Reference green */
    background: #849344;
    /* Emlak Konut Style Olive */
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(132, 147, 68, 0.3);
    z-index: 10;
}

/* Footer Controls */
.fp-footer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.fp-counter {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
}

.fp-divider {
    width: 60px;
    height: 2px;
    background: #cbd5e1;
    display: block;
}

#fp-total {
    color: #94a3b8;
}

.fp-nav-buttons {
    display: flex;
    gap: 1rem;
}

.fp-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: transparent;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.fp-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff;
}