/* style.css */
/* Complete styling for Property Management System */

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #f5f7fe 0%, #eef2fa 100%);
    color: #1a2c3e;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(26, 44, 62, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 150, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    background: linear-gradient(135deg, #ffd79e, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    color: #ffb347;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.nav-links a i {
    margin-right: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, #ffb347, #ff9f1c);
    color: #1a2c3e;
    transform: translateY(-2px);
}

.portal-badge {
    background: rgba(255, 215, 150, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    color: #ffd79e;
    border: 1px solid rgba(255, 215, 150, 0.3);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1e3a4d, #0f2b3d);
    border-radius: 32px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-banner h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero-banner p {
    color: #ffd79e;
}

/* Section Title */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    background: linear-gradient(135deg, #c9a96e, #b88b44);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title-underline {
    height: 3px;
    width: 50px;
    background: linear-gradient(90deg, #ffb347, #ffd79e);
    border-radius: 3px;
    margin-top: 5px;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2rem;
}

/* Card */
.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-img {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.virtual-tour-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.9rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffb347;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.virtual-tour-badge:hover {
    background: #ffb347;
    color: #1a2c3e;
    transform: scale(1.02);
}

.badge-type {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.badge-sale {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
}

.badge-rent {
    background: linear-gradient(135deg, #2a9d8f, #1e6f64);
}

.card-content {
    padding: 1.3rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a2c3e;
    margin-bottom: 0.3rem;
}

.address {
    color: #6c7f8f;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.8rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0;
    padding-top: 0.6rem;
    border-top: 1px solid #eef2fa;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    background: #f8fafd;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
}

.feature i {
    color: #ffb347;
}

.desc {
    font-size: 0.85rem;
    color: #4a5b6e;
    margin: 0.5rem 0;
    line-height: 1.4;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a2c3e, #1f3a4b);
    color: white;
    padding: 0.6rem 1.3rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #ffb347;
    color: #ffb347;
}

.btn-outline:hover {
    background: #ffb347;
    color: #1a2c3e;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #ffb347, #ff9f1c);
    color: #1e2a3e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 180, 71, 0.3);
}

.btn-small {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Portal Sections */
.portal-section {
    background: white;
    border-radius: 28px;
    padding: 1.8rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffd79e40;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.portal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c9a96e;
}

.admin-card, .client-card {
    background: #fafcff;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card h3, .client-card h3 {
    margin-bottom: 1rem;
    color: #1a2c3e;
}

/* Forms */
.admin-form, .auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #4a5b6e;
}

.form-group.full-width {
    flex: 100%;
}

input, select, textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ffb347;
    box-shadow: 0 0 0 2px rgba(255, 180, 71, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input {
    width: auto;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.property-table {
    width: 100%;
    border-collapse: collapse;
}

.property-table th,
.property-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eef2fa;
    font-size: 0.85rem;
}

.property-table th {
    background: #f1f5f9;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 360 Manager */
.360-manager-row td {
    padding: 1rem;
    background: #f9fafb;
}

.360-manager-panel {
    padding: 1rem;
    background: white;
    border-radius: 16px;
}

.360-manager-panel h4 {
    margin-bottom: 1rem;
    color: #ffb347;
}

.360-manager-panel h5 {
    margin: 1rem 0 0.5rem 0;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.file-item {
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.add-360-file {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.add-360-file input[type="file"] {
    width: auto;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Badges */
.badge-360-enabled {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-360-warning {
    color: #ed6c02;
    background: #fff3e0;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

.badge-360-disabled {
    color: #9e9e9e;
    background: #f5f5f5;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

/* Status Messages */
.status-msg {
    padding: 0.8rem 1rem;
    border-radius: 16px;
    margin: 1rem 0;
}

.status-msg.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.status-msg.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.error-msg, .success-msg {
    padding: 0.8rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.error-msg {
    background: #ffebee;
    color: #c62828;
}

.success-msg {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    background: white;
    border-radius: 32px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a2c3e;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.demo-credentials {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 16px;
    font-size: 0.8rem;
}

/* Property Detail Page */
.property-detail {
    background: white;
    border-radius: 32px;
    overflow: hidden;
}

.detail-header {
    background: linear-gradient(135deg, #1e3a4d, #0f2b3d);
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.detail-header h1 {
    font-size: 1.8rem;
}

.price-large {
    font-size: 2rem;
    font-weight: 800;
    color: #ffb347;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.viewer-360 {
    width: 100%;
    height: 400px;
    background: #1a2c3e;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.viewer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
}

.viewer-controls {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #6c7f8f;
}

.property-image {
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
}

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

.image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b6f8a, #1f4e6b);
    color: white;
}

.property-description,
.property-features-detailed,
.property-info-card,
.inquiry-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fafcff;
    border-radius: 24px;
}

.property-description h3,
.property-features-detailed h3,
.property-info-card h3,
.inquiry-card h3 {
    margin-bottom: 1rem;
    color: #1a2c3e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem;
    background: white;
    border-radius: 12px;
}

.feature-item i {
    color: #ffb347;
    width: 24px;
}

.property-info-card hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* Filter Bar */
.filter-bar {
    background: #f8fafc;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-bar select {
    width: auto;
    min-width: 140px;
}

/* Inquiries List */
.inquiries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inquiry-item {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3e0;
    color: #ed6c02;
}

.status-responded {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-closed {
    background: #f5f5f5;
    color: #9e9e9e;
}

.inquiry-message {
    font-size: 0.85rem;
    color: #4a5b6e;
    margin: 0.5rem 0;
}

.inquiry-date {
    font-size: 0.7rem;
    color: #9e9e9e;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.modal-content.small {
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: #9e9e9e;
}

.close-modal:hover {
    color: #1a2c3e;
}

.inquiry-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #9e9e9e;
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #0f2b3d;
    color: #94a3b8;
    margin-top: 3rem;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero-banner h1 {
        font-size: 1.3rem;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .portal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}