/* Landlord Registration Banner Styles */
.landlord-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #6f6259;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* Hide by default, show after JS confirms visibility */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show banner when ready */
.landlord-banner.show {
    opacity: 1;
    visibility: visible;
    animation: slideDown 0.5s ease-out;
}

.landlord-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.landlord-banner-icon {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.landlord-banner-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: rgb(0, 0, 0);
}

.landlord-banner-link {
    background: transparent;
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.landlord-banner-link-banner {
    background: transparent;
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.landlord-banner-link:hover {
    background: #ffffff;
    color: #6f6259;
    text-decoration: none;
    transform: translateY(-1px);
}

.landlord-banner-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.landlord-banner-close:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adjust page content to account for banner */
body.has-landlord-banner {
    padding-top: 70px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landlord-banner {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .landlord-banner-content {
        gap: 10px;
        flex-wrap: wrap;
    }

    .landlord-banner-icon {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    .landlord-banner-text {
        font-size: 14px;
        flex: 1 1 100%;
        order: 2;
    }

    .landlord-banner-link {
        font-size: 13px;
        padding: 6px 15px;
        order: 3;
    }

    .landlord-banner-close {
        font-size: 28px;
        width: 28px;
        height: 28px;
        margin-left: auto;
        order: 1;
    }

    /* Header banner mobile styles */
    #header_contents_1 .landlord-banner-icon {
        display: none !important;
    }
    
    #header_contents_1 .landlord-banner-text,
    #header_contents_1 .landlord-banner-text a {
        font-size: 11px !important;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .landlord-banner-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .landlord-banner-close {
    margin-left: 0;
    margin-right: 15px;
}

@media (max-width: 768px) {
    [dir="rtl"] .landlord-banner-close {
        margin-right: auto;
        margin-left: 0;
    }
}

