/* ============================================================
   BuildX Floor Plan Single Page
   ============================================================ */

/* ── Page overflow fix ────────────────────────────────────── */
.page-floor-plan-single {
    overflow-x: hidden;
}

/* ── Hero ─────────────────────────────────────────────────── */
.fp-single-hero {
    background: #000000;
    color: #fff;
    padding: 40px 0 32px;
    text-align: center;
}

.fp-single-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.fp-single-hero__watch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F5A623;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fp-single-hero__watch:hover {
    color: #fff;
}

.fp-single-hero__watch svg {
    width: 18px;
    height: 18px;
}

.fp-single-hero__specs {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.fp-single-hero__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #F5A623;
    margin: 0;
}

.fp-single-hero .breadcrumbs {
    margin-bottom: 16px;
}

.fp-single-hero .breadcrumbs,
.fp-single-hero .breadcrumbs a {
    color: rgba(255,255,255,0.75);
}

.fp-single-hero .breadcrumbs a:hover {
    color: #F5A623;
}

.fp-single-hero .breadcrumbs .breadcrumbs__item--current {
    color: rgba(255,255,255,0.8);
}

.fp-single-hero .breadcrumbs .breadcrumbs__item::after {
    color: rgba(255,255,255,0.75);
}

/* ── Image Carousel ──────────────────────────────────────── */
.fp-carousel {
    position: relative;
    background: #000;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
}

.fp-carousel__track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
    touch-action: pan-y;
}

.fp-carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
}

.fp-carousel__slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.fp-carousel__label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.fp-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
    border: none;
}

.fp-carousel__btn:hover {
    background: rgba(0,0,0,0.8);
}

.fp-carousel__btn--prev { left: 16px; }
.fp-carousel__btn--next { right: 16px; }

.fp-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background: #000000;
}

.fp-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.fp-carousel__dot--active,
.fp-carousel__dot:hover {
    background: #F5A623;
}

/* ── Pricing Section ─────────────────────────────────────── */
.fp-pricing {
    padding: 48px 0;
    border-bottom: 1px solid #E5E5E5;
    text-align: center;
}

.fp-pricing .container {
    max-width: 900px;
    margin: 0 auto;
}

.fp-pricing h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.fp-pricing h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.fp-pricing p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: left;
}

/* ── Floor Plan Drawing ──────────────────────────────────── */
.fp-drawing {
    padding: 24px 0;
    border-bottom: 1px solid #E5E5E5;
}

.fp-drawing__row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 16px;
}

.fp-drawing__col--image {
    flex: 0 1 45%;
    min-width: 0;
}

.fp-drawing__col--form {
    flex: 1 1 50%;
    min-width: 0;
}

.fp-drawing__wrapper {
    text-align: center;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.fp-drawing__wrapper a {
    display: block;
    line-height: 0;
}

.fp-drawing__image {
    width: 100%;
    height: auto;
    display: block;
}

.fp-drawing__link {
    margin: 2px 0 0;
    text-align: center;
}

.fp-drawing__link a {
    color: #F5A623;
    font-weight: 600;
}

/* HubSpot Form Card */
.fp-drawing__form-card {
    background: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 32px 28px;
}

.fp-drawing__form-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    color: #1A3A5C;
}

.fp-drawing__form-subtitle {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin: 0 0 20px;
}

.fp-drawing__customizable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 0;
}

/* Stack below 1680px -- side-by-side doesn't render well on smaller screens */
@media (max-width: 1680px) {
    .fp-drawing__row {
        flex-direction: column;
        gap: 16px;
    }
    .fp-drawing__col--image,
    .fp-drawing__col--form {
        flex: 1 1 100%;
        width: 100%;
    }
    .fp-drawing__wrapper {
        max-width: 700px;
        margin: 0 auto;
    }
}

/* ── Reviews Badge ───────────────────────────────────────── */
.fp-reviews-badge {
    background: #F8F8F8;
    padding: 16px 0;
    text-align: center;
    border-bottom: 1px solid #E5E5E5;
}

.fp-reviews-badge .stars {
    color: #F5A623;
}

.fp-reviews-badge a {
    color: #F5A623;
    font-weight: 600;
}

/* ── Specs Section ───────────────────────────────────────── */
.fp-specs {
    padding: 48px 0;
}

.fp-specs__block {
    margin-bottom: 32px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    overflow: hidden;
}

.fp-specs__block h4 {
    background: #000000;
    color: #fff;
    padding: 12px 20px;
    margin: 0;
    font-size: 1rem;
}

.fp-specs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #E5E5E5;
}

.fp-specs__item {
    background: #fff;
    padding: 16px 20px;
}

.fp-specs__item strong {
    display: block;
    font-size: 0.875rem;
    color: #111;
    margin-bottom: 4px;
}

.fp-specs__item span {
    font-size: 0.875rem;
    color: #6B6B6B;
}

.fp-specs__item--check strong::before {
    content: '✅ ';
}

/* ── Testimonials ────────────────────────────────────────── */
.fp-testimonials {
    padding: 48px 0;
}

.fp-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.fp-testimonial {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fp-testimonial__stars {
    color: #F5A623;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.fp-testimonial__quote {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #333;
}

.fp-testimonial__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}

.fp-testimonial__role {
    font-size: 0.875rem;
    color: #6B6B6B;
    margin: 0;
}

/* ── Reviews Widget ──────────────────────────────────────── */
.fp-reviews {
    padding: 48px 0;
    border-bottom: 1px solid #E5E5E5;
}

/* ── Popular Plans ───────────────────────────────────────── */
.fp-popular {
    padding: 48px 0;
}

.fp-popular__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.fp-popular__header h2 {
    margin: 0;
}

.fp-popular__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.fp-popular__card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.fp-popular__card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.fp-popular__image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
}

.fp-popular__body {
    padding: 16px;
}

.fp-popular__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.fp-popular__body h3 {
    font-size: 1rem;
    margin: 0;
}

.fp-popular__body h3 a {
    color: #111;
}

.fp-popular__body h3 a:hover {
    color: #F5A623;
}

.fp-popular__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Meet the Builder ────────────────────────────────────── */
.fp-builder {
    padding: 48px 0;
    border-bottom: 1px solid #E5E5E5;
}

.fp-builder__inner {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 24px;
}

.fp-builder__photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 5px solid #000;
}

.fp-builder__content h4 {
    font-size: 1.25rem;
    margin: 0 0 12px;
}

.fp-builder__content p {
    line-height: 1.7;
    color: #333;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.fp-faq {
    padding: 48px 0;
}

/* ── Video Modal ──────────────────────────────────────────── */
.fp-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.fp-video-modal.active {
    display: flex;
}

.fp-video-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.fp-video-modal__content {
    position: relative;
    z-index: 1;
    width: 88vw;
    max-width: 960px;
    overflow: hidden;
    box-sizing: border-box;
}

.fp-video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.fp-video-modal__close:hover {
    opacity: 1;
}

.fp-video-modal__player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    border-radius: 8px;
    overflow: hidden;
}

.fp-video-modal__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Plan Cards (homepage-matching) ──────────────────────── */
.plans-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.plans-header .section__title {
    margin-bottom: 0;
}

.plans-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.plan-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.plan-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.plan-card__image-link {
    display: block;
}

.plan-card__image,
.plan-card__image-link img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
}

.plan-card__image--placeholder {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.plan-card__body {
    padding: 16px 20px 20px;
}

.plan-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

/* Badge overrides -- match homepage pastel style */
.plan-card__badges .fp-badge,
.fp-popular__badges .fp-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1.5px solid;
    line-height: 1.4;
    background: transparent;
}

.plan-card__badges .fp-badge--beds,
.fp-popular__badges .fp-badge--beds     { color: #2E7D32; border-color: #C8E6C9; background: #F1F8E9; }
.plan-card__badges .fp-badge--baths,
.fp-popular__badges .fp-badge--baths    { color: #1565C0; border-color: #BBDEFB; background: #E3F2FD; }
.plan-card__badges .fp-badge--sqft,
.fp-popular__badges .fp-badge--sqft     { color: #E65100; border-color: #FFE0B2; background: #FFF3E0; }
.plan-card__badges .fp-badge--feature,
.fp-popular__badges .fp-badge--feature  { color: #6A1B9A; border-color: #E1BEE7; background: #F3E5F5; }

.plan-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.plan-card__title a {
    color: #000000;
    text-decoration: none;
}

.plan-card__title a:hover {
    color: #F5A623;
}

.plan-card__desc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .fp-specs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fp-popular__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fp-testimonials__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .fp-specs__grid {
        grid-template-columns: 1fr;
    }
    .fp-popular__grid {
        grid-template-columns: 1fr;
    }
    .fp-builder__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .fp-carousel__btn {
        width: 36px;
        height: 36px;
    }
    .fp-carousel__btn--prev { left: 8px; }
    .fp-carousel__btn--next { right: 8px; }
    .fp-popular__header {
        flex-direction: column;
        text-align: center;
    }
    .fp-video-modal__content {
        width: 92vw;
    }
    .fp-video-modal__close {
        top: -36px;
        right: 4px;
    }
}
