/* General Form Styles */
form {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form p {
    margin-bottom: 15px;
}

form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form textarea,
form select {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

form input[type="submit"],
form button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

form input[type="submit"]:hover,
form button:hover {
    background-color: #005177;
}

/* Error and Success Messages */
.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Buttons */
.button {
    background-color: #0073aa;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background-color: #005177;
}

/* Property Form Styles */
.property-form {
    max-width: 800px;
    margin: 0 auto;
}

.property-form .form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 20px;
}

.property-form .form-group {
    flex: 1 1 100%; /* Default full width */
    margin-bottom: 15px;
}

.property-form .form-group input,
.property-form .form-group select,
.property-form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.property-form .form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

.property-form .form-group[style*="flex: 1 1 48%;"] {
    flex: 1 1 48%; /* Two fields in one row */
}

.property-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px; /* Adjust label font size */
    color: #333; /* Label text color */
}

.property-form input,
.property-form textarea,
.property-form select {
    width: 100%;
    padding: 12px; /* Adjust padding for height */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Adjust font size */
    line-height: 1.5; /* Adjust line height for better readability */
    color: #555; /* Input text color */
    background-color: #f9f9f9; /* Light background for inputs */
}

.property-form input[type="file"] {
    padding: 5px; /* Adjust padding for file inputs */
}

.property-form input:focus,
.property-form textarea:focus,
.property-form select:focus {
    border-color: #0073aa; /* Highlight border on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5); /* Add subtle shadow on focus */
}

.property-form .button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px; /* Adjust button padding */
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px; /* Adjust button font size */
    font-weight: bold;
}

.property-form .button:hover {
    background-color: #005177;
}

.property-form input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.property-form input[type="submit"]:hover {
    background-color: #005177;
}

/* Property Cards Container */
.sre-property-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Individual Property Card */
.sre-property-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    width: calc(33.333% - 20px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sre-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Property Image */
.sre-property-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Property Content */
.sre-property-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Property Title */
.sre-property-card-title {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Property Meta (Type, Bedrooms, Size) */
.sre-property-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

/* Property Price */
.sre-property-card-price {
    font-weight: 700;
    font-size: 16px;
    color: #4C9A2A;
    text-align: center;
    margin-bottom: 10px;
}

/* View Details Button */
.sre-property-card-link {
    text-decoration: none;
    color: #fff;
    background: #0073aa;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    transition: background 0.3s ease;
    align-self: center;
    margin-top: auto;
}

.sre-property-card-link:hover {
    background: #005177;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .sre-property-card {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .sre-property-card {
        width: 100%;
    }
}
