/* Preserve all original styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #333;
}

header {
    background: linear-gradient(90deg, #4a90e2, #6c63ff);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

header a:hover { text-decoration: underline; }

.admin-link {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

.hero {
    background: linear-gradient(90deg, #6c63ff, #4a90e2);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.hero h1 { margin: 0 0 20px; }

.hero input, .hero select, .hero button {
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

.hero button {
    background: #ffb800;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.hero button:hover {
    background: #e6a600;
}

.section-title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 24px;
    font-weight: bold;
}

.listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px 40px;
}

.listing-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f0f0f0;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.carousel img.active { display: block; }

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 16px;
}

.carousel button:hover {
    background: rgba(0,0,0,0.7);
}

.carousel button.prev { left: 10px; }
.carousel button.next { right: 10px; }

.listing-info { 
    padding: 15px; 
    flex: 1;
}

.listing-info h3 { 
    margin: 0 0 10px; 
    color: #2c3e50;
}

.listing-info p { 
    margin: 0 0 10px; 
    font-size: 14px; 
    color: #555; 
}

.listing-info .description {
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

.contact-buttons {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: #f1f1f1;
}

.contact-buttons a {
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-buttons a:hover {
    opacity: 0.9;
}

.call { background: #28a745; }
.whatsapp { background: #25d366; }
.email { background: #007bff; }

.contact-form {
    max-width: 500px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover { 
    background: #6c63ff; 
}

footer { 
    text-align: center; 
    padding: 20px; 
    background: #333; 
    color: white; 
    margin-top: 40px;
}

/* Admin Dashboard Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-table th {
    background: #4a90e2;
    color: white;
    padding: 12px;
    text-align: left;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.admin-form {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.admin-form .form-group {
    margin-bottom: 15px;
}

.admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-success {
    background: #2ecc71;
    color: white;
}