/* Add this favicon link to every page head section:
<link rel="icon" type="image/png" href="assets/images/logo.png">
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5aa0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-outline {
    border: 2px solid #2c5aa0;
    color: #2c5aa0;
    background: transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    background: #0077aa;
    color: white;
    padding: 80px 0 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    background: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.quick-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 250px;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.advanced-search {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group select,
.form-group input {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .amenity-checkbox {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        justify-content: flex-start;
    }
    
    .amenity-checkbox input {
        margin-right: 0.5rem;
    }
}

/* Trending Section */
.trending-section {
    padding: 0.5rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
}

.property-info {
    padding: 1.5rem;
}

.property-price {
    font-size: 1rem;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.property-price {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .property-price {
        font-size: 0.65rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .property-price {
        font-size: 0.6rem;
    }
}

.property-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.property-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact {
    background: #28a745;
    color: white;
}

.btn-save {
    background: #ffc107;
    color: #333;
}

/* Footer */
.footer {
    background: #003344;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    margin-top: 2rem;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    color: #2c5aa0;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
}

.social-icon:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-icon i {
    font-size: 1.4rem;
}



@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-section {
        padding: 1rem 0;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin: 0;
        padding: 0;
    }
    
    .footer-section li {
        margin: 0;
        font-size: 0.9rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-bottom {
        padding: 1rem;
        font-size: 0.8rem;
        margin-top: 1rem;
    }
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2c5aa0;
    font-size: 1.5rem;
    cursor: pointer;
}

.notification-bell {
    background: none;
    border: none;
    color: #2c5aa0;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 1rem;
    display: inline-block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }
    
    .logo {
        display: block !important;
        font-size: 1rem;
    }
    
    .logo span {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .notification-bell {
        order: 2;
        display: inline-block !important;
        margin-right: 1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 1rem 0;
        margin-top: 60px;
        z-index: 999;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu.show + .auth-buttons {
        display: flex;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
    }
    
    .auth-buttons {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: row;
        gap: 0.25rem;
        padding: 0.75rem 1rem;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        display: none;
    }
    
    .auth-buttons.show {
        display: flex;
    }
    
    .auth-buttons .btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .quick-search {
        flex-direction: column;
    }
    
    .search-buttons {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .search-buttons button {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 0.5rem;
        gap: 0.75rem;
    }
    
    .property-card {
        border-radius: 8px;
    }
    
    .property-image {
        height: 120px !important;
    }
    
    .property-info {
        padding: 0.75rem !important;
    }
    
    .property-price {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .property-title {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.3rem !important;
    }
    
    .property-location {
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .property-features {
        font-size: 0.65rem !important;
        gap: 0.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .property-actions {
        gap: 0.5rem !important;
        flex-wrap: wrap;
        margin-top: 0.75rem !important;
    }
    
    .btn-small {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.65rem !important;
        flex: 1;
        min-width: 40px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
    }
    
    .advanced-search {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-2 { padding: 2rem; }

.hidden {
    display: none;
}

.show {
    display: block;
}

/* WhatsApp Style Chat Widget */
.whatsapp-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: #8e44ad !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
}

.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.chat-bubble i {
    color: white;
    font-size: 1.8rem;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3333;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #075e54;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #8e44ad;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar i {
    font-size: 1.2rem;
}

.chat-info h4 {
    margin: 0;
    font-size: 1rem;
}

.chat-info .status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #e5ddd5;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="a" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23a)"/></svg>');
}

.welcome-message {
    margin-bottom: 1rem;
}

.admin-bubble, .user-bubble {
    max-width: 80%;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border-radius: 10px;
    position: relative;
}

.admin-bubble {
    background: #0077aa;
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 3px;
}

.user-bubble {
    background: #003344;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 3px;
}

.admin-bubble p, .user-bubble p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.admin-bubble .time, .user-bubble .time {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    width: 100%;
}

.chat-input {
    padding: 1rem;
    background: white;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
}

.send-btn {
    width: 40px;
    height: 40px;
    background: #8e44ad;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.send-btn:hover {
    background: #7d3c98;
}

@media (max-width: 768px) {
    .chat-window {
        width: 90vw;
        height: 70vh;
        right: 5vw;
    }
}

/* Chat Support Modal */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.chat-modal-content {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.chat-header {
    background: #8e44ad;
    color: white;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 1.5rem;
}

.chat-form .form-group {
    margin-bottom: 1rem;
}

.chat-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.chat-form textarea {
    resize: vertical;
    min-height: 80px;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-chat {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-chat-primary {
    background: #8e44ad;
    color: white;
}

.btn-chat-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.contact-modal .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.contact-modal .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.contact-modal h3 {
    margin-bottom: 1.5rem;
    color: #2c5aa0;
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-buttons .btn {
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.btn-success {
    background: #25d366;
    color: white;
}

.btn-success:hover {
    background: #1da851;
}



/* Live Chat Styles */
.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    max-width: 80%;
}

.user-message {
    background: #003344;
    color: white;
    margin-left: auto;
    text-align: right;
}

.admin-message {
    background: #0077aa;
    color: white;
    border: none;
}

.message-content {
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
}

.message-sender {
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.admin-message .message-sender {
    color: #2c5aa0;
}

.user-message .message-sender {
    color: #28a745;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-chat-send {
    background: #8e44ad;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}
/* Notifications Panel */
.notifications-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    max-height: 250px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

@media (max-width: 768px) {
    .notifications-panel {
        right: 5px;
        left: 5px;
        width: auto;
        max-width: calc(100vw - 10px);
        transform: translateX(-50%);
        left: 50%;
        right: auto;
    }
}

.notifications-header {
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 0.9rem;
}

.notifications-list {
    max-height: 200px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.8rem;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}