/**
 * Andmar Floor Plans Widget Styles
 */

:root {
    --fp-primary: #0C3455;
    --fp-accent: #C82027;
    --fp-bg: #F4F4F4;
    --fp-light: #EAEAEA;
    --fp-text: #333;
    --fp-radius: 6px;
}

.andmar-floorplans-widget {
    font-family: 'Segoe UI', sans-serif;
    background: var(--fp-bg);
    padding: 40px 0;
    color: var(--fp-text);
}

/* Tabs */
.fp-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.fp-tab {
    padding: 18px 28px;
    border: 2px solid var(--fp-light);
    border-radius: var(--fp-radius);
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fff;
    transition: all 0.2s ease;
}

.fp-tab:hover {
    border-color: var(--fp-primary);
}

.fp-tab.active {
    background: var(--fp-primary);
    color: #fff;
    border-color: var(--fp-primary);
}

/* Content Layout */
.fp-content-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Plan List */
.fp-plan-list {
    background: #fff;
    padding: 25px;
    border-radius: var(--fp-radius);
    border: 1px solid var(--fp-light);
    height: max-content;
}

.fp-list-title {
    font-size: 1rem;
    color: var(--fp-primary);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fp-plan-item {
    padding: 14px 10px;
    border-radius: var(--fp-radius);
    background: #fff;
    border-left: 4px solid transparent;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    border: 1px solid var(--fp-light);
}

.fp-plan-item:hover {
    border-left-color: var(--fp-primary);
    background: #f9f9f9;
}

.fp-plan-item.active {
    background: var(--fp-primary);
    color: #fff;
    border-left-color: var(--fp-accent);
}

.fp-plan-name {
    font-weight: 600;
}

.fp-plan-type {
    font-size: 0.85rem;
    opacity: 0.8;
}

.fp-no-plans {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Plan Display */
.fp-plan-display {
    background: #fff;
    border-radius: var(--fp-radius);
    padding: 40px;
    border: 1px solid var(--fp-light);
}

.fp-plan-image {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-plan-image img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

.fp-no-image {
    text-align: center;
    color: #999;
}

.fp-plan-info {
    margin-top: 25px;
    text-align: center;
}

.fp-plan-title {
    color: var(--fp-primary);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.fp-plan-sqft {
    font-size: 1.3rem;
    color: var(--fp-accent);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Navigation */
.fp-nav-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
    align-items: center;
}

.fp-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--fp-primary);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.fp-nav-btn:hover:not(:disabled) {
    background: var(--fp-accent);
}

.fp-nav-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
}

.fp-plan-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fp-primary);
    min-width: 85px;
    text-align: center;
}

/* Buttons */
.fp-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.fp-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: var(--fp-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.fp-btn.btn-primary {
    background: var(--fp-accent);
    color: #fff;
    border: none;
}

.fp-btn.btn-primary:hover {
    background: #A3141A;
}

.fp-btn.btn-secondary {
    background: transparent;
    border: 2px solid var(--fp-primary);
    color: var(--fp-primary);
}

.fp-btn.btn-secondary:hover {
    background: var(--fp-primary);
    color: #ffffff !important;
    border-color: var(--fp-primary);
}

/* Aerial Section */
.fp-aerial-section {
    margin-top: 50px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

.fp-aerial-wrapper {
    position: relative;
    width: 100%;
}

.fp-aerial-image {
    width: 100%;
    display: block;
}

.aerial-hotspot {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #0C3455;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #0C3455;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 10;
}

.aerial-hotspot:hover {
    background: #C82027;
    border-color: #C82027;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.15);
}

/* Hotspot Animations */
.animation-pulse .aerial-hotspot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #C82027;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animation-bounce .aerial-hotspot {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, calc(-50% - 10px));
    }
}

.animation-glow .aerial-hotspot {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px #C82027, 0 0 10px #C82027;
    }

    50% {
        box-shadow: 0 0 15px #C82027, 0 0 25px #C82027, 0 0 35px #C82027;
    }
}

/* Responsive */
@media (max-width: 1000px) {
    .fp-content-wrapper {
        grid-template-columns: 1fr;
    }

    .fp-plan-list {
        order: 2;
    }

    .fp-plan-display {
        order: 1;
    }
}

@media (max-width: 768px) {
    .fp-tabs {
        gap: 10px;
    }

    .fp-tab {
        padding: 12px 18px;
        font-size: 0.8rem;
    }

    .aerial-hotspot {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .fp-plan-display {
        padding: 20px;
    }
}