/* ============================================================
   SALA CARD - CONSOLIDATED STYLES
   All sala card elements and their complete styling
   ============================================================ */

/* ===== ROOT CARD CONTAINER ===== */
.sala-card-detailed {
    background: var(--white-color);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sala-card-detailed:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sala-card-detailed.occupied {
    background: #ffffff;
}

.sala-card-detailed.occupied .sala-image img {
    filter: grayscale(100%);
    object-position: center center;
}


/* ===== IMAGE SECTION ===== */
.sala-card-detailed .sala-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.sala-card-detailed .sala-image img,
.sala-card-detailed .sala-image .img-fluid {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: var(--transition);
}

.sala-card-detailed:hover .sala-image img,
.sala-card-detailed:hover .sala-image .img-fluid {
    transform: scale(1.1);
}


/* ===== CAROUSEL ===== */
.sala-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 5;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 50 !important;
    transition: all 0.3s ease;
    font-size: 18px;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Carousel Indicators (Dots) */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    z-index: 100 !important;
    margin: 0 auto;
    pointer-events: auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    background: white;
    transform: scale(1.3);
}


/* ===== GALLERY BUTTONS (Planta, Tour 3D, Projeto) ===== */
.sala-gallery {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
    z-index: 200;
}

.gallery-btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.planta-btn,
.tour-btn,
.projeto-btn {
    background: var(--white-color);
    color: var(--dark-color);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
}

.planta-btn:hover,
.tour-btn:hover,
.projeto-btn:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.sala-card-detailed.occupied .planta-btn,
.sala-card-detailed.occupied .tour-btn,
.sala-card-detailed.occupied .projeto-btn {
    background: #ffffff;
    color: #a0a0a0;
    border: none;
}

.sala-card-detailed.occupied .planta-btn:hover,
.sala-card-detailed.occupied .tour-btn:hover,
.sala-card-detailed.occupied .projeto-btn:hover {
    background: #f5f5f5;
    color: #a0a0a0;
}


/* ===== CLICKABLE LINK ===== */
.sala-link-clickable {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* ===== BADGES (Disponível, Ocupado, Desconto) ===== */
.sala-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.sala-badge.popular {
    background: var(--accent-color);
    color: var(--dark-color);
}

.sala-badge.compact {
    background: var(--accent-color);
    color: var(--dark-color);
}

.sala-badge.special {
    background: var(--secondary-color);
    color: var(--white-color);
}

.sala-badge.occupied {
    background: #ffffff;
    color: #a0a0a0;
}

/* Discount Badge Overlay */
.discount-badge-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
    z-index: 5;
}

.discount-badge-overlay .discount-text {
    font-size: 1rem;
    font-weight: 700;
}

.discount-badge-overlay .discount-period {
    font-size: 0.75rem;
    opacity: 0.9;
}


/* ===== EM OBRAS (UNDER CONSTRUCTION) ===== */
.em-obras-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    pointer-events: none;
}

.chapeu-obras {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chapeu-obras i {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.mensagem-obras {
    text-align: center;
    max-width: 200px;
}

.mensagem-obras p {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
}


/* ===== CONTENT SECTION (TEXT CONTENT) ===== */
.sala-content {
    padding: 1.5rem;
}

.sala-content-clickable {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sala-content-clickable:hover {
    background-color: rgba(131, 143, 103, 0.05);
}


/* ===== HEADER & NAME ===== */
.sala-header {
    margin-bottom: 1rem;
}

.sala-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.sala-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.sala-name-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.sala-name-link:hover .sala-name {
    color: var(--primary-color);
}

.sala-name-link .sala-name {
    margin: 0;
    transition: color 0.3s ease;
}


/* ===== SPECIFICATIONS (SPECS) ===== */
.sala-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
    background: var(--light-gray);
    font-size: 0.8rem;
    line-height: 1.3;
}

.spec-item i {
    width: 14px;
    text-align: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    color: var(--dark-color);
}

.spec-item span {
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--dark-color);
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Endereço Fiscal Badge */
.spec-item.endereco-badge {
    position: relative;
}

.spec-item.endereco-badge i {
    width: 14px !important;
    text-align: center;
    font-size: 0.75rem !important;
    flex-shrink: 0;
    color: var(--dark-color) !important;
    margin: 0 !important;
}

.spec-item.endereco-badge span {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.7rem !important;
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark-color);
}

.endereco-tooltip {
    display: none;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.endereco-tooltip i {
    width: auto !important;
    font-size: inherit !important;
}

.endereco-tooltip .tooltip-content {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


/* ===== PRICE SECTION ===== */
.sala-price {
    margin-bottom: 1rem;
}

.price-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.price-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
    background: var(--light-gray);
    transition: var(--transition);
}

.price-option:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.price-option .price-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dark-color);
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.price-option .price-current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-option:hover .price-label,
.price-option:hover .price-current {
    color: var(--white-color);
}

.price-option.highlight {
    background: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
}

/* Price Promo Wrapper */
.price-promo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.price-promo-wrapper .price-original {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    opacity: 0.9;
}

.price-promo-wrapper .strikethrough {
    text-decoration: line-through;
}

.price-promo-wrapper .price-current {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-promo-wrapper .price-condition {
    display: block;
    font-size: 0.75rem;
    color: var(--dark-color);
    opacity: 0.7;
    font-weight: 400;
    margin-top: -0.1rem;
}

.price-option-promo:hover .price-promo-wrapper .price-original,
.price-option-promo:hover .price-promo-wrapper .price-current,
.price-option-promo:hover .price-promo-wrapper .price-condition {
    color: var(--white-color);
    opacity: 1;
}

/* Price Accordion */
.price-accordion {
    width: 100%;
}

.price-accordion-button {
    background: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.price-accordion-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.price-accordion-button i:first-child {
    margin-right: 0.5rem;
}

.price-accordion-button.active {
    background: var(--primary-color);
}

.price-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.price-accordion-content.show {
    max-height: 500px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Promo Pricing */
.price-row-promo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255, 199, 0, 0.1);
    border-left: 3px solid var(--accent-color);
}

.price-current-promo {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-current-promo small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
}

.price-original-promo {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-color);
    opacity: 0.9;
    font-weight: 500;
}

.price-original-promo .strikethrough {
    text-decoration: line-through;
}

.price-condition-promo {
    display: block;
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    margin-top: 0.1rem;
}

/* Normal Pricing */
.price-row-normal {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    text-decoration: line-through;
    color: #999;
    margin-left: 0.5rem;
}

.price-discount {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.price-note {
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: 500;
    margin-left: 0.5rem;
}

.price-period {
    font-size: 0.9rem;
    color: var(--white-color);
    background: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 0;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}


/* ===== ACTIONS (BUTTONS) ===== */
.sala-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}


/* ===== SALA DETAILS ===== */
.sala-details {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-left: 4px solid var(--primary-color);
}

.sala-details h5 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.sala-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sala-details li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.sala-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}


/* ============================================================
   RESPONSIVE DESIGN - MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .carousel-images {
        height: 250px;
    }

    .carousel-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .carousel-indicators .indicator {
        width: 8px;
        height: 8px;
    }

    .sala-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .spec-item {
        padding: 0.35rem 0.4rem;
        font-size: 0.75rem;
    }

    .spec-item i {
        width: 12px;
        font-size: 0.7rem;
    }

    .spec-item span {
        font-size: 0.75rem;
    }

    .spec-item.endereco-badge {
        padding: 0.35rem 0.4rem;
        font-size: 0.75rem;
    }

    .spec-item.endereco-badge i {
        width: 12px !important;
        font-size: 0.7rem !important;
    }

    .spec-item.endereco-badge span {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .price-options {
        gap: 0.3rem;
        font-size: 0.85rem;
    }

    .price-option {
        padding: 0.4rem;
    }

    .spec-item {
        padding: 0.3rem 0.35rem;
        font-size: 0.7rem;
    }

    .spec-item i {
        width: 10px;
        font-size: 0.65rem;
    }

    .spec-item span {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .spec-item.endereco-badge {
        padding: 0.3rem 0.35rem;
        font-size: 0.7rem;
    }

    .spec-item.endereco-badge i {
        width: 10px !important;
        font-size: 0.65rem !important;
    }

    .spec-item.endereco-badge span {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
    }
}

