/* Modern Header Bar Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    height: 70px;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    height: 60px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

/* Left section - Title */
.header-left {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
}

/* Center section - Property Tile */
.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-property-tile {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 8px 15px;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    height: 48px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.header-property-tile:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.header-property-empty {
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--gray-color);
}

.header-property-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.header-property-details {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-property-image {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.header-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-property-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.header-property-info span:first-child {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-property-info span:last-child {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Right section - Action buttons */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.header-action-btn {
    height: 40px;
    border-radius: 20px;
    border: none;
    background-color: #f5f7fa;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0 15px;
    gap: 8px;
    white-space: nowrap;
}

.header-action-btn:not(:disabled):hover {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 3px 8px rgba(38, 166, 154, 0.3);
}

.header-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Body padding to account for fixed header */
body {
    padding-top: 90px; /* Slightly more than header height */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-center {
        flex: 1;
        padding-right: 15px; /* Add some space between property tile and action buttons */
    }
    
    .header-property-tile {
        max-width: none;
    }
    
    .site-title {
        font-size: 1.3rem;
    }

    .header-property-empty span {
        font-size: 0.9rem; /* Smaller text for property tile */
        line-height: 1.2; /* Tighter line spacing */
    }

    .header-action-btn {
        width: 36px; /* Icon only size */
        height: 36px; /* Icon only size */
        border-radius: 50%; /* Make it circular */
        padding: 0; /* Remove padding */
        gap: 0; /* Remove gap */
    }

    .header-action-btn span {
        display: none; /* Hide the text label */
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    /* Button styles moved to 768px breakpoint */
    .header-right {
        gap: 8px; /* Keep reduced gap */
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .header-left {
        display: none; /* Hide the title section */
    }

    .header-center {
        flex: 2; /* Allow it to take more space */
        justify-content: flex-start; /* Align property tile to the left */
        /* padding-right removed, handled at 768px or by hiding title */
    }
}