/* Towers Section Styles */
.section.towers-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
}

.towers-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.towers-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tower-mask {
    opacity: 0.1;
    transition: opacity 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
}

.tower-mask.hovered {
    opacity: 0.8;
}

.tower-info-panel {
    position: absolute;
    bottom: 0;
    transform: none;
    /* width: 770px; */
    width: 850px;
    padding: 25px 30px;
    background: #eae6e2ca;
    color: #867D5C;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    transition: bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    /* height: 60%; */
    /* height: 35%; */
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.tower-info-panel.visible {
    right: 0;
}

.tower-info-panel h3 {
    margin-top: 0;
    font-size: 50px !important;
}

.tower-info-panel p {
    margin: 4px 0;
    font-size: 20px;
}

.tower-title {
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.2;
}

.tower-section {
    margin-bottom: 35px;
}

.section-title {
    margin: 0 0 8px 0;
    font-size: 30px;
    font-weight: bold;
    /* color: #fff; */
    letter-spacing: 0.5px;
}

.section-info {
    margin: 0;
    font-size: 20px;
    /* color: #fff; */
    line-height: 1.4;
    font-weight: 400;
}

.tower-info-panel.right {
    /* bottom: -60%; */
    bottom: -35%;
    right: 0;
    transition: bottom 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.tower-info-panel.right.visible {
    bottom: 0;
}

.tower-info-panel.left {
    /* bottom: -60%; */
    bottom: -35%;
    left: 0;
    transition: bottom 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: end;
}
.tower-info-panel.left.visible {
    bottom: 0;
}

.towers-base {
    pointer-events: none;
} 

.hint-tower {
    position: relative;
    width: 330px;
    height: 120px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    top: 4%;
    padding: 32px 15px;
}

.hint-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(246, 244, 242, 0.738);
    backdrop-filter: blur(3px);
    z-index: 1;
}

.hint-text {
    position: relative;
    z-index: 2;
    color: #867D5C; 
    display: flex;
}

.hint-text p {
    font-size: 16px;
    line-height: 18px;
    padding-left: 20px;
}

#plus-of-the-project .flex-box {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; 
    align-items: center;
}

#plus-of-the-project .flex-box:hover {
    width: 65%;
}

#plus-of-the-project .flex-box:hover ~ .flex-box {
    width: 17.5%;
}

#plus-of-the-project:hover .flex-box:not(:hover) {
    width: 17.5%;
}

/* Keep constant spacing between SVG and info block in Section 11 */
@media (min-width: 769px) {
    #plus-of-the-project .flex-box .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        column-gap: 4rem;
    }

    /* Fix SVG column to a stable width so hover resize doesn't change spacing */
    #plus-of-the-project .flex-box .col-5 {
        flex: 0 0 auto;
        width: 260px;
    }

    #plus-of-the-project .flex-box .col-5 svg {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Remove global margin that causes shifting; use gap instead */
    #plus-of-the-project .item-info-div {
        margin-left: 0;
    }
}

.mt-tower {
    margin-top: 93px;
}

@media (max-width: 1600px) { 
    .tower-info-panel {
        width: 770px;
        /* height: 60%; */
        height: 450px;
    }

    .tower-info-panel.right {
        bottom: -60%;
    }

    .tower-info-panel.left {
        bottom: -60%;
    }
}

@media (max-width: 768px) {
     #plus-of-the-project .flex-box {
        transition: none;
    }
    .section.towers-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .tower-info-panel {
        width: 100%;
        height: auto;
        max-height: 50vh;
        padding: 20px;
        bottom: 0;
        top: auto;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(100%);
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
        overflow-y: auto;
    }
    
    .tower-info-panel.visible {
        transform: translateY(0);
    }
    
    .tower-info-panel.right {
        right: 0 !important;
    }
    
    .tower-info-panel.left {
        left: 0 !important;
    }
    
    .tower-title {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .tower-section {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .section-info {
        font-size: 14px;
    }
    
    .tower-info-panel::before {
        content: '×';
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        z-index: 10;
        transition: background-color 0.3s ease;
    }
    
    .tower-info-panel::before:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
    
    .tower-mask {
        opacity: 0.2;
    }
    
    .tower-mask.hovered {
        opacity: 0.6;
    }
    
    .tower-mask:active {
        opacity: 0.8 !important;
    }
    .towers-wrapper img {
        object-fit: contain;
        height: unset;
        margin-top: 28px;
        /* margin-top: 50px; */
    }
    .towers-wrapper {
        background-color: #EAE6E2;
    }
}

@media (max-width: 480px) {
    .section.towers-section {
        min-height: unset;
        height: 32vh;
    }
    
    .tower-info-panel {
        max-height: 60vh;
        padding: 15px;
    }
    
    .tower-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .tower-section {
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .section-info {
        font-size: 12px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .section.towers-section {
        height: 100vh;
    }
    
    .tower-info-panel {
        max-height: 70vh;
        width: 350px;
        right: 0;
        left: auto;
        top: 50%;
        bottom: auto;
        transform: translate(100%, -50%);
        border-radius: 20px 0 0 20px;
    }
    
    .tower-info-panel.visible {
        transform: translate(0, -50%);
    }
    
    .tower-info-panel.left {
        left: 0;
        right: auto;
        border-radius: 0 20px 20px 0;
        transform: translate(-100%, -50%);
    }
    
    .tower-info-panel.left.visible {
        transform: translate(0, -50%);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .tower-info-panel {
        width: 400px;
        padding: 20px 25px;
    }
    
    .tower-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .section-info {
        font-size: 15px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .towers-wrapper img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* @media (prefers-color-scheme: dark) {
    .tower-info-panel {
        background: rgba(134, 125, 92, 0.95);
    }
} */

@media (prefers-reduced-motion: reduce) {
    .tower-info-panel {
        transition: none;
    }
    
    .tower-mask {
        transition: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .tower-mask {
        opacity: 0.3;
    }
    
    .tower-mask.hovered {
        opacity: 0.7;
    }
    
    .tower-info-panel::before {
        min-height: 44px;
        min-width: 44px;
    }
}

@media print {
    .section.towers-section {
        height: auto;
        page-break-inside: avoid;
    }
    
    .tower-info-panel {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        box-shadow: none;
        margin-top: 20px;
        page-break-inside: avoid;
    }
} 