body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #f5f6fb;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    background: linear-gradient(90deg, #5a73ff, #c42bfc);
    color: white;
}

.logo {
    font-weight: bold;
    font-size: 20px;
}

.subtitle {
    margin-left: 10px;
    opacity: 0.8;
}

.nav-button {
    padding: 6px 16px;
    border-radius: 7px;
    border: none;
    background: white;
    color: #333;
    font-weight: 600;
    cursor: pointer;
}

.nav-input {
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
}

/* SEARCH BAR SECTION */
.search-container {
    margin: 30px auto;
    width: 80%;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.filter-dropdown {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* GRID LIST */
.grid {
    width: 80%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* STATUS BADGE */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: white;
}

.badge.available {
    background: #36c86d;
}

.badge.occupied {
    background: #ff4747;
}

.card-body {
    padding: 14px;
}

.card-title {
    font-size: 17px;
    font-weight: bold;
}

.card-detail {
    margin-top: 6px;
    color: #555;
    font-size: 14px;
}

.tag {
    display: inline-block;
    background: #eef1ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 4px;
    margin-top: 6px;
}

.card-footer {
    padding: 14px;
    display: flex;
    justify-content: center;
}

.btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: #2b6dff;
    color: white;
}

.btn-disabled {
    background: #ccc;
    cursor: not-allowed;
}

.result-count {
    width: 80%;
    margin: auto;
    font-size: 15px;
    margin-bottom: 15px;
}
/* MODAL */
.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;
}

.hidden { display: none; }

.modal-content {
    width: 400px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    animation: fadeIn 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 { margin: 0; font-size: 18px; }

.close-modal {
    cursor: pointer;
    font-size: 22px;
}

.modal-spot-info {
    background: #eef4ff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.modal-rate { color: #3772ff; font-weight: 600; margin-top: 5px; }

.modal-body {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-body input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.time-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.summary-box {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-cancel {
    padding: 10px 16px;
    border: 1px solid #aaa;
    background: white;
    border-radius: 6px;
    cursor: pointer;
}

.btn-submit {
    padding: 10px 16px;
    background: #2b6dff;
    color: white;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
