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

body {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4a8e67;
    color: white;
    padding: 1rem 2rem;
}

/* Left side: logo + name */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.website-name {
    font-size: 3rem;
    font-weight: 600;
}

/* Right side: nav links */
.navbar-right ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.navbar-right a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-right a:hover {
    color: #a2bbdf;
}


.properties {
    background: url('CPT_City.jpg') no-repeat center center/cover;
    height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    /* Make room for navbar */
}

#searchForm {
    display: flex;
    flex-direction: column;
}

/* SEARCH BOX */
.search-box {
    background: rgba(250, 250, 250, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 750px;
    width: 90%;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box h2 {
    margin-bottom: 1rem;
}

.input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.row {
    display: flex;
    width: 100%;
    margin: 0 0 1rem 0;
    box-sizing: border-box;
    gap: 1rem; 
}




.row > * {
    flex: 1;
    min-width: 0;
}
.input[type="date"] {
    margin-bottom: 0;
    flex: 1; 
    min-width: 0; 
}
.guest-selector {
    margin-bottom: 0;
    position: relative;
    font-family: sans-serif;
    width: 200px; 
    flex: 0 0 auto; 
}


.input[type="date"] {
    margin-bottom: 0;
    width: calc(50% - 1rem); 
    margin-right: 1rem; 
}


.guest-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: white;
    margin-bottom: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}


.guest-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.guest-label-text {
    flex: 1 1 auto;
    text-align: left;
}

select.input,
button[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin-bottom: 1rem;
    margin-left: 0;
    margin-right: 0;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: #4a8e67;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
   
}

button:hover {
    background-color: #4a8e67;
}



/* Dropdown content */
.guest-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: none;
    z-index: 1000;
}

/* Show dropdown when checkbox is checked */
.toggle:checked~.guest-dropdown {
    display: block;
}

/* Guest row */
.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.guest-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guest-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Done button */
.done-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    background-color: white;
    border: 1px solid #4a8e67;
    color: #4a8e67;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}
/* Add New Property/Edit Property Form Styles */
.edit-form-container {
    max-width: 700px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.10);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #166534;
}

.form-input,
.form-select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    background: #f8fafc;
    margin-top: 0.2rem;
    transition: border 0.2s;
}

.form-input:focus,
.form-select:focus,
textarea:focus {
    border: 1.5px solid #4a8e67;
    outline: none;
}

textarea {
    min-height: 90px;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
}

.amenity-checkbox input[type="checkbox"] {
    accent-color: #4a8e67;
}

.submit-btn {
    background: #4a8e67;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 7px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #166534;
}

.success-msg {
    color: #4a8e67;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.alert-danger {
    color: #b91c1c;
    background: #ffeaea;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}