/* CUSCO BIENES RAICES - PUBLIC WEBSITE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #000;
    color: #999999;
    padding-bottom: 90px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.main-header {
    background: #000;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #79b100;
}

.nav-item.whatsapp-btn {
    background: #25d366;
    color: #fff;
}

.nav-item.whatsapp-btn:hover {
    background: #1fb855;
    color: #fff;
}

/* HEADER NEW (Index) */
.main-header-new {
    background: #141414;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 40px;
}

.logo-icon-new {
    background: #79b100;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon-new i {
    font-size: 3rem;
    color: #fff;
}

.logo-text-new {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    /* letter-spacing: 2px; */
    margin: 0;
}

.text-green {
    color: #79b100;
}

.header-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu-btn {
    background: #272727;
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 200px;
    text-decoration: none;
}

.menu-btn i {
    font-size: 1.5rem;
}

.btn-text {
    flex: 1;
    text-align: left;
    letter-spacing: 0.6px;
}

.btn-count {

    color: #79b100;
    padding: 2px 0px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1rem;
}

.menu-btn.active {
    background: #4a4a4a;
}

.menu-btn:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
}

.header-social {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #272727;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #4a4a4a;
    transform: scale(1.1);
}

.social-btn.social-user {
    border: 3px solid #79b100;
}

/* PROPERTIES */
.properties-section {
    padding: 15px 0;
    background: #2f2f2f;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.property-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(121, 177, 0, 0.3);
}

.property-card.hidden {
    display: none;
}

.property-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #79b100;
    color: #fff;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.property-media-icons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.media-icon {
    background: rgb(121 177 0);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.media-icon span {
    font-size: 0.7rem;
    font-weight: bold;
}

.property-content {
    padding: 25px;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.property-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.property-info-bar {
    background: #ff000098;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.info-item {
    flex: 1;
    padding: 15px;
    text-align: center;
}

.info-label {
    font-size: 11px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.currency-text {
    font-size: 0.9rem;
    font-weight: normal;
}

.price-number {
    font-size: 1.3rem;
    font-weight: bold;
}

.info-divider {
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.property-location i {
    color: #79b100;
    font-size: 1.2rem;
}

.property-description {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-view-property {
    display: block;
    background: #79b100;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 50%;
}

.btn-view-property:hover {
    background: #5a8500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(121, 177, 0, 0.4);
}

/* FOOTER */
.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #141414;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    z-index: 100000;
    border-top: 2px solid #79b100;
}

.footer-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    background: none;
    /* Reset button background */
    border: none;
    /* Reset button border */
    cursor: pointer;
    /* Ensure pointer cursor for button */
}

.footer-item i {
    font-size: 1.5rem;
}

.footer-item span {
    font-size: 0.85rem;
    text-transform: capitalize;
    font-size: 12px;
}

.footer-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-item.whatsapp {
    background: #79b100;
    color: #fff;
}

.footer-item.whatsapp:hover {
    background: #45b81f;
}

.footer-item.active {
    color: #79b100;
}

.footer-item.active i {
    color: #79b100;
}

/* WhatsApp Active override */
.footer-item.whatsapp.active {
    color: #ffffff;
}

.footer-item.whatsapp.active i {
    color: #ffffff;
    transform: scale(1.3);
    transition: transform 0.2s ease;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {

    /* Hide top header navigation ONLY on Detail/Property pages (redundant with footer) */
    .main-header {
        display: none;
    }

    .header-menu.detail-mode {
        display: none;
    }

    .main-header-new {
        padding: 15px;
        display: block;
        /* Ensure header container is visible */
    }

    .header-logo {
        margin-bottom: 15px;
        /* Removing bottom margin on mobile since menu is hidden */
        justify-content: center;
        /* Center logo */
    }

    .logo-text-new {
        font-size: 1.3rem;
    }

    .logo-icon-new {
        width: 50px;
        height: 50px;
    }

    .logo-icon-new i {
        font-size: 1.8rem;
    }

    .header-menu {
        gap: 15px;
    }

    .menu-row {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .menu-btn {

        min-width: 0;
        max-width: 250px;
        padding: 12px 18px;
        font-size: 12px;
    }

    .menu-btn i {
        font-size: 12px;
    }

    .btn-text {
        text-align: center;
    }

    .btn-count {
        font-size: 12px;

    }

    .header-social {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 5px;
    }

    .social-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }



    .info-divider {
        width: 100%;
        height: 2px;
    }
}

/* Video Icons Clickeable */
.media-icon.video-icon,
.media-icon.video-360-icon {
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-icon.video-icon:hover,
.media-icon.video-360-icon:hover {
    background: rgba(121, 177, 0, 0.9);
    transform: scale(1.1);
}

/* Modal de Video Fullscreen */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
}

.video-modal video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 10px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: #79b100;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: #5a8500;
    transform: scale(1.1);
}

/* Super�ndice para contadores de men� */
.btn-count {
    position: relative;
    top: -8px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #79b100;
    margin-left: 2px;
}

/* Estilos para filtrado */
.menu-btn.active {
    background: #79b100;
    color: #fff;
    transform: scale(1.05);
}

/* Contador blanco cuando el botón está activo */
.menu-btn.active .btn-count {
    color: #fff;
}

.property-card.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mensaje de sin resultados */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    font-size: 1.2rem;
}

.no-results-message p {
    margin: 0;
    opacity: 0.7;
}

/* ===================================
   WHATSAPP CONTACT MODAL
   =================================== */

/* Modal Container */
.whatsapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.whatsapp-modal.active {
    display: flex;
}

/* Backdrop */
.whatsapp-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content */
.whatsapp-modal-content {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: #00000070;
    width: 100%;
    max-width: 450px;
    border-radius: 30px 30px 0 0;
    padding: 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUpFromButton 0.3s ease-out;
    transform-origin: bottom center;
}

@keyframes slideUpFromButton {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.whatsapp-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.whatsapp-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Header */
.whatsapp-modal-header {
    position: absolute;
    top: 20px;
    left: 20px;
}

.camera-icon {
    color: #1a1f2e;
    font-size: 1.3rem;
}

/* ===================================
   SLIDESHOW MODAL
   =================================== */
.slideshow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 200000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slideshow-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Progress Bar */
.slideshow-progress-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 200002;
}

.slideshow-progress-bar {
    height: 100%;
    background: #79b100;
    width: 0%;
    /* transition: width 0.05s linear; Handled by JS mostly, but linear helps smoothness */
}

/* Close Button */
.slideshow-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 200002;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.slideshow-close:hover {
    opacity: 1;
}

/* Content Area */
.slideshow-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    /* Center only structurally if needed, but we used track transform */
}

.slideshow-track {
    height: 100svh;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Transformation handled by JS */
}

.slideshow-item {
    height: 100vh;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Remove padding to be full immersive if desired, or keep some */
    background: #000;
}

/* Adjust card inside slide */
.slideshow-item .property-card {
    width: 100%;
    height: 100%;
    max-width: 600px;
    /* Limit width on desktop */
    max-height: 80vh;
    /* Don't cover controls completely if they overlay */
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    /* Make card largely static visual */
    position: relative;
}

/* Ensure inner elements look okay */
.slideshow-item .property-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-item .property-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.9));
}

.slideshow-item .property-content {
    position: absolute;
    bottom: 80px;
    /* Space for controls */
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 30px;
}

.slideshow-item .property-badge {
    top: 40px;
    left: 30px;
}

.slideshow-item .property-media-icons {
    display: none;
    /* Hide interactive icons in slideshow mode to keep clean */
}

.slideshow-item .btn-view-property {
    display: inline-block;
    width: auto;
    min-width: 200px;
    margin-top: 15px;
    pointer-events: auto;
    /* Enable clicking this button specifically */
    background: #79b100;
}

/* Controls Bar */
.slideshow-controls {
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 200003;
    padding-bottom: 20px;
    /* Safe area */
}

.control-btn {
    background: #79b100;
    border: none;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.control-btn:hover {
    transform: scale(1.1);
    background: #8bc300;
}

.control-btn.small {
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    font-size: 1rem;
}

.control-btn.small:hover {
    background: #555;
}

.divider {
    width: 1px;
    height: 40px;
    background: #444;
    margin: 0 10px;
}

.duration-display {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 40px;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .slideshow-item .property-card {
        max-width: 100%;
        max-height: 100%;
    }

    .slideshow-item .property-content {
        bottom: 100px;
        padding: 20px;
    }

    .slideshow-controls {
        gap: 15px;
        height: 100px;
        /* Taller for fat fingers */
    }
}

/* Agent Profile */
.agent-profile {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.agent-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid #7ed321;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(126, 211, 33, 0.3);
}

/* Agent Info */
.agent-info {
    text-align: center;
    margin-bottom: 25px;
}

.agent-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.agent-name .text-green {
    color: #7ed321;
}

.agent-role {
    font-size: 1rem;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.agent-greeting {
    margin-top: 15px;
}

.greeting-text {
    font-size: 1.1rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20vh;
}

.greeting-text strong {
    font-weight: 700;
    color: #79b100;
}

.greeting-text .text-green {
    color: #7ed321;
}

.greeting-description {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-call-btn,
.info-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-call-btn {
    background: #45b81f;
    color: #fff;
}

.whatsapp-call-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.info-share-btn {
    background: #1e90ff;
    color: #fff;
}

.info-share-btn:hover {
    background: #1873cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.whatsapp-call-btn i,
.info-share-btn i {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-modal-content {
        max-width: 100%;
        border-radius: 25px 25px 0 0;
        padding: 25px 40px;
    }

    .agent-avatar {
        width: 120px;
        height: 120px;
    }

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

    .greeting-text {
        font-size: 1rem;
    }

    .greeting-description {
        font-size: 0.9rem;
    }
}

/* --- Documents Modal Styles --- */
.documents-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Higher than footer and WhatsApp modal */
    display: none;
    align-items: flex-end;
    /* Slide up from bottom on mobile */
    justify-content: center;
}

.documents-modal.active {
    display: flex;
}

.documents-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.documents-modal-content {
    position: relative;
    background: #1a1a1a;
    width: 100%;
    max-width: 600px;
    /* Limit width on desktop */
    height: 90vh;
    /* Takes most of the screen height */
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    /* Changed from overflow-y: auto to hidden for flex container */
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    padding-bottom: 0px;
    /* Space handled by height/flex */
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.documents-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    background: #1a1a1a;
    z-index: 10;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.documents-header i.fa-folder {
    margin-right: 15px;
}

.documents-header h2 {
    flex-grow: 1;
    font-size: 18px;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* Video Section */
.documents-video {
    position: relative;
    width: 100%;
    background: #000;
    height: 250px;
    /* Fixed height for video */
    min-height: 250px;
    flex-shrink: 0;
    /* Prevent shrinking */
    overflow: hidden;
}

.documents-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 5;
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Documents List */
.documents-list {
    padding: 20px;
    flex-grow: 1;
    /* Allow it to grow to fill remaining space */
    overflow-y: auto;
    /* Scrollable */
    padding-bottom: 80px;
    /* Extra space at bottom for footer/scroll comfort */
}

.document-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #252525;
}

.document-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #2a2a2a;
    /* Slightly lighter header */
    cursor: pointer;
    border-left: 4px solid #79b100;
    /* Green accent */
}

.doc-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.document-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.document-actions button {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.2s;
}

.document-actions .btn-pdf:hover {
    color: #ff5252;
}

/* Red for PDF */
.document-actions .btn-play:hover {
    color: #79b100;
}

/* TikTok Cyan/White */
.document-actions .btn-toggle:hover {
    color: #fff;
}

.document-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
    background: #252525;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.document-item.active .document-content {
    padding: 15px;
    border-top: 1px solid #333;
}

.document-content p {
    margin-bottom: 10px;
}

.document-content strong {
    color: #79b100;
}

/* High z-index for PDF viewer if used */
#pdfViewerModal {
    z-index: 200000;
}